/* Sigil Online front page (home.html, v3 2026-10-14). Navy + one gold, like the game's windows.
   Type scale (px): 13 · 15 · 17 · 20 · 26 · 34 · 46; Prompt for Thai, Cinzel only for numbers and English names.
   Every section reads the same way: small gold kicker, one heading, one line, then the thing itself. */
:root {
  --bg: #0b1020; --bg2: #0f1628; --s1: #131b31; --s2: #19233e; --s3: #202c4b;
  --ln: rgba(255, 255, 255, .07); --ln2: rgba(255, 255, 255, .12); --lnA: rgba(232, 194, 106, .32);
  --tx: #eef1f8; --tx2: #b3bbd0; --tx3: #808aa5;
  --au: #e8c26a; --au2: #f7e0a3; --au3: #b8862e; --ok: #6fe39a;
  --r: 14px; --r2: 20px;
  --font: Prompt, 'Noto Sans Thai', system-ui, sans-serif; --disp: Cinzel, Prompt, serif;
  --hue: var(--au); --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--au); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--au); color: #22180a; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- nav: clear over the picture, solid once the page moves ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top); }
.nav.solid { background: rgba(11, 16, 32, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--ln); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; width: min(1160px, 100% - 40px); margin: 0 auto; }
.brand { display: flex; align-items: center; height: 44px; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; }
.nav.solid .brand { opacity: 1; transform: none; }
.brand img { height: 42px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.nav nav { display: flex; gap: 2px; margin-left: auto; }
.nav nav a { position: relative; padding: 8px 14px; border-radius: 10px; color: var(--tx2); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.nav:not(.solid) nav a { color: #e6e9f2; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.nav nav a:hover { color: var(--tx); background: rgba(255, 255, 255, .06); }
.nav nav a.on { color: var(--au2); }
.nav nav a.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--au); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 12px;
  font-weight: 600; font-size: 17px; letter-spacing: .01em; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s, filter .2s; }
.btn.gold { color: #241806; background: linear-gradient(180deg, #fbe7ad 0%, #e8c26a 48%, #c9963a 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 -2px 0 rgba(120, 76, 14, .35) inset, 0 8px 26px rgba(232, 194, 106, .28); }
.btn.gold:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 -2px 0 rgba(120, 76, 14, .35) inset, 0 14px 34px rgba(232, 194, 106, .38); }
.btn.gold:active { transform: translateY(0); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.btn.lg { min-height: 54px; padding: 0 32px; font-size: 18px; }
.btn.xl { min-height: 60px; padding: 0 40px; font-size: 20px; border-radius: 14px; }
.play { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: -2px; }
.btn.sm .play { border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }
.txt-link { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 6px; color: var(--tx); font-weight: 500; font-size: 16px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8); border-bottom: 1px solid transparent; transition: color .2s; }
.txt-link span { transition: transform .2s var(--ease); }
.txt-link:hover { color: var(--au2); }
.txt-link:hover span { transform: translateX(3px); }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 18px; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 500;
  background: transparent; border: 1px solid var(--ln2); color: var(--au2); transition: border-color .2s, background .2s; }
.more:hover { border-color: var(--lnA); background: rgba(232, 194, 106, .06); }

/* ---------- 1. hero ---------- */
.hero { position: relative; min-height: max(620px, min(100svh, 940px)); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 74% 40%; animation: breathe 22s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1.01); } to { transform: scale(1.05); } }
/* a calm reading column on the left, the bottom melts into the page */
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 40% 64% at 14% 54%, rgba(8, 12, 24, .72) 0%, rgba(8, 12, 24, .38) 50%, transparent 82%),
    linear-gradient(180deg, rgba(8, 12, 24, .72) 0%, rgba(8, 12, 24, .2) 13%, transparent 22%, transparent 66%, var(--bg) 100%); }
