/* KnightForever website (every page: portal, register, patch notes, error). Tokens: kf-tokens.css. Six languages (tr, en, es,
   ko, zh, ja): text may run about a third longer than Turkish (es) or much shorter (CJK), so rows wrap instead of clipping and
   buttons grow in height; the CJK font stacks are in kf-tokens.css, the CJK typography at the end of this file. */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.web {
  min-height: 100dvh; display: flex; flex-direction: column;
  font-family: var(--kf-font-text); font-size: var(--kf-fs-m); line-height: var(--kf-leading);
  color: var(--kf-text); background: var(--kf-ink-900);
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled, .button[aria-disabled="true"] { cursor: default; opacity: .55; pointer-events: none; }
:focus-visible { outline: 2px solid var(--kf-gold-200); outline-offset: 3px; }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.skip-link { position: absolute; z-index: 10; left: var(--kf-space-4); top: -60px; padding: var(--kf-space-2) var(--kf-space-4); background: var(--kf-gold-300); color: var(--kf-text-on-gold); font-weight: 600; text-decoration: none; border-radius: var(--kf-radius-2); }
.skip-link:focus { top: var(--kf-space-3); }
.site-content { flex: 1; display: flex; flex-direction: column; }

/* ---- lockup -------------------------------------------------------------------------------------------------------------- */
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--kf-text); }
.brand-mark { width: 32px; height: 38px; flex: 0 0 auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.brand-type { display: flex; flex-direction: column; gap: 4px; }
.brand-name { font-family: var(--kf-font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: var(--kf-tracking-display); line-height: 1; }
.brand-four { background: var(--kf-gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-baseline { display: flex; align-items: center; gap: 8px; font-size: .625rem; font-weight: 600; letter-spacing: .28em; line-height: 1; }
.brand-elmorad { color: #8fb8f6; }
.brand-karus { color: #f0928b; }
.brand-versus { width: 5px; height: 5px; background: var(--kf-gold-300); transform: rotate(45deg); }

/* ---- top bar ------------------------------------------------------------------------------------------------------- */
.site-top {
  position: relative; z-index: 3; display: flex; align-items: center; gap: var(--kf-space-6);
  padding: var(--kf-space-3) var(--kf-gutter); background: rgba(11, 12, 11, .92); backdrop-filter: blur(8px);
}
.site-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--kf-line-strong) 20%, var(--kf-line-strong) 80%, transparent); }
.site-brand { text-decoration: none; display: inline-flex; border-radius: var(--kf-radius-2); }
.site-nav { display: flex; align-items: center; gap: var(--kf-space-1); margin-left: auto; font-size: var(--kf-fs-s); }
.site-nav a { padding: var(--kf-space-2) var(--kf-space-3); color: var(--kf-text-muted); text-decoration: none; border-radius: var(--kf-radius-2); transition: color var(--kf-duration), background var(--kf-duration); }
.site-nav a + a::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 var(--kf-space-4) 2px calc(-1 * var(--kf-space-3) - 2px); background: var(--kf-gold-600); transform: rotate(45deg); vertical-align: middle; }
.site-nav a:hover { color: var(--kf-gold-200); }
.site-top .language-picker { margin-left: var(--kf-space-2); }

/* ---- hero ------------------------------------------------------------------------------------------------------------ */
.portal { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; padding-bottom: var(--kf-space-8); }
.portal-hero {
  position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(40px, 8vh, 88px) var(--kf-gutter) clamp(120px, 18vh, 170px);
  background:
    linear-gradient(180deg, rgba(17, 19, 16, .2) 0%, rgba(17, 19, 16, .05) 40%, rgba(17, 19, 16, .85) 82%, var(--kf-ink-900) 100%),
    radial-gradient(60% 70% at 50% 40%, rgba(17, 19, 16, .55), transparent 70%),
    url('/assets/launcher-art/battle-elmorad.jpg') center 65% / cover no-repeat, var(--kf-ink-900);
}
.portal-hero.compact { padding-bottom: clamp(96px, 14vh, 128px); }
.hero-crest { position: relative; margin-bottom: var(--kf-space-4); }
.hero-crest::before { content: ''; position: absolute; inset: -34px -48px; background: radial-gradient(closest-side, rgba(233, 200, 116, .28), transparent); }
.hero-crest img { position: relative; display: block; width: 72px; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .7)); }
.kicker { margin: 0 0 var(--kf-space-3); color: var(--kf-gold-300); font-family: var(--kf-font-display); font-size: var(--kf-fs-xs); font-weight: 700; letter-spacing: var(--kf-tracking-caps); }
.portal-hero h1 { margin: 0 0 var(--kf-space-4); max-width: 18ch; font-family: var(--kf-font-display); font-size: var(--kf-fs-3xl); font-weight: 700; line-height: 1.12; letter-spacing: .02em; text-shadow: 0 4px 30px rgba(0, 0, 0, .8); }
.portal-lead { margin: 0; max-width: 40rem; color: var(--kf-text-muted); font-size: var(--kf-fs-l); line-height: 1.6; text-shadow: 0 2px 14px rgba(0, 0, 0, .9); }
.nation-strip { display: flex; align-items: center; gap: var(--kf-space-3); margin: var(--kf-space-5) 0 0; font-family: var(--kf-font-display); font-size: var(--kf-fs-xs); font-weight: 700; letter-spacing: .3em; }
.nation { padding: 4px 0; }
.nation.elmorad { color: #9cc0f8; border-bottom: 2px solid var(--kf-elmorad); }
.nation.karus { color: #f4a19a; border-bottom: 2px solid var(--kf-karus); }
.nation-gem { width: 8px; height: 8px; background: var(--kf-gold-300); transform: rotate(45deg); box-shadow: 0 0 10px rgba(233, 200, 116, .7); }

/* ---- action card (overlaps the hero) ------------------------------------------------------------------------------- */
.portal-card {
  --kf-frame-fill: linear-gradient(180deg, rgba(30, 33, 26, .97), rgba(20, 23, 18, .98));
  position: relative; z-index: 1; width: min(920px, calc(100% - 2 * var(--kf-gutter))); margin-top: clamp(-112px, -14vh, -84px);
  padding: var(--kf-space-6); box-shadow: var(--kf-shadow-2);
}
.portal-card::before { content: ''; position: absolute; left: 50%; top: -1px; width: 120px; height: 2px; transform: translateX(-50%); background: var(--kf-gold-gradient); }
.portal-card.is-single, .portal-card.is-session { width: min(480px, calc(100% - 2 * var(--kf-gutter))); }
.portal-card.is-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "dev dev" "guest divider" "guest login" "error error" "status status"; column-gap: var(--kf-space-6); }
.portal-card.is-split > .dev-badge { grid-area: dev; justify-self: start; }
.portal-card.is-split > .guest-block { grid-area: guest; }
.portal-card.is-split > .divider { grid-area: divider; }
.portal-card.is-split > .login-form { grid-area: login; }
.portal-card.is-split > #portal-error { grid-area: error; }
.portal-card.is-split > #portal-status { grid-area: status; }
.portal-card.is-split > .divider, .portal-card.is-split > .login-form { padding-left: var(--kf-space-6); border-left: 1px solid var(--kf-line); }
.portal-card h2 { margin: 0 0 var(--kf-space-4); font-family: var(--kf-font-display); font-size: var(--kf-fs-xl); font-weight: 700; line-height: 1.25; letter-spacing: .02em; }
.session-account, #session-account, #registered-account { color: var(--kf-gold-300); font-family: var(--kf-font-text); font-weight: 700; letter-spacing: 0; word-break: break-all; }
.muted { color: var(--kf-text-muted); line-height: 1.6; }
.small { font-size: var(--kf-fs-s); }

/* ---- buttons ------------------------------------------------------------------------------------------------------- */
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--kf-space-3);
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--kf-radius-2);
  font-family: var(--kf-font-display); font-size: var(--kf-fs-m); font-weight: 700; letter-spacing: .1em; text-decoration: none; text-align: center;
  transition: background var(--kf-duration) var(--kf-ease), border-color var(--kf-duration), color var(--kf-duration), box-shadow var(--kf-duration);
}
.button.wide { width: 100%; }
.button.primary { background: var(--kf-gold-gradient); border-color: var(--kf-gold-600); color: var(--kf-text-on-gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(107, 79, 31, .35), 0 6px 20px rgba(0, 0, 0, .4); }
.button.primary:hover { background: var(--kf-gold-gradient-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), var(--kf-glow-gold); }
.button.primary:focus-visible { outline: none; box-shadow: var(--kf-focus-ring); }
.button.primary::before, .button.primary::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; background: var(--kf-text-on-gold); opacity: .55; transform: translateY(-50%) rotate(45deg); }
.button.primary::before { left: 12px; }
.button.primary::after { right: 12px; }
.button.secondary { border-color: var(--kf-line-strong); background: rgba(233, 200, 116, .05); color: var(--kf-gold-200); }
.button.secondary:hover { border-color: var(--kf-gold-300); background: rgba(233, 200, 116, .12); color: var(--kf-gold-100); }
.button.ghost { min-height: 40px; margin-top: var(--kf-space-3); padding: 8px 0; background: none; color: var(--kf-text-muted); font-family: var(--kf-font-text); font-size: var(--kf-fs-s); font-weight: 500; letter-spacing: 0; text-decoration: underline; text-underline-offset: 3px; }
.button.ghost:hover { color: var(--kf-gold-200); }
.portal-card .button + .button, .portal-card .button + .notice, .portal-card .notice + .button { margin-top: var(--kf-space-3); }
.text-link { color: var(--kf-gold-300); font-size: var(--kf-fs-s); text-underline-offset: 3px; }

