/* NEX-Age web - public site stylesheet (second design pass: alive, bigger visuals, text wordmark).
   The game's own interface language: dark violet glass panels with a thin pink edge, pink / violet accents, cyan for
   secondary, gold for money.  System fonts only (Thai: Leelawadee UI / Noto Sans Thai / Sarabun), no web fonts, no frameworks.
   Motion rules: only transform / opacity animate (one cheap sheen gradient on hover), everything is visible with JS off
   or with prefers-reduced-motion, every hover effect has a scroll / tap twin (.mid = the card nearest the middle of a phone screen). */

:root {
  --pink: #FF3FB4; --pink-2: #FF7ADB; --pink-3: #FFC2EE; --magenta: #E100A6;
  --violet: #8B5CF6; --violet-2: #B48CFF; --cyan: #3DE0FF;
  --gold: #FFD166; --green: #44F09A; --warn: #FFB020; --danger: #FF4D4D;
  --bg: #0b0616;
  --panel-a: rgba(34, 20, 60, 0.82); --panel-b: rgba(14, 8, 28, 0.90);
  --panel-line: rgba(255, 90, 200, 0.45); --line: rgba(255, 255, 255, 0.10);
  --t1: #F6F1FF; --t2: #CFC5EA; --t3: #A197C4;
  /* the game's "+" frame colours (unity/UI/Box.cs Plus = his glow colours; guide_old_plus.py) and their readable text tints (PlusText) */
  --u1: #A8F0F6; --u2: #8CF0A0; --u3: #4D9CFF; --u4: #8A8285; --u5: #C4C12E; --u6: #FF757D; --u7: #2122D9; --u7t: #2122D9;
  --u8: #47C4AC; --u9: #63FF4D; --u10: #C8C8D8; --u11: #2EF2FF; --u12: #E3A6FF; --u12t: #E3A6FF; --u13: #FFAE84; --u13t: #FFAE84;
  --u14: #FFCC82; --u15: #FFFFFF;
  --radius: 14px;
  --font: "Leelawadee UI", "Noto Sans Thai", "Sarabun", Tahoma, sans-serif;
  --font-num: "Segoe UI", "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif;
  --font-wm: "Segoe UI Black", "Segoe UI", "Arial Black", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--t1); font-family: var(--font); font-size: 16px; line-height: 1.75;
  background: var(--bg); position: relative; overflow-x: hidden;
}
main { flex: 1 0 auto; width: 100%; position: relative; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: 2.3rem; } h2 { font-size: 1.7rem; } h3 { font-size: 1.2rem; } h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--pink-2); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.t2 { color: var(--t2); } .t3 { color: var(--t3); }
.gold { color: var(--gold); } .pink { color: var(--pink-2); } .cyan { color: var(--cyan); } .green { color: var(--green); }
.violet { color: var(--violet-2); } .warn { color: var(--warn); } .danger { color: var(--danger); }
.small { font-size: .9rem; } .tiny { font-size: .82rem; }
.center { text-align: center; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.en { font-family: var(--font-num); font-weight: 800; font-style: italic; letter-spacing: .5px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; }
.stack > * + * { margin-top: 14px; }

/* ---------- the background artwork: three soft neon clouds that drift (transform only) over a faint city grid ---------- */
.bgfx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background: radial-gradient(900px 520px at 18% -8%, rgba(94, 44, 160, 0.5), transparent 65%), radial-gradient(760px 420px at 92% 4%, rgba(225, 0, 166, 0.18), transparent 60%); }
.bgfx::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 40%, rgba(0,0,0,.6)); mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 40%, rgba(0,0,0,.6)); }
.bgfx i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .55; will-change: transform; }
.bgfx i:nth-child(1) { left: -20vmax; top: -30vmax; background: radial-gradient(circle, rgba(139, 92, 246, 0.55), rgba(139, 92, 246, 0) 62%); animation: drift1 26s ease-in-out infinite alternate; }
.bgfx i:nth-child(2) { right: -25vmax; top: 10vh; background: radial-gradient(circle, rgba(255, 63, 180, 0.42), rgba(255, 63, 180, 0) 62%); animation: drift2 31s ease-in-out infinite alternate; }
.bgfx i:nth-child(3) { left: 20vw; bottom: -40vmax; background: radial-gradient(circle, rgba(61, 224, 255, 0.28), rgba(61, 224, 255, 0) 62%); animation: drift3 37s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(14vw, 10vh, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-12vw, 24vh, 0) scale(1.1); } }
@keyframes drift3 { to { transform: translate3d(18vw, -14vh, 0) scale(1.2); } }

