/* Maar Island — ธีมเดียวกับ Overlay ใน Launcher: พื้นเขียวเกือบดำ การ์ดขอบบาง ตัวเน้นสีทอง หลอดค่าเขียว/ทอง/ฟ้า */
:root {
  --bg: #08110d;
  --bg-2: #0c1712;
  --panel: #0f1b15;
  --panel-2: #14231b;
  --panel-3: #192b21;
  --line: #233329;
  --line-2: #33473a;
  --text: #edf3ee;
  --muted: #98a99d;
  --gold: #e3bd5b;
  --gold-2: #f1d27e;
  --gold-soft: rgba(227, 189, 91, .12);
  --gold-line: rgba(227, 189, 91, .45);
  --green: #9ccf7c;
  --green-ok: #3ddc84;
  --blue: #5fb4e8;
  --discord: #5865f2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--text); overflow-x: hidden;
  font: 400 16px/1.7 "Noto Sans Thai", system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(227, 189, 91, .08), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(80, 140, 90, .12), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-2); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.small { font-size: 14px; color: var(--muted); }

/* ลายตกแต่งแบบการ์ตูนของธีมเก่า — ไม่ใช้ในธีม Overlay */
.sun, .cloud, .wave { display: none !important; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; font: 600 16px/1.2 "Noto Sans Thai", sans-serif;
  text-decoration: none; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: background .15s, border-color .15s, transform .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--gold-line); color: var(--text); }
