/* 3K LEGACY - purple + gold theme (owner mockup design/chatgpt_home_mockup.png) */
:root {
  --bg: #0c0514; --bg2: #160926; --bg3: #211036;
  --panel: rgba(30, 13, 50, .88); --panel2: rgba(46, 20, 76, .9);
  --line: rgba(232, 194, 106, .38); --line2: rgba(232, 194, 106, .7);
  --purple: #6b21a8; --violet: #a855f7; --lilac: #d8b4fe;
  --gold: #e8c26a; --gold2: #fbe7a4; --gold3: #b8862e; --gold4: #7a5418;
  --silver: #dcd8ea; --text: #efe8f8; --muted: #b3a3c9; --dim: #8a7aa3;
  --ok: #4ade80; --bad: #f87171;
  --r: 10px; --shadow: 0 10px 30px rgba(0, 0, 0, .55);
  --f-head: 'Kanit', 'Sarabun', sans-serif; --f-body: 'Sarabun', system-ui, sans-serif; --f-latin: 'Kanit', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 16px/1.6 var(--f-body); min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0, rgba(124, 58, 237, .22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 0 60%, rgba(107, 33, 168, .18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 85%, rgba(107, 33, 168, .16), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120' viewBox='0 0 160 120'%3E%3Cg fill='none' stroke='%23a855f7' stroke-opacity='.07' stroke-width='1.4'%3E%3Cpath d='M10 60c0-11 9-20 20-20s20 9 20 20c0-7 6-13 13-13s13 6 13 13'/%3E%3Cpath d='M30 60c0-5 4-9 9-9s9 4 9 9'/%3E%3Cpath d='M90 110c0-11 9-20 20-20s20 9 20 20c0-7 6-13 13-13s13 6 13 13'/%3E%3Cpath d='M110 110c0-5 4-9 9-9s9 4 9 9'/%3E%3Cpath d='M90 20c0-11 9-20 20-20M150 20c0-7 6-13 13-13'/%3E%3C/g%3E%3C/svg%3E");
}
body.noscroll { overflow: hidden; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold2); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.3; margin: 0 0 .5em; color: var(--gold2); }
h2 { font-size: 22px; } h3 { font-size: 18px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 900px; } .narrow-s { max-width: 480px; margin-left: auto; margin-right: auto; }
.center { text-align: center; } .muted { color: var(--muted); } .small { font-size: 13px; }
.gold-t { color: var(--gold); } .ok-t { color: var(--ok); } .bad-t { color: var(--bad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.inline { display: inline; } .right { margin-left: auto; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.section { padding: 34px 0; }

/* ---------- header ---------- */
.lg-head { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, rgba(14, 6, 24, .97), rgba(22, 9, 38, .94)); border-bottom: 1px solid var(--line); box-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.lg-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.head-in { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand img { display: block; height: 56px; width: auto; filter: drop-shadow(0 2px 8px rgba(168, 85, 247, .45)); }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav > a:not(.btn) { position: relative; padding: 22px 14px; color: var(--silver); font-weight: 600; font-size: 15.5px; white-space: nowrap; }
.nav > a:not(.btn):hover { color: var(--gold2); }
.nav > a:not(.btn).on { color: var(--gold2); background: linear-gradient(180deg, transparent, rgba(232, 194, 106, .12)); }
.nav > a:not(.btn).on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 10px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--gold3), var(--gold2), var(--gold3)); box-shadow: 0 0 10px rgba(251, 231, 164, .6); }
.nav-sp { flex: 1; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--gold); margin: 4px 0; }
.notice-bar { background: linear-gradient(90deg, var(--gold4), var(--gold3), var(--gold4)); color: #1d0c02; font-weight: 700; text-align: center; padding: 7px 0; font-size: 15px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: 8px; font: 700 15px var(--f-body); cursor: pointer; border: 1px solid var(--line2); color: var(--gold2); background: linear-gradient(180deg, #3b1a63, #22103b); transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.18); color: #fff; }
.btn.small { padding: 6px 14px; font-size: 14px; }
.btn.big { padding: 13px 30px; font-size: 17px; }
.btn.block { display: flex; width: 100%; margin-top: 12px; }
.btn.gold, .pill { color: #2a1404; border: 1px solid #fff1bf; background: linear-gradient(180deg, #fff0b5 0%, #f0c968 35%, #c8942f 70%, #8f5f17 100%); box-shadow: 0 0 0 1px rgba(122, 84, 24, .7), 0 6px 18px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .7); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.btn.gold:hover, .pill:hover { color: #1a0b00; filter: brightness(1.08); }
.btn.ghost { background: rgba(20, 8, 34, .6); }
.btn.disabled { opacity: .6; cursor: default; }
.btn.acct { margin-left: 8px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 34px; border-radius: 999px; font: 600 20px var(--f-head); }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(12, 5, 20, .1) 0%, rgba(12, 5, 20, 0) 30%, rgba(18, 7, 32, .5) 55%, rgba(18, 7, 32, .8) 75%, rgba(18, 7, 32, .92) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(12, 5, 20, 0) 28%),
    url(../img/bg/hero.jpg) left -470px top / auto 100% no-repeat,
    linear-gradient(180deg, #2a0f48, #160926);
  min-height: 560px; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 45% 60% at 62% 45%, rgba(168, 85, 247, .28), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 620px) 300px; align-items: center; min-height: 560px; gap: 20px; }
.hero-mid { grid-column: 2; text-align: center; padding: 30px 0; }
.hero-logo { width: 100%; max-width: 620px; height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .8)) drop-shadow(0 0 30px rgba(168, 85, 247, .35)); }
.hero-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.status-card { grid-column: 3; align-self: center; padding: 18px 20px; border-radius: 12px; background: linear-gradient(180deg, rgba(38, 16, 64, .92), rgba(20, 8, 36, .92)); border: 1px solid var(--line2); box-shadow: var(--shadow), inset 0 0 0 3px rgba(20, 8, 34, .9), inset 0 0 0 4px rgba(232, 194, 106, .25); }
.sc-head { display: flex; align-items: center; gap: 10px; font: 500 19px var(--f-head); color: var(--gold2); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sc-head svg { color: var(--gold); }
.sc-state { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 8px; font: 600 22px var(--f-head); }
.sc-state b { color: var(--ok); } .sc-state .dot.off + b { color: var(--bad); }
.dot { width: 13px; height: 13px; border-radius: 50%; background: #888; display: inline-block; flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 12px 3px rgba(74, 222, 128, .7); }
.dot.off { background: var(--bad); box-shadow: 0 0 10px 2px rgba(248, 113, 113, .6); }
.sc-count { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.sc-count span { color: var(--muted); font-size: 14px; }
.sc-count b { font: 700 36px var(--f-latin); color: var(--gold2); text-shadow: 0 0 16px rgba(232, 194, 106, .45); }
.sc-count em { font-style: normal; color: var(--muted); }
.sc-foot { text-align: center; color: var(--dim); font-size: 13px; margin-top: 6px; }

/* ---------- page banner ---------- */
.banner { padding: 46px 0 40px; text-align: center; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 5, 20, .35), var(--bg)), url(../img/bg/banner.jpg) center / cover; }
.banner h1 { font-size: 36px; margin: 0; text-shadow: 0 3px 14px rgba(0, 0, 0, .8); background: linear-gradient(180deg, #fff3c4, #e8c26a 60%, #b8862e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.banner p { margin: 6px 0 0; color: var(--silver); }

/* ---------- panels ---------- */
.panel { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 22px; }
.grid > .panel { margin-bottom: 0; }
.panel.framed { box-shadow: var(--shadow), inset 0 0 0 4px rgba(14, 6, 24, .7), inset 0 0 0 5px rgba(232, 194, 106, .22); }
.panel.framed::before, .panel.framed::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--gold); pointer-events: none; }
.panel.framed::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: var(--r) 0 0 0; }
.panel.framed::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 var(--r) 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.panel-head h2 small { font: 400 14px var(--f-body); color: var(--muted); }
.panel-head svg { color: var(--gold); }
.more { font-size: 14px; white-space: nowrap; }
.empty { color: var(--muted); text-align: center; padding: 18px 8px; }

