/* Truth — website. Font = the game's Prompt (OFL). White type on dark frosted glass over the bright login scene. */
@font-face { font-family: Prompt; src: url(/assets/fonts/Prompt-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Prompt; src: url(/assets/fonts/Prompt-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Prompt; src: url(/assets/fonts/Prompt-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Prompt; src: url(/assets/fonts/Prompt-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

@property --cd { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

:root {
  --ink: #fff;
  --ink-2: rgba(255, 255, 255, .76);
  --ink-3: rgba(255, 255, 255, .52);
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .24);
  --glass: rgba(13, 21, 40, .56);
  --glass-2: rgba(10, 16, 32, .72);
  --navy: #0F1B2D;
  --chip: rgba(10, 20, 51, .92);
  /* buttons: playful, low saturation */
  --sky: #4F93D8; --sky-h: #5EA1E4;
  --coral: #E5806F; --coral-h: #EC8F7F;
  --mint: #55B894; --mint-h: #63C4A1;
  --honey: #E0B05A; --honey-h: #E8BC6C;
  --lilac: #9886D8; --lilac-h: #A595E0;
  /* in-game skill disc fill (UI.Accent) */
  --accent: #3B85CC;
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --pad: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 Prompt, "Noto Sans Thai", system-ui, sans-serif; color: var(--ink); background: #CFE0F2; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-loading { overflow: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
svg.i, .nav svg, .dl svg, .modal svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: rgba(79, 147, 216, .45); }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 24px 60px -24px rgba(8, 18, 40, .55);
}

/* ------------------------------------------------------------------ buttons */
.btn {
  --b: var(--sky); --bh: var(--sky-h);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-weight: 600; color: #fff; background: var(--b);
  transition: transform .25s var(--ease), background-color .25s;
  -webkit-tap-highlight-color: transparent;
}
/* flat: no shadow, hover = lighter fill only */
.btn:hover { background: var(--bh); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn .i { width: 20px; height: 20px; flex: none; }
.btn--coral { --b: var(--coral); --bh: var(--coral-h); }
.btn--mint { --b: var(--mint); --bh: var(--mint-h); }
.btn--honey { --b: var(--honey); --bh: var(--honey-h); color: #3A2A0C; }
.btn--ghost { background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset; }
.btn--sm { padding: 8px 16px; font-size: 15px; }
.btn--lg { padding: 14px 26px; font-size: 17px; }
.btn--xl { padding: 18px 34px; font-size: 19px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; pointer-events: none; }
.btn.is-busy { pointer-events: none; color: transparent; }
.btn.is-busy::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ------------------------------------------------------------------ splash (game loading heads) */
.splash { position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--navy); transition: clip-path 1s var(--ease-io), visibility 0s 1s; clip-path: inset(0 0 0 0); }
.splash__heads { width: min(34vmin, 190px); height: auto; aspect-ratio: 1; }
.splash__bar { width: 132px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.splash__bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); transition: transform .4s var(--ease); }
.splash__pct { font-size: 13px; letter-spacing: .14em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.splash.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.splash.is-done .splash__heads, .splash.is-done .splash__bar, .splash.is-done .splash__pct { opacity: 0; transform: translateY(-24px) scale(.94); transition: .5s var(--ease); }

/* ------------------------------------------------------------------ background scene */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #CFE0F2; }
.scene__poster, .scene__gl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene__poster { transform: scale(1.04); filter: blur(var(--scene-blur, 0px)); transition: filter .3s; }
.scene__gl { opacity: 0; transition: opacity 1.2s var(--ease); }
.scene.is-gl .scene__gl { opacity: 1; }
.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(15, 27, 45, var(--scene-dim, 0)); }

/* ------------------------------------------------------------------ nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 12px var(--pad) 0; pointer-events: none; }
.nav__inner {
  pointer-events: auto; max-width: var(--maxw); height: calc(var(--nav-h) - 12px); margin: 0 auto; padding: 0 10px 0 18px;
  display: flex; align-items: center; gap: 18px; border-radius: 999px;
  background: rgba(13, 21, 40, .34); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .16); transition: background-color .4s, transform .6s var(--ease);
}
.nav.is-solid .nav__inner { background: rgba(13, 21, 40, .66); }
.nav.is-hidden .nav__inner { transform: translateY(-120%); }
.nav__logo img { height: 40px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 20, 60, .35)); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { position: relative; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--ink-2); transition: color .25s, background-color .25s; }
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__links a.is-on { color: #fff; }
.nav__links a.is-on::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #fff; }
.nav__menu { display: none; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 1px var(--line) inset; cursor: pointer; place-content: center; gap: 5px; transition: background-color .25s; }
.nav__menu:hover { background: rgba(255, 255, 255, .2); }
.nav__menu span { display: block; width: 16px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease); }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
/* header controls share one 40 px height; the pill end radius = inner height / 2, so right padding = (inner height − 40) / 2 keeps the round control concentric */
.nav__cta { flex: none; height: 40px; padding: 0 18px; }

/* ------------------------------------------------------------------ reveal / intro animation */
[data-reveal] { opacity: 0; transform: translateY(36px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-in] { opacity: 0; transform: translateY(26px) scale(.985); }
body.is-ready [data-in] { opacity: 1; transform: none; transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
body.is-ready [data-in="2"] { transition-delay: .18s; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--nav-h) + 24px) var(--pad) 96px; }
.hero__inner { width: 100%; max-width: var(--maxw); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero__logo img { width: min(100%, 620px); height: auto; filter: drop-shadow(0 18px 40px rgba(20, 50, 110, .35)); }
.hero__card { padding: clamp(24px, 3vw, 36px); }
.hero__quote { font-size: clamp(20px, 2.1vw, 26px); font-weight: 500; line-height: 1.45; }
.hero__quote b { font-weight: 600; }
.hero__sub { margin-top: 6px; color: var(--ink-3); font-size: 15px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__facts { list-style: none; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__facts li { display: grid; }
.hero__facts b { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero__facts span { color: var(--ink-3); font-size: 14px; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 2px 10px rgba(0, 20, 60, .3); }
.hero__scroll i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollcue 2s var(--ease) infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ------------------------------------------------------------------ sections */
.sec { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--pad) 0; }
.sec__head { display: grid; gap: 4px; margin-bottom: 26px; padding: 18px 26px; width: fit-content; max-width: 100%; border-radius: var(--r-md); background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--line); }
.sec__head h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.01em; }
.sec__head p { color: var(--ink-2); font-size: 16px; }

/* ------------------------------------------------------------------ news */
.news { padding: clamp(18px, 2.6vw, 28px); }
.news__filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.news__filters button { border: 0; padding: 7px 16px; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 15px; transition: background-color .25s, color .25s; }
.news__filters button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.news__filters button[aria-selected="true"] { color: var(--navy); background: #fff; font-weight: 500; }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.news__grid.is-swap { animation: swapin .55s var(--ease); }
@keyframes swapin { from { opacity: 0; transform: translateY(10px); } }
.post { position: relative; display: flex; flex-direction: column; min-height: 196px; padding: 0; overflow: hidden; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); cursor: pointer; text-align: left; transition: transform .45s var(--ease), background-color .3s, border-color .3s; }
.post:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); border-color: var(--line-2); }
.post:active { transform: translateY(-1px) scale(.99); }
.post__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.post--lead { grid-column: span 2; grid-row: span 2; min-height: 100%; }
.post--lead .post__body { padding: 24px 26px 26px; }
.post--lead h3 { font-size: clamp(24px, 2.6vw, 32px); }
.post__img { display: block; width: 100%; max-width: none; flex: none; aspect-ratio: 16 / 7; object-fit: cover; border-bottom: 1px solid var(--line); transition: transform .8s var(--ease); }
.post:hover .post__img { transform: scale(1.03); }
.post__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.post h3 { font-size: 19px; font-weight: 600; }
.post p { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post__go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.post__go::after { content: ""; width: 14px; height: 1.5px; background: currentColor; transition: width .4s var(--ease); }
.post:hover .post__go::after { width: 26px; }
.pin { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #fff; background: var(--c, var(--sky)); }
.chip[data-cat="update"] { --c: var(--sky); }
.chip[data-cat="event"] { --c: var(--coral); }
.chip[data-cat="patch"] { --c: var(--mint); }
.chip[data-cat="notice"] { --c: var(--honey); color: #3A2A0C; }
.news__skel { min-height: 196px; border-radius: var(--r-md); }
/* skeleton shimmer: small images / text while loading, shaped like the object (border-radius comes from the element) */
.news__skel, .skel { background: linear-gradient(100deg, rgba(255, 255, 255, .06) 30%, rgba(255, 255, 255, .17) 50%, rgba(255, 255, 255, .06) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
img.skel { color: transparent; }
img.is-in { animation: imgin .45s var(--ease); }
@keyframes imgin { from { opacity: 0; transform: scale(.96); } }
.tskel { display: inline-block; width: 4.5em; height: .9em; border-radius: 6px; vertical-align: middle; }
/* the game's loading indicator (Resources/Intro/loading_heads: 10 × 10 sheet, 97 frames @ 30 fps) for waits on video / large images */
.lh { --sz: 96px; position: absolute; left: 50%; top: 50%; width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2); pointer-events: none;
  background: url(/assets/ui/loading_heads.webp) 0 0 / 1000% 1000% no-repeat; animation: lhx .3333s steps(10) infinite, lhy 3.3333s steps(10) infinite;
  opacity: 0; transition: opacity .35s; z-index: 2; }
@keyframes lhx { to { background-position-x: 111.111%; } }
@keyframes lhy { to { background-position-y: 111.111%; } }
.is-waiting > .lh { opacity: 1; }
.races__stage .lh { --sz: 132px; }
.arm__media .lh { --sz: clamp(72px, 14vw, 112px); }
.arm__media.is-missing .lh { display: none; }
.news__empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--ink-3); }
.news__more { display: flex; margin: 20px auto 0; }

/* ------------------------------------------------------------------ download */
.dl { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; overflow: hidden; }
.dl__main { grid-row: span 2; padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 26px; }
.dl__platform { display: flex; align-items: center; gap: 16px; }
.dl__platform svg { width: 52px; height: 52px; fill: #fff; stroke: none; }
.dl__platform b { display: block; font-size: 30px; font-weight: 600; line-height: 1.1; }
.dl__platform span { color: var(--ink-3); font-size: 15px; }
.dl__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.dl__meta div { padding: 14px 16px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .06); }
.dl__meta dt { font-size: 13px; color: var(--ink-3); }
.dl__meta dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dl__btn { align-self: flex-start; }
.dl__hash { display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 0; border: 0; background: none; cursor: copy; color: var(--ink-3); font-size: 12px; text-align: left; }
.dl__hash code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; }
.dl__hash:hover { color: var(--ink-2); }
.dl__hash.is-copied span::after { content: " • คัดลอกแล้ว"; color: var(--mint-h); }
.dl__steps { list-style: none; margin: 0; padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; counter-reset: s; border-bottom: 1px solid var(--line); }
.dl__steps li { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; counter-increment: s; }
.dl__steps li::before { content: counter(s); grid-row: span 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); font-weight: 600; }
.dl__steps b { font-weight: 600; }
.dl__steps span { color: var(--ink-3); font-size: 15px; }
.dl__req { padding: clamp(24px, 3vw, 36px); }
.dl__req h3 { font-size: 15px; font-weight: 500; color: var(--ink-3); margin-bottom: 12px; }
.dl__req ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 15px; }
.dl__req li span { display: block; font-size: 12px; color: var(--ink-3); }

/* ------------------------------------------------------------------ races */
.races { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(16px, 4vw, 56px); padding: clamp(20px, 4vw, 48px); overflow: hidden; }
.races__stage { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.races__ring { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--rc, #5B9BEB) 22%, transparent), transparent); transition: background .6s; }
.races__ring::before { content: ""; position: absolute; inset: -2%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .22); animation: spin 60s linear infinite; }
.races__portrait { position: relative; width: 100%; height: 100%; object-fit: contain; animation: bob 4.6s ease-in-out infinite; transition: opacity .35s, transform .6s var(--ease), filter .5s; }
.races__portrait.is-out { opacity: 0; transform: translateY(14px) scale(.9) rotate(-4deg); filter: blur(4px); }
@keyframes bob { 50% { translate: 0 -10px; } }
.races__en { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.races__name { font-size: clamp(40px, 5.4vw, 68px); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.races__desc { margin-top: 10px; font-size: 18px; color: var(--ink-2); min-height: 2.8em; }
.races__en, .races__name, .races__desc { transition: opacity .3s, transform .5s var(--ease); }
.races.is-swap .races__en, .races.is-swap .races__name, .races.is-swap .races__desc { opacity: 0; transform: translateY(8px); }
.races__pick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.races__pick button { position: relative; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); cursor: pointer; transition: transform .4s var(--ease), background-color .3s, box-shadow .3s; }
.races__pick button .rp { --w: 64px; position: absolute; inset: 0; border-radius: 50%; background-repeat: no-repeat; background-size: calc(var(--w) * 24) var(--w); background-position: 0 0; transform: scale(1.12); }
.races__pick button[aria-selected="true"] .rp, .races__pick button:hover .rp { animation: rloop 2s steps(24) infinite; }
@keyframes rloop { to { background-position: calc(var(--w) * -24) 0; } }
.races__pick button:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .14); }
.races__pick button[aria-selected="true"] { background: rgba(255, 255, 255, .18); box-shadow: 0 0 0 2px var(--rc, #fff); }
.races__pick button span { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); font-size: 12px; white-space: nowrap; color: var(--ink-3); opacity: 0; transition: .3s; }
.races__pick button:hover span, .races__pick button[aria-selected="true"] span { opacity: 1; transform: translate(-50%, 6px); }

/* ------------------------------------------------------------------ arsenal */
.arm__classes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 14px; }
.arm__classes::-webkit-scrollbar { display: none; }
.cls { --cc: var(--sky); flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; cursor: pointer; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--line) inset; font-weight: 500; transition: background-color .35s, box-shadow .35s, transform .35s var(--ease); }
.cls img { width: 38px; height: 38px; border-radius: 50%; background: var(--cc); padding: 6px; transition: transform .5s var(--ease); }
.cls:hover { transform: translateY(-2px); }
.cls:hover img { transform: rotate(-8deg) scale(1.06); }
.cls[aria-selected="true"] { background: var(--cc); box-shadow: 0 10px 26px -12px var(--cc); }
.cls[aria-selected="true"] img { background: rgba(255, 255, 255, .22); }
.cls[data-cls="mage"] { --cc: var(--lilac); }
.cls[data-cls="fighter"] { --cc: var(--coral); }
.cls[data-cls="shinobi"] { --cc: var(--mint); }
.cls[data-cls="guardian"] { --cc: var(--sky); }
.cls[data-cls="entertainer"] { --cc: var(--honey); }
.arm__panel { padding: clamp(18px, 2.6vw, 30px); }
.arm__classinfo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.arm__tagline { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; }
.arm__cpass { color: var(--ink-2); font-size: 15px; }
.arm__cpass span { color: var(--ink-3); margin-right: 8px; }
.arm__weapons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.wpn { position: relative; display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 0; border-radius: var(--r-md); background: rgba(255, 255, 255, .05); cursor: pointer; text-align: left; box-shadow: 0 0 0 1px var(--line) inset; transition: background-color .3s, box-shadow .3s, transform .4s var(--ease); }
.wpn img { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); transition: transform .6s var(--ease); }
.wpn b { display: block; font-weight: 600; font-size: 16px; line-height: 1.25; }
.wpn span { font-size: 13px; color: var(--ink-3); }
.wpn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .09); }
.wpn:hover img { transform: rotate(-10deg) scale(1.1); }
.wpn[aria-selected="true"] { background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7) inset; }
.arm__detail { display: grid; grid-template-columns: 1fr; gap: 18px; }
.arm__detail.is-swap .arm__media, .arm__detail.is-swap .arm__text > * { opacity: 0; transform: translateY(12px); }
.arm__detail.is-swap .arm__text > .arm__char { transform: translateX(28px); }
.arm__media, .arm__text > * { transition: opacity .45s var(--ease), transform .6s var(--ease); }
/* weapon info left, the weapon's idle character right; the character is pulled up so its head peeks over the clip */
.arm__text { --cw: clamp(190px, 36%, 360px); --lift: 26%; display: grid; grid-template-columns: minmax(0, 1fr) var(--cw); grid-template-areas: "title char" "hl char" "pass char" "skills skills" "info info"; column-gap: 20px; align-items: start; }
.arm__title { grid-area: title; } .arm__hl { grid-area: hl; } .arm__wpass { grid-area: pass; } .skills { grid-area: skills; } .skills__info { grid-area: info; }
.arm__char { grid-area: char; position: relative; z-index: 3; aspect-ratio: 480 / 594; margin-top: -18px; pointer-events: none; }
.arm__charimg { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transform: translateY(calc(var(--lift) * -1)); filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .35)); }
.arm__char.is-missing .arm__charimg { visibility: hidden; }
.arm__char .lh { --sz: 84px; }
.arm__text > :nth-child(2) { transition-delay: .04s; } .arm__text > :nth-child(3) { transition-delay: .08s; } .arm__text > :nth-child(4) { transition-delay: .12s; } .arm__text > :nth-child(5) { transition-delay: .16s; }
.arm__media { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; background: rgba(0, 0, 0, .25) center / cover no-repeat; box-shadow: 0 0 0 1px var(--line) inset; }
.arm__video { width: 100%; height: 100%; object-fit: cover; }
.arm__videoNote { position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px; font-size: 12px; background: rgba(10, 16, 32, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink-2); }
.arm__media.is-missing .arm__video { visibility: hidden; }
.arm__media.is-missing::after { content: "คลิปเกมเพลย์กำลังจะมา"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); }
.arm__title { display: flex; align-items: center; gap: 14px; }
.arm__wimg { width: 96px; height: 96px; border-radius: 18px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .35)); animation: bob 5s ease-in-out infinite; }
.arm__en { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.arm__title h3 { font-size: clamp(26px, 3vw, 36px); }
.arm__hl { margin-top: 12px; font-size: 18px; font-weight: 500; }
.arm__wpass { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .06); }
.arm__wpass img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.arm__wpass span { font-size: 13px; color: var(--ink-3); }
.arm__wpass b { color: #fff; font-weight: 600; }
.arm__wpass p { font-size: 14px; color: var(--ink-2); }

/* ------------------------------------------------------------------ skill buttons — same as the in-game action discs (CombatHud.Disc / ArtSlot / KeyChip / BuildUltFrame) */
.skills { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 12px; margin-top: 22px; padding-bottom: 14px; }
.sk {
  --s: 62px;
  position: relative; flex: none; width: var(--s); height: var(--s); padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  transition: transform .25s var(--ease), box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.sk:hover { transform: scale(1.05); }
.sk:active { transform: scale(.9); transition-duration: .08s; }
.sk__in { position: absolute; inset: calc(var(--s) * .04); border-radius: 50%; background: var(--accent); overflow: hidden; }
.sk__in img { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; }
.sk__cd { position: absolute; inset: calc(var(--s) * .04); border-radius: 50%; pointer-events: none; background: conic-gradient(rgba(5, 10, 36, .68) var(--cd), transparent 0); transform: scaleX(-1); }
.sk__rim { position: absolute; inset: -3px; border-radius: 50%; pointer-events: none; background: conic-gradient(rgba(140, 217, 255, .95) calc(100% - var(--cd)), transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); opacity: 0; }
.sk.is-cd .sk__cd { animation: cd 1.1s linear forwards; }
.sk.is-cd .sk__rim { opacity: 1; animation: cd 1.1s linear forwards; }
@keyframes cd { from { --cd: 100%; } to { --cd: 0%; } }
.sk__ripple { position: absolute; inset: -2px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 2.5px rgba(178, 242, 255, 1); opacity: 0; }
.sk.is-ready .sk__ripple { animation: ripple .5s cubic-bezier(.33, 1, .68, 1) forwards; }
@keyframes ripple { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.38); } }
.sk[aria-selected="true"] { box-shadow: 0 4px 12px rgba(0, 0, 0, .3), 0 0 0 3px rgba(102, 230, 255, .95); }
.sk__key { position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); min-width: 34px; height: 22px; padding: 0 9px; display: grid; place-items: center; border-radius: 999px; background: var(--chip); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.sk--basic .sk__in { background: #122047; }
/* ultimate: gold / violet ring frame (Resources/UI/ultimate_frame), disc = 0.72 of the frame, soft violet glow + 2 orbiting motes */
.sk--ult { --s: 74px; margin-left: 10px; background: transparent; box-shadow: none; }
.sk--ult .sk__in { inset: 0; background: #2a1d55; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.sk--ult .sk__in img { inset: -15%; width: 130%; height: 130%; }
.sk--ult .sk__cd { inset: 0; }
.sk--ult::before { content: ""; position: absolute; inset: calc(var(--s) * -.39 - 26px); border-radius: 50%; background: radial-gradient(closest-side, rgba(184, 128, 255, .3), transparent); pointer-events: none; }
.sk__frame { position: absolute; left: 50%; top: 50%; width: calc(var(--s) / .72); height: calc(var(--s) / .72); max-width: none; transform: translate(-50%, -50%); pointer-events: none; }
.sk__motes { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; animation: spin 7s linear infinite; }
.sk__motes i { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, #fff, rgba(255, 230, 160, .9) 40%, rgba(255, 200, 120, 0)); }
.sk__motes i:nth-child(1) { width: 14px; height: 14px; left: -7px; top: -7px; transform: rotate(34deg) translateY(calc(var(--s) / .72 * -.395)); }
.sk__motes i:nth-child(2) { width: 10px; height: 10px; left: -5px; top: -5px; transform: rotate(214deg) translateY(calc(var(--s) / .72 * -.395)); }
.sk--ult .sk__rim { background: conic-gradient(rgba(255, 230, 140, .95) calc(100% - var(--cd)), transparent 0); }
.sk--ult[aria-selected="true"] { box-shadow: none; }
.sk--ult[aria-selected="true"] .sk__in { box-shadow: 0 4px 12px rgba(0, 0, 0, .3), 0 0 0 3px rgba(255, 220, 140, .9); }
.sk--ult .sk__key { bottom: calc(var(--s) * -.19 - 11px); }
.skills__info { margin-top: 6px; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .06); min-height: 92px; }
.skills__info b { font-size: 18px; font-weight: 600; }
.skills__info p { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.skills__tag { display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .14); vertical-align: 2px; }
.skills__tag:empty { display: none; }
.skills__info.is-swap > * { animation: swapin .4s var(--ease); }

/* ------------------------------------------------------------------ redeem */
.rd { display: grid; grid-template-columns: 260px 1fr; overflow: hidden; }
.rd__steps { list-style: none; margin: 0; padding: clamp(22px, 3vw, 36px); display: grid; align-content: start; gap: 8px; border-right: 1px solid var(--line); }
.rd__steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-3); transition: color .3s, background-color .3s; }
.rd__steps i { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, .08); transition: background-color .3s, color .3s; }
.rd__steps li.is-on { color: #fff; background: rgba(255, 255, 255, .07); }
.rd__steps li.is-on i { background: #fff; color: var(--navy); }
.rd__steps li.is-done i { background: var(--mint); color: #fff; }
.rd__body { position: relative; padding: clamp(22px, 3vw, 40px); min-height: 360px; }
.rd__form { display: none; max-width: 460px; gap: 16px; }
.rd__form.is-on { display: grid; animation: swapin .5s var(--ease); }
.rd__form .btn { justify-self: start; margin-top: 4px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; color: var(--ink-2); }
.field input, .field select { height: 50px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .07); color: #fff; outline: 0; transition: border-color .25s, background-color .25s, box-shadow .25s; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field select option { background: var(--navy); }
.field input:focus, .field select:focus { border-color: rgba(255, 255, 255, .7); background-color: rgba(255, 255, 255, .11); box-shadow: 0 0 0 4px rgba(79, 147, 216, .25); }
.field input::placeholder { color: var(--ink-3); }
.field--code input { font-size: 20px; letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.field.is-bad input { border-color: var(--coral); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.rd__note { font-size: 13px; color: var(--ink-3); }
.rd__hello { color: var(--ink-2); }
.rd__hello b { color: #fff; }
.rd__link { border: 0; background: none; padding: 0 0 0 8px; color: var(--ink-3); text-decoration: underline; cursor: pointer; font-size: 14px; }
.rd__link:hover { color: #fff; }
.rd__ts:empty { display: none; }
.rd__msg { margin-top: 18px; max-width: 520px; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(229, 128, 111, .18); border: 1px solid rgba(229, 128, 111, .45); animation: swapin .4s var(--ease); }
.rd__msg.is-ok { background: rgba(85, 184, 148, .18); border-color: rgba(85, 184, 148, .5); }
.rd__msg b { display: block; font-weight: 600; margin-bottom: 4px; }
.rd__reward { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rd__reward span { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 14px; }

/* ------------------------------------------------------------------ footer */
.foot { margin-top: clamp(80px, 12vw, 140px); padding: 48px var(--pad) calc(32px + env(safe-area-inset-bottom)); background: var(--glass-2); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-top: 1px solid var(--line); }
.foot__inner { max-width: var(--maxw); margin: 0 auto; display: grid; justify-items: center; gap: 22px; text-align: center; }
.foot__studio { position: relative; width: min(280px, 70vw); aspect-ratio: 600 / 219; background: url(/assets/brand/amanus_studio_blink.webp) 0 0 / 800% 100% no-repeat; transition: transform .6s var(--ease); animation: blink 4.2s step-end infinite; }
.foot__studio img { width: 100%; height: 100%; animation: blinkhide 4.2s step-end infinite; }
/* eye blink of the studio logo: the static logo shows between blinks; the 8-frame sprite (30 fps) only during the blink — step-end = no sliding between frames */
@keyframes blink {
  0% { background-position-x: 0%; }
  94% { background-position-x: 14.2857%; } 94.8% { background-position-x: 28.5714%; } 95.6% { background-position-x: 42.8571%; } 96.4% { background-position-x: 57.1429%; }
  97.2% { background-position-x: 71.4286%; } 98% { background-position-x: 85.7143%; } 98.8% { background-position-x: 100%; } 99.6% { background-position-x: 0%; }
}
@keyframes blinkhide { 0% { opacity: 1; } 94% { opacity: 0; } 99.6% { opacity: 1; } }
.foot__studio:hover { transform: rotate(-2deg) scale(1.03); }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.foot__links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.foot__links a:hover { color: #fff; }
.foot__copy { font-size: 13px; color: var(--ink-3); }

/* ------------------------------------------------------------------ modal */
.modal { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: min(720px, calc(100vw - 24px)); width: 100%; max-height: calc(100svh - 48px); overflow: visible; }
.modal::backdrop { background: rgba(8, 14, 28, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modalin .55s var(--ease); }
.modal[open]::backdrop { animation: fadein .4s; }
@keyframes modalin { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fadein { from { opacity: 0; } }
.modal__card { position: relative; max-height: calc(100svh - 48px); overflow: auto; padding: clamp(22px, 4vw, 40px); background: var(--glass-2); overscroll-behavior: contain; }
.modal__x { position: sticky; top: 0; float: right; width: 40px; height: 40px; margin: -10px -10px 0 12px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); cursor: pointer; z-index: 1; transition: background-color .25s, transform .4s var(--ease); }
.modal__x:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }
.modal__x svg { width: 18px; height: 18px; }
.modal__img { width: 100%; border-radius: var(--r-md); margin-bottom: 18px; aspect-ratio: 16 / 8; object-fit: cover; }
.modal__meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); margin-bottom: 10px; }
.modal h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.modal__body { color: var(--ink-2); display: grid; gap: 12px; }
.modal__body ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero__logo img { width: min(78vw, 480px); }
  .hero__card { max-width: 620px; }
  .hero__actions { justify-content: center; }
  .news__grid { grid-template-columns: 1fr 1fr; }
  .post--lead { grid-column: span 2; grid-row: auto; }
  .post--lead .post__body { padding: 22px; }
  .arm__weapons { grid-template-columns: repeat(2, 1fr); }
  .arm__detail { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; }
  .dl__main { grid-row: auto; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav__menu { display: grid; }
  .nav__inner { padding: 0 6px 0 16px; gap: 8px; }
  .nav__cta { margin-left: auto; padding: 0 16px; }
  .nav__links { position: fixed; inset: calc(var(--nav-h) + 8px) 12px auto; flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--r-md); background: rgba(13, 21, 40, .88); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--line); opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: opacity .3s, transform .45s var(--ease); }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 16px; font-size: 17px; }
  .nav__logo img { height: 34px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts b { font-size: 24px; }
  .sec__head { padding: 14px 18px; }
  .news__grid { grid-template-columns: 1fr; }
  .post--lead { grid-column: auto; }
  .dl__meta { grid-template-columns: 1fr 1fr; }
  .dl__meta div:last-child { grid-column: span 2; }
  .dl__btn { align-self: stretch; }
  .races { grid-template-columns: 1fr; text-align: center; }
  .races__stage { max-width: 300px; }
  .races__pick { justify-content: center; }
  .wpn { grid-template-columns: 48px 1fr; padding: 8px 10px 8px 8px; }
  .wpn img { width: 48px; height: 48px; }
  .wpn b { font-size: 14px; }
  .sk { --s: 52px; }
  .sk--ult { --s: 62px; }
  .skills { gap: 18px 10px; }
  .rd { grid-template-columns: 1fr; }
  .rd__steps { grid-auto-flow: column; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px; }
  .rd__steps li { padding: 6px; font-size: 13px; flex-direction: column; gap: 4px; text-align: center; }
  .rd__form .btn { justify-self: stretch; }
  .arm__text { --cw: 40%; column-gap: 10px; }
}
@media (hover: none) { .btn:hover, .post:hover, .wpn:hover, .cls:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal], [data-in] { filter: none; }
}
