@import url("chrome.css");
/* ===========================================================
   NEX-RO - main.css  (โทนสว่าง ฟ้าอ่อน สไตล์ ro-classico)
   =========================================================== */
:root {
  --sky: #eef6ff;
  --sky2: #d9eaff;
  --sky3: #bfdcff;
  --white: #ffffff;
  --navy: #0a4f9d;
  --navy2: #073c7a;
  --navy3: #052c5a;
  --blue: #1e88ff;
  --blue2: #0b6fe0;
  --blue-soft: #e3f0ff;
  --text: #1d2b3f;
  --muted: #5f7390;
  --line: #d3e3f7;
  --gold: #f5b942;
  --gold2: #d9961a;
  --red: #e8574a;
  --green: #2fb56b;
  --purple: #7a5cff;
  --shadow: 0 10px 30px rgba(10, 79, 157, .12);
  --shadow-sm: 0 4px 14px rgba(10, 79, 157, .10);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1180px;
  font-size: 15px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Poppins", "Noto Sans Thai", "Sarabun", "Segoe UI", Tahoma, sans-serif;
  background: var(--sky);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--blue2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 320px at 50% 115%, #ffffff 0%, rgba(255,255,255,0) 70%),
    radial-gradient(600px 300px at 10% 20%, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(700px 300px at 90% 10%, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #a9d2ff 0%, #cfe6ff 55%, #eaf4ff 100%);
  min-height: 440px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 70px 16px 90px;
}
.hero.small { min-height: 230px; padding: 40px 16px 70px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .55); filter: blur(2px);
}
.hero::before { width: 320px; height: 110px; left: -60px; top: 70px; box-shadow: 120px 40px 0 20px rgba(255,255,255,.5), 900px 20px 0 10px rgba(255,255,255,.45), 1100px 120px 0 30px rgba(255,255,255,.4); }
.hero::after { width: 260px; height: 90px; right: -40px; bottom: 120px; box-shadow: -300px 40px 0 10px rgba(255,255,255,.45), -700px -20px 0 25px rgba(255,255,255,.35); }
.hero .inner { position: relative; z-index: 1; max-width: 760px; }
.hero .art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero .art img { position: absolute; bottom: 0; max-height: 100%; }
.hero .art .left { left: 2%; }
.hero .art .right { right: 2%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.75); border: 1px solid #ffffff; color: var(--navy);
  border-radius: 999px; padding: 5px 14px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.wordmark {
  font-size: clamp(3rem, 9vw, 6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1;
  margin: 18px 0 8px;
  background: linear-gradient(180deg, #1a73e8 0%, #0a4f9d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #ffffff) drop-shadow(0 10px 24px rgba(10,79,157,.25));
}
.wordmark span { color: var(--gold); -webkit-text-fill-color: var(--gold); }
.hero .lead { color: var(--navy2); font-size: 1.1rem; margin: 0 0 22px; font-weight: 500; }
.hero .lead b { color: var(--navy3); }
.hero .pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 24px; }
.pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .82rem; color: var(--navy2); font-weight: 500; box-shadow: var(--shadow-sm); }
.pill b { color: var(--blue2); }
.hero .cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero h1.page { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--navy); font-weight: 800; }
.hero .page-sub { color: var(--navy2); margin-top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, var(--blue), var(--blue2)); color: #fff; border: 0;
  border-radius: 10px; padding: 11px 22px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 16px rgba(30, 136, 255, .35), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 22px rgba(30, 136, 255, .4); }
