/* Khaldrune – public website, look "A" (asset_lab/review/web_mockups/home_a_dota.html): the main menu of the game on
   the web. Forged-steel frames with lit corners, ice blue for selection and focus, muted gold for prestige,
   Cormorant capitals for headings, Inter for text. Colours from game/src/ui/ui_theme.gd. One stylesheet for all
   public pages (home, houses, heroes, guides, statistics, join, contact, legal); the admin uses admin.css.
   CSP: style-src 'self' – no inline styles in the markup. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --iron: #060b10; --iron2: #0f171f; --iron3: #19242f; --slate: #0a1219; --ptop: #111c26; --pbot: #070d13;
  --edge: #3a4148; --edgehi: #8a9198; --steel: #4c5157; --steelhi: #b8bec5;
  --parch: #e3e8ed; --body: #c3cad1; --dim: #9aa3ad; --faint: #858f99;
  --accent: #3f8fc4; --accenthi: #8fd0f0; --deep: #0d2a40; --gem: #2fb4e6; --gold: #c8a96a; --frost: #b9dcf0;
  --danger: #e0645e; --ok: #7fb86e; --warn: #e0a65a;
  --serif: "Cormorant Garamond", "Sitka Subheading", Cambria, Georgia, serif;
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 2.4vw, 32px);
  --max: 1480px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--iron); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 15px/1.55 var(--sans); color: var(--body); background: var(--iron); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--frost); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--parch); line-height: 1.1; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
code { font: .92em ui-monospace, Consolas, monospace; color: var(--frost); }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accenthi); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--deep); color: #fff;
  border: 1px solid var(--accenthi); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--serif); text-transform: uppercase; letter-spacing: .24em; font-size: 13px; color: var(--dim); margin: 0 0 .5em; }
.eyebrow.gold { color: var(--gold); }
.eyebrow.frost { color: var(--frost); }
.eyebrow.center { text-align: center; }
.lead { font-size: 17px; color: var(--body); max-width: 760px; }
.sub { color: var(--dim); }
.note { font-size: 13.5px; color: var(--dim); }

/* forged steel frame with lit corners, as in the menu */
.frame { position: relative; background: linear-gradient(var(--ptop), var(--pbot)); border: 1px solid var(--edge);
  box-shadow: 0 0 0 1px #04070a, inset 0 1px 0 rgba(184, 190, 197, .22), 0 12px 34px rgba(0, 0, 0, .55); }
.frame::after { content: ""; position: absolute; inset: -4px; pointer-events: none;
  background: linear-gradient(var(--steelhi), var(--steelhi)) 0 0/14px 2px no-repeat, linear-gradient(var(--steelhi), var(--steelhi)) 0 0/2px 14px no-repeat,
    linear-gradient(var(--steelhi), var(--steelhi)) 100% 0/14px 2px no-repeat, linear-gradient(var(--steelhi), var(--steelhi)) 100% 0/2px 14px no-repeat,
    linear-gradient(var(--steel), var(--steel)) 0 100%/14px 2px no-repeat, linear-gradient(var(--steel), var(--steel)) 0 100%/2px 14px no-repeat,
    linear-gradient(var(--steel), var(--steel)) 100% 100%/14px 2px no-repeat, linear-gradient(var(--steel), var(--steel)) 100% 100%/2px 14px no-repeat; }
.frame::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(138, 145, 152, .16); pointer-events: none; }

/* buttons: steel by default, ice for the main action (.btn-ice / .btn-red keep the old download markup working) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 22px; border: 1px solid var(--edgehi);
  background: linear-gradient(#16212c, #0a1118); color: var(--parch); font: 400 17px var(--serif); letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn:hover { color: #fff; border-color: var(--steelhi); }
.btn svg { width: 18px; height: 18px; }
.btn.sm { font: 600 12px var(--sans); letter-spacing: .06em; padding: 7px 14px; }
.btn-ice, .btn-red { border-color: var(--accenthi); background: linear-gradient(#1c4d72, #0d2a40);
  box-shadow: 0 0 18px rgba(47, 180, 230, .25), inset 0 1px 0 rgba(143, 208, 240, .4); }
.btn-ice:hover, .btn-red:hover { background: linear-gradient(#22618f, #10344f); }
.btn:disabled { opacity: .6; cursor: default; }
.linklike { background: none; border: 0; padding: 0; color: var(--frost); cursor: pointer; font: inherit; }
.linklike:hover { color: #fff; }

/* tags (news kinds) */
.tag { display: inline-block; font: 600 12px/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 1px 7px;
  border: 1px solid; margin-right: 6px; white-space: nowrap; color: var(--frost); }