/* ---- notices, divider, forms ------------------------------------------------------------------------------------------ */
.notice { margin-top: var(--kf-space-4); padding: var(--kf-space-4); border-left: 2px solid var(--kf-gold-400); background: rgba(233, 200, 116, .06); font-size: var(--kf-fs-s); line-height: 1.55; color: var(--kf-text-muted); }
.notice p { margin: 0 0 var(--kf-space-2); color: var(--kf-text); }
.notice ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: var(--kf-space-2); }
.notice li { position: relative; padding-left: 18px; }
.notice li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; background: var(--kf-gold-400); transform: rotate(45deg); }
.notice .button { margin-top: var(--kf-space-4); }
.divider { display: flex; align-items: center; gap: var(--kf-space-3); margin: 0 0 var(--kf-space-1); color: var(--kf-gold-300); font-family: var(--kf-font-display); font-size: var(--kf-fs-xs); font-weight: 700; letter-spacing: var(--kf-tracking-caps); text-transform: uppercase; }
.divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--kf-line-strong), transparent); }
.login-form label { display: block; margin: var(--kf-space-4) 0 6px; font-size: var(--kf-fs-s); font-weight: 600; color: var(--kf-text); }
.login-form input { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid rgba(241, 234, 216, .22); border-radius: var(--kf-radius-2); background: var(--kf-surface-sunken); color: var(--kf-text); font-size: var(--kf-fs-m); transition: border-color var(--kf-duration), box-shadow var(--kf-duration); }
.login-form input::placeholder { color: var(--kf-text-subtle); }
.login-form input:hover { border-color: rgba(233, 200, 116, .4); }
.login-form input:focus { border-color: var(--kf-gold-300); outline: none; box-shadow: 0 0 0 3px rgba(233, 200, 116, .25); }
.login-form input[aria-invalid="true"] { border-color: var(--kf-danger); }
.login-form .button.primary { margin-top: var(--kf-space-5); }
.password-field { position: relative; }
.password-field input { padding-right: 84px; }
.toggle-password { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 34px; padding: 4px 12px; border: 1px solid var(--kf-line); border-radius: var(--kf-radius-1); background: var(--kf-surface-raised); color: var(--kf-text-muted); font-size: var(--kf-fs-xs); }
.toggle-password:hover { color: var(--kf-gold-200); border-color: var(--kf-line-strong); }
.hint { margin: 6px 0 0; color: var(--kf-text-subtle); font-size: var(--kf-fs-xs); }
.login-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--kf-space-3); margin-top: var(--kf-space-4); font-size: var(--kf-fs-s); }
.login-links:empty { display: none; }
.login-links a { color: var(--kf-text-muted); text-underline-offset: 3px; }
.login-links a:hover { color: var(--kf-gold-200); }
.captcha { margin-top: var(--kf-space-4); min-height: 65px; }
.form-error { margin: var(--kf-space-4) 0 0; padding: 10px 12px; border-left: 2px solid var(--kf-danger); background: var(--kf-danger-tint); color: var(--kf-danger); font-size: var(--kf-fs-s); line-height: 1.5; }
.form-status { margin: var(--kf-space-4) 0 0; color: var(--kf-success); font-size: var(--kf-fs-s); }
.dev-badge { display: inline-block; margin: 0 0 var(--kf-space-4); padding: 3px 8px; border: 1px solid rgba(241, 199, 110, .4); color: var(--kf-warning); font-size: var(--kf-fs-2xs); font-weight: 600; letter-spacing: .12em; }
.register-done p { color: var(--kf-text-muted); line-height: 1.6; }
.register-done h2:focus { outline: none; }