.btn.gold { background: linear-gradient(180deg, #ffd166, var(--gold2)); color: #4a3000; box-shadow: 0 6px 16px rgba(245, 185, 66, .4); }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn.navy { background: linear-gradient(180deg, var(--navy), var(--navy2)); box-shadow: 0 6px 16px rgba(10,79,157,.35); }
.btn.sm { padding: 7px 14px; font-size: .9rem; border-radius: 8px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- sections ---------- */
section.sec { padding: 56px 0; }
section.sec.white { background: var(--white); }
section.sec.sky { background: linear-gradient(180deg, var(--sky) 0%, var(--sky2) 100%); }
section.sec.navy { background: linear-gradient(180deg, var(--navy2) 0%, var(--navy3) 100%); color: #e4efff; }
section.sec.navy .sec-title h2 { color: #fff; }
section.sec.navy .sec-title p { color: #a9c6ec; }
.sec-title { text-align: center; margin-bottom: 34px; }
.sec-title .kicker { color: var(--blue2); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.sec-title h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--navy); margin-top: 6px; }
.sec-title h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--gold)); margin: 12px auto 0; }
.sec-title p { color: var(--muted); max-width: 640px; margin: 10px auto 0; }
.sec-title.left { text-align: left; }
.sec-title.left h2::after { margin-left: 0; }

/* ---------- cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 22px;
}
.card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); font-size: 1.3rem; color: var(--blue2); }
.card-head h3 { margin: 0; }
.card-head small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { display: flex; gap: 14px; align-items: flex-start; transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ic { flex: none; width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, var(--blue-soft), #fff); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.5rem; }

/* ---------- login + status panel ---------- */
.panel-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 60px; }
.login-card .card-head .ic { background: var(--blue-soft); }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy2); margin: 10px 0 5px; }
.input, .select, .textarea {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; color: var(--text); outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,136,255,.15); }
.form .help { color: var(--muted); font-size: .82rem; margin-top: 10px; }
.form .actions { margin-top: 14px; }
.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.status-list li:last-child { border-bottom: 0; }
.status-list .v { font-weight: 700; color: var(--navy); }
.status-list .v.on { color: var(--green); }
.status-list .v.off { color: var(--red); }
.big-num { font-size: 2.4rem; font-weight: 800; color: var(--blue2); line-height: 1; }
.big-num small { font-size: .85rem; color: var(--muted); font-weight: 500; margin-left: 6px; }

/* ---------- about / badges ---------- */
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.badge-card { text-align: center; padding: 26px 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); backdrop-filter: blur(4px); }
.badge-card .ic { font-size: 2.2rem; margin-bottom: 8px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.badge-card h3 { color: #fff; font-size: 1.05rem; }
.badge-card p { color: #a9c6ec; font-size: .88rem; margin: 4px 0 0; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; margin-top: 36px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.info-list li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 9px 12px; border-radius: 10px; font-size: .92rem; }
.info-list li b { color: var(--gold); }
.info-list .ic { color: var(--gold); }
.about-art { text-align: center; }
.about-art img { max-height: 380px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }

/* ---------- rates ---------- */
.rates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.rate { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 10px; box-shadow: var(--shadow-sm); }
.rate .v { font-size: 1.9rem; font-weight: 800; color: var(--blue2); line-height: 1.1; }
.rate .l { color: var(--muted); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }

/* ---------- classes ---------- */
.class-card { position: relative; overflow: hidden; padding-top: 18px; }
.class-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--c, var(--blue)); }
.class-card .job { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.class-card .job .av { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-soft); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--c, var(--blue)); display: grid; place-items: center; overflow: hidden; font-weight: 800; color: var(--c, var(--blue)); font-size: 1.1rem; }
.class-card .job .av img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.class-card .job h3 { margin: 0; }
.class-card .job small { color: var(--muted); display: block; }