.btn-sun { color: #1b1608; background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: var(--gold); }
.btn-sun:hover { color: #1b1608; background: var(--gold-2); }
.btn-discord { background: rgba(88, 101, 242, .16); border-color: rgba(88, 101, 242, .55); color: #dfe3ff; }
.btn-discord:hover { background: rgba(88, 101, 242, .28); color: #fff; border-color: var(--discord); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 18px; }
.ver { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: rgba(0, 0, 0, .18); }
.ver:empty { display: none; }

/* ---------- แถบเมนู ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 22px;
  padding: 10px max(16px, calc((100% - 1120px) / 2));
  background: rgba(8, 17, 13, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span { font: 700 18px "Noto Sans Thai", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.links { display: flex; gap: 4px; }
.links a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.links a:hover { background: var(--panel-2); color: var(--text); }
.links a.active { background: var(--gold-soft); color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.lang-switch {
  display: grid; place-items: center; min-width: 40px; height: 32px; padding: 0 10px;
  font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none;
  border: 1px solid var(--line-2); border-radius: 8px;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold); }
.menu { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.menu span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); border-radius: 2px; }

/* ---------- หน้าแรก: การ์ดแบบกรอบไดโนใน Overlay ---------- */
.hero { padding: 36px 0 20px; }
.hero-card {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 20px;
  min-height: 400px; padding: 44px 48px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--gold-line); border-radius: 20px;
  box-shadow: 0 0 0 6px rgba(227, 189, 91, .05), var(--shadow);
  animation: rise .6s ease both;
}
/* ภาพแบนเนอร์เดิม ทำให้มืดและเบลอ เหลือเป็นบรรยากาศเกาะจางๆ */
.hero-bg {
  position: absolute; inset: -30px; z-index: -2;
  background: url("/assets/banner.png") 70% center / cover no-repeat;
  filter: blur(7px) brightness(.32) saturate(.85);
}
.hero-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 17, 13, .96) 0%, rgba(8, 17, 13, .78) 48%, rgba(8, 17, 13, .35) 100%),
    radial-gradient(420px 320px at 78% 50%, rgba(227, 189, 91, .16), transparent 70%);
}
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero-title {
  margin: 0; font: 700 clamp(40px, 6.4vw, 72px)/1.05 "Noto Sans Thai", sans-serif; letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(180deg, #fbe7a6, var(--gold) 55%, #b98d2c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .5));
}
.tagline { max-width: 520px; margin: 16px 0 24px; font-size: clamp(15px, 1.8vw, 17px); color: #c9d4cb; }
.tagline b { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.live {
  display: inline-flex; align-items: center; gap: 10px; margin: 20px 0 0; padding: 6px 16px;
  font-size: 14px; color: var(--muted); background: rgba(15, 27, 21, .8); border: 1px solid var(--line); border-radius: 999px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-ok); box-shadow: 0 0 0 3px rgba(61, 220, 132, .2); animation: blink 1.8s infinite; }
.hero-logo {
  justify-self: center; width: min(100%, 360px);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 28px rgba(227, 189, 91, .18));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- หัวหน้าย่อย ---------- */
.page-hero { padding: 56px 0 20px; text-align: center; }
.page-hero h1 { margin: 0; font: 700 clamp(30px, 5vw, 46px)/1.2 "Noto Sans Thai", sans-serif; }
.page-hero h1 span { margin-right: 4px; }
.page-hero .en { margin: 6px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.page-hero .sub { margin: 12px 0 0; color: var(--muted); }

/* ---------- Section ---------- */
.section { padding: 46px 0; }
.section-sea { padding: 46px 0; }
.section-sea > .wrap {
  padding: 36px 34px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
}
h2 { margin: 0 0 26px; text-align: center; font: 700 clamp(24px, 3.4vw, 32px)/1.3 "Noto Sans Thai", sans-serif; }
h2 small { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }

/* ---------- การ์ด ---------- */
.cards { display: grid; justify-content: center; grid-template-columns: repeat(auto-fit, minmax(220px, 260px)); gap: 16px; }
.card {
  position: relative; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, transform .2s, background .2s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card p { margin: 0; font-size: 14px; color: var(--muted); }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; border-color: var(--gold-line); background: var(--panel-2); }
.card-link h3::after { content: " →"; color: var(--gold); }
.icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px;
  font-size: 24px; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 12px;
}
.section-highlight .cards { grid-template-columns: minmax(0, 620px); }
.section-highlight .card {
  padding: 28px 30px; border-color: var(--gold-line);
  background: linear-gradient(135deg, rgba(227, 189, 91, .10), rgba(20, 35, 27, .9) 55%);
}
.section-highlight .card h3 { font-size: 22px; color: var(--gold); }
.section-highlight .icon { width: 64px; height: 64px; font-size: 34px; border-color: var(--gold-line); }
.badge {
  position: absolute; top: 16px; right: 18px; padding: 2px 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: #1b1608; background: var(--gold); border-radius: 999px;
}

/* ---------- ขั้นตอน ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); }
.steps p { margin: 0; font-size: 14px; color: var(--muted); }
.steps b { color: var(--text); }
.num {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  font-weight: 700; color: #1b1608; background: var(--gold); border-radius: 50%;
}

/* ---------- ข่าว ---------- */
.news-list { display: grid; gap: 14px; margin-bottom: 22px; }
.news-card { padding: 20px 24px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); }
.section .news-card { background: var(--panel); }
.section-sea .news-card { background: var(--panel-2); }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.tag { padding: 1px 10px; font-size: 12px; font-weight: 600; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 999px; }
.news-card ul { margin: 8px 0 0; padding-left: 20px; font-size: 14px; color: var(--muted); }
.news-card li::marker { color: var(--gold); }

/* ---------- ดาวน์โหลด ---------- */
.download-card {
  display: flex; align-items: center; gap: 36px; padding: 32px 36px;
  background: linear-gradient(135deg, rgba(227, 189, 91, .08), var(--panel) 45%);
  border: 1px solid var(--gold-line); border-radius: 18px; box-shadow: var(--shadow);
}
.download-card > img { width: 190px; flex: none; }
.download-body { flex: 1; }
.download-body h2 { margin-bottom: 16px; text-align: left; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 22px; }
.facts div { padding: 10px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-size: 17px; font-weight: 700; }
.download-body .small { margin: 12px 0 0; }

/* ---------- ข้อมูลเซิร์ฟ ---------- */
.server-name {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px;
  max-width: 760px; margin: 0 auto 10px; padding: 16px 20px;
  background: var(--panel); border: 1px solid var(--gold-line); border-radius: var(--radius);
}
.server-name .label { font-size: 14px; color: var(--muted); }
.server-name code { font: 700 clamp(15px, 2.4vw, 20px) "Noto Sans Thai", monospace; color: var(--gold); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 28px; }
.info { display: flex; flex-direction: column; gap: 2px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.info .i { font-size: 22px; line-height: 1; margin-bottom: 8px; }
.info b { font-size: 22px; font-weight: 700; }
.info small { font-size: 13px; color: var(--muted); }

/* ---------- ระบบในเซิร์ฟ ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips span { padding: 7px 14px; font-size: 14px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 999px; }

/* ---------- ชวนเข้าดิส ---------- */
.join-band {
  display: flex; align-items: center; gap: 32px; padding: 30px 36px;
  background: linear-gradient(120deg, rgba(88, 101, 242, .10), var(--panel) 50%);
  border: 1px solid var(--line); border-radius: 18px;
}
.join-band img { width: 150px; flex: none; }
.join-band h2 { margin-bottom: 6px; text-align: left; }
.join-band p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { margin-top: 30px; padding: 30px 0 34px; text-align: center; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.footer p { margin: 4px 0; font-size: 13px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 10px; }
.foot-links a { color: var(--text); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--gold); }

/* ---------- Animation ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes blink { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- มือถือ ---------- */
@media (max-width: 900px) {
  .links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); display: none;
  }
  .links.open { display: flex; }
  .links a { padding: 14px 20px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .links a.active { box-shadow: inset 3px 0 0 var(--gold); }
  .menu { display: block; }
  .nav { gap: 10px; }
  .brand span { font-size: 15px; }
  .hero-card { grid-template-columns: 1fr; padding: 30px 22px; text-align: center; min-height: 0; }
  .hero-card::before { background: linear-gradient(180deg, rgba(8, 17, 13, .55), rgba(8, 17, 13, .93) 55%); }
  .hero-logo { grid-row: 1; width: min(70%, 240px); }
  .tagline { margin-inline: auto; }
  .cta { justify-content: center; }
  .section-sea > .wrap { padding: 26px 18px; }
  .download-card, .join-band { flex-direction: column; text-align: center; padding: 26px 20px; }
  .download-card > img { width: 130px; }
  .download-body h2, .join-band h2 { text-align: center; }
  .join-band img { width: 120px; }
  .btn-lg { font-size: 16px; padding: 13px 20px; }
}
@media (max-width: 420px) {
  .nav .btn-sm { display: none; }
}
