/* ===== TALORD Arena — official site. Dark forged-gold theme. ===== */
@font-face { font-family: 'Frank Ruhl'; src: url(/site/fonts/frank-ruhl-hebrew.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Frank Ruhl'; src: url(/site/fonts/frank-ruhl-latin.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cinzel'; src: url(/site/fonts/cinzel-latin.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url(/site/fonts/rubik-hebrew-wght-normal.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; src: url(/site/fonts/rubik-latin-wght-normal.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0b0907; --bg2: #120e0a; --panel: #16110c; --panel2: #1c150e; --line: rgba(201, 162, 90, .28); --line2: rgba(201, 162, 90, .55);
  --gold: #d9b36a; --gold-hi: #f6dd9a; --gold-lo: #8a6a33; --bronze: #6b4e22; --ink: #e9dfcb; --ink2: #b9ab92; --ink3: #857a67;
  --steel: #9aa7b3; --ember: #ff8a3c; --blood: #a8322a; --exc: #4dff7a;
  --r0: #c9c2b4; --r1: #5fd35f; --r2: #3d9bff; --r3: #b65cff; --r4: #ffae2b;
  --display: 'Frank Ruhl', 'Cinzel', Georgia, serif; --latin: 'Cinzel', 'Frank Ruhl', Georgia, serif; --body: 'Rubik', system-ui, sans-serif;
  --wrap: 1240px; --pad: clamp(18px, 4.5vw, 48px);
}
html[lang=en] { --display: 'Cinzel', Georgia, serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg) url(/site/img/tex-stone.webp) repeat; color: var(--ink); font: 400 16.5px/1.72 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(1200px 600px at 50% -10%, rgba(255, 170, 70, .07), transparent 70%), radial-gradient(900px 700px at 100% 100%, rgba(120, 40, 20, .08), transparent 70%); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { color: #fff3cf; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.12; margin: 0; color: #f4e6c4; letter-spacing: .005em; }
html[lang=en] h1, html[lang=en] h2, html[lang=en] h3 { letter-spacing: .02em; }
strong { color: #f5e7c6; font-weight: 600; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; z-index: 99; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico .f, .ico path.f { fill: currentColor; stroke: none; }
[dir=rtl] .ico.arrow { transform: scaleX(-1); }
.latin { font-family: var(--latin); }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: .86; direction: ltr; }
.logo-t { font: 900 25px/1 var(--latin); letter-spacing: .06em; background: linear-gradient(180deg, #fff1c4 0%, #e6c276 45%, #a47a35 55%, #f0d58d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgba(0,0,0,.7)); }
.logo-a { font: 700 10px/1 var(--latin); letter-spacing: .62em; margin-inline-start: .62em; color: var(--ink2); margin-top: 4px; }
[dir=rtl] .logo-a { margin-inline-start: 0; margin-inline-end: -.62em; }

/* ---------- top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.topbar.solid, body:not([data-page=index]) .topbar { background: rgba(11, 9, 7, .92); border-bottom-color: var(--line); }
.topbar-in { max-width: 1400px; margin: 0 auto; height: 68px; padding: 0 var(--pad); display: flex; align-items: center; gap: 28px; }
.nav { display: flex; gap: 2px; align-items: center; flex: 1; }
.nav > a { position: relative; padding: 8px 12px; font: 600 15.5px/1 var(--display); color: var(--ink2); letter-spacing: .01em; white-space: nowrap; }
html[lang=en] .nav > a { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.nav > a:hover, .nav > a[aria-current] { color: var(--gold-hi); }
.nav > a[aria-current]::after { content: ''; position: absolute; inset-inline: 12px; bottom: -2px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.nav-extra { display: none; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.lang-sw { font: 700 12px/1 var(--latin); letter-spacing: .08em; color: var(--ink2); border: 1px solid var(--line); padding: 7px 8px; }
.lang-sw:hover { border-color: var(--line2); }
.top-acc { font: 500 14px/1 var(--body); color: var(--ink2); }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--gold); width: 42px; height: 42px; padding: 0; align-items: center; justify-content: center; cursor: pointer; }
.burger .ico { width: 22px; height: 22px; }
.burger .ico + .ico { display: none; }
body.nav-open .burger .ico { display: none; }
body.nav-open .burger .ico + .ico { display: block; }

/* ---------- buttons ---------- */
.btn { --cut: 10px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; font: 700 17px/1 var(--display); letter-spacing: .02em; cursor: pointer; border: 0; text-align: center;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%); transition: filter .2s, transform .2s; }
html[lang=en] .btn { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn-gold { color: #1b1206; background: linear-gradient(180deg, #fbe7ae 0%, #e2bb68 38%, #b78634 62%, #d9b060 100%); text-shadow: 0 1px 0 rgba(255, 240, 200, .45); }
.btn-gold::before { content: ''; position: absolute; inset: 2px; clip-path: inherit; box-shadow: inset 0 0 0 1px rgba(255, 245, 210, .55); pointer-events: none; }
.btn-gold:hover { color: #000; }
.btn-steel { color: var(--gold-hi); background: linear-gradient(180deg, #2a2219, #15100b); }
.btn-steel::before { content: ''; position: absolute; inset: 0; clip-path: inherit; background: linear-gradient(180deg, var(--gold), var(--gold-lo)); z-index: -1; }
.btn-steel { isolation: isolate; box-shadow: none; }
.btn-steel::after { content: ''; position: absolute; inset: 1px; clip-path: inherit; background: linear-gradient(180deg, #2b2319, #120d09); z-index: -1; }
.btn-sm { padding: 11px 18px; font-size: 15px; --cut: 8px; }
html[lang=en] .btn-sm { font-size: 12px; }
.btn .sub { display: block; font: 400 12px/1.2 var(--body); letter-spacing: 0; text-transform: none; opacity: .75; margin-top: 5px; }
.btn-big { padding: 18px 34px; min-width: 250px; flex-direction: row; }
.btn-big .ico { width: 26px; height: 26px; }
.btn-big .lbl { display: flex; flex-direction: column; align-items: flex-start; text-align: start; }
.btn-big .t { font-size: 21px; line-height: 1.05; }
html[lang=en] .btn-big .t { font-size: 16px; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--display); color: var(--gold); border-bottom: 1px solid var(--line2); padding-bottom: 6px; }
html[lang=en] .link-more { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; }
.link-more:hover .arrow { transform: translateX(4px); }
[dir=rtl] .link-more:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- ornaments ---------- */
.kicker { display: flex; align-items: center; gap: 12px; font: 700 12.5px/1 var(--latin); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); opacity: .9; margin-bottom: 16px; }
html[lang=he] .kicker { font-family: var(--display); letter-spacing: .12em; font-size: 15px; }
.kicker::before { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
[dir=rtl] .kicker::before { background: linear-gradient(270deg, var(--gold), transparent); }
.divider { width: min(340px, 70%); height: 18px; margin: 22px 0; color: var(--gold); }
.divider svg { width: 100%; height: 100%; overflow: visible; }
.divider path { stroke: currentColor; stroke-width: 1; fill: none; opacity: .75; }
.divider path.f { fill: currentColor; opacity: 1; stroke: none; }
.center .divider, .divider.c { margin-inline: auto; }
.sec-head { margin-bottom: 44px; max-width: 760px; }
.sec-head h2 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 900; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
html[lang=en] .sec-head h2 { font-size: clamp(28px, 4.2vw, 48px); }
.sec-head .lead { font-size: 18.5px; color: var(--ink2); max-width: 640px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }
.sec-head.center .kicker::after { content: ''; width: 34px; height: 1px; background: linear-gradient(270deg, var(--gold), transparent); }
[dir=rtl] .sec-head.center .kicker::after { background: linear-gradient(90deg, var(--gold), transparent); }
.sec-head.center .lead { margin-inline: auto; }

/* framed box: double gold rule + corner studs */
.frame { position: relative; border: 1px solid var(--line2); box-shadow: inset 0 0 0 4px rgba(11, 9, 7, .9), inset 0 0 0 5px var(--line), 0 30px 60px -20px rgba(0, 0, 0, .8); background: var(--panel); }
.frame .cn { position: absolute; width: 14px; height: 14px; border: 1px solid var(--gold); background: var(--bg); transform: rotate(45deg); z-index: 2; }
.frame .cn::after { content: ''; position: absolute; inset: 3px; background: var(--gold); }
.cn.tl { top: -7px; left: -7px; } .cn.tr { top: -7px; right: -7px; } .cn.bl { bottom: -7px; left: -7px; } .cn.br { bottom: -7px; right: -7px; }
.shot { position: relative; margin: 0; }
.shot img { width: 100%; height: auto; }
.shot figcaption { position: absolute; inset-inline-start: 0; bottom: 0; padding: 26px 18px 12px; width: 100%; font-size: 13px; color: var(--ink2); background: linear-gradient(0deg, rgba(8, 6, 4, .92), transparent); }
.shot .pix { image-rendering: pixelated; }

section { position: relative; padding: clamp(72px, 10vw, 130px) 0; }
.sec-dark { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.15)); border-block: 1px solid rgba(201, 162, 90, .12); }
.rule-top::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line2), transparent); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; padding: 120px 0 clamp(56px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -40px 0 0; z-index: -3; background: #0b0907 url(/site/img/hero-bg.webp) center 40% / cover no-repeat; transform: translate3d(0, var(--py, 0), 0) scale(1.04); will-change: transform; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(180deg, rgba(11,9,7,.65) 0%, rgba(11,9,7,0) 22%, rgba(11,9,7,0) 45%, rgba(11,9,7,.85) 82%, var(--bg) 100%),
  linear-gradient(var(--hero-side, 270deg), rgba(11,9,7,.92) 0%, rgba(11,9,7,.55) 38%, rgba(11,9,7,0) 70%); }
[dir=ltr] .hero { --hero-side: 90deg; }
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }
.hero-in { width: 100%; }
.hero-copy { max-width: 640px; }
.hero-ver { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--body); color: var(--ink2); border: 1px solid var(--line); background: rgba(11,9,7,.6); padding: 8px 14px; margin-bottom: 26px; }
.hero-ver b { color: var(--gold-hi); font-weight: 600; }
.hero-ver .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--exc); box-shadow: 0 0 10px var(--exc); }
.hero-logo { display: flex; flex-direction: column; align-items: flex-start; direction: ltr; line-height: .8; margin-bottom: 26px; }
[dir=rtl] .hero-logo { align-items: flex-end; }
.hero-logo .t { font: 900 clamp(64px, 11vw, 138px)/.84 var(--latin); letter-spacing: .03em; background: linear-gradient(180deg, #fff6d6 0%, #f0d08a 30%, #b58738 52%, #7a5620 56%, #e7c577 78%, #fff0c0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(0,0,0,.85)) drop-shadow(0 18px 40px rgba(0,0,0,.7)); }
.hero-logo .a { font: 700 clamp(15px, 2.2vw, 26px)/1 var(--latin); letter-spacing: .9em; color: #e8dcc0; margin-top: 12px; padding-inline-start: .3em; text-shadow: 0 2px 8px #000; }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; margin-bottom: 18px; text-shadow: 0 2px 20px #000; }
html[lang=en] .hero h1 { font-size: clamp(24px, 3.4vw, 40px); }
.hero-copy > p { font-size: clamp(16.5px, 1.6vw, 19px); color: #d8ccb4; max-width: 560px; text-shadow: 0 1px 8px #000; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: stretch; }
.apk-meta { font: 400 13px/1.5 var(--body); color: var(--ink3); margin-top: 14px; }
.apk-meta b { color: var(--ink2); font-weight: 500; }
.hero-side { position: absolute; inset-inline-end: var(--pad); bottom: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 22px; height: 36px; border: 1px solid var(--line2); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; background: var(--gold); transform: translateX(-50%); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(6, 1fr); border-block: 1px solid var(--line); background: rgba(0,0,0,.35); }
.fact { padding: 26px 18px; text-align: center; border-inline-start: 1px solid rgba(201,162,90,.14); }
.fact:first-child { border-inline-start: 0; }
.fact b { display: block; font: 900 clamp(30px, 3.4vw, 44px)/1 var(--latin); color: var(--gold-hi); }
.fact span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink2); line-height: 1.35; }

/* ---------- split layouts ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split .copy p { color: var(--ink2); font-size: 17.5px; }
.split .copy p strong { color: var(--ink); }
.stack-shots { position: relative; padding-bottom: 12%; }
.stack-shots .s2 { position: absolute; width: 52%; inset-inline-start: -8%; bottom: 0; }
.bullets { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.bullets li { position: relative; padding-inline-start: 26px; color: var(--ink2); }
.bullets li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .62em; width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--gold); background: rgba(217,179,106,.25); }
.bullets li b { color: var(--ink); font-weight: 600; }

/* ---------- class banners (home) ---------- */
.banners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.banner { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 440px; padding: 0 14px 58px; color: var(--ink); text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%), radial-gradient(120% 60% at 50% 38%, var(--tint, rgba(80,120,200,.35)), transparent 70%), var(--panel);
  border: 1px solid var(--line); clip-path: polygon(0 0, 100% 0, 100% 92%, 50% 100%, 0 92%); transition: transform .35s, border-color .35s; }
.banner::before { content: ''; position: absolute; inset: 6px 6px auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line2), transparent); }
.banner:hover { transform: translateY(-6px); border-color: var(--line2); color: var(--ink); }
.banner .sprite { margin-bottom: auto; margin-top: 50px; filter: drop-shadow(0 10px 12px rgba(0,0,0,.6)); }
.banner h3 { font-size: 27px; margin-top: 18px; }
html[lang=en] .banner h3 { font-size: 20px; }
.banner .role { font: 600 12px/1.3 var(--latin); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
html[lang=he] .banner .role { font-family: var(--body); letter-spacing: .02em; font-size: 14px; font-weight: 500; }
.banner p { font-size: 14px; color: var(--ink2); line-height: 1.5; margin: 12px 0 0; min-height: 3em; }
.banner .pedestal { position: absolute; left: 50%; top: 230px; width: 150px; height: 26px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }

/* ---------- sprites ---------- */
.sprite { display: inline-block; width: var(--w); height: var(--h); background: var(--sheet) 0 0 / calc(var(--w) * var(--n)) var(--h) no-repeat; image-rendering: pixelated; animation: spr var(--d, .8s) steps(var(--n)) infinite; }
@keyframes spr { to { background-position: calc(var(--w) * var(--n) * -1) 0; } }
.pix { image-rendering: pixelated; }

/* ---------- glow strip (forge) ---------- */
.glows { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.glow { margin: 0; text-align: center; }
.glow .frame { overflow: hidden; aspect-ratio: 380 / 460; }
.glow img { width: 100%; height: 100%; object-fit: cover; }
.glow figcaption { margin-top: 12px; font: 900 22px/1 var(--latin); color: var(--c, var(--ink)); text-shadow: 0 0 14px var(--c, transparent); }
.glow figcaption small { display: block; font: 400 13px/1.3 var(--body); color: var(--ink3); margin-top: 6px; text-shadow: none; }

/* ---------- modes ---------- */
.modes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.mode { position: relative; padding: 34px 30px 30px; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); }
.mode::after { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(201,162,90,.1); pointer-events: none; }
.mode .no { font: 900 64px/1 var(--latin); color: rgba(217,179,106,.12); position: absolute; top: 14px; inset-inline-end: 22px; }
.mode h3 { font-size: 28px; margin-bottom: 12px; }
html[lang=en] .mode h3 { font-size: 21px; }
.mode p { color: var(--ink2); font-size: 15.5px; }
.mode .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font: 500 12.5px/1 var(--body); color: var(--ink2); border: 1px solid var(--line); padding: 7px 10px; background: rgba(0,0,0,.25); }
.mode.feature { background: linear-gradient(180deg, rgba(40,28,14,.9), rgba(20,14,9,.95)), url(/site/img/shot-battle-1-sm.webp) center / cover; }

/* ---------- creator ---------- */
.creator { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; padding: clamp(28px, 4vw, 54px); }
.creator .mark { width: clamp(120px, 16vw, 190px); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line2); background: radial-gradient(closest-side, rgba(217,179,106,.18), transparent), #0e0a07; transform: rotate(45deg); }
.creator .mark span { transform: rotate(-45deg); font: 900 clamp(34px, 4.4vw, 54px)/1 var(--latin); color: var(--gold-hi); letter-spacing: .02em; }
.creator h3 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.creator p { color: var(--ink2); max-width: 680px; }
.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.social { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--ink); font: 500 15px/1 var(--body); }
.social .ico { width: 20px; height: 20px; color: var(--gold); }
.social small { color: var(--ink3); direction: ltr; }
.social:hover { border-color: var(--line2); color: #fff; }

/* ---------- final CTA ---------- */
.final { text-align: center; background: linear-gradient(180deg, var(--bg), rgba(11,9,7,.6) 30%, rgba(11,9,7,.6) 70%, var(--bg)), url(/site/img/city-bg.webp) center / cover; }
.final h2 { font-size: clamp(36px, 5.5vw, 64px); font-weight: 900; }
.final .cta-row { justify-content: center; }

/* ---------- page hero (inner pages) ---------- */
.phero { padding: 150px 0 60px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(11,9,7,.4), var(--bg)), var(--phero-img, none) center 35% / cover; }
.phero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--hero-side, 270deg), rgba(11,9,7,.95), rgba(11,9,7,.55) 60%, rgba(11,9,7,.3)); z-index: 0; }
[dir=ltr] .phero { --hero-side: 90deg; }
.phero .wrap { position: relative; z-index: 1; }
.phero h1 { font-size: clamp(40px, 6.5vw, 76px); font-weight: 900; text-shadow: 0 3px 30px #000; }
html[lang=en] .phero h1 { font-size: clamp(32px, 5vw, 60px); }
.phero p { max-width: 640px; color: var(--ink2); font-size: 18px; margin-top: 18px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.subnav a { font: 600 14.5px/1 var(--display); color: var(--ink2); border: 1px solid var(--line); padding: 10px 14px; background: rgba(0,0,0,.4); }
html[lang=en] .subnav a { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.subnav a:hover { color: var(--gold-hi); border-color: var(--line2); }

/* ---------- class page ---------- */
.cls { padding: clamp(70px, 9vw, 120px) 0; border-bottom: 1px solid rgba(201,162,90,.12); }
.cls:nth-child(even) { background: rgba(0,0,0,.22); }
.cls-top { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.cls-art { position: sticky; top: 100px; }
.cls-stage { position: relative; min-height: 420px; display: grid; place-items: center; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(60% 50% at 50% 55%, var(--tint), transparent 70%), linear-gradient(180deg, #17110b, #0c0906); }
.cls-stage::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(201,162,90,.14); pointer-events: none; }
.cls-stage .sprite { position: relative; z-index: 1; filter: drop-shadow(0 16px 18px rgba(0,0,0,.7)); }
.cls-stage .floor { position: absolute; bottom: 22%; left: 50%; width: 60%; height: 30px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent); }
.cls-stage .cls-no { position: absolute; top: 18px; inset-inline-start: 22px; font: 900 15px/1 var(--latin); letter-spacing: .3em; color: var(--gold); opacity: .7; }
.cls-stage .shadowv { position: absolute; bottom: 16px; inset-inline-end: 16px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink3); }
.cls-ingame { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.cls-ingame figure { margin: 0; }
.cls-ingame figcaption { font-size: 12.5px; color: var(--ink3); margin-top: 8px; }
.cls h2 { font-size: clamp(44px, 6vw, 72px); font-weight: 900; }
html[lang=en] .cls h2 { font-size: clamp(34px, 4.6vw, 56px); }
.cls .en-name { font: 700 13px/1 var(--latin); letter-spacing: .4em; color: var(--gold); text-transform: uppercase; margin-top: 12px; }
.cls .tagline { font: 600 22px/1.4 var(--display); color: var(--gold-hi); margin: 20px 0 16px; }
html[lang=en] .cls .tagline { font-size: 18px; }
.cls .copy > p { color: var(--ink2); font-size: 17px; }
.stats { display: grid; gap: 12px; margin: 26px 0; }
.stat { display: grid; grid-template-columns: 120px 1fr 64px; gap: 14px; align-items: center; font-size: 14.5px; }
.stat .bar { height: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(201,162,90,.18); position: relative; overflow: hidden; }
.stat .bar i { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--v); background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); }
[dir=rtl] .stat .bar i { background: linear-gradient(270deg, var(--gold-lo), var(--gold-hi)); }
.stat b { font: 700 15px/1 var(--latin); color: var(--ink); text-align: end; }
.stat span { color: var(--ink2); }
.h3row { display: flex; align-items: baseline; gap: 14px; margin: 44px 0 16px; }
.h3row h3 { font-size: 26px; }
html[lang=en] .h3row h3 { font-size: 19px; }
.h3row::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }
[dir=rtl] .h3row::after { background: linear-gradient(270deg, var(--line2), transparent); }
.weap { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wp { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(201,162,90,.18); background: rgba(0,0,0,.25); }
.wp img { width: 40px; height: 40px; image-rendering: pixelated; flex: none; }
.wp b { display: block; font-size: 14px; font-weight: 500; color: var(--c, var(--ink)); line-height: 1.25; }
.wp small { display: block; font-size: 12px; color: var(--ink3); }
.tips { counter-reset: tip; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.tips li { counter-increment: tip; position: relative; padding-inline-start: 44px; color: var(--ink2); }
.tips li::before { content: counter(tip, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: 1px; font: 900 17px/1 var(--latin); color: var(--gold); }

/* ---------- ledgers (tables) ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); background: rgba(10,8,6,.7); -webkit-overflow-scrolling: touch; }
table.ledger { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.ledger th { font: 700 12.5px/1.2 var(--latin); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--line2); background: rgba(217,179,106,.06); white-space: nowrap; }
html[lang=he] .ledger th { font-family: var(--display); letter-spacing: .02em; font-size: 14.5px; text-transform: none; }
.ledger td { padding: 12px 16px; border-bottom: 1px solid rgba(201,162,90,.1); color: var(--ink2); vertical-align: middle; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger tbody tr:hover td { background: rgba(217,179,106,.04); }
.ledger td.n { font-variant-numeric: tabular-nums; }
.ledger td b { color: var(--ink); font-weight: 600; }
.ledger .ic { width: 34px; height: 34px; image-rendering: pixelated; display: inline-block; vertical-align: middle; margin-inline-end: 10px; }
.risk { color: #ff8a6a; font-weight: 600; }
.safe { color: #8fd18f; }

.skills { display: grid; gap: 12px; }
.skill { display: grid; grid-template-columns: 58px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid rgba(201,162,90,.18); background: linear-gradient(90deg, rgba(217,179,106,.05), transparent); }
[dir=rtl] .skill { background: linear-gradient(270deg, rgba(217,179,106,.05), transparent); }
.skill .sico { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--line2); background: #0d0a07; }
.skill .sico img { width: 40px; height: 40px; image-rendering: pixelated; }
.skill h4 { font-size: 19px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
html[lang=en] .skill h4 { font-size: 15px; }
.skill h4 small { font: 500 12px/1 var(--body); color: var(--ink3); }
.skill p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink2); }
.kbd { font: 700 12px/1 var(--latin); color: var(--gold-hi); border: 1px solid var(--line2); padding: 5px 7px; min-width: 26px; text-align: center; background: rgba(0,0,0,.4); }
.skill .cd { text-align: end; font-size: 13px; color: var(--ink3); white-space: nowrap; }
.skill .cd b { display: block; font: 700 18px/1.2 var(--latin); color: var(--ink); }

/* ---------- rarity / chips ---------- */
.rar { font-weight: 600; }
.rar0 { color: var(--r0); } .rar1 { color: var(--r1); } .rar2 { color: var(--r2); } .rar3 { color: var(--r3); } .rar4 { color: var(--r4); } .excg { color: var(--exc); }
.rarities { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.rarity { padding: 22px 18px; border: 1px solid rgba(201,162,90,.18); border-top: 3px solid var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 60%), var(--panel); }
.rarity h4 { font-size: 21px; color: var(--c); }
html[lang=en] .rarity h4 { font-size: 16px; }
.rarity .pct { font: 900 34px/1 var(--latin); color: var(--ink); margin: 14px 0 4px; }
.rarity small { color: var(--ink3); font-size: 13px; display: block; line-height: 1.45; }
.rarity .icons { display: flex; gap: 4px; margin-top: 14px; }
.rarity .icons img { width: 32px; height: 32px; image-rendering: pixelated; }
.slots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.slot { text-align: center; padding: 18px 8px; border: 1px solid rgba(201,162,90,.18); background: rgba(0,0,0,.3); }
.slot img { width: 48px; height: 48px; image-rendering: pixelated; margin: 0 auto 10px; }
.slot b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.slot small { display: block; font-size: 12px; color: var(--ink3); margin-top: 4px; line-height: 1.4; }
.exc-box { border: 1px solid rgba(77,255,122,.35); background: radial-gradient(80% 120% at 0% 0%, rgba(77,255,122,.08), transparent 60%), var(--panel); padding: clamp(24px, 4vw, 44px); position: relative; }
.exc-box h3 { color: #b9ffcb; font-size: 30px; text-shadow: 0 0 22px rgba(77,255,122,.35); }

/* ---------- world ---------- */
.blds { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.bld { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: center; padding: 14px; border: 1px solid rgba(201,162,90,.16); background: rgba(0,0,0,.28); }
.bld img { width: 70px; height: 56px; object-fit: contain; image-rendering: pixelated; }
.bld b { display: block; font: 700 16px/1.2 var(--display); color: var(--ink); }
html[lang=en] .bld b { font-size: 13px; letter-spacing: .06em; }
.bld small { display: block; font-size: 13px; color: var(--ink3); line-height: 1.45; margin-top: 4px; }
.ranks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.rank { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid rgba(201,162,90,.14); background: rgba(0,0,0,.25); }
.rank img { width: 39px; height: 39px; image-rendering: pixelated; flex: none; }
.rank b { display: block; font: 700 14px/1.2 var(--latin); color: var(--c); }
.rank small { font-size: 12.5px; color: var(--ink3); }
.tiers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.tier { padding: 20px 14px; text-align: center; border: 1px solid rgba(201,162,90,.16); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%), var(--panel); }
.tier .gem { width: 30px; height: 30px; margin: 0 auto 12px; transform: rotate(45deg); border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 30%, #000); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.tier b { display: block; font: 800 16px/1.1 var(--latin); color: var(--c); }
.tier small { display: block; margin-top: 6px; color: var(--ink3); font-size: 12.5px; }
.mobs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mob { text-align: center; padding: 20px 10px; border: 1px solid rgba(201,162,90,.16); background: rgba(0,0,0,.28); }
.mob img { height: 84px; width: auto; margin: 0 auto 10px; image-rendering: pixelated; }
.mob b { display: block; color: var(--ink); font-weight: 600; }
.mob small { color: var(--ink3); font-size: 12.5px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.panel { padding: clamp(22px, 3vw, 34px); border: 1px solid rgba(201,162,90,.2); background: linear-gradient(180deg, var(--panel2), var(--panel)); position: relative; }
.panel h3 { font-size: 24px; margin-bottom: 12px; }
html[lang=en] .panel h3 { font-size: 18px; }
.panel p { color: var(--ink2); font-size: 15.5px; }
.panel .bullets li { font-size: 15px; }

/* ---------- updates ---------- */
.log { display: grid; gap: 0; max-width: 900px; }
.rel { display: grid; grid-template-columns: 170px 1fr; gap: 30px; padding: 34px 0; border-bottom: 1px solid rgba(201,162,90,.14); }
.rel .ver { font: 900 34px/1 var(--latin); color: var(--gold-hi); }
.rel .date { font-size: 13px; color: var(--ink3); margin-top: 8px; }
.rel .latest { display: inline-block; margin-top: 10px; font: 600 11px/1 var(--latin); letter-spacing: .2em; color: #0b0907; background: var(--gold); padding: 5px 8px; }
.rel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rel li { position: relative; padding-inline-start: 22px; color: var(--ink2); }
.rel li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .66em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }

/* ---------- faq ---------- */
.faq { max-width: 900px; display: grid; gap: 10px; }
.faq details { border: 1px solid rgba(201,162,90,.2); background: rgba(0,0,0,.28); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font: 700 19px/1.35 var(--display); color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
html[lang=en] .faq summary { font-size: 15px; letter-spacing: .03em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 26px/1 var(--latin); color: var(--gold); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: var(--line2); background: rgba(217,179,106,.04); }
.faq .ans { padding: 0 22px 22px; color: var(--ink2); }
.faq .ans ol { padding-inline-start: 22px; margin: 0; display: grid; gap: 8px; }
.faq .ans b { color: var(--ink); }

/* ---------- account ---------- */
.acc { max-width: 520px; margin: 0 auto; }
.acc .panel { padding: clamp(24px, 5vw, 44px); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; padding: 14px; font: 700 18px/1 var(--display); color: var(--ink3); cursor: pointer; position: relative; }
html[lang=en] .tabs button { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.tabs button[aria-selected=true] { color: var(--gold-hi); }
.tabs button[aria-selected=true]::after { content: ''; position: absolute; inset-inline: 20%; bottom: -1px; height: 2px; background: var(--gold); }
.fld { display: block; margin-bottom: 16px; }
.fld span { display: block; font-size: 14px; color: var(--ink2); margin-bottom: 7px; }
.fld input { width: 100%; padding: 14px 15px; font: 400 16px/1.2 var(--body); color: var(--ink); background: #0b0806; border: 1px solid rgba(201,162,90,.28); outline: none; direction: ltr; text-align: start; }
[dir=rtl] .fld input { text-align: right; }
.fld input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,179,106,.12); }
.fld .hint { font-size: 12.5px; color: var(--ink3); margin-top: 6px; min-height: 1em; }
.fld .hint.bad { color: #ff8a6a; } .fld .hint.good { color: #8fd18f; }
.form-msg { min-height: 1.4em; font-size: 14.5px; margin: 8px 0 14px; }
.form-msg.bad { color: #ff8a6a; } .form-msg.good { color: #8fd18f; }
.acc .btn { width: 100%; }
.linkbtn { background: none; border: 0; color: var(--gold); font: 500 14px var(--body); cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.code-in { letter-spacing: .5em; font: 700 26px/1 var(--latin) !important; text-align: center !important; }
.me-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.me-card .rk { width: 64px; height: 64px; image-rendering: pixelated; }
.me-card h3 { font-size: 28px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.kv div { padding: 12px 14px; border: 1px solid rgba(201,162,90,.16); background: rgba(0,0,0,.25); }
.kv small { display: block; color: var(--ink3); font-size: 12.5px; }
.kv b { font: 700 18px/1.3 var(--latin); color: var(--ink); }
.badge-ok { color: #8fd18f; } .badge-warn { color: #ffb45c; }
[hidden] { display: none !important; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: #080604; margin-top: 0; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 60px var(--pad) 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 40px; }
.foot-brand p { color: var(--ink3); font-size: 14px; margin: 18px 0; max-width: 300px; }
.foot-brand .logo { align-items: flex-start; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); }
.socials a:hover { border-color: var(--line2); color: #fff; }
.foot h4 { font: 700 12px/1 var(--latin); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
html[lang=he] .foot h4 { font-family: var(--display); font-size: 15px; letter-spacing: .04em; }
.foot-col a { display: block; color: var(--ink2); font-size: 14.5px; padding: 5px 0; }
.foot-col a:hover { color: var(--gold-hi); }
.foot-credits p { font-size: 13px; color: var(--ink3); line-height: 1.6; }
.foot-credits a { display: inline; }
.foot-base { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--pad) 30px; display: flex; justify-content: space-between; font-size: 13px; color: var(--ink3); border-top: 1px solid rgba(201,162,90,.1); }
.foot-base a { color: var(--ink3); }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } .sprite { animation: none; } .hero-bg { transform: none !important; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .topbar-in { gap: 16px; }
  .nav > a { padding: 8px 8px; font-size: 14.5px; }
  .top-acc { display: none; }
}
@media (max-width: 1020px) {
  .burger { display: inline-flex; }
  .nav { position: fixed; top: 68px; inset-inline: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 18px var(--pad) 40px; background: rgba(9,7,5,.98); border-top: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; overflow-y: auto; }
  body.nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .nav > a { font-size: 22px; padding: 16px 4px; border-bottom: 1px solid rgba(201,162,90,.12); }
  html[lang=en] .nav > a { font-size: 16px; }
  .nav > a[aria-current]::after { display: none; }
  .nav-extra { display: flex; gap: 12px; margin-top: 24px; }
  .nav-extra a { flex: 1; text-align: center; border: 1px solid var(--line); padding: 14px; color: var(--ink2); }
  .lang-sw { display: none; }
  .banners { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(4) { border-inline-start: 0; }
  .fact:nth-child(n+4) { border-top: 1px solid rgba(201,162,90,.14); }
  .modes { grid-template-columns: 1fr; }
  .split, .cls-top, .cols2 { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .cls-art { position: static; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .rarities { grid-template-columns: repeat(3, 1fr); }
  .slots { grid-template-columns: repeat(4, 1fr); }
  .ranks { grid-template-columns: repeat(3, 1fr); }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .glows { grid-template-columns: repeat(3, 1fr); }
  .cols3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-in { height: 60px; gap: 10px; }
  .nav { top: 60px; }
  .logo-t { font-size: 21px; }
  .top-actions { gap: 8px; margin-inline-start: auto; }
  .top-actions .btn-sm { padding: 10px 14px; font-size: 14px; }
  .hero { min-height: 100svh; padding-top: 90px; align-items: flex-end; }
  .hero-bg { background-image: url(/site/img/hero-bg-portrait.webp); background-position: center 30%; }
  .hero::before { background: linear-gradient(180deg, rgba(11,9,7,.55) 0%, rgba(11,9,7,.1) 25%, rgba(11,9,7,.35) 48%, rgba(11,9,7,.93) 70%, var(--bg) 100%); }
  .hero-logo .t { font-size: 16.5vw; letter-spacing: .01em; }
  .hero-logo .a { font-size: 3.6vw; letter-spacing: .75em; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .btn-big { min-width: 0; justify-content: flex-start; padding: 16px 24px; }
  .hero-side { display: none; }
  .scroll-cue { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { border-inline-start: 0 !important; border-top: 1px solid rgba(201,162,90,.14); }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact:nth-child(even) { border-inline-start: 1px solid rgba(201,162,90,.14) !important; }
  .banners { grid-template-columns: 1fr 1fr; gap: 10px; }
  .banner { min-height: 330px; padding-bottom: 44px; }
  .banner .sprite { margin-top: 26px; transform: scale(.8); }
  .banner:last-child { grid-column: span 2; }
  .banner p { display: none; }
  .banner h3 { font-size: 23px; }
  .stack-shots { padding-bottom: 0; }
  .stack-shots .s2 { position: relative; width: 70%; inset-inline-start: auto; margin: -18% 0 0 auto; }
  [dir=rtl] .stack-shots .s2 { margin: -18% auto 0 0; }
  .creator { grid-template-columns: 1fr; text-align: start; }
  .creator .mark { width: 110px; margin: 10px 0 12px 12px; }
  .stat { grid-template-columns: 96px 1fr 52px; font-size: 13.5px; }
  .skill { grid-template-columns: 46px 1fr; padding: 14px; gap: 12px; }
  .skill .sico { width: 46px; height: 46px; }
  .skill .sico img { width: 32px; height: 32px; }
  .skill .cd { grid-column: 2; text-align: start; }
  .skill .cd b { display: inline; font-size: 15px; margin-inline-end: 6px; }
  .rarities { grid-template-columns: 1fr 1fr; }
  .rarity:last-child { grid-column: span 2; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .slots .slot:last-child { grid-column: span 2; }
  .ranks { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .mobs { grid-template-columns: 1fr 1fr; }
  .glows { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .glow figcaption { font-size: 17px; }
  .glow figcaption small { font-size: 11.5px; }
  .rel { grid-template-columns: 1fr; gap: 14px; }
  .foot-in { grid-template-columns: 1fr; gap: 30px; }
  .foot-base { flex-direction: column; gap: 8px; }
  .phero { padding: 110px 0 44px; }
  .cls-stage { min-height: 320px; }
  .kv { grid-template-columns: 1fr; }
}
.phero-sm { padding-bottom: 40px; } .phero-sm h1 { font-size: clamp(34px, 5vw, 56px); }
/* grid children must be allowed to shrink below their min-content (wide sprites / tables) */
.cls-top > *, .split > *, .cols2 > *, .cols3 > *, .modes > *, .banners > * { min-width: 0; }
@media (max-width: 640px) { .cls-stage { min-height: 340px; } .cls-stage .sprite { transform: scale(.72); } }
.glows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.glowcard { margin: 0; }
.glowcard .frame { overflow: hidden; }
.glowcard img { width: 100%; aspect-ratio: 380 / 460; object-fit: cover; }
.glowcard figcaption { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; padding: 16px 4px 0; }
.glowcard figcaption b { font: 900 30px/1 var(--latin); color: var(--c); text-shadow: 0 0 18px var(--c); }
.glowcard figcaption span { color: var(--ink2); font-size: 15px; }
.glow-exc { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 1020px) { .glows { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .glows { gap: 14px; } .glowcard figcaption { grid-template-columns: 1fr; gap: 6px; } .glowcard figcaption span { font-size: 13.5px; } .glow-exc { grid-column: span 2; } }
@media (max-width: 640px) { .hero-bg { filter: brightness(.62) blur(1.6px); transform-origin: center; } }

/* ===================== per-class identity (hero cards + class stages) ===================== */
.portrait { display: block; image-rendering: pixelated; image-rendering: crisp-edges; max-width: 100%; height: auto; }
@supports (image-rendering: pixelated) { .portrait { image-rendering: pixelated; } }
.ctheme { --c: #d9b36a; --hi: #fff; --deep: #120e09; }
.ctheme .ct-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* shared base: deep class colour + a light pool behind the hero */
.ctheme .ct-bg { background: radial-gradient(70% 46% at 50% 38%, color-mix(in srgb, var(--c) 42%, transparent), transparent 72%), linear-gradient(180deg, color-mix(in srgb, var(--deep) 92%, #000), #0b0907 88%); }
/* warrior: steel cross-hatch, cold blue */
.cls-warrior .ct-bg { background: repeating-linear-gradient(45deg, rgba(188,214,245,.05) 0 1px, transparent 1px 13px), repeating-linear-gradient(-45deg, rgba(188,214,245,.05) 0 1px, transparent 1px 13px), radial-gradient(70% 46% at 50% 38%, rgba(77,143,214,.5), transparent 72%), linear-gradient(180deg, #0f1d31, #0b0907 88%); }
/* lancer: war-banner stripes, crimson */
.cls-lancer .ct-bg { background: repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 18px, rgba(216,87,78,.07) 18px 36px), radial-gradient(70% 50% at 50% 34%, rgba(216,87,78,.55), transparent 72%), linear-gradient(180deg, #2c0f0d, #0b0907 88%); }
/* archer: forest canopy dapple, green-gold */
.cls-archer .ct-bg { background: radial-gradient(circle at 20% 24%, rgba(230,210,122,.16) 0 2px, transparent 3px) 0 0 / 38px 38px, radial-gradient(circle at 70% 60%, rgba(95,174,74,.18) 0 3px, transparent 4px) 0 0 / 52px 52px, radial-gradient(70% 48% at 50% 38%, rgba(95,174,74,.5), transparent 72%), linear-gradient(180deg, #102410, #0b0907 88%); }
/* monk: holy rays + halo ring, saffron */
.cls-monk .ct-bg { background: radial-gradient(circle at 50% 40%, transparent 0 27%, rgba(255,241,194,.22) 28%, transparent 30.5%), repeating-conic-gradient(from 0deg at 50% 40%, rgba(255,226,150,.09) 0 5deg, transparent 5deg 15deg), radial-gradient(64% 46% at 50% 40%, rgba(233,176,74,.55), transparent 72%), linear-gradient(180deg, #2e1d07, #0b0907 88%); }
/* mage: starfield, arcane violet */
.cls-mage .ct-bg { background: radial-gradient(circle, rgba(185,216,255,.55) 0 1px, transparent 1.5px) 0 0 / 47px 53px, radial-gradient(circle, rgba(138,107,255,.5) 0 1px, transparent 1.5px) 13px 21px / 31px 37px, radial-gradient(70% 48% at 50% 38%, rgba(138,107,255,.55), transparent 72%), linear-gradient(180deg, #170f35, #0b0907 88%); }

/* hero cards (home) */
.banner.ctheme { background: var(--panel); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.banner.ctheme > *:not(.ct-bg) { position: relative; z-index: 1; }
.banner.ctheme::after { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--c), transparent); z-index: 2; }
.banner .bn-no { position: absolute !important; top: 14px; inset-inline-start: 16px; font: 900 13px/1 var(--latin); letter-spacing: .3em; color: var(--hi); opacity: .55; }
.banner .bn-art { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 214px; width: 100%; margin: 34px 0 auto; }
.banner .bn-art .portrait { max-height: 200px; width: auto; filter: drop-shadow(0 12px 14px rgba(0,0,0,.65)); transition: transform .35s; }
.banner:hover .bn-art .portrait { transform: translateY(-4px) scale(1.03); }
.banner .pedestal { top: auto !important; bottom: -6px; }
.banner h3 { color: var(--hi); text-shadow: 0 0 22px color-mix(in srgb, var(--c) 60%, transparent), 0 2px 10px #000; }
.banner .role { color: var(--c) !important; }
.wsock { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.sock { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--r, var(--c)) 70%, transparent); background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--r, var(--c)) 34%, #1a140d) 0, #0b0907 72%); box-shadow: inset 0 0 0 2px rgba(0,0,0,.55), 0 0 14px -4px var(--r, var(--c)); flex: none; }
.sock img { width: 32px; height: 32px; image-rendering: pixelated; filter: drop-shadow(0 1px 0 rgba(0,0,0,.8)) brightness(1.12); }
.sock.lg { width: 64px; height: 64px; }
.sock.lg img { width: 48px; height: 48px; }

/* class stage (classes page) */
.cls-stage.ctheme { min-height: 470px; border-color: color-mix(in srgb, var(--c) 50%, var(--line)); background: none; }
.cls-stage.ctheme > *:not(.ct-bg) { z-index: 1; }
.cls-stage.ctheme::after { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--c), transparent); z-index: 2; }
.cls-stage .portrait.big { position: relative; max-height: 300px; width: auto; margin-bottom: 56px; filter: drop-shadow(0 18px 18px rgba(0,0,0,.7)); animation: bob 3.2s ease-in-out infinite; }
.cls-stage .cls-no { color: var(--hi) !important; }
.stage-weap { position: absolute; bottom: 22px; inset-inline-start: 26px; display: flex; gap: 22px; }
.cls-stage .shadowv { bottom: 20px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .cls-stage .portrait.big { animation: none; } }

/* weapon types rows */
.wtypes { display: grid; gap: 10px; }
.wt { display: grid; grid-template-columns: minmax(150px, 1fr) auto; gap: 18px; align-items: center; padding: 14px 18px; border: 1px solid rgba(201,162,90,.16); border-inline-start: 3px solid var(--c); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 10%, transparent), rgba(0,0,0,.25) 60%); }
[dir=rtl] .wt { background: linear-gradient(270deg, color-mix(in srgb, var(--c) 10%, transparent), rgba(0,0,0,.25) 60%); }
.wt-name b { display: block; font-size: 17px; color: var(--hi); font-weight: 600; }
.wt-name small { display: block; font-size: 12.5px; color: var(--ink3); margin-top: 2px; }
.wt-ladder { display: flex; gap: 14px; padding: 6px 4px; }
.wt-note { font-size: 12.5px; color: var(--ink3); margin: 4px 0 0; }
@media (max-width: 640px) {
  .banner .bn-art { height: 150px; margin-top: 26px; } .banner .bn-art .portrait { max-height: 140px; }
  .wsock { gap: 6px; } .banner .sock { width: 36px; height: 36px; } .banner .sock img { width: 28px; height: 28px; }
  .cls-stage.ctheme { min-height: 380px; } .cls-stage .portrait.big { max-height: 220px; max-width: 86%; }
  .stage-weap { gap: 16px; inset-inline-start: 18px; } .sock.lg { width: 52px; height: 52px; } .sock.lg img { width: 40px; height: 40px; }
  .wt { grid-template-columns: 1fr; gap: 10px; } .wt-ladder { gap: 12px; }
}
.cls-stage.ctheme .shadowv { z-index: 2; top: auto; bottom: 18px; inset-inline-end: 14px; inset-inline-start: auto; flex-direction: column; gap: 2px; font-size: 11.5px; text-align: center; max-width: 120px; line-height: 1.3; }
.cls-stage.ctheme .shadowv .sprite { transform: scale(.6); margin: -16px 0 -10px; }
/* ---------- 1.7 item system: grades + Excellent (no rarities) ---------- */
.sock.exc { --r: var(--exc); box-shadow: 0 0 10px color-mix(in srgb, var(--exc) 55%, transparent), inset 0 0 8px color-mix(in srgb, var(--exc) 35%, transparent); }
.sock.exc img { filter: drop-shadow(0 0 3px var(--exc)) brightness(1.15); }
.wt-ladder { flex-wrap: wrap; }
.grades { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.grade { padding: 16px 14px; border: 1px solid rgba(201,162,90,.18); border-top: 3px solid var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 60%), var(--panel); }
.grade h4 { font-size: 18px; color: var(--ink); margin: 0; } .grade .g { font: 900 13px/1 var(--latin); color: var(--c); letter-spacing: .08em; }
.grade .pct { font: 900 26px/1 var(--latin); color: var(--ink); margin: 10px 0 4px; }
.grade small { color: var(--ink3); font-size: 12.5px; display: block; line-height: 1.45; }
.grade .icons { display: flex; gap: 3px; margin-top: 10px; flex-wrap: wrap; } .grade .icons img { width: 28px; height: 28px; image-rendering: pixelated; }
.jewels { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.jw { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid rgba(201,162,90,.16); background: var(--panel); }
.jw img { width: 36px; height: 36px; image-rendering: pixelated; } .jw b { display: block; font-size: 14.5px; } .jw small { color: var(--ink3); font-size: 12.5px; }
.exc-demo { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.exc-demo span { display: inline-grid; place-items: center; width: 64px; height: 64px; border: 1px solid rgba(201,162,90,.3); background: #1b140e; }
.exc-demo span.x { border-color: var(--exc); box-shadow: 0 0 14px color-mix(in srgb, var(--exc) 60%, transparent); }
.exc-demo img { width: 48px; height: 48px; image-rendering: pixelated; } .exc-demo span.x img { filter: drop-shadow(0 0 4px var(--exc)); }