.hero-in { padding: 120px 0 120px; }
.hero-in > * { max-width: 520px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--au2); font-size: 14px; font-weight: 500; letter-spacing: .04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--au); }
.logo { margin: 0 0 18px -10px; line-height: 0; }
.logo img { width: min(440px, 100%); height: auto; filter: drop-shadow(0 8px 26px rgba(0, 0, 0, .6)); }
.lead { margin: 0 0 30px; font-size: clamp(19px, 1.9vw, 23px); line-height: 1.55; font-weight: 400; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .95), 0 0 2px rgba(0, 0, 0, .6); }
.lead b { color: var(--au2); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.perks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--tx2); font-size: 14.5px; text-shadow: 0 1px 8px rgba(0, 0, 0, .95); }
.perks li { display: inline-flex; align-items: center; gap: 7px; }
.perks li::before { content: ''; width: 14px; height: 8px; margin-top: -4px; border: solid var(--ok); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.live { display: inline-flex; align-items: center; gap: 9px; margin: 14px 0 0; padding: 6px 14px 6px 12px; border-radius: 999px; font-size: 14px; color: var(--tx2);
  background: rgba(8, 12, 24, .55); border: 1px solid var(--ln); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--tx3); }
.live.on { color: var(--tx); }
.live.on i { background: var(--ok); box-shadow: 0 0 0 0 rgba(111, 227, 154, .6); animation: ping 2.4s ease-out infinite; }
.live b { color: var(--ok); font-weight: 600; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(111, 227, 154, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(111, 227, 154, 0); } }