/* ---- feature points ----------------------------------------------------------------------------------------------------- */
.portal-points { width: min(1080px, calc(100% - 2 * var(--kf-gutter))); margin-top: var(--kf-space-8); text-align: center; }
.portal-points ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--kf-space-6); }
.portal-points li, .register-benefits li { display: flex; flex-direction: column; align-items: center; gap: var(--kf-space-2); }
.point-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--kf-space-2); color: var(--kf-gold-300); border: 1px solid var(--kf-line-strong); background: radial-gradient(circle, rgba(233, 200, 116, .14), transparent 70%); transform: rotate(45deg); }
.point-icon .icon { width: 22px; height: 22px; transform: rotate(-45deg); }
.portal-points strong, .register-benefits strong { font-family: var(--kf-font-display); font-size: var(--kf-fs-m); font-weight: 700; letter-spacing: .06em; color: var(--kf-text); }
.portal-points li > span:last-child, .register-benefits li > span:last-child { max-width: 30ch; color: var(--kf-text-muted); font-size: var(--kf-fs-s); line-height: 1.6; }
.portal-browsers { margin: var(--kf-space-6) 0 0; color: var(--kf-text-subtle); font-size: var(--kf-fs-xs); }

/* ---- register --------------------------------------------------------------------------------------------------------- */
.register-layout { width: min(980px, calc(100% - 2 * var(--kf-gutter))); margin-top: clamp(-96px, -12vh, -72px); display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: var(--kf-space-7); align-items: start; position: relative; z-index: 1; }
.register-layout .portal-card { width: 100%; margin-top: 0; }
.register-benefits { padding-top: var(--kf-space-8); }
.register-benefits ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--kf-space-6); }
.register-benefits li { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: start; column-gap: var(--kf-space-5); row-gap: 2px; text-align: left; }
.register-benefits .point-icon { grid-row: span 2; margin: 6px 0 0 6px; width: 46px; height: 46px; }