/* ---------- the wordmark: the game's name as TEXT (italic heavy letters, pink gradient, a slanted band below) ---------- */
.wm { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; text-decoration: none; color: inherit; position: relative; isolation: isolate; font-size: 1.75rem; }
.wm.big { font-size: clamp(3.4rem, 7.6vw, 6.6rem); }
.wm.sm { font-size: 1.1rem; }
.wm-name { position: relative; display: inline-block; font-family: var(--font-wm); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.015em;
  font-size: 1em; line-height: 1; padding: .04em .12em .06em 0;
  background: linear-gradient(180deg, #FFF6FD 0%, #FFC4ED 32%, #FF5BC8 58%, #E100A6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.wm-name::after { content: attr(data-text); position: absolute; left: .07em; top: .09em; z-index: -1; -webkit-text-fill-color: #5A0A3E; color: #5A0A3E;
  text-shadow: 0 0 .35em rgba(255, 63, 180, 0.75), 0 0 1em rgba(255, 63, 180, 0.35); }
.wm-band { position: relative; display: inline-block; margin: .14em 0 0 .3em; padding: .3em 1em .25em; font-family: var(--font-num); font-weight: 800; font-style: normal; font-size: .3em; line-height: 1;
  letter-spacing: .34em; text-transform: uppercase; color: #22061A; isolation: isolate; }
.wm-band::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-16deg); background: linear-gradient(90deg, #FF2FB0, #FF8ADC); box-shadow: 0 0 12px rgba(255, 63, 180, 0.6); border-radius: 2px; }
.wm-band:empty { display: none; }
/* the logo the owner chose (2026-10-06: concept D of _newgame/brand/holo_age) - a picture; the text wordmark above stays as the fallback style */
.logo { display: block; height: 40px; width: auto; filter: drop-shadow(0 0 10px rgba(190, 150, 255, 0.35)); transition: filter .25s ease, transform .25s ease; }
.brand:hover .logo { filter: drop-shadow(0 0 16px rgba(221, 244, 255, 0.75)); transform: translateY(-1px); }
.logo.sm { height: 30px; }
.logo.big { height: auto; width: min(560px, 88vw); margin: 0 0 4px -10px; filter: drop-shadow(0 0 26px rgba(170, 120, 255, 0.45)); }
@media (max-width: 720px) { .logo { height: 34px; } }
/* the slogan under the big name: small, slanted, in the hologram's colours (the owner, 2026-10-06: "cyberpunk + neon + hologram, like +15") */
.slogan { margin: 12px 0 0 4px; font-family: var(--font-num); font-style: italic; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: clamp(.9rem, 1.5vw, 1.2rem); line-height: 1.4;
  background: linear-gradient(90deg, #DDF4FF, #7FE9FF 38%, #C9A6FF 72%, #FF9BE0); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(120, 190, 255, 0.45)); }
.slogan:empty { display: none; }
.wm.big .wm-name { letter-spacing: -.02em; }
.wm.big .wm-band { font-size: .27em; margin: .1em 0 0 .32em; }
.wm.big .wm-name::after { text-shadow: 0 0 .3em rgba(255, 63, 180, 0.85), 0 0 1.2em rgba(255, 63, 180, 0.45); }
.wm.sm .wm-band { font-size: .34em; }
.fanline { display: inline-block; margin: 14px 0 0; padding: 7px 14px 7px 16px; border-left: 3px solid var(--pink); border-radius: 0 10px 10px 0; background: rgba(10, 6, 22, 0.55);
  color: #FFD9F3; font-weight: 700; font-size: clamp(.9rem, 1.4vw, 1rem); line-height: 1.75; text-wrap: balance; box-shadow: inset 0 0 0 1px rgba(255, 122, 219, 0.18), -2px 0 12px rgba(255, 63, 180, 0.35); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, rgba(20, 10, 38, 0.96), rgba(12, 6, 24, 0.94));
  border-bottom: 1px solid var(--panel-line); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45); }
.top::before { content: ""; display: block; height: 2px; background: linear-gradient(90deg, transparent, #FF5BC8 25%, #B48CFF 75%, transparent); opacity: .9; }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 6px 0; }
.brand:hover { text-decoration: none; }
.brand:hover .wm-name { animation: shimmer 1.1s var(--ease); }
.nav { display: flex; gap: 4px; flex: 1 1 auto; }
.nav a { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px; font-weight: 700; color: var(--t2); white-space: nowrap; position: relative; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #FF5BC8, #B48CFF); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: #fff; background: linear-gradient(180deg, rgba(255, 63, 180, 0.34), rgba(255, 63, 180, 0.10)); box-shadow: inset 0 2px 0 #FF5BC8; }
.acct { display: flex; align-items: center; gap: 8px; flex: none; }
.acct .who { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 8px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); color: #fff; font-weight: 700; white-space: nowrap; }
.acct .who:hover { border-color: var(--pink-2); text-decoration: none; }
.coin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: -3px;
  background: radial-gradient(circle at 35% 35%, #FFF3B0, #FFC400 55%, #B57A00); box-shadow: 0 0 6px rgba(255, 196, 0, 0.6); }
.coin.big { width: 28px; height: 28px; }
@media (max-width: 820px) {
  .top .wrap { flex-wrap: wrap; gap: 6px 12px; padding-bottom: 6px; }
  .brand .wm { font-size: 1.45rem; }
  .acct { margin-left: auto; }
  .nav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { height: 34px; padding: 0 12px; }
}

/* ---------- buttons (with a sheen that sweeps across on hover; the hero's main button sweeps by itself) ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 11px;
  font-weight: 700; color: #fff; white-space: nowrap; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform .18s var(--ease), box-shadow .18s ease, filter .18s ease; }
.btn::after { content: ""; position: absolute; inset: -40% -60%; pointer-events: none; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%); }
.btn:hover { text-decoration: none; color: #fff; filter: brightness(1.12); transform: translateY(-2px); }
.btn:hover::after, .btn.mid::after { animation: sheen .75s var(--ease); }
.btn.glow::after { animation: sheen 3.2s var(--ease) infinite; }
.btn:active { transform: translateY(0); }
.btn.primary { background: linear-gradient(180deg, #FF7ADB, #E100A6); border-color: #FFB0E8; box-shadow: 0 0 18px rgba(255, 63, 180, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4); }
.btn.primary:hover { box-shadow: 0 0 28px rgba(255, 63, 180, 0.8), 0 6px 14px rgba(0, 0, 0, 0.4); }
.btn.violet { background: linear-gradient(180deg, #B48CFF, #6D3BD6); border-color: #D5BEFF; box-shadow: 0 0 14px rgba(139, 92, 246, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4); }
.btn.cyan { background: linear-gradient(180deg, #6FEAFF, #0E9AC2); border-color: #B8F4FF; color: #04202A; box-shadow: 0 0 14px rgba(61, 224, 255, 0.45); }
.btn.green { background: linear-gradient(180deg, #5BFFB0, #12A85E); border-color: #B5FFD9; color: #04301A; }
.btn.danger { background: linear-gradient(180deg, #FF7A7A, #C81E1E); border-color: #FFB3B3; }
.btn.big { min-height: 52px; padding: 0 28px; font-size: 1.1rem; border-radius: 14px; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: .92rem; border-radius: 9px; }
.btn[disabled], .btn.dis { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
.btn[disabled]::after, .btn.dis::after { display: none; }
.btn .ic { width: 18px; height: 18px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@keyframes sheen { 0% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(120%) skewX(-20deg); } }
@keyframes shimmer { 0% { filter: brightness(1); } 35% { filter: brightness(1.5); } 100% { filter: brightness(1); } }

/* ---------- panels / cards ---------- */
.panel { position: relative; border-radius: var(--radius); border: 1px solid var(--panel-line);
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 14px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.panel::before { content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #FF5BC8 30%, #B48CFF 70%, transparent); opacity: .9; }
.panel.soft { background: linear-gradient(180deg, rgba(24, 14, 44, 0.72), rgba(10, 6, 22, 0.78)); border-color: rgba(255, 90, 200, 0.3); }
.panel.soft::before { opacity: .5; }
.panel.plain::before { display: none; }
.pad { padding: 22px; } .pad-s { padding: 16px; }
@media (max-width: 600px) { .pad { padding: 18px 16px; } }
.titlebar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, rgba(255, 63, 180, 0.16), rgba(255, 63, 180, 0.02)); }
.titlebar h2, .titlebar h3 { margin: 0; font-size: 1.15rem; color: #fff; text-shadow: 0 0 10px rgba(255, 90, 200, 0.6); }
.titlebar .ic { color: var(--pink-2); width: 22px; height: 22px; }
.card { display: block; color: inherit; transition: transform .2s var(--ease), box-shadow .25s ease, border-color .25s ease; }
.card:hover { text-decoration: none; color: inherit; border-color: rgba(255, 122, 219, 0.8);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 63, 180, 0.25); }
.card:not(.fx):hover { transform: translateY(-4px); }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid.feat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .grid.feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid.feat { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 900px) { .grid.wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

/* ---------- .fx = a card that reacts: light follows the pointer, a slight tilt, a sheen when it is mid-screen on a phone ---------- */
.fx { position: relative; --mx: 50%; --my: 35%; }
.fx::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; z-index: 1;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(255, 170, 230, 0.16), rgba(255, 63, 180, 0.06) 40%, transparent 70%); }
.fx:hover::after, .fx.mid::after { opacity: 1; }
.fx .sheen { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 1; }
.fx .sheen::before { content: ""; position: absolute; inset: -30% -60%; transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent 38%, rgba(255, 255, 255, 0.13) 50%, transparent 62%); }
.fx:hover .sheen::before, .fx.mid .sheen::before { animation: sheen 1.1s var(--ease); }
.fx.mid { border-color: rgba(255, 122, 219, 0.8); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 63, 180, 0.25); }

/* ---------- emblems: big inline-SVG symbols with gradients and glow (the shared gradients live in <svg class="defs"> on each page) ---------- */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.emblem { display: inline-flex; width: 112px; height: 112px; flex: none; position: relative; }
.emblem .em { width: 100%; height: 100%; overflow: visible; }
.emblem.md { width: 84px; height: 84px; } .emblem.sm { width: 56px; height: 56px; } .emblem.xs { width: 40px; height: 40px; }
.em .em-ring { transform-origin: 60px 60px; }
.em .em-g { transform-origin: 60px 60px; }
.em .em-glow { opacity: .55; transition: opacity .3s ease; }
.em .em-spark circle, .em .em-spark path { opacity: .35; transform-origin: center; transform-box: fill-box; }
.fx:hover .em-ring, .fx.mid .em-ring, .emblem:hover .em-ring, .live-em .em-ring { animation: spin 9s linear infinite; }
.fx:hover .em-g, .fx.mid .em-g, .emblem:hover .em-g { animation: bob 1.6s ease-in-out infinite; }
.fx:hover .em-glow, .fx.mid .em-glow, .emblem:hover .em-glow { opacity: 1; }
.fx:hover .em-spark circle, .fx.mid .em-spark circle, .fx:hover .em-spark path, .fx.mid .em-spark path, .emblem:hover .em-spark circle, .emblem:hover .em-spark path { animation: twinkle 1.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.fx:hover .em.star4 .em-g, .fx.mid .em.star4 .em-g { animation: turn90 .9s var(--ease) forwards; }
.fx:hover .em.coin .em-coin, .fx.mid .em.coin .em-coin { animation: flip 1.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.fx:hover .em.bolt .em-g, .fx.mid .em.bolt .em-g { animation: flicker .9s steps(2, end) infinite; }
.fx:hover .em.bot .em-eye, .fx.mid .em.bot .em-eye { animation: blink 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.fx:hover .em.phone .em-phone, .fx.mid .em.phone .em-phone { animation: nod 1.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes turn90 { to { transform: rotate(90deg); } }
@keyframes flip { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.15); } }
@keyframes flicker { 0% { opacity: 1; transform: translateX(0); } 50% { opacity: .55; transform: translateX(2px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-8deg) translateY(-3px); } }

/* ---------- chips / tags ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 13px; font-size: .85rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); color: var(--t2); white-space: nowrap; line-height: 1.3; }
.chip.pink { background: rgba(255, 63, 180, 0.22); border-color: rgba(255, 120, 210, 0.6); color: #fff; }
.chip.green { background: rgba(68, 240, 154, 0.16); border-color: rgba(68, 240, 154, 0.55); color: var(--green); }
.chip.gold { background: rgba(255, 209, 102, 0.16); border-color: rgba(255, 209, 102, 0.55); color: var(--gold); }
.chip.cyan { background: rgba(61, 224, 255, 0.14); border-color: rgba(61, 224, 255, 0.5); color: var(--cyan); }
.chip.warn { background: rgba(255, 176, 32, 0.16); border-color: rgba(255, 176, 32, 0.55); color: var(--warn); }
.chip.soon { background: rgba(255, 176, 32, 0.14); border-color: rgba(255, 176, 32, 0.5); color: #FFCF6B; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.rank { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 6px; font-size: .78rem; font-weight: 800;
  font-family: var(--font-num); letter-spacing: .5px; color: #fff; font-style: italic; line-height: 1.2; vertical-align: middle; }
.rank.hero { background: linear-gradient(180deg, #FF7ADB, #E100A6); box-shadow: 0 0 10px rgba(255, 63, 180, 0.7); }
.rank.shero { background: linear-gradient(180deg, #C9A3FF, #7B3FE4); box-shadow: 0 0 10px rgba(139, 92, 246, 0.8); }
.rank.xhero { background: linear-gradient(180deg, #FFE59A, #FF8A00); color: #2A1400; box-shadow: 0 0 12px rgba(255, 196, 0, 0.8); }
.rank.boss { background: linear-gradient(180deg, #FF8A8A, #D01818); box-shadow: 0 0 10px rgba(255, 60, 60, 0.7); }
.key { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 6px; margin: 0 2px;
  font-size: .82rem; font-weight: 700; color: #fff; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 2px 0 rgba(0, 0, 0, 0.5); font-family: var(--font-num); white-space: nowrap; line-height: 1; }

/* "+" level chips: border + glow in the game's colour, text in the readable tint */
.plus { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 28px; padding: 0 8px; border-radius: 8px;
  font-family: var(--font-num); font-weight: 800; font-size: .95rem; border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; transition: box-shadow .3s ease, transform .3s var(--ease);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.3)); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); white-space: nowrap; }
.plus.u1 { border-color: var(--u1); color: var(--u1); box-shadow: 0 0 7px var(--u1); }
.plus.u2 { border-color: var(--u2); color: var(--u2); box-shadow: 0 0 7px var(--u2); }
.plus.u3 { border-color: var(--u3); color: var(--u3); box-shadow: 0 0 8px var(--u3); }
.plus.u4 { border-color: var(--u4); color: var(--u4); box-shadow: 0 0 8px var(--u4); }
.plus.u5 { border-color: var(--u5); color: var(--u5); box-shadow: 0 0 9px var(--u5); }
.plus.u6 { border-color: var(--u6); color: var(--u6); box-shadow: 0 0 9px var(--u6); }
.plus.u7 { border-color: var(--u7); color: var(--u7t); box-shadow: 0 0 10px var(--u7); }
.plus.u8 { border-color: var(--u8); color: var(--u8); box-shadow: 0 0 10px var(--u8); }
.plus.u9 { border-color: var(--u9); color: var(--u9); box-shadow: 0 0 10px var(--u9); }
.plus.u10 { border-color: var(--u10); color: var(--u10); background: #0c0c12 repeating-linear-gradient(135deg, rgba(200, 200, 216, 0.22) 0 2px, transparent 2px 7px); box-shadow: 0 0 10px rgba(200, 200, 216, 0.8); }
.plus.u11 { border-color: var(--u11); color: var(--u11); background: #0f2a6b radial-gradient(circle at 30% 30%, rgba(46, 242, 255, 0.45), transparent 55%); box-shadow: 0 0 12px var(--u11); }
.plus.u12 { border-color: var(--u12); color: var(--u12t); background: linear-gradient(180deg, #4a1d80, #1d0a36); box-shadow: 0 0 12px var(--u12); }
.plus.u13 { border-color: var(--u13); color: var(--u13t); box-shadow: 0 0 12px var(--u13); }
.plus.u14 { border-color: var(--u14); color: var(--u14); box-shadow: 0 0 14px var(--u14), 0 0 4px #fff; }
.plus.u15 { border-color: var(--u15); color: #fff; background: linear-gradient(180deg, rgba(221, 244, 255, 0.35), rgba(120, 190, 255, 0.12)); box-shadow: 0 0 16px var(--u15), 0 0 5px #fff; }
.c-u1 { color: var(--u1); } .c-u2 { color: var(--u2); } .c-u3 { color: var(--u3); } .c-u4 { color: var(--u4); } .c-u5 { color: var(--u5); }
.c-u6 { color: var(--u6); } .c-u7 { color: var(--u7t); } .c-u8 { color: var(--u8); } .c-u9 { color: var(--u9); } .c-u10 { color: var(--u10); }
.c-u11 { color: var(--u11); } .c-u12 { color: var(--u12t); } .c-u13 { color: var(--u13t); } .c-u14 { color: var(--u14); } .c-u15 { color: var(--u15); }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 700; margin-bottom: 6px; color: var(--t2); }
.input { width: 100%; min-height: 46px; padding: 8px 14px; border-radius: 11px; color: var(--t1); font-size: 1rem; transition: box-shadow .25s ease, border-color .25s ease;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4); }
.input:focus { outline: none; border-color: var(--pink-2); box-shadow: 0 0 0 3px rgba(255, 63, 180, 0.28), 0 0 18px rgba(255, 63, 180, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.4); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input::placeholder { color: #7F74A6; }
.help { color: var(--t3); font-size: .9rem; margin-top: 4px; }
.err { color: #FF8A8A; font-size: .92rem; margin-top: 5px; min-height: 1.3em; }
.msg { border-radius: 11px; padding: 12px 14px; margin: 12px 0; border: 1px solid; line-height: 1.6; }
.msg.ok { background: rgba(68, 240, 154, 0.12); border-color: rgba(68, 240, 154, 0.5); color: #BFFFDD; }
.msg.bad { background: rgba(255, 77, 77, 0.12); border-color: rgba(255, 77, 77, 0.55); color: #FFC9C9; }
.msg.info { background: rgba(61, 224, 255, 0.1); border-color: rgba(61, 224, 255, 0.45); color: #D6F7FF; }
.msg.warn { background: rgba(255, 176, 32, 0.12); border-color: rgba(255, 176, 32, 0.5); color: #FFE5B4; }
.formbox { max-width: 460px; margin: 0 auto; }
.stepper { display: inline-flex; align-items: center; height: 38px; border-radius: 10px; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.2); overflow: hidden; }
.stepper button { width: 38px; height: 100%; border: 0; background: rgba(255, 255, 255, 0.07); color: #fff; font-size: 1.2rem; font-weight: 800; }
.stepper button:hover { background: rgba(255, 63, 180, 0.35); }
.stepper input { width: 56px; height: 100%; border: 0; background: transparent; text-align: center; font-weight: 800; color: #fff; font-family: var(--font-num); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.select { min-height: 42px; padding: 0 36px 0 12px; border-radius: 10px; color: #fff; font-weight: 700; background: rgba(0, 0, 0, 0.45) no-repeat right 12px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23FFC2EE' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  border: 1px solid rgba(255, 255, 255, 0.2); -webkit-appearance: none; appearance: none; }
.select option { background: #1b1030; color: #fff; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { position: relative; width: 44px; height: 24px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); flex: none; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #B9AED6; transition: left .15s, background .15s; }
.switch input:checked + i { background: linear-gradient(180deg, #FF7ADB, #E100A6); border-color: #FFB0E8; box-shadow: 0 0 10px rgba(255, 63, 180, 0.55); }
.switch input:checked + i::after { left: 22px; background: #fff; }
.switch input:focus-visible + i { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- tables ---------- */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th { text-align: left; font-weight: 700; color: var(--t3); padding: 10px 12px; border-bottom: 1px solid var(--panel-line); font-size: .85rem; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
.tbl .r { text-align: right; } .tbl .c { text-align: center; }
.tbl th.r { text-align: right; } .tbl th.c { text-align: center; }
.tbl.tight td, .tbl.tight th { padding: 7px 10px; }
.bar { position: relative; height: 12px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.12); overflow: hidden; min-width: 80px; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, #8B5CF6, #FF5BC8); box-shadow: 0 0 8px rgba(199, 125, 255, 0.6); transform-origin: left; }
.bar.green > i { background: linear-gradient(90deg, #12A85E, #5BFFB0); }
.bar.red > i { background: linear-gradient(90deg, #C8103F, #FF7A9E); }
.bar.gold > i { background: linear-gradient(90deg, #FFB020, #FFE59A); }
/* rows that light up in their own colour (--c = the level's aura colour, --ca = the same at 18 %): the upgrade and class ladders */
.lit td { transition: background .35s ease; }
.lit td:first-child { box-shadow: inset 3px 0 0 var(--c, transparent); }
.lit:hover td, .lit.mid td { background: var(--ca, rgba(255,255,255,.05)) !important; }
.lit:hover td:first-child, .lit.mid td:first-child { box-shadow: inset 4px 0 0 var(--c, transparent), inset 60px 0 30px -30px var(--ca, transparent); }
.lit:hover .plus, .lit.mid .plus { transform: scale(1.12); box-shadow: 0 0 14px var(--c), 0 0 30px var(--c); }
.js .lit.rv.in td { animation: rowlight 1.3s ease-out calc(var(--i, 0) * 70ms) both; }
@keyframes rowlight { 0% { background: transparent; } 25% { background: var(--ca, rgba(255,255,255,.06)); } 100% { background: transparent; } }
.js .lit.rv .bar > i { transform: scaleX(0); transition: transform .9s var(--ease) calc(var(--i, 0) * 70ms + .25s); }
.js .lit.rv.in .bar > i { transform: scaleX(1); }

/* ---------- splash = the front page hero (not ".hero": that is the HERO rank tag) ---------- */
.splash { position: relative; overflow: hidden; min-height: min(780px, 88vh); width: 100%; display: flex; align-items: center; isolation: isolate; }
.splash .bg { position: absolute; inset: -6%; z-index: -3; will-change: transform; }
.splash .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; display: block; }
.splash .shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 6, 22, 0.92) 0%, rgba(11, 6, 22, 0.72) 38%, rgba(11, 6, 22, 0.18) 70%, rgba(11, 6, 22, 0.35) 100%),
              linear-gradient(180deg, rgba(11, 6, 22, 0.1), transparent 30%, transparent 70%, var(--bg) 100%); }
.splash canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.splash .inner { position: relative; padding: 64px 0 80px; max-width: 680px; will-change: transform, opacity; }
.splash h1 { font-size: clamp(1.5rem, 2.9vw, 2.2rem); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); margin: 22px 0 10px; text-wrap: balance; }
.splash .pitch { font-size: clamp(1rem, 1.5vw, 1.15rem); color: #E9E1FF; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); max-width: 580px; }
.splash .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 18px; }
.splash .live { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 14px; background: rgba(10, 6, 22, 0.72); border: 1px solid rgba(68, 240, 154, 0.45); }
.splash .live .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2.2s ease-in-out infinite; }
.splash .live b { font-family: var(--font-num); font-size: 1.25rem; color: #fff; }
.splash .scroll-hint { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, 0.45); border-radius: 13px; opacity: .8; }
.splash .scroll-hint::before { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--pink-2); box-shadow: 0 0 8px var(--pink); animation: wheel 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.8); } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@media (max-width: 760px) {
  .splash { min-height: min(86vh, 760px); align-items: flex-end; }
  .splash .bg img { object-position: 50% 30%; }
  .splash .shade { background: linear-gradient(180deg, rgba(11, 6, 22, 0.35), rgba(11, 6, 22, 0.15) 30%, rgba(11, 6, 22, 0.85) 62%, var(--bg) 100%); }
  .splash .inner { padding: 40px 0 44px; }
  .splash .scroll-hint { display: none; }
}

/* ---------- sections ---------- */
.sec { padding: 56px 0; }
.sec.tight { padding: 32px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-head h2 { margin: 0; }
.sec-head .sub { color: var(--t2); margin: 6px 0 0; }
/* a heading whose neon line draws itself in when it arrives */
.neon { position: relative; display: inline-block; padding-bottom: 8px; }
.neon::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; border-radius: 2px; transform-origin: left; transform: scaleX(1);
  background: linear-gradient(90deg, #FF3FB4, #B48CFF 55%, #3DE0FF); box-shadow: 0 0 10px rgba(255, 63, 180, 0.8), 0 0 22px rgba(255, 63, 180, 0.4); }
.js .rv .neon::after, .js .neon.rv::after { transform: scaleX(0); transition: transform .8s var(--ease) .2s; }
.js .rv.in .neon::after, .js .neon.rv.in::after { transform: scaleX(1); }
.feature { padding: 22px 22px 20px; display: flex; flex-direction: column; min-height: 100%; }
.feature .emblem { margin-bottom: 12px; }
.feature h3 { margin-bottom: 6px; font-size: 1.22rem; }
.feature p { color: var(--t2); margin: 0 0 10px; font-size: .95rem; flex: 1 1 auto; }
.feature .more { color: var(--pink-2); font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.feature .more::after { content: "→"; transition: transform .25s var(--ease); }
.feature:hover .more::after, .feature.mid .more::after { transform: translateX(6px); }
.feature .pic { position: absolute; right: 0; top: 0; width: 56%; height: 100%; border-radius: 0 var(--radius) var(--radius) 0; overflow: hidden; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); opacity: .55; transition: opacity .35s ease, transform .6s var(--ease); }
.feature .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature:hover .pic, .feature.mid .pic { opacity: .8; transform: scale(1.05); }
.feature > * { position: relative; z-index: 1; }
.feature > .pic { z-index: 0; }
/* the numbers strip */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 16px 14px 14px; text-align: center; }
.stat b { display: block; font-family: var(--font-num); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; color: #fff; text-shadow: 0 0 14px rgba(255, 63, 180, 0.55); }
.stat b.cyan { text-shadow: 0 0 14px rgba(61, 224, 255, 0.6); } .stat b.gold { text-shadow: 0 0 14px rgba(255, 209, 102, 0.6); } .stat b.violet { text-shadow: 0 0 14px rgba(180, 140, 255, 0.7); } .stat b.green { text-shadow: 0 0 14px rgba(68, 240, 154, 0.6); }
.stat > span { display: block; color: var(--t3); font-size: .88rem; line-height: 1.5; margin-top: 4px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .stat { padding: 12px 8px 10px; } .stat > span { font-size: .78rem; } }
/* the showcase: real pictures of the game */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 14px; }
.shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--panel-line); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 14px 36px rgba(0, 0, 0, 0.45); isolation: isolate; background: #140a24; }
.shot.big { grid-column: span 2; grid-row: span 2; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); z-index: 0; }
.shot:hover img, .shot.mid img { transform: scale(1.06); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; z-index: 2; background: linear-gradient(180deg, transparent, rgba(11, 6, 22, 0.92)); transform: translateY(8px); transition: transform .5s var(--ease); }
.shot:hover figcaption, .shot.mid figcaption { transform: translateY(0); }
.shot figcaption b { display: block; color: #fff; font-size: 1.05rem; text-shadow: 0 1px 4px #000; }
.shot figcaption span { display: block; color: var(--t2); font-size: .88rem; line-height: 1.5; }
.shot .tag { position: absolute; left: 12px; top: 12px; z-index: 2; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; } .shot.big { grid-column: span 2; grid-row: span 2; } }
@media (max-width: 520px) { .shots { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 190px; } .shot.big { grid-column: auto; grid-row: span 2; } }
/* the monster parade: one sprite strip (img/monsters.webp), the row slides by itself and drifts with the scroll */
.parade-sec { padding: 10px 0 0; overflow: hidden; }
.parade-sec .wrap { text-align: center; }
.parade { position: relative; overflow: hidden; padding: 18px 0 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.parade::before { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 63, 180, 0.7), rgba(61, 224, 255, 0.7), transparent); box-shadow: 0 0 12px rgba(255, 63, 180, 0.5); }
.parade .drift { will-change: transform; }
.parade .track { display: flex; width: max-content; animation: parade 70s linear infinite; animation-play-state: paused; will-change: transform; }
.parade.run .track { animation-play-state: running; }
.mon { position: relative; width: 96px; height: 96px; margin: 0 6px; flex: none; transition: transform .3s var(--ease);
  background-image: url("../img/monsters.png"); background-image: image-set(url("../img/monsters.webp") type("image/webp") 1x, url("../img/monsters.png") type("image/png") 1x);
  background-repeat: no-repeat; background-size: auto 96px; background-position: calc(var(--m) * -96px) 0; }
.mon::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -4px; height: 10px; border-radius: 50%; background: rgba(255, 63, 180, 0.35); filter: blur(4px); opacity: 0; transition: opacity .3s ease; }
.mon:hover { transform: scale(1.3) translateY(-10px); z-index: 2; }
.mon:hover::after { opacity: 1; }
@keyframes parade { to { transform: translate3d(-50%, 0, 0); } }
.parade-title { margin: 0; color: var(--t3); font-size: .95rem; }
.parade-title b { color: var(--pink-3); }
/* final call */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); padding: 40px 28px; text-align: center; isolation: isolate; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 100%, rgba(255, 63, 180, 0.35), transparent 65%), linear-gradient(180deg, rgba(11, 6, 22, 0.55), rgba(11, 6, 22, 0.9)); }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 6px; }
.cta-band .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.notice { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.notice:last-child { border-bottom: 0; }
.notice time { color: var(--pink-3); font-family: var(--font-num); font-weight: 700; font-size: .9rem; padding-top: 3px; }
.notice h3 { margin: 0 0 4px; font-size: 1.05rem; }
.notice p { margin: 0; color: var(--t2); }
@media (max-width: 520px) { .notice { grid-template-columns: 1fr; gap: 2px; } }
.banner { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 220px; display: flex; align-items: center; isolation: isolate; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.banner:hover img, .banner.mid img { transform: scale(1.05); }
.banner .shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 6, 22, 0.9), rgba(11, 6, 22, 0.5) 60%, rgba(11, 6, 22, 0.25)); }
.banner .inner { padding: 28px; max-width: 620px; }
.page-head { position: relative; padding: 44px 0 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 6px; }
.page-head .sub { color: var(--t2); font-size: 1.05rem; margin: 0; }
.page-head .emblem { flex: none; }
.page-art { position: relative; overflow: hidden; isolation: isolate; }
.page-art > img { position: absolute; inset: -10% 0 0; width: 100%; height: 110%; object-fit: cover; object-position: 70% 35%; z-index: -2; opacity: .7; will-change: transform; }
.page-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 6, 22, 0.94) 0%, rgba(11, 6, 22, 0.7) 45%, rgba(11, 6, 22, 0.25) 100%), linear-gradient(180deg, rgba(11, 6, 22, 0.2), transparent 30%, transparent 55%, var(--bg) 92%); }

/* ---------- mall ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 19px; font-weight: 700; color: var(--t2); transition: transform .2s var(--ease), box-shadow .2s ease;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.16); }
.tab:hover { color: #fff; border-color: rgba(255, 120, 210, 0.6); transform: translateY(-2px); }
.tab[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #FF7ADB, #E100A6); border-color: #FFB0E8; box-shadow: 0 0 10px rgba(255, 63, 180, 0.5); }
.items { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.item { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.item .head { display: flex; gap: 14px; align-items: flex-start; }
.cell { position: relative; width: 72px; height: 72px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease), box-shadow .3s ease;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.32)); border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.4); }
.cell img { width: 64px; height: 64px; image-rendering: auto; display: block; transition: transform .35s var(--ease); }
.cell.s48 { width: 56px; height: 56px; border-radius: 10px; } .cell.s48 img { width: 48px; height: 48px; }
.cell.s96 { width: 108px; height: 108px; border-radius: 16px; } .cell.s96 img { width: 96px; height: 96px; }
.cell .n { position: absolute; right: 5px; bottom: 2px; font-size: .85rem; font-weight: 800; color: #fff; font-family: var(--font-num); text-shadow: 0 0 3px #000, 0 1px 2px #000, 0 0 2px #000; }
.cell .ph { width: 30px; height: 30px; color: rgba(255, 255, 255, 0.3); }
.item:hover .cell, .item.mid .cell { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 63, 180, 0.55), 0 8px 18px rgba(0, 0, 0, 0.5); border-color: rgba(255, 122, 219, 0.8); }
.item:hover .cell img, .item.mid .cell img { animation: bob 1.4s ease-in-out infinite; }
.item h3 { margin: 0; font-size: 1.1rem; line-height: 1.35; }
.item .en-name { color: var(--t3); font-size: .85rem; font-family: var(--font-num); }
.item .note { color: var(--t2); font-size: .92rem; margin: 0; flex: 1 1 auto; }
.item .price { display: flex; align-items: center; gap: 6px; font-family: var(--font-num); font-weight: 800; font-size: 1.15rem; color: var(--gold); }
.item .buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.item.soon { opacity: .75; }
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: rgba(61, 224, 255, 0.08); border: 1px solid rgba(61, 224, 255, 0.4); }
.callout .ic { color: var(--cyan); width: 26px; height: 26px; margin-top: 2px; }
.callout p { margin: 0; }
dialog.box { border: 1px solid var(--panel-line); border-radius: var(--radius); padding: 0; color: var(--t1); max-width: min(92vw, 440px); width: 100%;
  background: linear-gradient(180deg, #221440, #0e081c); box-shadow: 0 0 0 1px #000, 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 63, 180, 0.25); }
dialog.box::backdrop { background: rgba(5, 2, 12, 0.72); }
dialog.box .body { padding: 18px; }
dialog.box .foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 18px 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); z-index: 90; max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 12px;
  background: linear-gradient(180deg, #2a1850, #140b28); border: 1px solid var(--panel-line); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 63, 180, 0.25);
  opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; font-weight: 700; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { border-color: rgba(255, 77, 77, 0.6); }

/* ---------- account ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.kv > span:nth-child(odd) { color: var(--t3); }
.kv > span:nth-child(even) { font-weight: 700; }
.char { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); transition: border-color .25s ease, background .25s ease; }
.char:hover, .char.mid { border-color: rgba(255, 122, 219, 0.6); background: rgba(255, 63, 180, 0.07); }
.char .av { width: 56px; height: 56px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: #fff;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.2); overflow: hidden; }
.char .av .emblem { width: 52px; height: 52px; }
.char b { font-size: 1.05rem; }
.lvl { font-family: var(--font-num); font-weight: 800; color: var(--pink-3); }

/* ---------- guide ---------- */
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.guide > * { min-width: 0; }
.guide aside { position: sticky; top: 84px; }
.gmenu { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.gmenu a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--t2); font-weight: 700; font-size: .95rem; transition: transform .2s var(--ease), background .2s ease; }
.gmenu a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; text-decoration: none; transform: translateX(4px); }
.gmenu a.on { background: linear-gradient(180deg, rgba(255, 63, 180, 0.34), rgba(255, 63, 180, 0.10)); color: #fff; box-shadow: inset 2px 0 0 #FF5BC8; }
.gmenu a .ic { width: 18px; height: 18px; color: var(--pink-2); }
.gsec { scroll-margin-top: 84px; margin-bottom: 44px; }
.gsec h2 { display: flex; align-items: center; gap: 14px; font-size: 1.8rem; }
.gsec h2 .emblem { flex: none; }
.gsec .lead { font-size: 1.05rem; color: #E6DFFA; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.fact { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); transition: border-color .25s ease, transform .25s var(--ease); }
.fact:hover, .fact.mid { border-color: rgba(255, 122, 219, 0.6); transform: translateY(-3px); }
.fact b { display: block; font-family: var(--font-num); font-size: 1.5rem; color: #fff; line-height: 1.2; }
.fact span { color: var(--t3); font-size: .9rem; }
.classcard { padding: 18px; border-top: 3px solid var(--pink); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.classcard.martial { border-top-color: #FF6A6A; } .classcard.brandish { border-top-color: var(--pink); }
.classcard.chakra { border-top-color: var(--violet-2); } .classcard.prana { border-top-color: var(--cyan); }
.classcard .emblem { margin: 0 0 8px; align-self: center; }
.classcard .en { font-size: 1.45rem; display: block; }
.classcard .th { color: var(--t2); }
.ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.ladder .step { padding: 10px 8px; border-radius: 10px; text-align: center; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.ladder .step b { display: block; font-family: var(--font-num); font-size: 1.05rem; }
.ladder .step small { color: var(--t3); }
.uprow td:first-child { width: 70px; white-space: nowrap; }
#class-table td:first-child { white-space: nowrap; }
.uprow.hl td { background: rgba(255, 255, 255, 0.05); }
.sim { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: end; }
.sim .field { margin: 0; }
.simres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.strike { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.strike .big-plus { min-width: 110px; height: 56px; font-size: 1.6rem; border-radius: 12px; }
.strike .res { font-weight: 800; font-size: 1.1rem; min-height: 1.5em; }
.strike .res.ok { color: var(--green); } .strike .res.stay { color: var(--warn); } .strike .res.down { color: #FF9A6A; } .strike .res.lost { color: var(--danger); }
@keyframes pop { 0% { transform: scale(.9); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
.pop { animation: pop .35s ease; }
.aura { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.aura .lv { padding: 10px; border-radius: 10px; text-align: center; border: 1px solid rgba(255, 140, 60, 0.4); background: radial-gradient(circle at 50% 100%, rgba(255, 120, 40, 0.35), transparent 70%); transition: transform .25s var(--ease); }
.aura .lv:hover, .aura .lv.mid { transform: translateY(-3px); }
.aura .lv b { display: block; color: #FFC46B; font-family: var(--font-num); }
.aura .lv span { color: var(--t3); font-size: .85rem; }
/* the six flame tiles cut from img/flames.jpg (the game's own 3 x 2 sheet of +10 .. +15) */
.flames { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.flame { position: relative; display: block; aspect-ratio: 4 / 4.4; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #140a24 url("../img/flames.jpg") no-repeat; background-size: 300% 230%; transition: transform .35s var(--ease), box-shadow .35s ease; }
.flame:hover, .flame.mid { transform: translateY(-6px) scale(1.04); box-shadow: 0 0 22px var(--c), 0 14px 30px rgba(0, 0, 0, 0.5); border-color: var(--c); z-index: 1; }
.flame .plus { position: absolute; left: 8px; top: 8px; }
.flame .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: .78rem; color: #fff; text-shadow: 0 1px 3px #000; background: linear-gradient(180deg, transparent, rgba(11, 6, 22, 0.9)); line-height: 1.4; }
@media (max-width: 760px) { .flames { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.keys td:first-child { white-space: nowrap; }
.soonlist li { margin-bottom: 6px; }
.toc-m { display: none; }
@media (max-width: 900px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .guide aside { position: sticky; top: 112px; z-index: 5; }
  .gmenu { flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 6px; padding: 8px; scrollbar-width: none; }
  .gmenu::-webkit-scrollbar { display: none; }
  .gmenu a { white-space: nowrap; padding: 6px 12px; font-size: .9rem; }
  .gmenu a:hover { transform: none; }
  .gmenu a .ic { display: none; }
  .gsec h2 { font-size: 1.5rem; }
  .gsec h2 .emblem { width: 44px; height: 44px; }
}

/* ---------- download ---------- */
.steps { counter-reset: s; display: grid; gap: 14px; }
.step-card { position: relative; padding: 18px 18px 18px 84px; }
.step-card::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 16px; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-num); font-weight: 800; font-size: 1.4rem; color: #fff; background: linear-gradient(180deg, #FF7ADB, #E100A6); box-shadow: 0 0 14px rgba(255, 63, 180, 0.5); transition: transform .3s var(--ease), box-shadow .3s ease; }
.step-card:hover::before, .step-card.mid::before { transform: scale(1.12) rotate(-6deg); box-shadow: 0 0 26px rgba(255, 63, 180, 0.8); }
.step-card h3 { margin-bottom: 4px; }
.step-card p { margin: 0; color: var(--t2); }
.platform { padding: 22px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.platform .emblem { margin-bottom: 10px; }
.platform h3 { font-size: 1.3rem; }

/* ---------- footer ---------- */
footer.foot { margin-top: 48px; flex: none; border-top: 1px solid var(--panel-line); background: linear-gradient(180deg, rgba(12, 6, 24, 0.6), rgba(8, 4, 16, 0.95)); padding: 28px 0 36px; color: var(--t2); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer .foot-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
footer .foot-brand .fan { color: var(--t3); font-size: .88rem; }
footer .links { display: flex; gap: 4px 18px; flex-wrap: wrap; }
footer .links a { color: var(--t2); }
footer .mockchip { display: none; }
footer .mockchip.on { display: inline-flex; }

/* ---------- motion / reveal: .rv arrives when it scrolls in (up by default; .rv.left / .right / .zoom give character), --i staggers siblings ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.left { transform: translateX(-28px); } .js .rv.right { transform: translateX(28px); } .js .rv.zoom { transform: scale(.92); } .js .rv.drop { transform: translateY(-18px); }
.js .rv.in { opacity: 1; transform: none; }
html.paused *, html.paused *::before, html.paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv, .js .rv.left, .js .rv.right, .js .rv.zoom, .js .rv.drop { opacity: 1; transform: none; }
  .js .rv .neon::after, .js .neon.rv::after, .js .lit.rv .bar > i { transform: scaleX(1); }
  .bgfx i { opacity: .4; }
  .fx { transform: none !important; }
}
/* html.still = _tools/render.py's "at rest" screenshots (?still=1): the same picture a reduced-motion visitor gets, minus the tilt lock */
html.still *, html.still *::before, html.still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.still .rv { opacity: 1; transform: none; }
html.still .rv .neon::after, html.still .neon.rv::after, html.still .lit.rv .bar > i { transform: scaleX(1); }
