/* Valar: Last Dance website - same frost theme as the launcher (blue crystal + gold from the V emblem). */
@font-face { font-family: "Cinzel"; src: url("../fonts/Cinzel.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #000207; --night: #020B26; --navy: #03144A; --deep: #072E7E; --royal: #1452B3; --blue: #189AFF; --ice: #93C8EF; --frost: #DCEBFA;
  --g1: #7A4A12; --g2: #C16D0B; --g3: #CC893F; --g4: #D7B387; --g5: #F3DDB5;
  --text: #E6F0FA; --muted: #8FA9C6; --dim: #5D7898;
  --ok: #46E39A; --bad: #FF5A6A;
  --ui: "Inter", "Noto Sans Thai", "Leelawadee UI", "Segoe UI", Tahoma, sans-serif;
  --title: "Cinzel", "Noto Sans Thai", "Times New Roman", serif;
  --edge: linear-gradient(135deg, rgba(243,221,181,.95), rgba(215,179,135,.32) 18%, rgba(147,200,239,.14) 50%, rgba(215,179,135,.32) 82%, rgba(243,221,181,.95));
  --plate: url("../img/grain.png"), linear-gradient(180deg, rgba(10,32,80,.86), rgba(2,10,32,.94));
  --gold-text: linear-gradient(180deg, #FFF8EC 0%, #F6E2BE 30%, var(--g4) 55%, var(--g3) 78%, #9A5E1C 100%);
  --wrap: 1200px;
  --top: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--night); color: var(--text); font-family: var(--ui); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:lang(th) body, body[data-lang="th"] { font-size: 15.5px; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--ice); text-decoration: none; transition: color .15s; }
a:hover { color: #fff; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.flip { transform: scaleX(-1); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--royal); color: #fff; }
.skip:focus { top: 10px; }
:focus-visible { outline: 2px solid var(--g4); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.pad { padding-top: 56px; padding-bottom: 8px; }
.narrow { max-width: 900px; }
.center { text-align: center; display: flex; justify-content: center; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
main { display: block; min-height: 60vh; padding-bottom: 72px; }

/* inner pages: the dragon painting, very dark, behind everything */
body.inner::before { content: ""; position: fixed; inset: 0; z-index: -2; background: url("../img/bg.jpg") center 30% / cover no-repeat; opacity: .16; filter: saturate(.8); }
body.inner::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(20,82,179,.25), transparent 60%), linear-gradient(180deg, rgba(2,11,38,.55), var(--night) 70%); }

/* ---------------- top bar ---------------- */
.topbar { position: fixed; left: 0; right: 0; top: 0; z-index: 40; height: var(--top); transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; opacity: 0; transition: opacity .3s;
  background: linear-gradient(90deg, transparent, rgba(215,179,135,.55) 30%, rgba(243,221,181,.9) 50%, rgba(215,179,135,.55) 70%, transparent); }
body.inner .topbar, .topbar.solid { background: rgba(2,10,32,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
body.inner .topbar::after, .topbar.solid::after { opacity: 1; }
.topbar-in { max-width: 1320px; margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 22px; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 0 8px rgba(24,154,255,.55)); transition: transform .3s; }
.brand:hover img { transform: scale(1.06) rotate(-4deg); }
.brand > span { display: flex; flex-direction: column; }
.brand-name { font-family: var(--title); font-weight: 800; font-size: 19px; letter-spacing: 5px; line-height: 1; font-style: normal;
  background: linear-gradient(180deg, #FFF7E8 0%, var(--g5) 38%, var(--g4) 62%, var(--g3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-family: var(--title); font-weight: 600; font-size: 9.5px; letter-spacing: 4.6px; color: #C9DDF2; margin-top: 4px; font-style: normal; }

.mainnav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.mainnav a { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; color: #CFDDEC; font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
:lang(th) .mainnav a { text-transform: none; letter-spacing: .2px; font-size: 14.5px; }
.mainnav a .ic { width: 16px; height: 16px; color: var(--g4); opacity: .85; }
.mainnav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; transform: scaleX(0); transition: transform .25s;
  background: linear-gradient(90deg, transparent, var(--g5), transparent); box-shadow: 0 0 6px var(--g3); }
.mainnav a:hover { color: #fff; text-shadow: 0 0 10px rgba(140,200,255,.6); }
.mainnav a:hover::after, .mainnav a.on::after { transform: scaleX(1); }
.mainnav a.on { color: var(--g5); }
.nav-mobile-extra { display: none; }

.tb-right { display: flex; align-items: center; gap: 10px; flex: none; }
.langs { display: flex; height: 30px; background: rgba(2,10,32,.62); box-shadow: inset 0 0 0 1px rgba(147,200,239,.2), 0 4px 12px rgba(0,0,0,.3); }
.lang { position: relative; display: grid; place-items: center; min-width: 42px; padding: 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: #8FA9C6; }
.lang + .lang::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: rgba(147,200,239,.18); }
.lang:hover { color: #fff; background: rgba(24,154,255,.12); }
.lang.on { color: var(--g5); background: linear-gradient(180deg, rgba(24,154,255,0), rgba(24,154,255,.26)); text-shadow: 0 0 8px rgba(204,137,63,.6); }
.lang.on::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--g5), transparent); box-shadow: 0 0 6px var(--g3); }
.acct-btn { --cut: 9px; position: relative; isolation: isolate; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; font-size: 13px; font-weight: 600; color: #fff; }
.acct-btn::before, .acct-btn::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.acct-btn::before { inset: 0; background: linear-gradient(135deg, var(--g5), var(--g3) 50%, var(--g5)); }
.acct-btn::after { inset: 1px; background: linear-gradient(180deg, #2F86F2, #0B3D9A); transition: filter .2s; }
.acct-btn:hover::after { filter: brightness(1.2); }
.acct-btn.ghost::after { background: linear-gradient(180deg, rgba(18,58,128,.95), rgba(3,14,46,.95)); }
.acct-btn .ic { width: 16px; height: 16px; color: var(--g5); }
.acct-btn span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.burger { display: none; width: 42px; height: 42px; place-items: center; color: var(--g5); box-shadow: inset 0 0 0 1px rgba(215,179,135,.45); background: rgba(2,10,32,.6); }
.burger .ic { width: 22px; height: 22px; }
.burger .i-close { display: none; }
body.nav-open .burger .i-open { display: none; }
body.nav-open .burger .i-close { display: block; }

/* ---------------- flash messages ---------------- */
.flash { position: fixed; z-index: 60; top: calc(var(--top) + 14px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  max-width: calc(100% - 32px); padding: 12px 20px; font-size: 14px; color: #fff; background: rgba(3,14,42,.96);
  box-shadow: inset 0 0 0 1px rgba(215,179,135,.6), 0 14px 30px rgba(0,0,0,.5); animation: flashIn .4s ease-out, flashOut .5s 5s forwards; }
.flash-ok .ic { color: var(--ok); }
.flash-err .ic { color: var(--bad); }
@keyframes flashIn { from { opacity: 0; transform: translate(-50%, -10px); } }
@keyframes flashOut { to { opacity: 0; visibility: hidden; transform: translate(-50%, -10px); } }

/* ---------------- shared panel (chamfered, gold edge, grain face) ---------------- */
.panel { position: relative; isolation: isolate; --cut: 14px; filter: drop-shadow(0 12px 22px rgba(0,0,0,.42)); }
.panel::before, .panel::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.panel::before { inset: 0; background: var(--edge); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.panel::after { inset: 1px; background: var(--plate);
  clip-path: polygon(calc(var(--cut) - .4px) 0, 100% 0, 100% calc(100% - var(--cut) + .4px), calc(100% - var(--cut) + .4px) 100%, 0 100%, 0 calc(var(--cut) - .4px)); }
.card-h { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 13px 22px; }
.card-h::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(215,179,135,.7), rgba(215,179,135,.25) 60%, rgba(215,179,135,0)); }
.card-h span { display: flex; align-items: center; gap: 10px; font-family: var(--title); font-weight: 700; font-size: 14px; letter-spacing: 3px; color: var(--g5); text-shadow: 0 0 10px rgba(204,137,63,.35); text-transform: uppercase; }
:lang(th) .card-h span { letter-spacing: .5px; font-size: 15px; }
.card-h span::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: linear-gradient(135deg, #FFF4DC, var(--g3)); box-shadow: 0 0 6px rgba(204,137,63,.8); flex: none; }
.card-h a, .card-h small { font-size: 12px; color: var(--ice); font-weight: 600; }
.empty { padding: 26px 22px; color: var(--muted); text-align: center; }
.rows { padding: 6px 0 8px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 20px 9px 22px; font-size: 14px; color: var(--muted); }
.row + .row { background: linear-gradient(90deg, rgba(147,200,239,0), rgba(147,200,239,.09) 30%, rgba(147,200,239,.09) 70%, rgba(147,200,239,0)) top / 100% 1px no-repeat; }
.row b { color: #EEF5FC; font-weight: 600; text-align: right; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.st { display: inline-flex; align-items: center; gap: 8px; }
.st i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.st-on i { background: var(--ok); box-shadow: 0 0 0 2px rgba(70,227,154,.18), 0 0 8px var(--ok); }
.st-on { color: #8FF0C0 !important; }
.st-off i { background: var(--bad); box-shadow: 0 0 0 2px rgba(255,90,106,.18), 0 0 8px var(--bad); }
.st-off { color: #FFA3AC !important; }
.st-idle i { background: #6F86A3; }
.st-idle { color: var(--muted) !important; font-size: 12.5px; }

/* the diamond icon frame from the launcher menu */
.dia { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.dia::before { content: ""; position: absolute; inset: 7px; transform: rotate(45deg); transition: .25s;
  background: linear-gradient(180deg, rgba(20,70,160,.75), rgba(4,20,60,.9));
  box-shadow: inset 0 0 0 1px rgba(215,179,135,.75), inset 0 0 0 2px rgba(0,3,16,.6), 0 0 14px rgba(24,154,255,.3); }
.dia .ic { position: relative; width: 18px; height: 18px; color: #CFE5FA; }
.dia.big { width: 72px; height: 72px; }
.dia.big::before { inset: 12px; }
.dia.big .ic { width: 26px; height: 26px; }

/* ---------------- buttons (launcher START / side button shapes) ---------------- */
.cta { --tip: 18px; position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 220px; height: 54px; padding: 0 38px; font-family: var(--title); font-weight: 700; font-size: 15px; letter-spacing: 2.4px; text-transform: uppercase;
  color: #F2F7FD; text-shadow: 0 1px 2px rgba(0,0,0,.85); transition: filter .2s, transform .1s; overflow: hidden; }
:lang(th) .cta { font-family: var(--ui); letter-spacing: .4px; font-size: 16px; font-weight: 600; text-transform: none; }
.cta::before, .cta::after { content: ""; position: absolute; z-index: -2; clip-path: polygon(var(--tip) 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, var(--tip) 100%, 0 50%); }
.cta::before { inset: 0; background: linear-gradient(180deg, #FFF4DC, #E9C893 35%, #B9772E 70%, #6E3F0E); }
.cta::after { inset: 2px; --tip: 17px; background: linear-gradient(180deg, #123A80, #0A2458 50%, #030E2E); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.cta .ic { width: 18px; height: 18px; color: var(--g4); }
.cta span { position: relative; }
.cta-ice { height: 62px; min-width: 250px; font-size: 17px; letter-spacing: 4px; color: #fff; text-shadow: 0 0 14px rgba(200,232,255,.9), 0 2px 0 rgba(0,20,70,.9);
  filter: drop-shadow(0 0 10px rgba(24,154,255,.5)); }
/* face + light sweep live in the clipped ::after, so the sweep never leaves the button shape */
.cta-ice::after { background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.5) 50%, transparent 60%) -150% 0 / 60% 100% no-repeat,
  linear-gradient(180deg, #5DB8FF, #1C6FE0 48%, #1360D2 52%, #03247A); transition: background-position 0s; }
.cta-ice:hover::after { background-position: 250% 0, 0 0; transition: background-position .8s cubic-bezier(.3,.6,.4,1); }
.cta-ice .ic { color: #fff; }
.cta:hover { filter: brightness(1.12) drop-shadow(0 0 16px rgba(24,154,255,.75)); color: #fff; }
.cta-gold:hover .ic { color: var(--g5); }
.cta:active { transform: translateY(1px); }
.cta.wide { width: 100%; }
.btn-sm { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; font-size: 13px; font-weight: 600; color: #E6F0FA;
  background: rgba(24,154,255,.16); box-shadow: inset 0 0 0 1px rgba(147,200,239,.35); transition: background .15s; white-space: nowrap; }
.btn-sm .ic { width: 15px; height: 15px; }
.btn-sm:hover { background: rgba(24,154,255,.32); color: #fff; }
.btn-sm.ghost { background: transparent; }
.btn-sm.danger { color: #FFB0B8; background: rgba(255,90,106,.1); box-shadow: inset 0 0 0 1px rgba(255,90,106,.45); }
.btn-sm.danger:hover { background: rgba(255,90,106,.25); }

/* ---------------- section headings ---------------- */
.kicker { display: flex; align-items: center; gap: 12px; font-family: var(--title); font-weight: 700; font-size: 12px; letter-spacing: 6px; color: var(--g4); }
.kicker i { position: relative; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--g4)); }
.kicker i:last-child { background: linear-gradient(90deg, var(--g4), transparent); }
.kicker i::after { content: ""; position: absolute; top: -2px; width: 5px; height: 5px; background: var(--g5); transform: rotate(45deg); }
.kicker i:first-child::after { right: -2px; } .kicker i:last-child::after { left: -2px; }
.sec-head { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 26px; text-align: center; }
.sec-head h2 { font-family: var(--title); font-weight: 700; font-size: 30px; letter-spacing: 3px; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(40,20,0,.7)); }
:lang(th) .sec-head h2 { font-family: var(--ui); letter-spacing: 0; font-size: 28px; }
.sec-head .more { position: absolute; right: 0; bottom: 6px; display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.sec-head .more .ic { width: 15px; height: 15px; }
.two-col .sec-head, .acc-grid .sec-head { align-items: flex-start; text-align: left; }
.two-col .sec-head .kicker i:first-child { display: none; }

/* ---------------- hero (home) ---------------- */
.hero { position: relative; min-height: max(640px, min(100svh, 980px)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: calc(var(--top) + 20px) 0 120px; }
.hero-bg { position: absolute; inset: -20px; background: url("../img/bg.jpg") 38% 40% / cover no-repeat; transform: scale(1.04); will-change: transform; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(60% 55% at 50% 42%, rgba(2,11,38,.25), rgba(2,11,38,.65) 70%, rgba(2,11,38,.9) 100%),
  linear-gradient(180deg, rgba(0,3,16,.7) 0%, rgba(0,3,16,0) 18%, rgba(0,3,16,0) 55%, rgba(2,11,38,.94) 92%, var(--night) 100%); }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rays { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rays i { position: absolute; top: -10%; height: 120%; transform-origin: 50% 0; transform: rotate(27deg);
  background: linear-gradient(90deg, rgba(170,215,255,0), rgba(190,226,255,.15) 50%, rgba(170,215,255,0));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 22%, transparent 78%); mask-image: linear-gradient(180deg, #000 0%, #000 22%, transparent 78%);
  animation: ray 9s ease-in-out infinite alternate; }
.rays i:nth-child(1) { left: 66%; width: 12%; }
.rays i:nth-child(2) { left: 77%; width: 5%; animation-delay: -3s; }
.rays i:nth-child(3) { left: 84%; width: 10%; animation-delay: -6s; }
@keyframes ray { from { opacity: .45; } to { opacity: 1; } }
.fog { position: absolute; left: 0; width: 300%; pointer-events: none; background: url("../img/fog.png") repeat-x 0 0; animation: fog 90s linear infinite; }
.fog-back { bottom: 18%; height: 30%; background-size: 50% 100%; opacity: .18; }
.fog-front { bottom: 4%; height: 26%; background-size: 34% 100%; opacity: .14; animation-duration: 60s; animation-direction: reverse; }
@keyframes fog { to { transform: translateX(-33.333%); } }
.hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px; }
.emblem-wrap { position: relative; width: 300px; height: 300px; display: grid; place-items: center; margin-bottom: -6px; }
.emblem { position: relative; width: 270px; height: 270px; filter: drop-shadow(0 10px 30px rgba(0,10,40,.7)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.halo { position: absolute; width: 420px; height: 330px; border-radius: 50%; background: radial-gradient(closest-side, rgba(24,154,255,.5), rgba(24,154,255,.2) 40%, rgba(24,154,255,.06) 70%, transparent); animation: halo 6s ease-in-out infinite; }
@keyframes halo { 50% { opacity: .7; transform: scale(.96); } }
.rings { position: absolute; width: 420px; height: 420px; }
.rings i { position: absolute; inset: 0; border-radius: 50%; }
.rings .r1 { inset: 30px; animation: spin 40s linear infinite; }
.rings .r1::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(243,221,181,.08) 0deg, rgba(243,221,181,.85) 70deg, rgba(243,221,181,.08) 140deg, rgba(243,221,181,.08) 180deg, rgba(243,221,181,.85) 250deg, rgba(243,221,181,.08) 320deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.6px), #000 calc(100% - 1.2px), #000 100%); mask: radial-gradient(farthest-side, transparent calc(100% - 1.6px), #000 calc(100% - 1.2px), #000 100%); }
.rings .r1::after { content: ""; position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; margin-left: -3px; transform: rotate(45deg); background: var(--g5); box-shadow: 0 0 8px var(--g3); }
.rings .r2 { inset: 4px; animation: spin 120s linear infinite reverse;
  background: repeating-conic-gradient(rgba(147,200,239,.32) 0deg .5deg, transparent .5deg 5deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 7px), #000 calc(100% - 1px), transparent 100%); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 7px), #000 calc(100% - 1px), transparent 100%); }
.rings .r3 { inset: 62px; border: 1px solid rgba(24,154,255,.22); box-shadow: 0 0 30px rgba(24,154,255,.12) inset; }
@keyframes spin { to { transform: rotate(360deg); } }
.word { font-family: "Cinzel", serif; font-weight: 900; font-size: clamp(54px, 9vw, 96px); letter-spacing: .28em; padding-left: .28em; line-height: 1; margin: 0;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(40,20,0,.85)) drop-shadow(0 0 22px rgba(24,154,255,.4)); }
.sub { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.sub span { font-family: "Cinzel", serif; font-weight: 700; font-size: clamp(16px, 2.3vw, 24px); letter-spacing: .5em; padding-left: .5em; color: #F2F7FD;
  text-shadow: 0 0 12px rgba(24,154,255,.85), 0 2px 2px rgba(0,0,0,.8); }
.sub i { position: relative; width: clamp(40px, 8vw, 90px); height: 1px; background: linear-gradient(90deg, transparent, var(--g4)); }
.sub i:last-child { background: linear-gradient(90deg, var(--g4), transparent); }
.sub i::after { content: ""; position: absolute; width: 6px; height: 6px; background: var(--g5); transform: rotate(45deg); top: -2.5px; }
.sub i:first-child::after { right: -3px; } .sub i:last-child::after { left: -3px; }
.tag, .foot-tag { margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: 6px; padding-left: 6px; color: var(--g4); }
.tag em, .foot-tag em { font-style: normal; font-size: 8px; color: var(--blue); margin: 0 8px; vertical-align: 2px; }
.hero-lead { margin-top: 18px; max-width: 620px; font-size: 17px; color: #CFE0F2; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 26px; margin-top: 30px; }
.hero-cta.left { justify-content: flex-start; }
.countdown { margin-top: 24px; }
.countdown p { font-size: 13px; letter-spacing: 3px; color: var(--g4); text-transform: uppercase; }
.cd-row { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.cd-row span { display: flex; flex-direction: column; align-items: center; min-width: 70px; padding: 8px 6px; background: rgba(2,10,32,.7); box-shadow: inset 0 0 0 1px rgba(215,179,135,.45); }
.cd-row b { font-family: "Cinzel", serif; font-size: 30px; line-height: 1.1; color: #fff; text-shadow: 0 0 12px rgba(24,154,255,.8); }
.cd-row i { font-style: normal; font-size: 11px; color: var(--muted); }

.hero-status { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: stretch;
  width: min(940px, calc(100% - 32px)); background: rgba(2,10,32,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(215,179,135,.35), 0 18px 40px rgba(0,0,0,.45); }
.hero-status::before, .hero-status::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; transform: rotate(45deg); background: linear-gradient(135deg, #FFF4DC, var(--g3)); box-shadow: 0 0 6px rgba(204,137,63,.7); }
.hero-status::before { left: -5px; } .hero-status::after { right: -5px; }
.hs-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 14px 10px; }
.hs-item + .hs-item { background: linear-gradient(180deg, transparent, rgba(147,200,239,.18), transparent) left / 1px 100% no-repeat; }
.hs-item .lbl { font-size: 12px; color: var(--muted); }
.hs-item b { font-size: 16px; color: #fff; font-weight: 700; }

/* ---------------- features ---------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 26px 26px 26px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 16px; row-gap: 6px; transition: transform .25s; }
.feat .dia { grid-row: 1 / span 2; }
.feat h3 { align-self: center; font-size: 18px; color: #F3F8FD; }
.feat p { color: var(--muted); font-size: 14px; }
.feat:hover { transform: translateY(-3px); }
.feat:hover .dia::before { background: linear-gradient(180deg, rgba(60,150,255,.85), rgba(10,60,170,.9)); box-shadow: inset 0 0 0 1px var(--g5), 0 0 16px rgba(24,154,255,.7); }

/* ---------------- two columns: news + rates ---------------- */
.two-col { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: start; }
.news-list { padding: 8px 0; }
.nitem { display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 22px; color: inherit; transition: background .15s; }
.nitem + .nitem { background: linear-gradient(90deg, rgba(147,200,239,0), rgba(147,200,239,.09) 30%, rgba(147,200,239,.09) 70%, rgba(147,200,239,0)) top / 100% 1px no-repeat; }
.nitem:hover { background-color: rgba(24,154,255,.12); color: inherit; }
.nbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nbody b { font-weight: 600; color: #EEF5FC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.nbody i { font-style: normal; font-size: 12.5px; color: var(--dim); }
.nitem .go { width: 16px; height: 16px; color: var(--g4); transition: transform .2s; }
.nitem:hover .go { transform: translateX(3px); }
.ic.pin { width: 15px; height: 15px; color: var(--g4); }
.ntag { flex: none; display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .6px; padding: 3px 8px; color: #CFE6FF; background: rgba(24,154,255,.22); box-shadow: inset 0 0 0 1px rgba(147,200,239,.4); text-transform: uppercase; line-height: 1.3; }
:lang(th) .ntag { text-transform: none; letter-spacing: 0; font-size: 12px; }
.ntag.update { color: var(--g5); background: rgba(204,137,63,.18); box-shadow: inset 0 0 0 1px rgba(215,179,135,.5); }
.ntag.notice { color: #E6EEF6; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.ntag.event { color: #B8F5D6; background: rgba(70,227,154,.12); box-shadow: inset 0 0 0 1px rgba(70,227,154,.4); }
.rates { display: grid; grid-template-columns: repeat(5, 1fr); padding: 18px 12px 10px; }
.rate { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rate span { font-size: 12px; color: var(--muted); }
.rate b { font-family: var(--ui); font-weight: 800; font-size: 22px; color: var(--g5); text-shadow: 0 0 10px rgba(204,137,63,.4); }

/* ---------------- ranking ---------------- */
.rank-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mini-rank { list-style: none; margin: 0; padding: 8px 0 10px; }
.mini-rank li { display: flex; align-items: center; gap: 14px; padding: 9px 22px; }
.mini-rank li + li { background: linear-gradient(90deg, rgba(147,200,239,0), rgba(147,200,239,.08) 30%, rgba(147,200,239,.08) 70%, rgba(147,200,239,0)) top / 100% 1px no-repeat; }
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.who b { font-weight: 600; color: #F1F6FC; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who i { font-style: normal; font-size: 12.5px; color: var(--dim); }
.val { font-family: "Cinzel", serif; font-weight: 700; font-size: 18px; color: var(--g5); }
.pos { display: inline-grid; place-items: center; width: 30px; height: 30px; font-weight: 700; font-size: 13px; color: #CFE0F2; background: rgba(147,200,239,.08); box-shadow: inset 0 0 0 1px rgba(147,200,239,.22); }
.pos.p1 { color: #2A1600; background: linear-gradient(180deg, #FFF4DC, #E9C893 45%, #B9772E); box-shadow: 0 0 12px rgba(204,137,63,.6); }
.pos.p2 { color: #0A1A30; background: linear-gradient(180deg, #F4F8FC, #BFD2E6 50%, #7F95AE); }
.pos.p3 { color: #2A1200; background: linear-gradient(180deg, #F6D2B0, #C98A55 50%, #8A4D22); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tabs a { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; color: #CFDDEC; font-weight: 600; font-size: 14px;
  background: linear-gradient(180deg, rgba(18,58,128,.6), rgba(3,14,46,.8)); box-shadow: inset 0 0 0 1px rgba(147,200,239,.2); }
.tabs a .ic { width: 16px; height: 16px; color: var(--g4); }
.tabs a:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(215,179,135,.6); }
.tabs a.on { color: #fff; background: linear-gradient(180deg, #2F86F2, #0B3D9A); box-shadow: inset 0 0 0 1px var(--g4), 0 0 14px rgba(24,154,255,.45); }
.tabs a.on .ic { color: var(--g5); }
.table-panel { padding: 6px 4px; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.rank { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.rank th { padding: 14px 14px 12px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--g4);
  background: linear-gradient(90deg, rgba(215,179,135,.5), rgba(215,179,135,.08)) bottom / 100% 1px no-repeat; white-space: nowrap; }
:lang(th) table.rank th { text-transform: none; letter-spacing: .2px; font-size: 13px; }
table.rank td { padding: 11px 14px; vertical-align: middle; }
table.rank tbody tr { background: linear-gradient(90deg, rgba(147,200,239,0), rgba(147,200,239,.08) 20%, rgba(147,200,239,.08) 80%, rgba(147,200,239,0)) bottom / 100% 1px no-repeat; transition: background-color .15s; }
table.rank tbody tr:hover { background-color: rgba(24,154,255,.08); }
table.rank .num { text-align: right; }
table.rank .c-pos { width: 56px; }
table.rank tr.dim td { opacity: .55; }
.cname { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #F1F6FC; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); flex: none; }
.nob, .badge { font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 5px; margin-left: 4px; color: #2A1600; background: linear-gradient(180deg, #FFF4DC, #D7B387); vertical-align: 1px; }
.badge { background: rgba(255,255,255,.12); color: #E6EEF6; font-weight: 600; }
.badge.warn { background: rgba(255,90,106,.2); color: #FFB0B8; }
.sub-line { display: flex; align-items: center; gap: 5px; font-style: normal; font-size: 12px; color: var(--dim); }
.sub-line.gold { color: var(--g4); }
.sub-line .ic { width: 13px; height: 13px; }
table.cmd code, code { font-family: Consolas, "Courier New", monospace; font-size: 14px; color: var(--g5); background: rgba(0,0,0,.35); padding: 2px 7px; }
.castle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 6px; }
.castle { padding: 20px 20px 18px; background: rgba(2,10,32,.35); box-shadow: inset 0 0 0 1px rgba(147,200,239,.1); }
.castle h3 { display: inline-block; vertical-align: middle; margin-left: 6px; font-family: "Cinzel", serif; font-size: 19px; letter-spacing: 1.5px; color: var(--g5); }
.castle .dia { display: inline-grid; vertical-align: middle; }
.castle dl { margin: 12px 0 0; }
.castle dl div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; }
.castle dt { color: var(--muted); }
.castle dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------------- inner page banner ---------------- */
.banner { position: relative; padding: calc(var(--top) + 56px) 0 50px; text-align: center; overflow: hidden; }
.banner-bg { position: absolute; inset: 0; z-index: -1; background: url("../img/bg.jpg") 50% 34% / cover no-repeat; opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
.banner-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,11,38,.55), rgba(2,11,38,.82)); }
.banner-in { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.page-title { font-family: var(--title); font-weight: 800; font-size: clamp(32px, 5vw, 50px); letter-spacing: 4px; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(40,20,0,.8)) drop-shadow(0 0 18px rgba(24,154,255,.35)); }
:lang(th) .page-title { font-family: var(--ui); letter-spacing: 0; font-weight: 700; }
.page-lead { color: #CFE0F2; max-width: 640px; }

/* ---------------- news pages ---------------- */
.news-cards { display: grid; gap: 18px; }
.ncard { display: block; padding: 22px 26px 24px; color: inherit; transition: transform .2s; }
.ncard:hover { transform: translateY(-2px); color: inherit; }
.ncard-top { display: flex; align-items: center; gap: 12px; }
.pinned { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--g4); }
.pinned .ic { width: 14px; height: 14px; }
.ndate { margin-left: auto; font-size: 13px; color: var(--dim); }
.ncard h2 { margin-top: 12px; font-size: 22px; color: #F3F8FD; }
.ncard p { margin-top: 8px; color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.pager a { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.pg { color: var(--muted); }
.article { padding: 32px 38px 30px; }
.art-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 20px; margin-bottom: 22px;
  background: linear-gradient(90deg, rgba(215,179,135,.6), rgba(215,179,135,0)) bottom / 100% 1px no-repeat; }
.art-head h1 { flex-basis: 100%; font-size: clamp(24px, 3.4vw, 32px); color: #fff; }
.art-date { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--dim); }
.art-date .ic { width: 15px; height: 15px; }
.prose { font-size: 16px; color: #D9E5F2; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose h3 { margin: 26px 0 10px; font-size: 20px; color: var(--g5); }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--g4); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #fff; }
.art-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 26px; padding-top: 18px;
  background: linear-gradient(90deg, rgba(147,200,239,.25), rgba(147,200,239,0)) top / 100% 1px no-repeat; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* ---------------- forms ---------------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 340px); gap: 28px; justify-content: center; align-items: start; }
.form-wrap.single { grid-template-columns: minmax(0, 480px); }
.form { padding: 30px 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.fld { display: flex; flex-direction: column; gap: 7px; }
.fl { font-size: 14px; font-weight: 600; color: #DCE8F5; }
.fl em { font-style: normal; font-weight: 400; color: var(--dim); }
.fi { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; background: rgba(0,5,22,.72);
  box-shadow: inset 0 0 0 1px rgba(147,200,239,.28); transition: box-shadow .2s; }
.fi:focus-within { box-shadow: inset 0 0 0 1px var(--g4), 0 0 0 3px rgba(24,154,255,.2); }
.fi .ic { width: 17px; height: 17px; color: var(--g4); }
.fi input, .fi select, .fi textarea { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 16px; }
.fi select { cursor: pointer; }
.fi select option { background: #061638; }
.fi.ta { height: auto; padding: 10px 14px; }
.fi textarea { min-height: 260px; resize: vertical; line-height: 1.6; font-size: 15px; }
.fh { font-size: 13px; color: var(--dim); }
.fld.bad .fi { box-shadow: inset 0 0 0 1px rgba(255,90,106,.75); }
.ferr { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: #FFB0B8; }
.ferr .ic { width: 15px; height: 15px; }
.form-alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; color: #FFD3D8; background: rgba(255,90,106,.12); box-shadow: inset 3px 0 0 var(--bad); }
.form-alert .ic { color: var(--bad); }
.eye { width: 30px; height: 30px; flex: none; opacity: .7; background: center / 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393C8EF' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.eye:hover, .eye.on { opacity: 1; }
.cap-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cap-img { width: 200px; height: 64px; box-shadow: inset 0 0 0 1px rgba(215,179,135,.5), 0 0 0 1px rgba(215,179,135,.5); }
.cap-new { width: 44px; height: 44px; display: grid; place-items: center; color: var(--g4); box-shadow: inset 0 0 0 1px rgba(147,200,239,.3); }
.cap-new:hover { color: #fff; background: rgba(24,154,255,.15); }
.cap-in { flex: 1; min-width: 120px; }
.cap-in input { text-transform: uppercase; letter-spacing: 6px; font-weight: 700; }
.form-alt { text-align: center; font-size: 14px; color: var(--muted); }
.side-note { padding-bottom: 10px; }
.ticks { list-style: none; margin: 0; padding: 14px 22px 14px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; color: #CFDDEC; font-size: 14.5px; }
.ticks .ic { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }
.ticks.pad-in { padding: 18px 22px; }
.done-card { grid-column: 1 / -1; max-width: 720px; justify-self: center; padding: 40px 36px 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.done-card h2 { font-size: 24px; color: #fff; }
.done-card .dia.big .ic { color: var(--ok); }
.chk { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; user-select: none; }
.chk input { position: absolute; opacity: 0; }
.chk i { width: 34px; height: 18px; border-radius: 9px; background: rgba(147,200,239,.2); position: relative; transition: .2s; box-shadow: inset 0 0 0 1px rgba(147,200,239,.35); flex: none; }
.chk i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #9FB8D3; transition: .2s; }
.chk input:checked + i { background: rgba(24,154,255,.6); box-shadow: inset 0 0 0 1px var(--g4); }
.chk input:checked + i::after { left: 19px; background: #fff; }
.chk input:focus-visible + i { outline: 2px solid var(--g4); outline-offset: 2px; }
.fld-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fld-row.two { grid-template-columns: 1fr 1fr; }
.fld.checks { flex-direction: row; align-items: flex-end; gap: 22px; padding-bottom: 12px; flex-wrap: wrap; }

/* ---------------- account ---------------- */
.acc-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.acc-main, .acc-side { display: grid; gap: 22px; }
.char-list { padding: 8px 0; }
.char { display: flex; align-items: center; gap: 14px; padding: 12px 20px; }
.char + .char { background: linear-gradient(90deg, rgba(147,200,239,0), rgba(147,200,239,.09) 30%, rgba(147,200,239,.09) 70%, rgba(147,200,239,0)) top / 100% 1px no-repeat; }
.char-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.char-main b { font-size: 16px; color: #fff; }
.char-main i { font-style: normal; font-size: 13px; color: var(--muted); }
.char-lv { display: flex; align-items: baseline; gap: 4px; }
.char-lv span { font-size: 12px; color: var(--dim); }
.char-lv b { font-family: "Cinzel", serif; font-size: 22px; color: var(--g5); }
.inline-form { gap: 14px; padding: 0 22px 24px; }
.inline-form .card-h { margin: 0 -22px 4px; }
.inline-form .cta { align-self: flex-start; min-width: 0; }
.mini-form { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 20px 20px; }
.mini-form .fi { flex: 1; min-width: 160px; height: 38px; }
.mini-form .fi input { font-size: 14px; }
.mini-form .btn-sm { height: 38px; }
.side-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 18px; color: #E6F0FA; text-align: left; --cut: 10px; }
.side-link b { flex: 1; font-weight: 600; }
.side-link .go { width: 16px; height: 16px; color: var(--g4); }
.side-link:hover { color: #fff; }

/* ---------------- download / guide ---------------- */
.dl-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.dl-card { padding: 30px 32px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dl-card h2 { font-size: 24px; color: #fff; }
.dl-card p { color: var(--muted); }
.dl-card .cta { margin-top: 10px; }
.mirrors { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 6px; }
.soon { margin-top: 8px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(90deg, rgba(204,137,63,.14), rgba(24,154,255,.06)); box-shadow: inset 3px 0 0 var(--g3); }
.soon b { color: var(--g5); }
.soon span { font-size: 14px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 26px 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.step-n { font-family: "Cinzel", serif; font-weight: 900; font-size: 40px; line-height: 1; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { color: #CFDDEC; font-size: 14.5px; }
.guide { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.toc { position: sticky; top: calc(var(--top) + 20px); display: flex; flex-direction: column; padding: 14px 0; --cut: 12px; }
.toc a { padding: 9px 22px; color: #CFDDEC; font-size: 14.5px; font-weight: 500; }
.toc a:hover { color: #fff; background: linear-gradient(90deg, rgba(24,154,255,.24), rgba(24,154,255,0)); }
.guide-body { display: grid; gap: 22px; }
.gsec { padding: 26px 30px 28px; scroll-margin-top: calc(var(--top) + 20px); }
.gsec h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 22px; color: var(--g5); }
.gsec > p { color: #CFDDEC; }
.gsec .ticks { padding: 0; }
.num-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: #CFDDEC; }
.num-list li::marker { color: var(--g4); font-weight: 700; }
.gsec .hero-cta { margin-top: 22px; }
.faq { border-top: 1px solid rgba(147,200,239,.12); }
.faq:last-child { border-bottom: 1px solid rgba(147,200,239,.12); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; cursor: pointer; list-style: none; font-weight: 600; color: #EAF2FB; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 16px; height: 16px; color: var(--g4); transform: rotate(90deg); transition: transform .2s; }
.faq[open] summary .ic { transform: rotate(-90deg); }
.faq p { padding: 0 4px 16px; color: var(--muted); }

/* ---------------- admin ---------------- */
.adm-bar { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.adm-back { margin-bottom: 14px; }
.adm-back a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
table.adm td .ic.pin { vertical-align: -3px; margin-right: 4px; }
table.adm td.right .btn-sm + .btn-sm { margin-left: 6px; }
.adm-actions { display: flex; align-items: center; gap: 16px; }
.del-form { margin-top: 18px; display: flex; justify-content: flex-end; }

/* ---------------- closing band ---------------- */
.band { position: relative; margin-top: 70px; padding: 70px 0; overflow: hidden; text-align: center; }
.band-bg { position: absolute; inset: 0; z-index: -1; background: url("../img/bg.jpg") 70% 60% / cover no-repeat; opacity: .5; }
.band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night), rgba(2,11,38,.55) 40%, rgba(2,11,38,.55) 60%, var(--night)); }
.band h2 { font-size: clamp(22px, 3vw, 30px); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
main:has(.band) { padding-bottom: 0; }

/* ---------------- footer ---------------- */
.foot { position: relative; background: linear-gradient(180deg, rgba(1,6,22,.6), #01061A); padding-bottom: 26px; }
.foot-line { height: 14px; display: grid; place-items: center; }
.foot-line i { position: relative; width: min(720px, 90%); height: 1px; background: linear-gradient(90deg, transparent, rgba(215,179,135,.55) 30%, var(--g5) 50%, rgba(215,179,135,.55) 70%, transparent); }
.foot-line i::after { content: ""; position: absolute; left: 50%; top: -5px; width: 11px; height: 11px; margin-left: -5.5px; transform: rotate(45deg); background: var(--g5); box-shadow: 0 0 0 3px #01061A, 0 0 0 4px rgba(28,111,224,.8); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-top: 40px; padding-bottom: 30px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand img { width: 54px; height: 54px; filter: drop-shadow(0 0 8px rgba(24,154,255,.55)); }
.foot-brand > div { display: flex; flex-direction: column; }
.foot-tag { margin-top: 10px; font-size: 10.5px; padding-left: 0; }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot-col h4 { font-family: var(--title); font-size: 12px; letter-spacing: 3px; color: var(--g4); margin-bottom: 4px; text-transform: uppercase; }
.foot-col a, .foot-col span { color: var(--muted); }
.foot-col a:hover { color: #fff; }
.foot-col b { color: #DCE8F5; font-weight: 600; }
.soc { display: inline-flex; align-items: center; gap: 8px; }
.soc .ic { width: 17px; height: 17px; color: var(--g4); }
.soc.off { opacity: .6; }
.soc em { font-style: normal; font-size: 11px; padding: 0 6px; color: var(--dim); box-shadow: inset 0 0 0 1px rgba(147,200,239,.2); }
.foot-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 18px; font-size: 12px; color: var(--dim);
  background: linear-gradient(90deg, rgba(147,200,239,0), rgba(147,200,239,.15) 30%, rgba(147,200,239,.15) 70%, rgba(147,200,239,0)) top / 100% 1px no-repeat; }

/* ---------------- responsive ---------------- */
@media (max-width: 1180px) {
  .mainnav { position: fixed; z-index: 39; top: var(--top); right: 0; bottom: 0; width: min(320px, 86vw); margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 14px 0 30px; background: rgba(2,10,32,.97); box-shadow: -20px 0 40px rgba(0,0,0,.5), inset 1px 0 0 rgba(215,179,135,.4);
    transform: translateX(105%); transition: transform .3s ease; overflow-y: auto; visibility: hidden; }
  body.nav-open .mainnav { transform: none; visibility: visible; }
  .mainnav a { height: 52px; padding: 0 26px; font-size: 15px; }
  .mainnav a::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; transform: scaleY(0); background: linear-gradient(180deg, var(--g5), var(--g3)); }
  .mainnav a:hover::after, .mainnav a.on::after { transform: scaleY(1); }
  .mainnav a:hover { background: linear-gradient(90deg, rgba(24,154,255,.2), rgba(24,154,255,0)); }
  .nav-mobile-extra { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(147,200,239,.14); }
  .burger { display: grid; }
  /* backdrop-filter would make the fixed menu panel position against the bar instead of the screen */
  body.inner .topbar, .topbar.solid, body.nav-open .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(2,10,32,.97); }
  .topbar-in { gap: 12px; }
  .tb-right { margin-left: auto; }
  body.nav-open::after { content: ""; position: fixed; inset: var(--top) 0 0 0; z-index: 38; background: rgba(0,2,10,.55); }
}
@media (max-width: 980px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .two-col, .acc-grid, .form-wrap, .dl-grid, .guide { grid-template-columns: 1fr; }
  .form-wrap { justify-items: stretch; }
  .steps { grid-template-columns: 1fr 1fr; }
  .castle-grid { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; padding: 8px; }
  .toc a { padding: 8px 14px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .topbar-in { padding: 0 16px; }
  .pad { padding-top: 44px; }
  .acct-btn { display: none; }
  .brand-name { font-size: 17px; letter-spacing: 4px; }
  .brand-sub { letter-spacing: 3.6px; }
  .hero { padding-bottom: 40px; min-height: auto; padding-top: calc(var(--top) + 30px); }
  .emblem-wrap { width: 230px; height: 230px; }
  .emblem { width: 200px; height: 200px; }
  .rings { width: 300px; height: 300px; }
  .halo { width: 300px; height: 240px; }
  .hero-lead { font-size: 15.5px; }
  .hero-status { position: relative; left: auto; bottom: auto; transform: none; margin: 36px auto 0; flex-wrap: wrap; }
  .hs-item { flex: 1 1 33%; padding: 12px 6px; }
  .hs-item + .hs-item { background: none; }
  .cta { min-width: 0; width: 100%; max-width: 360px; }
  .hero-cta { flex-direction: column; gap: 14px; }
  .hero-cta.left { align-items: stretch; }
  .feat-grid, .rank-duo, .steps, .castle-grid, .fld-row, .fld-row.two { grid-template-columns: 1fr; }
  .sec-head h2 { font-size: 24px; }
  .sec-head .more { position: static; }
  .rates { grid-template-columns: repeat(5, 1fr); padding: 16px 4px 8px; }
  .rate b { font-size: 18px; }
  .hide-sm { display: none; }
  table.rank th, table.rank td { padding-left: 10px; padding-right: 10px; }
  .article, .form, .dl-card, .gsec { padding-left: 20px; padding-right: 20px; }
  .inline-form { padding: 0 20px 22px; }
  .inline-form .card-h { margin: 0 -20px 4px; }
  .foot-in { grid-template-columns: 1fr; gap: 24px; }
  .flash { top: calc(var(--top) + 8px); }
  .char { padding: 12px 14px; gap: 10px; }
  .char .st-idle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .snow { display: none; }
}

/* Thai has no letter-spaced capitals: keep Thai labels tight */
:lang(th) .foot-col h4 { font-family: var(--ui); letter-spacing: .3px; font-size: 14px; }
:lang(th) .countdown p { letter-spacing: .5px; }
.cta { white-space: nowrap; }
@media (max-width: 720px) {
  .cta { padding: 0 30px; letter-spacing: 1.6px; font-size: 14px; }
  .cta-ice { letter-spacing: 2.2px; font-size: 15px; height: 58px; }
  .foot-legal { margin-top: 6px; }
}