/* ---- footer ------------------------------------------------------------------------------------------------------------ */
.site-footer { display: flex; flex-wrap: wrap; gap: var(--kf-space-3) var(--kf-space-6); align-items: center; padding: var(--kf-space-5) var(--kf-gutter); border-top: 1px solid var(--kf-line); color: var(--kf-text-subtle); font-size: var(--kf-fs-s); background: var(--kf-ink-950); }
.site-footer-brand { display: inline-flex; align-items: center; gap: var(--kf-space-2); color: var(--kf-text-muted); font-family: var(--kf-font-display); letter-spacing: .06em; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: var(--kf-space-2) var(--kf-space-5); }
.site-footer a { color: var(--kf-text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--kf-gold-200); text-decoration: underline; text-underline-offset: 3px; }
.site-footer-note { margin-left: auto; }

/* ---- responsive --------------------------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .portal-card.is-split { grid-template-columns: minmax(0, 1fr); grid-template-areas: "dev" "guest" "divider" "login" "error" "status"; width: min(520px, calc(100% - 2 * var(--kf-gutter))); }
  .portal-card.is-split > .divider, .portal-card.is-split > .login-form { padding-left: 0; border-left: 0; }
  .portal-card.is-split > .divider { margin-top: var(--kf-space-6); }
  .portal-points ul { grid-template-columns: minmax(0, 1fr); gap: var(--kf-space-5); }
  .portal-points li { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: start; column-gap: var(--kf-space-4); row-gap: 2px; text-align: left; }
  .portal-points .point-icon { grid-row: span 2; margin: 6px 0 0 6px; width: 46px; height: 46px; }
  .portal-points li > span:last-child { max-width: none; }
  .register-layout { grid-template-columns: minmax(0, 1fr); gap: var(--kf-space-6); width: min(520px, calc(100% - 2 * var(--kf-gutter))); }
  .register-benefits { padding-top: 0; }
  .site-nav { display: none; }
  .site-top .language-picker { margin-left: auto; }
}
@media (max-width: 620px) {
  .portal-card { padding: var(--kf-space-5) var(--kf-space-4); }
  .portal-hero { padding-top: var(--kf-space-6); }
  .hero-crest img { width: 56px; }
  .portal-lead { font-size: var(--kf-fs-m); }
  .brand-name { font-size: 1.25rem; }
  .brand-baseline { display: none; }
  .site-footer-note { margin-left: 0; }
}
@media (max-width: 400px) {
  .site-top { gap: var(--kf-space-3); }
  .site-top .language-picker .language-name { display: none; }
  .brand-mark { width: 26px; height: 31px; }
  .brand-name { font-size: 1.125rem; }
  .nation-strip { letter-spacing: .2em; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .button.primary::before, .button.primary::after, .point-icon { forced-color-adjust: auto; } .brand-four { color: CanvasText; background: none; } }


/* v1534 campaign: original game artwork, an open editorial layout and clear entry points. */
.site-top { min-height: 86px; padding-inline: max(var(--kf-gutter), calc((100vw - 1240px) / 2)); background: #10120f; }
.site-top .brand-mark { width: 27px; height: 34px; }
.site-top .brand-name { font-size: 23px; }
.site-nav a + a::before { display: none; }
.site-nav { gap: 12px; }
.brand-four { background: none; color: var(--kf-gold-200); }
.brand-baseline { font-size: 8px; letter-spacing: .25em; }
.brand-elmorad, .brand-karus { color: var(--kf-text-subtle); }
.button { border-radius: 1px; font-family: var(--kf-font-text); font-size: 12px; letter-spacing: .1em; min-height: 50px; }
.button.primary { box-shadow: inset 0 1px rgba(255,255,255,.25), 0 4px 14px #0003; }
.button.primary::before, .button.primary::after { display: none; }
.notice { background: transparent; border-left: 1px solid var(--kf-line-strong); padding: 0 0 0 15px; font-size: 12px; }
.notice li::before { width: 3px; height: 3px; transform: none; top: .7em; background: var(--kf-text-subtle); }
.notice li { padding-left: 11px; }
.kicker { font-family: var(--kf-font-text); font-size: 11px; font-weight: 600; letter-spacing: .2em; }
.web-portal .portal { padding-bottom: 80px; }
.web-portal .portal-hero {
  isolation: isolate; min-height: 620px; padding: 92px max(var(--kf-gutter), calc((100vw - 1240px) / 2)) 100px;
  align-items: flex-start; justify-content: center; text-align: left; overflow: hidden; background: #1b1c19;
}
.campaign-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.web-portal .portal-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #10130ff5 0%, #10130fc9 29%, #10130f20 65%, #10130f0a), linear-gradient(0deg, #111310, transparent 38%); }
.hero-copy { max-width: 575px; }
.hero-copy .kicker { display: flex; align-items: center; gap: 16px; color: #d8c19b; }
.edition { padding: 5px 9px; border: 1px solid #c9aa7166; font-size: 11px; letter-spacing: .05em; }
.web-portal .portal-hero h1 { max-width: none; margin: 25px 0 22px; font-size: clamp(42px, 4.5vw, 66px); line-height: 1.17; font-weight: 500; letter-spacing: -.035em; }
.web-portal .portal-hero h1 em { color: #d9b77d; font-style: normal; }
.hero-copy h1, .entry-heading h2, .nations-heading h2 { text-wrap: balance; }
.web-portal .portal-lead { max-width: 420px; font-size: 15px; line-height: 1.9; color: #c9c5b9; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 32px; }
.hero-actions .button { min-width: 218px; justify-content: space-between; gap: 30px; }
.hero-platforms { margin: 17px 0 0; color: #a7a899; font-size: 11px; }
.hero-caption { position: absolute; right: max(var(--kf-gutter), calc((100vw - 1240px) / 2)); bottom: 50px; text-align: right; }
.hero-caption span { display: block; font: 500 18px var(--kf-font-display); letter-spacing: .15em; color: #ded4bf; }
.hero-caption small { display: block; margin-top: 5px; font-size: 8px; letter-spacing: .24em; color: #9c9e8e; }
.legacy-strip { width: min(1240px, calc(100% - 2 * var(--kf-gutter))); display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--kf-line); padding: 24px 0; }
.legacy-strip > div { padding-inline: 30px; border-left: 1px solid var(--kf-line); }
.legacy-strip > div:first-child { padding-left: 0; border-left: 0; }
.legacy-strip strong { display: block; color: var(--kf-gold-200); font: 500 17px var(--kf-font-display); }
.legacy-strip span { display: block; margin-top: 5px; color: var(--kf-text-subtle); font-size: 11px; }
.entry-heading { width: min(1000px, calc(100% - 2 * var(--kf-gutter))); margin: 70px auto 28px; scroll-margin-top: 30px; }
.entry-heading h2, .nations-heading h2 { margin: 0; font: 500 clamp(24px, 2.8vw, 34px)/1.3 var(--kf-font-display); letter-spacing: -.02em; }
.entry-heading > p:last-child, .nations-heading > p:last-child { margin: 12px 0 0; color: var(--kf-text-muted); font-size: 13px; line-height: 1.7; }
.web-portal .portal-card { width: min(1000px, calc(100% - 2 * var(--kf-gutter))); margin: 0; padding: 32px 36px; background: #1a1d17; border: 1px solid var(--kf-line); border-top: 2px solid var(--kf-gold-600); box-shadow: 0 15px 40px #0002; }
.web-portal .portal-card::before { display: none; }
.web-portal .portal-card.is-single, .web-portal .portal-card.is-session { width: min(600px, calc(100% - 2 * var(--kf-gutter))); align-self: center; }
.web-portal .portal-card.is-split { gap: 0 36px; }
.web-portal .portal-card h2 { font-size: 25px; font-weight: 500; margin-bottom: 12px; }
.entry-description { font-size: 13px; line-height: 1.8; color: var(--kf-text-muted); margin: 0 0 20px; }
.web-portal .divider { font-family: var(--kf-font-text); font-size: 10px; letter-spacing: .16em; margin: 0 0 2px; }
.web-portal .divider::after { display: none; }
.web-portal .portal-card.is-split > .divider, .web-portal .portal-card.is-split > .login-form { padding-left: 36px; }
.web-portal .login-form label { font-size: 12px; }
.web-portal .login-form input { min-height: 46px; font-size: 14px; border-color: #45483b; }
.web-portal .login-form .button.primary { margin-top: 24px; }
.nations-section { width: min(1240px, calc(100% - 2 * var(--kf-gutter))); margin-top: 90px; }
.nations-heading { text-align: center; margin: 0 auto 55px; }
.nation-stories { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.nation-story { position: relative; isolation: isolate; min-width: 0; min-height: 300px; display: flex; align-items: flex-end; padding: 30px; overflow: hidden; border-block: 1px solid var(--kf-line); background: linear-gradient(110deg, #1b2727, #111310); }
.nation-story.orc { background: linear-gradient(110deg, #28201b, #111310); }
.nation-story::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #101613ee, #10161355 58%, transparent), linear-gradient(0deg, #111310, transparent 50%); }
.nation-story > div { max-width: 250px; }
.nation-number { color: var(--kf-gold-300); font-size: 9px; letter-spacing: .2em; }
.nation-story h3 { font: 500 32px var(--kf-font-display); margin: 10px 0; }
.nation-story p { color: var(--kf-text-muted); font-size: 13px; line-height: 1.8; max-width: 23ch; }
.nation-story img { position: absolute; z-index: -2; top: 14px; right: -15px; width: auto; height: 390px; object-fit: contain; }
.nation-story.orc img { height: 390px; right: 8px; }
.portal-points { width: min(1000px, calc(100% - 2 * var(--kf-gutter))); text-align: left; margin-top: 60px; }
.portal-points li { align-items: flex-start; gap: 10px; }
.portal-points .point-icon { width: 24px; height: 24px; border: 0; background: none; transform: none; margin: 0 0 5px; }
.portal-points .point-icon .icon { transform: none; width: 21px; height: 21px; }
.portal-points strong { font: 500 17px var(--kf-font-display); }
.portal-browsers { text-align: center; }
.site-footer { padding-inline: max(var(--kf-gutter), calc((100vw - 1240px) / 2)); font-size: 11px; }
@media (min-width: 1600px) { .web-portal .portal-hero { min-height: 690px; } }
@media (max-width: 1000px) {
  .site-nav { gap: 0; } .site-nav a { padding-inline: 8px; font-size: 12px; }
  .web-portal .portal-hero { min-height: 560px; padding-block: 65px 80px; }
  .campaign-art { object-position: 56% center; }
  .hero-copy { max-width: 470px; }
  .legacy-strip > div { padding-inline: 18px; } .legacy-strip strong { font-size: 14px; }
}
@media (max-width: 900px) {
  .web-portal .portal-card.is-split { grid-template-columns: 1fr 1fr; grid-template-areas: "dev dev" "guest divider" "guest login" "error error" "status status"; }
  .web-portal .portal-card { padding: 24px; }
  .web-portal .portal-card.is-split > .divider, .web-portal .portal-card.is-split > .login-form { border-left: 1px solid var(--kf-line); padding-left: 24px; }
  .web-portal .portal-card.is-split { column-gap: 24px; }
  .nation-story { padding: 22px; } .nation-story img { right: -75px; }
  .nation-story.orc img { right: -50px; }
  .portal-points .point-icon { margin: 0; width: 24px; height: 24px; }
  .portal-points li { grid-template-columns: 30px 1fr; }
}
@media (max-width: 700px) {
  .site-top { padding: 16px; min-height: 72px; gap: 12px; flex-wrap: wrap; }
  .site-top .brand-name { font-size: 20px; } .site-top .brand-mark { display: none; }
  .site-top .language-picker { margin-left: auto; }
  .site-nav { display: flex; order: 3; width: 100%; justify-content: flex-start; border-top: 1px solid var(--kf-line); padding-top: 8px; margin-top: 0; }
  .site-nav a { padding: 6px 12px 4px 0; font-size: 11px; } .site-nav a:last-child { margin-left: auto; padding-right: 0; }
  .web-portal .portal-hero { min-height: 570px; padding: 52px 24px 55px; justify-content: flex-end; }
  .campaign-art { object-position: 58% top; opacity: .72; }
  .web-portal .portal-hero::after { background: linear-gradient(90deg, #10130fa6, #10130f44), linear-gradient(0deg, #111310 0%, #111310bb 40%, #11131000 100%); }
  .hero-copy { max-width: 420px; }
  .hero-copy .kicker { font-size: 9px; gap: 10px; }
  .web-portal .portal-hero h1 { font-size: clamp(34px, 8.7vw, 48px); margin-top: 22px; }
  .web-portal .portal-lead { max-width: 350px; font-size: 13px; }
  .hero-actions { gap: 22px; margin-top: 24px; } .hero-actions .button { min-width: 195px; font-size: 11px; }
  .hero-caption { display: none; }
  .legacy-strip { grid-template-columns: 1fr 1fr; padding: 0; }
  .legacy-strip > div, .legacy-strip > div:first-child { padding: 20px 12px; }
  .legacy-strip > div:nth-child(3) { border-left: 0; } .legacy-strip > div:nth-child(n+3) { border-top: 1px solid var(--kf-line); }
  .legacy-strip strong { font-size: 13px; } .legacy-strip span { font-size: 10px; }
  .entry-heading { margin-top: 44px; }
  .web-portal .portal-card.is-split { grid-template-columns: 1fr; grid-template-areas: "dev" "guest" "divider" "login" "error" "status"; }
  .web-portal .portal-card.is-split > .divider, .web-portal .portal-card.is-split > .login-form { padding-left: 0; border-left: 0; }
  .web-portal .portal-card.is-split > .divider { padding-top: 26px; margin-top: 28px; border-top: 1px solid var(--kf-line); }
  .web-portal .portal-card { padding: 24px 20px; }
  .web .login-form input { font-size: 16px; }
  .nations-section { margin-top: 54px; } .nations-heading { text-align: left; margin-bottom: 25px; }
  .nation-stories { grid-template-columns: 1fr; gap: 20px; }
  .nation-story { min-height: 280px; } .nation-story img { right: -10px; height: 390px; } .nation-story.orc img { right: 0; height: 390px; }
  .site-footer { padding: 24px 20px; } .site-footer-note { margin-left: 0; }
}
@media (max-width: 380px) {
  .site-nav { flex-wrap: wrap; gap: 4px 10px; }
  .site-nav a { padding-right: 0; }
  .site-nav a:last-child { margin-left: 0; }
  .hero-actions { gap: 12px 22px; }
  .hero-actions .button { width: 100%; }
}
@media (forced-colors: active) {
  .brand-four { color: CanvasText; }
  .button.primary, .button.secondary, .portal-card, .nation-story { border: 1px solid CanvasText; }
}

/* ---- patch notes (/Changelog, Views/Shared/_ChangelogList.cshtml) and the error page ------------------------------------ */
.changelog-page .portal-card { width: min(760px, calc(100% - 2 * var(--kf-gutter))); }
.changelog-intro { margin: 0 0 20px; color: var(--kf-text-muted); font-size: 13px; line-height: 1.6; text-align: center; }
.changelog-list { position: relative; list-style: none; margin: 0; padding: 0 0 0 30px; display: grid; gap: 14px; }
.changelog-list::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--kf-gold-400), var(--kf-line) 80%, transparent); }
.changelog-list > li { position: relative; min-width: 0; }
.changelog-list > li::before { content: ''; position: absolute; left: -26px; top: 15px; width: 12px; height: 12px; background: var(--kf-ink-900); border: 2px solid var(--kf-gold-400); transform: rotate(45deg); }
.changelog-list > li:first-child::before { background: var(--kf-gold-300); box-shadow: 0 0 10px rgba(233, 200, 116, .6); }
.changelog-entry { min-width: 0; border: 1px solid var(--kf-line-soft); border-radius: var(--kf-radius-2); background: var(--kf-surface); }
.changelog-entry[open] { border-color: var(--kf-line-strong); }
.changelog-entry summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; align-items: center; gap: 3px 12px; padding: 11px 14px; cursor: pointer; list-style: none; border-radius: var(--kf-radius-2); }
.changelog-entry summary::-webkit-details-marker { display: none; }
.changelog-entry summary::after { content: ''; grid-column: 3; grid-row: 1; width: 6px; height: 6px; justify-self: center; border-right: 1.5px solid var(--kf-text-subtle); border-bottom: 1.5px solid var(--kf-text-subtle); transform: translateY(-2px) rotate(45deg); }
.changelog-entry[open] summary::after { transform: translateY(1px) rotate(-135deg); border-color: var(--kf-gold-300); }
.changelog-entry summary:hover .changelog-title { color: var(--kf-gold-100); }
.changelog-entry summary:focus-visible { outline-offset: -2px; }
.changelog-release { grid-column: 1; grid-row: 1; color: var(--kf-gold-300); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-variant-numeric: lining-nums; }
.changelog-meta { grid-column: 2; grid-row: 1; color: var(--kf-text-subtle); font-size: 12px; white-space: nowrap; }
.changelog-title { grid-column: 1 / -1; color: var(--kf-text); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.changelog-items { margin: 0; padding: 0 16px 13px 32px; color: var(--kf-text-muted); font-size: 13px; line-height: 1.65; }
.changelog-items li { overflow-wrap: anywhere; }
.changelog-items li + li { margin-top: 4px; }
.changelog-items li::marker { color: var(--kf-gold-500); }
.changelog-empty { margin: 0; padding: 26px 0; color: var(--kf-text-muted); font-size: 13px; text-align: center; }
.changelog-links { margin: var(--kf-space-6) 0 0; text-align: center; }
.error-page .portal-card .muted { margin: var(--kf-space-4) 0 0; overflow-wrap: anywhere; }
@media (max-width: 700px) { .changelog-list { padding-left: 24px; } .changelog-list::before { left: 6px; } .changelog-list > li::before { left: -23px; } }

/* ---- beta and the community link ------------------------------------------------------------------------------------- */
/* The game is in beta (the owner's word, 2026-10-23): a badge after the brand in the header and a line above the hero's kicker;
   the Discord button (icons.svg#discord, a filled mark) next to the hero's play button. */
.beta-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border: 1px solid var(--kf-gold-600); border-radius: 1px; background: rgba(233, 200, 116, .08); color: var(--kf-gold-200); font: 600 10px/1 var(--kf-font-text); letter-spacing: .16em; white-space: nowrap; }
.site-brand .beta-badge { align-self: center; margin-left: 12px; }
.beta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; max-width: 470px; margin: 0 0 24px; color: #d8d2c2; font-size: 13px; line-height: 1.6; }
.beta-line .beta-badge { margin-right: 2px; }
.hero-actions .button.discord { justify-content: center; gap: 12px; }
.button.discord .icon { width: 20px; height: 20px; }
@media (max-width: 700px) { .site-brand .beta-badge { margin-left: 8px; height: 18px; padding: 0 5px; font-size: 9px; } }

/* ---- Korean, Chinese, Japanese ----------------------------------------------------------------------------------------- */
/* Letter-spaced capitals are a Latin device: CJK has no case and spaced glyphs read as gaps, so the tracking goes (Latin words
   inside keep a little). Korean breaks between words (keep-all, as Korean text is set), Chinese and Japanese between characters
   with the strict kinsoku rules. The fonts: kf-tokens.css. */
:is(:lang(ko), :lang(zh), :lang(ja)) :is(.kicker, .button, .divider, .changelog-release, .portal-points strong, .register-benefits strong, .legacy-strip strong, .dev-badge) { letter-spacing: .02em; }
:is(:lang(ko), :lang(zh), :lang(ja)) .web-portal .portal-hero h1, :is(:lang(ko), :lang(zh), :lang(ja)) .entry-heading h2, :is(:lang(ko), :lang(zh), :lang(ja)) .nations-heading h2 { letter-spacing: 0; }
.web:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
.web:is(:lang(zh), :lang(ja)) { line-break: strict; }