/* news cards (home) */
.news-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ncard { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 8px; background: rgba(14, 6, 24, .55); border: 1px solid rgba(232, 194, 106, .18); color: var(--text); transition: border-color .15s, transform .15s; }
.ncard:hover { border-color: var(--line2); transform: translateY(-2px); color: var(--text); }
.ncard .th { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 6px; background: #2a1245 center / cover; border: 1px solid rgba(232, 194, 106, .3); }
.ncard .th .chip { position: absolute; left: 6px; top: 6px; }
.ncard .tx { display: flex; flex-direction: column; min-width: 0; }
.ncard b { color: var(--gold2); font-size: 15.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard small { color: var(--muted); font-size: 13px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard em { margin-top: auto; padding-top: 4px; font-style: normal; color: var(--dim); font-size: 13px; }

/* chips */
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; background: #6b21a8; border: 1px solid rgba(255, 255, 255, .2); white-space: nowrap; }
.chip.cat-news { background: linear-gradient(180deg, #8b5cf6, #5b21b6); }
.chip.cat-event { background: linear-gradient(180deg, #e0a93a, #9a6512); color: #1d0c02; }
.chip.cat-update { background: linear-gradient(180deg, #10b981, #047857); }
.chip.cat-maint { background: linear-gradient(180deg, #ef4444, #991b1b); }
.chip.red { background: #991b1b; }
button.chip { cursor: pointer; font-family: var(--f-body); background: rgba(46, 20, 76, .9); color: var(--silver); border-color: var(--line); padding: 5px 13px; }
button.chip.on, button.chip:hover { background: linear-gradient(180deg, #f0c968, #a8782a); color: #1d0c02; }
.chip .cnt { opacity: .6; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }

/* rankings */
.rank-mini { width: 100%; border-collapse: collapse; font-size: 15px; }
.rank-mini th { color: var(--muted); font-weight: 600; font-size: 13px; text-align: left; padding: 6px 6px; border-bottom: 1px solid var(--line); }
.rank-mini td { padding: 9px 6px; border-bottom: 1px solid rgba(232, 194, 106, .12); }
.rank-mini .nm { font-weight: 700; color: var(--text); }
.rank-mini .jb { color: var(--muted); font-size: 14px; }
.medal { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 14px var(--f-latin); color: var(--silver); background: rgba(60, 28, 96, .9); border: 1px solid var(--line); }
.medal.m1 { background: radial-gradient(circle at 35% 30%, #fff6c8, #e8b84a 55%, #8f5f17); color: #2a1404; border-color: #fff1bf; box-shadow: 0 0 10px rgba(232, 194, 106, .7); }
.medal.m2 { background: radial-gradient(circle at 35% 30%, #ffffff, #c7c7d6 55%, #6b6b80); color: #1f1f2b; border-color: #fff; }
.medal.m3 { background: radial-gradient(circle at 35% 30%, #ffd9b0, #c27a3a 55%, #6e3c12); color: #2a1404; border-color: #ffd9b0; }
.no { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; font-weight: 700; background: rgba(60, 28, 96, .9); }
.no.n1 { background: linear-gradient(#fff0b5, #c8942f); color: #2a1404; } .no.n2 { background: linear-gradient(#fff, #9a9ab0); color: #1f1f2b; } .no.n3 { background: linear-gradient(#ffd9b0, #a5652a); color: #2a1404; }
.tbl.rank tr.top td { background: rgba(232, 194, 106, .06); }

/* tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; padding: 10px 12px; color: var(--gold); font-weight: 700; background: rgba(14, 6, 24, .6); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid rgba(232, 194, 106, .12); vertical-align: top; }
.tbl tr:hover td { background: rgba(168, 85, 247, .07); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.mons tr[data-m] { cursor: pointer; }
.mcell { display: flex; align-items: center; gap: 10px; }
.mthumb { width: 40px; height: 40px; object-fit: contain; flex: none; }
.boss { display: inline-block; background: linear-gradient(#ef4444, #991b1b); color: #fff; font-size: 11px; font-weight: 800; padding: 0 6px; border-radius: 4px; margin-left: 4px; }

/* tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs a { padding: 7px 16px; border-radius: 8px; border: 1px solid var(--line); color: var(--silver); background: rgba(30, 13, 50, .8); font-weight: 600; }
.tabs a.on, .tabs a:hover { color: #1d0c02; background: linear-gradient(180deg, #f6dc8c, #c8942f); border-color: #fff1bf; }
.tabs.sub a { padding: 4px 12px; font-size: 14px; }

/* news list page */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li a { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid rgba(232, 194, 106, .14); color: var(--text); }
.news-list li a:hover .t { color: var(--gold2); }
.news-list .t { flex: 1; min-width: 0; font-weight: 600; }
.news-list .t small { display: block; color: var(--muted); font-weight: 400; font-size: 13.5px; }
.news-list .d { color: var(--dim); font-size: 13px; white-space: nowrap; }
.pin { color: var(--gold); }
.article h1 { font-size: 28px; margin-top: 10px; }
.article .meta { display: flex; gap: 10px; align-items: center; color: var(--dim); }
.article .body { line-height: 1.85; color: var(--text); margin: 14px 0 22px; overflow-wrap: anywhere; }

/* forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--silver); }
.hint { font-weight: 400; color: var(--dim); font-size: 13px; }
input, select, textarea { font: 16px var(--f-body); color: var(--text); background: rgba(10, 4, 18, .75); border: 1px solid rgba(232, 194, 106, .35); border-radius: 7px; padding: 10px 12px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 194, 106, .18); }
textarea { min-height: 180px; resize: vertical; }
.cap { display: flex; gap: 10px; align-items: center; }
.cap img { border-radius: 6px; border: 1px solid var(--line); cursor: pointer; flex: none; }
.cap-in { width: 130px; text-transform: uppercase; letter-spacing: 3px; }
.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; border: 1px solid; }
.alert.err { background: rgba(127, 29, 29, .35); border-color: rgba(248, 113, 113, .6); color: #fecaca; }
.alert.ok { background: rgba(6, 78, 59, .35); border-color: rgba(74, 222, 128, .55); color: #bbf7d0; }
.alert.info { background: rgba(76, 29, 149, .35); border-color: rgba(168, 85, 247, .6); color: #e9d5ff; }
.form-panel .btn { justify-self: start; }

/* stats */
.stat-row { margin-bottom: 22px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; display: flex; flex-direction: column; }
.stat span { color: var(--muted); font-size: 14px; }
.stat b { font-size: 24px; color: var(--gold2); }
.stat small { color: var(--dim); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 10px 0; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; overflow-wrap: anywhere; }
.plain { list-style: none; margin: 0; padding: 0; } .plain li { padding: 5px 0; }
.plain.bul li { padding-left: 16px; position: relative; } .plain.bul li::before { content: '◆'; position: absolute; left: 0; color: var(--gold); font-size: 10px; top: 10px; }
.howto { margin: 0; padding-left: 22px; } .howto li { padding: 5px 0; }
.specs { margin: 0; padding-left: 20px; color: var(--silver); }

/* steps, jobs, quick links */
.steps-v { display: grid; gap: 12px; margin-bottom: 12px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step h3 { margin: 0 0 2px; font-size: 17px; } .step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.sn { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; font: 700 17px var(--f-latin); color: #2a1404; background: linear-gradient(#fff0b5, #c8942f); }
.job { padding: 16px 18px; border-radius: 9px; background: rgba(14, 6, 24, .5); border: 1px solid rgba(232, 194, 106, .2); }
.job h3 { margin: 0; } .job .en { font: 600 12px var(--f-latin); letter-spacing: 2px; color: var(--lilac); }
.job p { color: var(--muted); font-size: 14.5px; margin: 6px 0 8px; }
.qk { display: block; padding: 18px 20px; border-radius: var(--r); background: linear-gradient(135deg, rgba(60, 26, 100, .9), rgba(24, 10, 40, .9)); border: 1px solid var(--line); color: var(--text); transition: transform .15s, border-color .15s; }
.qk:hover { transform: translateY(-3px); border-color: var(--line2); color: var(--text); }
.qk b { display: block; font: 600 18px var(--f-head); color: var(--gold2); } .qk span { color: var(--muted); font-size: 14px; }

/* guide */
.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.toc { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; }
.toc b { color: var(--gold2); margin-bottom: 4px; } .toc a { color: var(--silver); padding: 4px 6px; border-radius: 6px; } .toc a:hover { background: rgba(168, 85, 247, .15); color: var(--gold2); }
details { border-bottom: 1px solid rgba(232, 194, 106, .15); padding: 8px 0; } summary { cursor: pointer; font-weight: 700; color: var(--silver); } details p { color: var(--muted); margin: 6px 0 0; }
.dl-box img { height: auto; }

/* topup */
.soon { text-align: center; padding: 46px 22px; }
.soon h2 { font-size: 40px; margin: 6px 0; }
.soon-badge { display: inline-block; font: 800 14px var(--f-latin); letter-spacing: 1px; color: #2a1404; padding: 4px 16px; border-radius: 999px; background: linear-gradient(#fff0b5, #c8942f); }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 20px 0 8px; }
.pkg { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px; border-radius: 10px; background: linear-gradient(180deg, rgba(60, 26, 100, .9), rgba(24, 10, 40, .9)); border: 1px solid var(--line); color: var(--text); font-family: var(--f-body); cursor: pointer; }
.pkg b { font: 700 26px var(--f-latin); color: var(--gold2); } .pkg span { color: var(--muted); font-size: 13px; } .pkg em { font-style: normal; font-weight: 700; margin-top: 4px; }
.pkg-grid.preview .pkg { cursor: default; opacity: .75; }
button.pkg:hover { border-color: var(--gold); transform: translateY(-2px); }

/* items / monsters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; }
.filters input[type=search] { flex: 1 1 240px; } .filters select { width: auto; flex: 0 1 180px; }
.filters .lv { display: flex; align-items: center; gap: 6px; color: var(--muted); } .filters .lv input { width: 80px; }
.chk { display: flex; align-items: center; gap: 6px; color: var(--silver); white-space: nowrap; } .chk input { width: auto; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.item { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border-radius: 8px; background: var(--panel); border: 1px solid rgba(232, 194, 106, .18); color: var(--text); font: 15px var(--f-body); cursor: pointer; min-width: 0; }
.item:hover { border-color: var(--line2); color: var(--text); }
.item .nm { font-weight: 700; } .item .sub, .sub { color: var(--muted); font-size: 13px; }
.icon { width: 40px; height: 40px; flex: none; border-radius: 6px; background: #1a0b2c center / contain no-repeat; border: 1px solid rgba(232, 194, 106, .3); }
.icon.big { width: 64px; height: 64px; }
.drop-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.hide-sm { }
.mt { margin-top: 16px; }
.ihead { display: flex; gap: 14px; align-items: center; margin-right: 28px; } .ihead h3 { margin: 0; font-size: 22px; }
.mbig { height: 110px; width: auto; max-width: 140px; object-fit: contain; }
.desc { white-space: pre-line; color: var(--silver); margin-top: 12px; } .desc .hl { color: var(--gold2); } .desc .note { color: var(--lilac); }
.req { color: #fca5a5; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(5, 2, 10, .78); display: none; overflow-y: auto; padding: 40px 16px; }
.modal.open { display: block; }
.modal .box { max-width: 720px; margin: 0 auto; }
.modal .x { position: absolute; right: 10px; top: 6px; background: none; border: 0; color: var(--gold); font-size: 30px; cursor: pointer; line-height: 1; }

/* footer */
.lg-foot { margin-top: 30px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(22, 9, 38, .96), rgba(8, 3, 14, .98)); }
.foot-in { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 22px 16px; }
.foot-logo img { display: block; height: 70px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; flex: 1; }
.foot-links a { color: var(--silver); font-size: 15px; } .foot-links a:hover { color: var(--gold2); }
.foot-social { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-social > span { color: var(--muted); font-size: 14px; margin-right: 4px; }
.soc { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--gold2); background: rgba(60, 26, 100, .9); border: 1px solid var(--line); }
a.soc:hover { background: linear-gradient(#f6dc8c, #c8942f); color: #2a1404; }
.soc.off { opacity: .45; }
.lg-foot .copy { text-align: center; color: var(--dim); font-size: 13px; padding: 10px 16px 16px; border-top: 1px solid rgba(232, 194, 106, .12); }

/* ---------- GM panel ---------- */
body.gm .head-in { gap: 18px; }
.gm-badge { font: 600 13px var(--f-head); letter-spacing: 1px; color: #2a1404; background: linear-gradient(#fff0b5, #c8942f); padding: 3px 12px; border-radius: 999px; }
.gm-menu { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.gm-menu a { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); color: var(--silver); background: rgba(30, 13, 50, .85); font-weight: 600; }
.gm-menu a.on, .gm-menu a:hover { color: #1d0c02; background: linear-gradient(180deg, #f6dc8c, #c8942f); }
.gm-title { font-size: 26px; }
.gm-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.gm-form input, .gm-form select { width: auto; flex: 1 1 200px; padding: 7px 10px; }
.gm-form.tight { margin: 6px 0 0; } .gm-form.tight input { flex: 0 1 120px; }
.w-s { max-width: 130px; }
.acts { min-width: 300px; } .acts .btn { margin: 2px 2px 2px 0; }
.ires { max-height: 240px; overflow: auto; } .ires div { cursor: pointer; padding: 4px 6px; border-radius: 6px; display: flex; gap: 8px; align-items: center; } .ires div:hover { background: rgba(168, 85, 247, .15); }
.ires img { width: 26px; height: 26px; }
.audit { font: 13px/1.5 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--silver); max-height: 70vh; overflow: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav > a:not(.btn) { padding: 22px 9px; font-size: 14.5px; }
  .hero-in { grid-template-columns: 1fr minmax(0, 520px) 270px; }
}
@media (max-width: 1020px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: rgba(14, 6, 24, .98); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav > a:not(.btn) { padding: 11px 6px; border-bottom: 1px solid rgba(232, 194, 106, .12); }
  .nav > a:not(.btn).on::after { left: 0; right: auto; width: 4px; top: 10px; bottom: 10px; height: auto; }
  .nav .btn { margin: 10px 0 0; }
  .nav-sp { display: none; }
  .hero { background:
    linear-gradient(180deg, rgba(12, 5, 20, .25), rgba(12, 5, 20, .55) 55%, var(--bg) 100%),
    url(../img/bg/hero.jpg) center top / cover no-repeat, #1c0a32; min-height: 0; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding: 30px 16px 34px; }
  .hero-mid, .status-card { grid-column: 1; }
  .status-card { width: 100%; max-width: 420px; justify-self: center; }
  .g3-1, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3-1 > * { grid-column: 1 / -1; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide { grid-template-columns: 1fr; } .toc { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4, .news-cards { grid-template-columns: 1fr; }
  .ncard { grid-template-columns: 120px minmax(0, 1fr); }
  .pill { padding: 11px 24px; font-size: 17px; }
  .banner h1 { font-size: 28px; }
  .panel { padding: 16px 14px; }
  .hide-sm { display: none; }
  .brand img { height: 46px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .dl { grid-template-columns: 1fr; gap: 0 0; } .dl dd { margin-bottom: 8px; }
  .acts { min-width: 230px; }
}