/* ---------- towns / dungeons ---------- */
.town { overflow: hidden; padding: 0; }
.town .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--sky3), var(--blue-soft)); display: grid; place-items: center; color: var(--navy); font-weight: 700; font-size: 1.2rem; position: relative; overflow: hidden; }
.town .thumb img { width: 100%; height: 100%; object-fit: cover; }
.town .thumb .code { position: absolute; right: 8px; bottom: 6px; font-size: .7rem; font-family: Consolas, monospace; background: rgba(255,255,255,.8); padding: 1px 7px; border-radius: 6px; color: var(--muted); }
.town .thumb .ep { position: absolute; left: 8px; top: 8px; font-size: .68rem; font-weight: 700; background: var(--navy); color: #fff; padding: 2px 8px; border-radius: 6px; letter-spacing: .05em; }
.ep-tag { display: inline-block; font-size: .72rem; font-weight: 700; background: var(--blue-soft); color: var(--navy); padding: 1px 8px; border-radius: 6px; }
.town .body { padding: 14px 16px 16px; }
.town .body h3 { font-size: 1rem; }
.town .body h3 small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.dun-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.dun-table th, .dun-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.dun-table th { background: var(--blue-soft); color: var(--navy); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.dun-table tr:last-child td { border-bottom: 0; }
.dun-table td.code { font-family: Consolas, monospace; color: var(--muted); font-size: .85rem; }
.dun-table tr:hover td { background: #f6faff; }

/* ---------- database teaser ---------- */
.db-search { display: flex; gap: 8px; max-width: 640px; margin: 0 auto 22px; }
.db-search .input { padding: 13px 16px; font-size: 1rem; border-radius: 12px; }
.db-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.db-links a { display: block; }
.db-links a:hover { text-decoration: none; }
.db-links .card { text-align: center; transition: transform .15s, box-shadow .15s; height: 100%; }
.db-links a:hover .card { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue); }
.db-links .ic { font-size: 2rem; }
.db-links .n { font-size: .78rem; color: var(--blue2); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-top: 6px; }

/* ---------- news ---------- */
.news-list { display: grid; gap: 14px; }
.news { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; }
.news .date { text-align: center; background: var(--blue-soft); border-radius: 10px; padding: 8px 4px; color: var(--navy); }
.news .date .d { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.news .date .m { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.news .tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: #4a3000; margin-bottom: 4px; }
.news .tag.blue { background: var(--blue); color: #fff; }
.news h3 { font-size: 1rem; }

/* ---------- download ---------- */
.dl-card { text-align: center; }
.dl-card .ic { font-size: 2.4rem; }
.dl-card .size { color: var(--muted); font-size: .85rem; margin: 4px 0 14px; }
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { position: relative; padding-left: 52px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding-top: 12px; padding-bottom: 12px; padding-right: 14px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 12px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.spec { width: 100%; border-collapse: collapse; }
.spec td { padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec td:first-child { color: var(--muted); width: 36%; }

/* ---------- ranking ---------- */
.tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.tabs button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; cursor: pointer; font-weight: 600; color: var(--navy2); }
.tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.rank-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.rank-table th, .rank-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.rank-table th { background: var(--blue-soft); color: var(--navy); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.rank-table td.r { font-weight: 800; color: var(--muted); width: 60px; }
.rank-table tr:nth-child(1) td.r { color: var(--gold2); }
.rank-table tr:nth-child(2) td.r { color: #8a9bb3; }
.rank-table tr:nth-child(3) td.r { color: #b87333; }
.rank-table tr:last-child td { border-bottom: 0; }

/* ---------- misc ---------- */
.notice { background: #fff8e6; border: 1px solid #ffe3a3; color: #6b4d00; border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; }
.notice.blue { background: var(--blue-soft); border-color: #bcd8ff; color: var(--navy2); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rules li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px 10px 40px; position: relative; }
.rules li::before { content: "✔"; position: absolute; left: 14px; color: var(--green); font-weight: 700; }
.kv-table { width: 100%; border-collapse: collapse; }
.kv-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.kv-table td:first-child { color: var(--muted); width: 40%; }
.kv-table td:last-child { font-weight: 600; color: var(--navy); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.center { text-align: center; }
.mt { margin-top: 24px; }
.mt2 { margin-top: 40px; }
.discord-cta { display: flex; align-items: center; gap: 20px; background: linear-gradient(135deg, #5865f2, #3b48d8); color: #fff; border-radius: var(--radius); padding: 24px 28px; box-shadow: 0 12px 30px rgba(88,101,242,.35); }
.discord-cta h3 { color: #fff; font-size: 1.2rem; }
.discord-cta p { color: #dfe3ff; margin: 2px 0 0; }
.discord-cta .btn { margin-left: auto; background: #fff; color: #3b48d8; box-shadow: none; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .rates { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-art { order: -1; }
  .about-art img { max-height: 240px; }
}
@media (max-width: 700px) {
  .grid2, .grid3, .grid4, .badges, .db-links, .panel-row { grid-template-columns: 1fr; }
  .rates { grid-template-columns: repeat(2, 1fr); }
  .info-list { grid-template-columns: 1fr; }
  .hero { min-height: 360px; padding: 50px 16px 80px; }
  .hero .art { display: none; }
  .news { grid-template-columns: 64px 1fr; }
  .discord-cta { flex-direction: column; text-align: center; }
  .discord-cta .btn { margin-left: 0; }
}