.tag.k-event { color: var(--gold); }
.tag.k-maintenance { color: #f0a08e; }
.tag.k-announcement { color: var(--steelhi); }

/* ---------------------------------------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: linear-gradient(#0c141c, #060b10); border-bottom: 1px solid var(--edge);
  box-shadow: 0 1px 0 #000, 0 6px 20px rgba(0, 0, 0, .6); }
.topbar-in { height: 66px; display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); padding: 0 clamp(12px, 1.6vw, 26px); }
.medal { width: 96px; height: 96px; margin-top: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #1b2f45, #0b1520 70%); border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px #04070a, 0 0 0 4px var(--steel), 0 8px 20px rgba(0, 0, 0, .7); }
.medal img { width: 62px; height: auto; }
.topnav { display: flex; gap: clamp(14px, 1.7vw, 34px); flex: 1; white-space: nowrap; }
.topnav a { font: 400 clamp(16px, 1.15vw, 21px) var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--body); text-decoration: none; }
.topnav a:hover, .topnav a[aria-current] { color: var(--gold); }
.status { white-space: nowrap; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot.warn { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.dot.down { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.lang { white-space: nowrap; display: flex; gap: 6px; font-size: 13px; letter-spacing: .08em; color: var(--faint); }
.lang a { color: var(--dim); text-decoration: none; padding: 4px 2px; }
.lang a[aria-current] { color: var(--parch); font-weight: 700; }
.topbar .btn { white-space: nowrap; }
/* Discord: monochrome glyph button next to "Kostenlos spielen", Discord blurple on hover; in the menu on phones */
.discord { position: relative; flex: none; width: 40px; height: 38px; display: grid; place-items: center; color: var(--body);
  border: 1px solid var(--edgehi); background: #0a1118; text-decoration: none; transition: color .15s, border-color .15s; }
.discord:hover, .discord:focus-visible { color: #5865f2; border-color: #5865f2; }
.discord .tip { position: absolute; top: calc(100% + 8px); right: 0; padding: 6px 10px; white-space: nowrap; font-size: 13px; color: var(--parch);
  background: #070d13; border: 1px solid var(--edge); box-shadow: 0 6px 16px rgba(0, 0, 0, .6); opacity: 0; visibility: hidden;
  pointer-events: none; transition: opacity .15s; }
.discord:hover .tip, .discord:focus-visible .tip { opacity: 1; visibility: visible; }
.dc-glyph { display: block; }
.topnav .nav-discord { display: none; }
.btn-discord { margin-top: 18px; }
.btn-discord:hover { border-color: #5865f2; color: #fff; }
.btn-discord:hover .dc-glyph { color: #5865f2; }
.menu-toggle { display: none; width: 40px; height: 38px; flex: none; border: 1px solid var(--edgehi); cursor: pointer; color: transparent;
  background: linear-gradient(transparent 11px, var(--parch) 11px 13px, transparent 13px 18px, var(--parch) 18px 20px, transparent 20px 25px,
    var(--parch) 25px 27px, transparent 27px) center/20px 38px no-repeat, #0a1118; overflow: hidden; font-size: 0; }
/* the server status and the inline nav give way first: the header row never scrolls sideways (German nav + Discord) */
@media (max-width: 1880px) { .status { display: none; } }
@media (max-width: 1400px) {
  .menu-toggle { display: block; order: 5; }
  .topbar-in { gap: 12px; }
  .topbar .btn { margin-left: auto; }
  .discord { margin-left: auto; }
  .topbar .discord + .btn { margin-left: 0; }
  .topnav { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; gap: 0; padding: 8px 0 14px;
    background: #070d13; border-bottom: 1px solid var(--edge); box-shadow: 0 16px 30px rgba(0, 0, 0, .7); }
  .topnav.is-open { display: flex; }
  .topnav a { padding: 12px 24px 12px 130px; font-size: 20px; }
}
@media (max-width: 760px) {
  .topbar-in { height: 56px; }
  .medal { width: 58px; height: 58px; margin-top: 18px; }
  .medal img { width: 38px; }
  .topnav { top: 56px; }
  .topnav a { padding: 12px 20px; }
  .lang { display: none; }
  .discord { display: none; }
  .topbar .discord + .btn { margin-left: auto; }
  .topnav .nav-discord { display: block; }
  .topbar .btn { font-size: 14px; padding: 7px 12px; letter-spacing: .08em; }
}
.maint-banner { padding: 10px var(--gutter); background: #3a2410; border-bottom: 1px solid var(--warn); color: #ffe1b8; text-align: center; }

/* ---------------------------------------------------------------------------------------------- home: cinematic first screen */
/* Look "Kinematisch" (web/mockups/home_a.html): full-screen battle at the Oathwall, the top bar floats over it. */
.home .topbar { background: linear-gradient(rgba(8, 14, 20, .86), rgba(6, 11, 16, .62)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom-color: rgba(58, 65, 72, .55); }
.maint-banner[hidden] + main > .cine:first-child { margin-top: -67px; }
.cine { position: relative; isolation: isolate; min-height: clamp(620px, 100vh, 1080px); display: flex; flex-direction: column;
  justify-content: flex-end; overflow: hidden; }
.cine-bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  filter: saturate(.8) brightness(.74) contrast(1.08); }
.cine::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 85% at 30% 42%, transparent 30%, rgba(6, 11, 16, .62) 82%), linear-gradient(90deg, rgba(6, 11, 16, .82), rgba(6, 11, 16, .2) 62%, transparent),
    linear-gradient(transparent 50%, rgba(6, 11, 16, .7) 82%, var(--iron) 99%); }
.cine-snow { position: absolute; inset: 0; z-index: -2; opacity: .4; pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff 50%, transparent), radial-gradient(1px 1px at 80px 120px, #e4f3ff 50%, transparent),
    radial-gradient(2px 2px at 150px 60px, #fff 50%, transparent), radial-gradient(1px 1px at 200px 170px, #fff 50%, transparent);
  background-size: 230px 210px; }
.cine-in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 150px var(--gutter) clamp(28px, 5vh, 56px); text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.cine-in > * { max-width: 800px; }
.cine-logo { display: block; width: clamp(220px, 26vw, 380px); height: auto; margin: 0 auto 18px; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .7)); }
.cine h1 { font-size: clamp(46px, 7.4vw, 112px); line-height: .98; letter-spacing: .01em; color: #f4f7fa; margin: 0 0 .25em;
  text-shadow: 0 0 30px rgba(143, 208, 240, .18), 0 3px 18px #000; }
.cine-lead { font-size: clamp(16px, 1.45vw, 21px); color: #dbe3ea; max-width: 660px; margin: 0 0 30px; }
.cine-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.btn-xl { padding: 16px 38px; font-size: 22px; letter-spacing: .14em; }
.watch { display: inline-flex; gap: 10px; align-items: center; color: var(--frost); font-size: 16px; text-decoration: none; }
.watch i { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--frost); display: grid; place-items: center; font-style: normal; font-size: 12px;
  background: rgba(6, 11, 16, .45); }
.cine-meta { margin: 18px 0 0; font-size: 14px; color: var(--frost); }
.trio { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 34px; margin: 22px 0 0; padding-top: 14px;
  border-top: 1px solid rgba(138, 145, 152, .35); max-width: 420px; }
.trio div { margin: 0; }
.trio dt { font: 500 30px/1.1 var(--serif); color: var(--parch); }
.trio dd { margin: 0; font-size: 12.5px; color: var(--dim); }
.cine .ticker { width: 100%; max-width: var(--max); margin: 0 auto; border-width: 1px 0 0; background: rgba(6, 11, 16, .72); }
.ticker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; padding: 11px var(--gutter); background: rgba(6, 11, 16, .78); border: 1px solid var(--edge);
  font-size: 14px; color: var(--dim); min-height: 46px; }
.ticker b { color: var(--frost); font-weight: 500; }
.ticker a { margin-left: auto; font-size: 13px; }

/* current: rotating event banner, newest update, short news list */
.now { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 22px; max-width: var(--max); margin: 0 auto;
  padding: 26px var(--gutter) 64px; }
.event { min-height: 300px; padding: 30px 34px; overflow: hidden; display: flex; align-items: flex-end; }
.event-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; opacity: .6; }
.event::before { z-index: 1; }
.event-in { position: relative; z-index: 1; max-width: 560px; }
.event-shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(9, 18, 28, .95) 25%, rgba(9, 18, 28, .4)); }
.event h2 { font-size: clamp(30px, 2.8vw, 48px); line-height: 1; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.event p { margin: 12px 0 18px; font-size: 16px; color: var(--body); }
.pips { position: absolute; right: 24px; bottom: 18px; z-index: 2; display: flex; gap: 4px; }
.pips button { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.pips button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #4c5866; }
.pips button[aria-current="true"]::before { background: var(--accenthi); box-shadow: 0 0 6px var(--gem); }
.news-card img { height: 160px; width: 100%; object-fit: cover; }
.news-card .bd { padding: 12px 16px 16px; }
.news-card h2 { font-size: 26px; margin: 4px 0 6px; }
.news-card p { font-size: 14px; margin-bottom: 12px; }
.notes { padding: 14px 16px; }
.notes .hd { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(58, 65, 72, .6); padding-bottom: 6px; }
.notes .hd .eyebrow { margin: 0; font-size: 12px; }
.notes .hd a { font-size: 12.5px; color: var(--dim); }
.notes ul { list-style: none; margin: 0; padding: 0; }
.notes li { border-bottom: 1px solid rgba(58, 65, 72, .6); }
.notes li:last-child { border-bottom: 0; }
.notes li button { display: flex; width: 100%; justify-content: space-between; gap: 10px; padding: 7px 0; background: none; border: 0; color: var(--body);
  text-align: left; font-size: 14px; cursor: pointer; }
.notes li button:hover { color: #fff; }
.notes time { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.notes .empty { padding: 8px 0 2px; font-size: 13.5px; color: var(--dim); }

/* large alternating image / text bands */
.feat { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; min-height: 540px; border-top: 1px solid var(--edge);
  background: var(--iron); }
.feat.rev { background: linear-gradient(#070d13, #0a1219); }
.feat.rev .feat-pic { order: 2; }
.feat-pic { position: relative; margin: 0; align-self: stretch; min-height: 440px; overflow: hidden; }
.feat-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 68%, var(--iron)); }
.feat.rev .feat-pic::after { background: linear-gradient(270deg, transparent 68%, #090f16); }
.feat-txt { padding: 56px clamp(24px, 4vw, 72px); max-width: 680px; }
.feat-txt h2 { font-size: clamp(36px, 4vw, 62px); line-height: 1.02; color: #f1f5f8; }
.feat-txt p { font-size: 17.5px; margin: 14px 0 22px; }
.more { font-size: 15px; letter-spacing: .04em; text-decoration: none; color: var(--accenthi); }
.more:hover { text-decoration: underline; }

/* download box (closing section) */
.play { display: block; margin-top: auto; padding: 20px 18px 16px; text-align: center; background: linear-gradient(#1a4669, #0d2a40 70%);
  border: 1px solid var(--accenthi); box-shadow: 0 0 0 1px #04070a, 0 0 26px rgba(47, 180, 230, .28), inset 0 1px 0 rgba(143, 208, 240, .5); }
.play-main { display: block; font: 400 58px/1 var(--serif); letter-spacing: .12em; color: #f2f7fb; text-decoration: none; }
.play-main:hover { color: #fff; text-shadow: 0 0 18px rgba(143, 208, 240, .6); }
.play small { display: block; margin: 8px 0 14px; color: var(--frost); font-size: 14px; }
.plats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.plats a { padding: 7px 4px; border: 1px solid rgba(143, 208, 240, .45); background: rgba(4, 10, 16, .45); font-size: 12.5px; color: var(--parch); text-decoration: none; }
.plats a:hover { border-color: var(--accenthi); color: #fff; }
.plats .dl-meta { display: block; color: var(--frost); font-size: 12px; }

/* ---------------------------------------------------------------------------------------------- bands below the fold */
section.band { padding: 72px 0; border-top: 1px solid var(--edge); }
section.band.alt { background: linear-gradient(#070d13, #0a1219); }
.sh { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sh h2 { font-size: clamp(32px, 3vw, 46px); line-height: 1.05; letter-spacing: .04em; margin: 0; }
.sh a, .sh .linklike { font-size: 14px; }
.tiles4 { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; }
.tile { display: flex; flex-direction: column; }
.tile:hover h3, .tile:focus-within h3 { color: #fff; }
.tile:focus-within { outline: 2px solid var(--accenthi); outline-offset: 3px; }
.tile .stretch { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tile .stretch:focus-visible { outline: none; }
.tile .stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile img { height: 190px; width: 100%; object-fit: cover; }
.tile.big img { height: 300px; }
.tile .bd { padding: 14px 16px 18px; }
.tile h3 { font-size: 25px; line-height: 1.15; margin: 6px 0; }
.tile p { font-size: 14px; margin: 0; }
.tile time { display: block; margin-top: 10px; font-size: 12px; color: var(--faint); }
.empty-band { color: var(--dim); }

/* key figures */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.figure { padding: 18px 20px; margin: 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.figure dd { margin: 0; font: 500 40px/1.05 var(--serif); color: var(--parch); }
.figure dt { font-size: 13px; color: var(--dim); margin-top: 4px; }
.figure dd small { font: 400 14px var(--sans); color: var(--dim); }
.figures-note { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* houses & dragons */
.showcase { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 26px; align-items: stretch; }
.crestgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 18px; align-content: start; }
.crestgrid button { text-align: center; padding: 12px 4px; border: 1px solid transparent; background: none; color: inherit; cursor: pointer; }
.crestgrid button:hover { border-color: var(--edge); }
.crestgrid button[aria-selected="true"] { border-color: var(--accenthi); background: rgba(63, 143, 196, .12); }
.crestgrid img { width: 60px; height: 60px; margin: 0 auto 6px; }
.crestgrid b { display: block; font: 500 18px var(--serif); color: var(--parch); overflow-wrap: anywhere; }
.crestgrid small { font-size: 12.5px; color: var(--dim); overflow-wrap: anywhere; hyphens: auto; }
.hort { display: grid; grid-template-columns: 1.25fr 1fr; }
.hort .art { position: relative; min-height: 340px; background: radial-gradient(ellipse at 50% 60%, #1d3550, #070d13 75%); overflow: hidden; }
.hort .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) brightness(.8) contrast(1.2);
  -webkit-mask: radial-gradient(ellipse 70% 75%, #000 55%, transparent); mask: radial-gradient(ellipse 70% 75%, #000 55%, transparent); }
.hort .info { padding: 26px 28px; }
.hort h3 { font-size: clamp(28px, 2.6vw, 40px); letter-spacing: .14em; text-transform: uppercase; }
.skins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.skins li { border: 1px solid var(--edge); background: #0a121a; padding: 6px; text-align: center; font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }
.skins li.base { border-color: var(--gold); color: var(--gold); }
.skins img { height: 70px; width: 100%; object-fit: cover; margin-bottom: 4px; filter: brightness(.8) contrast(1.2); }
.skins .r { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* heroes */
.heroes { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 12px; }
.hero { text-align: center; padding: 16px 6px 12px; text-decoration: none; }
.hero img { width: 64px; height: 64px; margin: 0 auto 8px; }
.hero b { font: 500 16px/1.15 var(--serif); color: var(--parch); hyphens: auto; }
.hero:hover b { color: #fff; }
@media (max-width: 1400px) { .heroes { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { position: relative; display: block; color: var(--body); text-decoration: none; }
.gallery img { aspect-ratio: 16/9; object-fit: cover; width: 100%; border: 1px solid var(--edge); }
.gallery a span { display: block; padding: 6px 2px 0; font-size: 13px; color: var(--dim); }
.gallery a:hover img { border-color: var(--accenthi); }
dialog { color: var(--body); }
.lightbox { max-width: min(1600px, 96vw); padding: 0; border: 1px solid var(--edge); background: #04080c; }
.lightbox::backdrop, .news-dialog::backdrop { background: rgba(0, 0, 0, .82); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; }
.lightbox p { margin: 0; padding: 10px 16px; color: var(--dim); }
.lb-close { position: absolute; right: 8px; top: 6px; z-index: 2; width: 40px; height: 40px; border: 1px solid var(--edge); background: rgba(6, 11, 16, .85);
  color: var(--parch); font-size: 24px; cursor: pointer; }
.news-dialog { width: min(780px, 94vw); max-height: 88vh; padding: 0; border: 1px solid var(--edge); background: linear-gradient(var(--ptop), var(--pbot)); }
.news-dialog img { width: 100%; max-height: 300px; object-fit: cover; }
.news-dialog .bd { padding: 22px 26px 26px; }
.news-dialog h2 { font-size: 34px; }
.news-dialog .md h3 { font-size: 22px; margin: 1.1em 0 .4em; color: var(--gold); }
.news-dialog .md ul { padding-left: 20px; }

/* download / closing */
.cta { position: relative; padding: 90px var(--gutter); text-align: center; border-top: 1px solid var(--edge); overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(6, 11, 16, .65), rgba(6, 11, 16, .92)), url("/assets/img/cta.webp") center 35%/cover; }
.cta h2 { font-size: clamp(38px, 4vw, 60px); color: #f3f6f9; }
.cta p { max-width: 720px; margin: 12px auto 18px; color: #d1d8de; }
.cta .play { display: block; width: min(520px, 100%); margin: 26px auto 0; }
.cta .note { color: #b5bfc8; }

/* footer */
.footer { padding: 30px 0; border-top: 1px solid var(--edge); background: #04080c; font-size: 13px; color: var(--faint); }
.footer .wrap { display: flex; gap: 26px; align-items: center; }
.footer .logo img { height: 44px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; flex: 1; }
.footer nav a { color: var(--dim); text-decoration: none; }
.footer nav a:hover { color: #fff; }

/* ---------------------------------------------------------------------------------------------- inner pages */
.page, .handbook { padding-top: 44px; padding-bottom: 72px; }
.page { max-width: 920px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.page .compass, .compass { display: none; }
.page h1, .handbook h1 { font-size: clamp(36px, 4vw, 56px); letter-spacing: .03em; }
.page h2 { font-size: 28px; margin-top: 1.6em; color: var(--parch); }
.page h3 { font-size: 22px; margin-top: 1.3em; color: var(--gold); }
.page ul, .page ol { padding-left: 22px; }
.page li { margin-bottom: .4em; }
.page table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.page th, .page td { border-bottom: 1px solid var(--edge); padding: 8px 10px; text-align: left; vertical-align: top; }
.page th { color: var(--parch); font-weight: 600; }
.page .table-wrap, .table-scroll { overflow-x: auto; }
.legal-basis { color: var(--dim); }
.breadcrumbs { display: flex; gap: 8px; font-size: 13px; color: var(--faint); margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--dim); }
.guide-heading { max-width: 860px; margin-bottom: 30px; }
.language-note { padding: 10px 14px; border: 1px solid var(--edge); background: var(--slate); color: var(--dim); }
.reading-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.reading-nav { position: sticky; top: 96px; }
.reading-nav nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-left: 1px solid var(--edge); }
.reading-nav strong { font: 400 13px var(--serif); text-transform: uppercase; letter-spacing: .2em; color: var(--dim); padding: 0 16px 8px; }
.reading-nav a { padding: 5px 16px; color: var(--body); text-decoration: none; font-size: 14.5px; }
.reading-nav a:hover { color: #fff; box-shadow: inset 2px 0 0 var(--accenthi); }
.reading-content { max-width: 820px; }
.reading-section { padding: 26px 0; border-top: 1px solid var(--edge); }
.reading-section:first-of-type { border-top: 0; }
.reading-section h2 { font-size: 32px; }
.reading-section h3 { font-size: 22px; color: var(--gold); margin-top: 1.1em; }
.reading-list { padding-left: 20px; }
.reading-list li { margin-bottom: .5em; }
.guide-shot { margin: 0 0 24px; }
.guide-shot img { width: 100%; border: 1px solid var(--edge); }
.guide-shot figcaption { font-size: 13px; color: var(--dim); padding-top: 6px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.handbook-card { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--body);
  background: linear-gradient(var(--ptop), var(--pbot)); border: 1px solid var(--edge); box-shadow: 0 0 0 1px #04070a, inset 0 1px 0 rgba(184, 190, 197, .22); }
.handbook-card:hover { border-color: var(--accenthi); color: var(--body); }
.handbook-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--slate); }
.hero-entry .handbook-card img { aspect-ratio: auto; height: 120px; object-fit: contain; padding: 18px; }
.handbook-card > div { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.handbook-card h3 { font-size: 24px; margin: 4px 0 6px; }
.handbook-card p { font-size: 14px; }
.card-link { margin-top: auto; color: var(--frost); font-size: 14px; }
.next-reading { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--edge); }
.hero-profile, .house-profile { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.hero-profile img { width: 120px; height: 120px; padding: 12px; border: 1px solid var(--edge); background: var(--slate); }
.house-profile img { width: 72px; height: 72px; flex: none; }
.house-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.house-chip { padding: 4px 12px; border: 1px solid var(--edge); background: #0a121a; color: var(--body); text-decoration: none; font-size: 13.5px; }
.house-chip:hover { border-color: var(--accenthi); color: #fff; }
.skill { padding: 12px 0; border-bottom: 1px solid rgba(58, 65, 72, .6); }
.skill h3 { margin-top: 0; }
.hero-tools { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0 18px; }
.hero-tools label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--dim); min-width: 220px; }
input, select, textarea { font: inherit; color: var(--parch); background: #0a121a; border: 1px solid var(--edge); padding: 9px 11px; border-radius: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accenthi); outline-offset: 0; border-color: var(--accenthi); }
.house-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.house-index a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--edge); background: #0a121a; text-decoration: none; color: var(--parch); }
.house-index a:hover { border-color: var(--accenthi); }
.house-index img { width: 32px; height: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--dim); }
.contact-form label.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--body); }
.contact-form label.check input { margin-top: 4px; }
.contact-form .btn { align-self: flex-start; }
.contact-status.ok { color: var(--ok); }
.contact-status.down { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-code { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.join-code code { font-size: 40px; letter-spacing: .2em; color: var(--parch); padding: 8px 18px; border: 1px solid var(--edge); background: var(--slate); }

/* game modes (home #modi) and key tables (mode guides) */
.modes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.mode { grid-column: span 2; display: flex; flex-direction: column; }
.mode.mode-new { grid-column: span 3; }
.mode img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.mode .bd { padding: 14px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.mode h3 { font-size: 28px; margin: 4px 0 8px; color: #f1f5f8; }
.mode-new h3 { font-size: 34px; }
.mode p { font-size: 15px; margin: 0 0 14px; }
.mode .more { margin-top: auto; }
.mode-new { border-color: rgba(201, 168, 106, .55); }
.keys { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 15px; }
.keys th, .keys td { text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid rgba(58, 65, 72, .6); }
.keys th { font-weight: 400; white-space: nowrap; width: 1%; color: var(--parch); }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; font: 500 13px/1.5 var(--sans); text-align: center; color: var(--parch);
  background: #0a121a; border: 1px solid var(--edge); border-bottom-width: 2px; border-radius: 3px; }

/* statistics page */
.stat-section { margin-top: 42px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 200px minmax(0, 1fr) 170px; gap: 12px; align-items: center; font-size: 14px; }
.bars .bar { height: 12px; background: #0a121a; border: 1px solid var(--edge); }
.bars .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accenthi)); }
.bars .bar.gold i { background: linear-gradient(90deg, #8a7240, var(--gold)); }
.bars .v { text-align: right; color: var(--parch); font-variant-numeric: tabular-nums; }
.bars .who { display: flex; align-items: center; gap: 8px; color: var(--parch); }
.bars .who img { width: 26px; height: 26px; }

/* ---------------------------------------------------------------------------------------------- responsive */
@media (max-width: 1500px) {
  .play-main { font-size: 48px; }
}
@media (max-width: 1240px) {
  .now { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .now .event { grid-column: 1 / -1; }
  .tiles4 { grid-template-columns: 1fr 1fr; }
  .tile.big { grid-column: 1 / -1; }
  .showcase { grid-template-columns: 1fr; }
  .reading-layout { grid-template-columns: 1fr; }
  .reading-nav { position: static; }
  .reading-nav nav { flex-direction: row; flex-wrap: wrap; border-left: 0; border-bottom: 1px solid var(--edge); padding: 0 0 10px; }
  .reading-nav strong { width: 100%; padding-left: 0; }
  .reading-nav a { padding: 4px 12px 4px 0; }
}
@media (max-width: 900px) {
  .feat, .feat.rev { grid-template-columns: 1fr; min-height: 0; }
  .feat.rev .feat-pic { order: 0; }
  .feat-pic { min-height: 0; aspect-ratio: 16 / 9; }
  .feat-pic::after, .feat.rev .feat-pic::after { background: linear-gradient(transparent 62%, var(--iron)); }
  .feat.rev .feat-pic::after { background: linear-gradient(transparent 62%, #080e14); }
  .feat-txt { padding: 22px var(--gutter) 44px; }
  .modes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mode, .mode.mode-new { grid-column: span 1; }
}
@media (max-width: 600px) {
  .modes { grid-template-columns: minmax(0, 1fr); }
  .mode h3, .mode-new h3 { font-size: 28px; }
  .keys th { white-space: normal; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .maint-banner[hidden] + main > .cine:first-child { margin-top: -57px; }
  .cine { min-height: 640px; }
  .cine-bg { object-position: 58% 30%; }
  .cine::after { background: linear-gradient(rgba(6, 11, 16, .4), rgba(6, 11, 16, .55) 22%, rgba(6, 11, 16, .86) 42%, rgba(6, 11, 16, .9) 75%, var(--iron) 98%); }
  .cine-in { padding: 220px 16px 24px; }
  .cine h1 { font-size: 44px; }
  .cine-logo { width: 200px; margin-bottom: 12px; }
  .cine-lead { font-size: 15.5px; margin-bottom: 22px; }
  .btn-xl { width: 100%; font-size: 19px; padding: 14px 20px; }
  .trio { gap: 0 24px; }
  .trio dt { font-size: 25px; }
  .ticker { gap: 6px 16px; font-size: 13px; padding: 10px 16px; }
  .ticker a { margin-left: 0; }
  .now { grid-template-columns: 1fr; gap: 16px; padding: 18px 16px 44px; }
  .event { padding: 18px; min-height: 240px; }
  .event h2 { font-size: 30px; }
  .event p { font-size: 14px; }
  .pips { right: 12px; bottom: 10px; }
  .feat-txt h2 { font-size: 34px; }
  .feat-txt p { font-size: 15.5px; }
  section.band { padding: 44px 0; }
  .tiles4, .showcase, .hort, .gallery { grid-template-columns: minmax(0, 1fr); }
  .tile.big img { height: 190px; }
  .hort .art { min-height: 220px; }
  .hort .info { padding: 18px; }
  .crestgrid { padding: 12px; gap: 6px; }
  .crestgrid img { width: 46px; height: 46px; }
  .heroes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero b { font-size: 14.5px; }
  .cta { padding: 56px 16px; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .figure { padding: 14px; }
  .figure dd { font-size: 30px; }
  .bars li { grid-template-columns: 96px minmax(0, 1fr) 92px; font-size: 13px; }
  .hero-profile { flex-direction: column; align-items: flex-start; }
  .join-code code { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