/* the numbers: one quiet line pulled over the hero's bottom edge */
.facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -64px; padding: 6px 0; border-radius: var(--r2);
  background: rgba(19, 27, 49, .78); border: 1px solid var(--ln2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.facts div { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 16px 8px; }
.facts div + div { border-left: 1px solid var(--ln); }
.facts b { font: 700 34px/1 var(--disp); color: var(--au2); }
.facts span { color: var(--tx2); font-size: 15px; }

/* ---------- section frame ---------- */
.sec { padding: 120px 0 0; }
.sec.alt { position: relative; margin-top: 120px; padding: 110px 0; background: linear-gradient(180deg, var(--bg2), #0d1426 60%, var(--bg2)); border-block: 1px solid var(--ln); }
.sec.alt + .sec { padding-top: 110px; }
.sh { text-align: center; margin: 0 auto 44px; max-width: 680px; }
.kick { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 13.5px; font-weight: 600; letter-spacing: .06em; color: var(--au); }
.kick::before, .kick::after { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.sh h2 { font: 600 clamp(28px, 3.6vw, 42px)/1.25 var(--font); letter-spacing: -.005em; }
.sub { margin: 14px 0 0; color: var(--tx2); font-size: 16.5px; }

/* reveal on scroll (home.js adds .in); without JS or with reduced motion everything is simply shown */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- 2. class lines ---------- */
.lines { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.ln { position: relative; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 14px 10px 10px; border-radius: var(--r); cursor: pointer; text-align: left;
  background: var(--s1); border: 1px solid var(--ln); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.ln:hover { border-color: color-mix(in srgb, var(--hue) 45%, transparent); transform: translateY(-2px); }
.ln[aria-selected="true"] { background: linear-gradient(180deg, color-mix(in srgb, var(--hue) 16%, var(--s2)), var(--s1)); border-color: color-mix(in srgb, var(--hue) 70%, transparent); }
.ln[aria-selected="true"]::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--hue); }
.crest { flex: none; display: grid; place-items: center; width: 46px; height: 46px; }
.crest img { width: 46px; height: 46px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.crest i { display: grid; place-items: center; width: 32px; height: 32px; font-style: normal; font-size: 17px; color: var(--hue); border: 1.5px solid var(--hue); border-radius: 7px; transform: rotate(45deg); }
.crest i span { transform: rotate(-45deg); }
.ln b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.ln small { display: block; color: var(--tx3); font-size: 12.5px; line-height: 1.35; }
.ln[aria-selected="true"] b { color: var(--au2); }

.cls { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border-radius: 24px; overflow: hidden; background: var(--s1); border: 1px solid var(--ln2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.stage { position: relative; min-height: 560px; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 50% 70%, color-mix(in srgb, var(--hue) 30%, #10182c), #0a0f1d 75%); }
.stage-bg { position: absolute; inset: 0; }
.stage-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.stage-bg img.on { opacity: 1; }
/* the painted backdrops are bright (the priest's cathedral most of all): dim them and darken behind the hero so the sprite leads */
.stage-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 42% 58% at 50% 62%, rgba(8, 12, 24, .42), transparent 72%),
  linear-gradient(180deg, rgba(8, 12, 24, .28), rgba(8, 12, 24, .12) 40%, rgba(8, 12, 24, .35)); }
/* plinth light + fade into the info side */
.stage::before { content: ''; position: absolute; left: 50%; bottom: 7%; width: 64%; height: 9%; transform: translateX(-50%); border-radius: 50%; z-index: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hue) 55%, transparent), transparent); filter: blur(4px); opacity: .7; }
.stage::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(10, 15, 29, .45)), linear-gradient(90deg, transparent 80%, rgba(19, 27, 49, .7)); }
.stage canvas { position: absolute; left: 50%; bottom: 8%; z-index: 2; width: min(400px, 82%); height: auto; aspect-ratio: 8 / 9; transform: translateX(-50%); }
.turn { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font-size: 14px; color: var(--tx); background: rgba(8, 12, 24, .62); border: 1px solid var(--ln2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .2s; }
.turn:hover { border-color: var(--lnA); }
.turn span { font-size: 17px; line-height: 1; }
.cls-info { padding: 40px 44px 36px; min-width: 0; }
.tier { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--hue);
  background: color-mix(in srgb, var(--hue) 13%, transparent); border: 1px solid color-mix(in srgb, var(--hue) 38%, transparent); }
.job-name { font: 600 clamp(30px, 3vw, 40px)/1.15 var(--font); color: var(--tx); }
.job-name small { display: block; margin-top: 4px; font: 600 15px var(--disp); letter-spacing: .14em; color: var(--tx3); text-transform: uppercase; }
.job-role { margin: 14px 0 14px; color: var(--tx2); font-size: 16.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; }
.tags li { padding: 3px 12px; border-radius: 999px; font-size: 13.5px; color: var(--tx); background: rgba(255, 255, 255, .05); border: 1px solid var(--ln2); }
.mini-h { margin: 0 0 10px; color: var(--tx3); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
/* path: four steps on one line, joined by a thin rail */
.path { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; }
.path::before { content: ''; position: absolute; left: 12%; right: 12%; top: 25px; height: 2px; background: linear-gradient(90deg, var(--ln2), color-mix(in srgb, var(--hue) 60%, transparent)); }
.path button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 0 2px; cursor: pointer; background: none; border: 0; text-align: center; }
.path canvas { width: 52px; height: 52px; border-radius: 50%; background: var(--s3); border: 2px solid var(--ln2); transition: border-color .2s, transform .2s var(--ease); }
.path button:hover canvas { border-color: var(--lnA); }
.path button[aria-current="true"] canvas { border-color: var(--hue); transform: scale(1.08); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hue) 18%, transparent); }
.path b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--tx2); }
.path button[aria-current="true"] b { color: var(--tx); font-weight: 600; }
.path small { display: block; color: var(--tx3); font-size: 12px; line-height: 1.2; }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sk { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 12px 8px 8px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--ln); }
.sk img, .sk .ski { flex: none; width: 36px; height: 36px; border-radius: 8px; }
.sk .ski { display: grid; place-items: center; font-size: 20px; background: rgba(255, 255, 255, .05); }
.sk div { min-width: 0; }
.sk span { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk small { display: block; color: var(--tx3); font-size: 12.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#skMore { margin-top: 12px; }

/* ---------- 2b. gameplay clip ---------- */
.clip { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #0a0f1d center / cover no-repeat;
  border: 1px solid var(--ln2); box-shadow: 0 30px 70px rgba(0, 0, 0, .4), 0 0 0 6px rgba(232, 194, 106, .05); }
/* never taller than the screen (landscape phones): the whole clip fits, so it reaches the half-on-screen autoplay line */
.clip { width: min(100%, calc((100vh - 40px) * 16 / 9)); width: min(100%, calc((100svh - 40px) * 16 / 9)); margin-inline: auto; }
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip-btn { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  color: #fff; background: rgba(8, 12, 24, .6); border: 1px solid var(--ln2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .2s, transform .2s var(--ease); }
.clip-btn:hover { border-color: var(--lnA); transform: scale(1.06); }
.clip-btn .play { margin-left: 3px; }
/* the two cuts: skills montage / systems tour */
.clip-tabs { display: flex; justify-content: center; gap: 8px; margin: -22px 0 16px; }
.clip-tabs button { min-height: 40px; padding: 8px 18px; border-radius: 999px; cursor: pointer; font: 500 14.5px/1.2 var(--font); color: var(--tx2);
  background: var(--s1); border: 1px solid var(--ln2); transition: color .2s, border-color .2s, background .2s; }
.clip-tabs button:hover { color: var(--tx); border-color: var(--lnA); }
.clip-tabs button[aria-selected="true"] { color: #241806; background: linear-gradient(180deg, #fbe7ad, #d8a84e); border-color: transparent; font-weight: 600; }
/* paused (or reduced motion before a tap): a big play button in the middle */
.clip.paused .clip-btn { right: 50%; bottom: 50%; transform: translate(50%, 50%); width: 76px; height: 76px; color: #241806; background: linear-gradient(180deg, #fbe7ad, #d8a84e); border: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.clip.paused .clip-btn .play { border-left-width: 18px; border-top-width: 12px; border-bottom-width: 12px; margin-left: 6px; }
.clip:not(.paused) .clip-btn .play { width: 14px; height: 16px; margin: 0; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }

/* ---------- 3. features: one big picture, three smaller, then a plain list ---------- */
.feats { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: repeat(2, minmax(250px, auto)); gap: 16px; }
.feat { position: relative; display: flex; align-items: flex-end; min-height: 250px; border-radius: var(--r2); overflow: hidden; isolation: isolate; border: 1px solid var(--ln); background: var(--s1); }
.feat:nth-child(1) { grid-row: span 2; }
.feat:nth-child(4) { grid-column: span 2; }
.feat img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feat:hover img { transform: scale(1.04); }
.feat::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(8, 12, 24, .55) 62%, rgba(8, 12, 24, .94)); }
.feat-t { padding: 22px 24px; }
.feat h3 { font-size: 21px; font-weight: 600; color: #fff; }
.feat:nth-child(1) h3 { font-size: 26px; }
.feat p { margin: 4px 0 0; color: var(--tx2); font-size: 15px; line-height: 1.55; max-width: 460px; }
.sys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin: 48px 0 0; padding: 0; list-style: none; }
.sys li { display: flex; align-items: flex-start; gap: 14px; padding: 20px 0; border-top: 1px solid var(--ln); }
.sys img { flex: none; width: 40px; height: 40px; }
.sys b { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; }
.sys small { display: block; margin-top: 2px; color: var(--tx2); font-size: 14px; line-height: 1.5; }

/* ---------- 4. regions in level order ---------- */
.regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: rg; }
.reg { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; padding: 18px; border-radius: var(--r2); overflow: hidden; isolation: isolate; border: 1px solid var(--ln); }
.reg img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.reg:hover img { transform: scale(1.05); }
.reg::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 12, 24, .15) 0%, transparent 30%, transparent 48%, rgba(8, 12, 24, .92)); }
.lv { position: absolute; top: 14px; left: 14px; padding: 4px 11px; border-radius: 999px; font: 700 12.5px/1.2 var(--disp); letter-spacing: .04em; color: #241806;
  background: linear-gradient(180deg, #fbe7ad, #d8a84e); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.reg b { font-size: 18px; font-weight: 600; line-height: 1.3; color: #fff; }
.reg small { margin-top: 3px; color: var(--tx2); font-size: 13.5px; }
.reg.first::after { content: 'เริ่มที่นี่'; position: absolute; top: 14px; right: 14px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #0b1020; background: var(--ok); }
:lang(en) .reg.first::after { content: 'Start here'; } /* English page (i18n.js trDom sets <html lang="en">) */

/* ---------- 5. three steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 0 0 26px; border-radius: var(--r2); overflow: hidden; background: var(--s1); border: 1px solid var(--ln); }
.step-img { aspect-ratio: 16 / 10; background: #0a0f1d center / cover no-repeat; }
.steps b { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 12px 24px; border-radius: 50%; font: 700 19px var(--disp); color: #241806;
  background: linear-gradient(180deg, #fbe7ad, #d8a84e); box-shadow: 0 0 0 5px var(--s1), 0 6px 16px rgba(0, 0, 0, .4); }
.steps h3 { padding: 0 24px; font-size: 20px; font-weight: 600; }
.steps p { margin: 6px 0 0; padding: 0 24px; color: var(--tx2); font-size: 15px; }
.start-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- 6. news: the newest in full, the rest one line each ---------- */
.news { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.news-top { padding: 30px 32px; border-radius: var(--r2); background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--lnA); }
.news time { display: inline-block; color: var(--au); font-size: 13.5px; font-weight: 600; }
.news-top .badge { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #0b1020; background: var(--au); vertical-align: 1px; }
.news-top h3 { margin: 8px 0 10px; font-size: 24px; font-weight: 600; line-height: 1.35; }
.news-top p { margin: 0; color: var(--tx2); font-size: 15.5px; line-height: 1.75; }
.news-list ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ln); }
.news-list li { padding: 16px 4px; border-bottom: 1px solid var(--ln); }
.news-list h3 { margin: 2px 0 0; font-size: 16.5px; font-weight: 500; line-height: 1.45; }
.news-list p { margin: 2px 0 0; color: var(--tx3); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.news-list .more { margin-top: 16px; }

/* ---------- final call ---------- */
.final { position: relative; margin-top: 130px; min-height: 460px; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.final-bg { position: absolute; inset: 0; z-index: -2; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; }
.final::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 16, 32, .35) 30%, rgba(11, 16, 32, .45) 70%, var(--bg) 100%),
  radial-gradient(ellipse 45% 55% at 50% 50%, rgba(11, 16, 32, .55), transparent); }
.final-in { text-align: center; padding: 60px 20px; }
.final-mark { display: block; width: 64px; height: 64px; margin: 0 auto 14px; filter: drop-shadow(0 0 18px rgba(232, 194, 106, .5)); }
.final h2 { font: 600 clamp(30px, 4.4vw, 48px)/1.2 var(--font); text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.final p { margin: 10px 0 28px; color: var(--tx); font-size: 17px; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
.foot { padding: 44px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ln); color: var(--tx3); font-size: 14px; text-align: center; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.foot img { width: 140px; height: auto; opacity: .9; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; }
.foot nav a { padding: 6px 10px; color: var(--tx2); border-radius: 8px; }
.foot nav a:hover { color: var(--au2); }
.foot p { margin: 0; }
.foot .copy { color: var(--tx3); font-size: 13px; }

/* ---------- tablets ---------- */
@media (max-width: 1080px) {
  .lines { grid-template-columns: repeat(3, 1fr); }
  .cls { grid-template-columns: 1fr; }
  .stage { min-height: 460px; }
  .stage::after { background: linear-gradient(180deg, transparent 70%, rgba(19, 27, 49, .9)); }
  .cls-info { padding: 28px 32px 32px; }
  .feats { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .feat:nth-child(1) { grid-row: auto; grid-column: span 2; min-height: 340px; }
  .feat:nth-child(4) { grid-column: span 2; }
  .regions { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .reg { padding: 14px; }
  .reg b { font-size: 16px; }
  .news { grid-template-columns: 1fr; }
}
/* ---------- phones ---------- */
@media (max-width: 760px) {
  .wrap, .nav-in { width: calc(100% - 32px); }
  .nav-in { height: 56px; gap: 12px; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .brand img { height: 34px; }
  .hero { min-height: 0; align-items: end; }
  .hero-bg img { object-position: 50% 0; }
  .hero::after { background: linear-gradient(180deg, rgba(11, 16, 32, .5) 0%, transparent 12%, transparent 40%, rgba(11, 16, 32, .82) 62%, var(--bg) 92%); }
  .hero-in { padding: 58vh 0 88px; text-align: center; }
  .hero-in > * { max-width: none; }
  .eyebrow { margin-bottom: 8px; font-size: 13px; }
  .eyebrow::before { display: none; }
  .logo { margin: 0 auto 10px; }
  .logo img { width: 280px; }
  .lead { margin-bottom: 22px; font-size: 18px; }
  .cta { flex-direction: column; gap: 6px; }
  .cta .btn { width: 100%; }
  .perks { justify-content: center; margin-top: 16px; font-size: 13.5px; }
  .facts { grid-template-columns: repeat(4, 1fr); margin-top: -52px; padding: 2px 0; border-radius: var(--r); }
  .facts div { flex-direction: column; align-items: center; gap: 2px; padding: 12px 2px; }
  .facts b { font-size: 24px; }
  .facts span { font-size: 12.5px; }
  .sec { padding-top: 84px; }
  .sec.alt { margin-top: 84px; padding: 76px 0; }
  .sec.alt + .sec { padding-top: 76px; }
  .sh { margin-bottom: 28px; }
  .sub { font-size: 15.5px; }
  /* class lines: one swipe row of crests */
  .lines { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px 14px; padding: 2px 16px 6px; scrollbar-width: none; }
  .lines::-webkit-scrollbar { display: none; }
  .ln { flex: 0 0 auto; scroll-snap-align: start; min-height: 56px; padding: 8px 14px 8px 8px; gap: 8px; }
  .ln:hover { transform: none; }
  .crest, .crest img { width: 38px; height: 38px; }
  .ln small { display: none; }
  .cls { border-radius: var(--r2); }
  .stage { min-height: 340px; }
  .stage canvas { width: min(280px, 76%); bottom: 6%; }
  .cls-info { padding: 22px 18px 24px; }
  .job-role { font-size: 15.5px; }
  .path canvas { width: 44px; height: 44px; }
  .path::before { top: 21px; }
  .path b { font-size: 12.5px; }
  .path small { font-size: 11px; }
  .skills { grid-template-columns: 1fr; }
  .clip { border-radius: var(--r2); }
  .clip-tabs { margin-top: -10px; }
  .clip-tabs button { flex: 1; padding: 8px 10px; font-size: 13.5px; }
  .clip.paused .clip-btn { width: 60px; height: 60px; }
  .feats { grid-template-columns: 1fr; gap: 12px; }
  /* phones: picture on top, text on the card below it (text over busy art was hard to read at this width) */
  .feat, .feat:nth-child(1), .feat:nth-child(4) { grid-column: auto; min-height: 0; display: block; }
  .feat img { position: static; display: block; aspect-ratio: 16 / 9; height: auto; }
  .feat::before { display: none; }
  .feat-t { padding: 16px 18px 18px; }
  .feat h3, .feat:nth-child(1) h3 { font-size: 19px; }
  .feat p { font-size: 14.5px; }
  .sys { grid-template-columns: 1fr; margin-top: 28px; }
  .sys li { padding: 14px 0; }
  .regions { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; gap: 10px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .regions::-webkit-scrollbar { display: none; }
  .reg { flex: 0 0 64%; scroll-snap-align: start; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .steps li { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto 1fr; column-gap: 14px; padding: 12px 14px 12px 12px; }
  .step-img { grid-row: 1 / 4; aspect-ratio: 1; border-radius: 12px; }
  .steps b { width: 30px; height: 30px; margin: 0 0 6px; font-size: 15px; box-shadow: none; }
  .steps h3, .steps p { padding: 0; }
  .steps h3 { font-size: 17px; }
  .steps p { font-size: 14px; margin-top: 2px; }
  .start-cta .btn { width: 100%; }
  .news-top { padding: 22px 20px; }
  .news-top h3 { font-size: 20px; }
  .final { margin-top: 90px; min-height: 380px; }
  .final .btn { width: 100%; max-width: 340px; }
}
/* phones held sideways (short screens): the play button must show on the first screen */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .hero { min-height: 100svh; align-items: center; }
  .hero-bg img { object-position: 60% 30%; }
  .hero::after { background: linear-gradient(90deg, rgba(8, 12, 24, .82) 0%, rgba(8, 12, 24, .5) 42%, transparent 66%), linear-gradient(180deg, transparent 70%, var(--bg)); }
  .hero-in { padding: 64px 0 28px; text-align: left; }
  .hero-in > * { max-width: 380px; }
  .eyebrow { display: none; }
  .logo { margin: 0 0 6px -6px; }
  .logo img { width: 210px; }
  .lead { margin-bottom: 14px; font-size: 16px; }
  .cta { flex-direction: row; gap: 10px 16px; }
  .cta .btn { width: auto; min-height: 50px; padding: 0 28px; font-size: 18px; }
  .perks { display: none; }
  .live { margin-top: 10px; font-size: 13px; }
  .facts { margin-top: 18px; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .nav-in { height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
/* the 64 px painted icons are drawn smooth when shrunk (owner 2026-10-13: pixelated made them jagged) */
img[src*="assets/icons/"] { image-rendering: auto; }

/* ---------- feat/home-update 2026-10-18: CBT block, the big update's tabs, the grouped patch card ---------- */
.cbt-chip { display: inline-flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 6px 14px 6px 6px; min-height: 40px; border-radius: 999px;
  background: rgba(11, 16, 32, .62); border: 1px solid var(--lnA); color: var(--tx); font-size: 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cbt-chip b { padding: 3px 10px; border-radius: 999px; background: var(--au); color: #22180a; font: 700 13px/1.3 var(--disp); letter-spacing: .06em; }
.cbt-chip i { font-style: normal; color: var(--au2); transition: transform .2s var(--ease); }
.cbt-chip:hover i { transform: translateX(3px); }
.cbt { padding-top: 72px; }
.cbt-box { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px 36px; padding: 34px 38px; border-radius: var(--r2);
  background: radial-gradient(120% 140% at 0% 0%, rgba(232, 194, 106, .14), transparent 55%), linear-gradient(180deg, var(--s2), var(--s1));
  border: 1px solid var(--lnA); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.cbt-head h2 { font: 600 clamp(28px, 3.4vw, 40px)/1.2 var(--font); }
.cbt-head .sub { margin: 8px 0 0; text-align: left; }
.cbt-when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 0; }
.cbt-when div { padding: 12px 14px; border-radius: var(--r); background: rgba(11, 16, 32, .5); border: 1px solid var(--ln2); min-width: 0; }
.cbt-when dt { color: var(--tx3); font-size: 13px; }
.cbt-when dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; color: var(--au2); overflow-wrap: anywhere; }
.cbt-when dd.todo { color: var(--tx2); font-weight: 500; }
.cbt-when dd a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cbt-gifts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; align-content: start; }
.cbt-gifts li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: rgba(255, 255, 255, .035); border: 1px solid var(--ln); }
.cbt-gifts i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-style: normal; font-size: 21px;
  background: linear-gradient(180deg, rgba(232, 194, 106, .22), rgba(232, 194, 106, .06)); border: 1px solid var(--lnA); }
.cbt-gifts b { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.cbt-gifts small { display: block; margin-top: 2px; color: var(--tx2); font-size: 13.5px; line-height: 1.5; }
.cbt-note { grid-column: 1 / -1; margin: 0; color: var(--tx2); font-size: 14px; }
.cbt-wipe { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: var(--r); font-size: 14.5px; line-height: 1.6; color: var(--tx);
  background: rgba(236, 107, 125, .1); border: 1px solid rgba(236, 107, 125, .45); }
.cbt-wipe b { color: #ff9aa8; margin-right: 6px; }
.cbt-wipe b::before { content: '⚠ '; }
.cbt-cta { grid-column: 1 / -1; display: flex; justify-content: center; }

.upd-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -22px 0 20px; }
.upd-tabs button { min-height: 42px; padding: 8px 18px; border-radius: 999px; cursor: pointer; font: 500 15px/1.2 var(--font); color: var(--tx2);
  background: var(--s1); border: 1px solid var(--ln2); transition: color .2s, border-color .2s, background .2s; }
.upd-tabs button:hover { color: var(--tx); border-color: var(--lnA); }
.upd-tabs button[aria-selected="true"] { color: #241806; background: linear-gradient(180deg, #fbe7ad, #d8a84e); border-color: transparent; font-weight: 600; }
/* screens: one swipe row (2 in view on PC), never wider than the page */
.upd-shots { display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 8px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--lnA) transparent; }
.upd-shots:has(figure:only-child) { grid-auto-columns: min(100%, 760px); justify-content: center; }
.upd-shots figure { margin: 0; scroll-snap-align: start; border-radius: var(--r2); overflow: hidden; background: var(--s1); border: 1px solid var(--ln2); }
.upd-shots img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; }
.upd-shots figcaption { padding: 10px 14px 12px; color: var(--tx2); font-size: 14px; line-height: 1.5; }
.upd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.upd-cards li { padding: 16px 18px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--ln); border-top: 2px solid var(--lnA); }
.upd-cards b { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--au2); }
.upd-cards small { display: block; margin-top: 4px; color: var(--tx2); font-size: 14px; line-height: 1.55; }

.news-top .patch { margin: 6px 0 0; padding: 0; list-style: none; }
.news-top .patch li { padding: 10px 0; border-top: 1px solid var(--ln); }
.news-top .patch b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.news-top .patch p { margin: 2px 0 0; font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1080px) {
  .cbt-box { grid-template-columns: 1fr; }
  .upd-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .cbt { padding-top: 56px; }
  .cbt-box { padding: 22px 18px; gap: 14px; }
  .cbt-head { text-align: center; }
  .cbt-head .sub { text-align: center; }
  .cbt-when dd { font-size: 15px; }
  .cbt-gifts { grid-template-columns: 1fr; }
  .cbt-gifts li { padding: 12px; }
  .cbt-cta .btn { width: 100%; }
  .upd-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: -10px -16px 16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .upd-tabs::-webkit-scrollbar { display: none; }
  .upd-tabs button { flex: none; padding: 8px 14px; font-size: 14px; }
  .upd-shots { grid-auto-columns: 86%; gap: 10px; margin: 0 -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; }
  .upd-shots:has(figure:only-child) { grid-auto-columns: 100%; }
  .upd-cards { grid-template-columns: 1fr; gap: 8px; }
  .upd-cards li { padding: 12px 14px; }
}
/* phones held sideways: the chip stays off the first screen's tight column */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .cbt-chip { display: none; }
  .upd-shots { grid-auto-columns: calc(50% - 6px); }
}
.foot .legal a { display: inline-block; padding: 6px 4px; color: var(--tx2); text-decoration: underline; text-underline-offset: 3px; }
.foot .legal a:hover { color: var(--au2); }
