/* ============================================================
   SEACARE OS — FOLDCRAFT MINIMAL (Hub v9.0)
   ดาร์กมินิมอลแนว Foldcraft: Geist, วิดีโอเต็มจอ, ขาวบนดำ, เรียบหรู
   คงโครงสร้าง/ID เดิม (script.js ทำงานครบ) — ธีมเดียว (dark)
   ============================================================ */

:root, html.light-mode, html.earth-mode {
  --bg: #0a0a0b;
  --bg-soft: #111114;
  --ink: #ffffff;
  --muted: rgba(255,255,255,0.60);
  --faint: rgba(255,255,255,0.38);
  --line: rgba(255,255,255,0.12);
  --line-soft: rgba(255,255,255,0.07);
  --card: rgba(22,23,28,0.66);
  --card-hover: rgba(34,36,44,0.82);
  --accent: #ffffff;
  --p1: #f5c98a;   /* ไผ่ — โทนอุ่นนวล */
  --p2: #9fd6e6;   /* ซีแคร์ — โทนเย็นนวล */
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', 'Kanit', system-ui, sans-serif;
  color: var(--ink); background: var(--bg);
  min-height: 100vh; overflow-x: hidden; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.px { font-family: 'Geist', 'Kanit', sans-serif; letter-spacing: 0.18em; text-transform: uppercase; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- พื้นหลังวิดีโอเต็มจอ + scrim ---------- */
#bg-video {
  position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: cover;
  object-position: 70% center; z-index: -4; pointer-events: none;
  filter: saturate(1.02) contrast(1.02) brightness(0.78);
}
.light-bg { position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.45) 0%, rgba(10,10,11,0.30) 32%, rgba(10,10,11,0.72) 72%, var(--bg) 100%); }
.noise { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.25;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 3px 3px; }
.orb { display: none; }

/* ---------- NAVBAR ---------- */
.hudbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 0 clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(10,10,11,0.55), rgba(10,10,11,0));
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.hudbar.scrolled { background: rgba(10,10,11,0.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.hud-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.hud-logo .blk { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); opacity: 0.9; }
.hud-logo b { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.02em; }
.hud-logo .gradient-text { color: var(--ink); font-weight: 600; }
/* เมนูลิงก์เดสก์ท็อปในแถบนำทาง */
.nav-desktop { display: none; align-items: center; gap: 26px; }
.nav-desktop a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--ink); }
.hud-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #000; font-size: 0.86rem; font-weight: 500;
  padding: 9px 18px; border-radius: 10px; transition: transform 0.2s var(--ease), opacity 0.2s; }
.hud-cta:hover { transform: scale(1.05); }
.hud-online, .hud-credit { display: none; }   /* ของเดิมอาร์เคด — ซ่อนในมินิมอล */
/* ปุ่มแฮมเบอร์เกอร์ (มือถือ) */
.hud-menu-btn {
  margin-left: auto; width: 42px; height: 42px; z-index: 50; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
  font-size: 0; transition: transform 0.15s, background 0.2s; padding: 0;
}
.hud-menu-btn:active { transform: scale(0.9); }
.hud-menu-btn:hover { background: var(--card); }
.hud-menu-btn svg { width: 18px; height: 18px; }

/* ---------- MOBILE / FULL MENU OVERLAY ---------- */
.menu-overlay { position: fixed; inset: 0; z-index: 18; background: transparent;
  opacity: 0; visibility: hidden; transition: 0.3s; }
.menu-overlay.active { opacity: 1; visibility: visible; }
.nav-links {
  position: fixed; inset-inline: 0; top: 0; z-index: 20; list-style: none;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: clamp(90px, 14vh, 130px) clamp(28px, 7vw, 80px) 60px;
  background: rgba(8,8,10,0.98); backdrop-filter: blur(20px);
  height: 0; opacity: 0; overflow: hidden; pointer-events: none;
  transition: height 0.5s var(--ease), opacity 0.4s var(--ease);
}
.nav-links.active { height: 100vh; opacity: 1; pointer-events: auto; overflow-y: auto; }
.nav-links li { list-style: none;
  opacity: 0; transform: translateY(22px); transition: opacity 0.5s var(--ease) 0.1s, transform 0.5s var(--ease) 0.1s; }
.nav-links.active li { opacity: 1; transform: translateY(0); }
.nav-item { display: inline-flex; align-items: center; gap: 14px; padding: 11px 0;
  font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 500; color: var(--muted); transition: color 0.2s, gap 0.2s; }
.nav-item:hover, .nav-item.active { color: var(--ink); gap: 18px; }
.nav-item svg { width: 22px; height: 22px; flex-shrink: 0; opacity: 0.7; }
.nav-divider { display: flex; align-items: center; gap: 10px; margin: 22px 2px 8px; }
.nav-divider-line { flex: 1; height: 1px; background: var(--line-soft); }
.nav-divider-label { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
.menu-close-btn { position: absolute; top: 20px; right: clamp(20px,5vw,64px); width: 42px; height: 42px;
  display: grid; place-items: center; cursor: pointer; color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  background: transparent; transition: transform 0.2s, background 0.2s; z-index: 60; }
.menu-close-btn:hover { background: var(--card); transform: rotate(90deg); }
.mobile-menu-btn { display: none; }
body.menu-open { overflow: hidden; }

/* ---------- SHELL ---------- */
#app { min-height: 100vh; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.section { padding: clamp(64px, 10vw, 130px) 0; position: relative; }
/* section เนื้อหาเป็นพื้นมืดทึบ (วิดีโอโชว์เฉพาะ hero) */
#menus, .vs-section, footer { background: var(--bg); position: relative; z-index: 1; }

/* หัวข้อ section */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 0.74rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.section-title { font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; color: var(--ink); }
.section-title .accent { color: var(--faint); }
.section-sub { color: var(--muted); font-size: clamp(0.95rem, 1.4vw, 1.08rem); margin-top: 14px; max-width: 560px; }

/* ---------- HERO (fullscreen) ---------- */
.hero { min-height: 100vh; padding: 0 !important; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-inner { display: flex; flex-direction: column; align-items: flex-start;
  padding: 0 clamp(20px, 5vw, 64px) clamp(48px, 9vh, 110px);
  width: 100%; max-width: 1280px; margin: 0 auto; }
.hero-coin { display: inline-block; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px; padding: 7px 16px; margin-bottom: 26px; text-transform: none;
  animation: fadeSlideUp 0.8s var(--ease) 0.2s both; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.035em;
  color: var(--ink); max-width: 16ch; animation: fadeSlideUp 0.8s var(--ease) 0.4s both; }
.hero h1 .gradient-text { color: var(--faint); }
.hero-lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); margin-top: 22px; max-width: 30rem;
  animation: fadeSlideUp 0.8s var(--ease) 0.7s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; animation: fadeSlideUp 0.8s var(--ease) 0.9s both; }
.btn-primary { display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: #000;
  font-size: 0.95rem; font-weight: 500; padding: 13px 24px; border-radius: 11px; transition: transform 0.2s var(--ease); }
.btn-primary:hover { transform: scale(1.05); }
.btn-ghost { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); border: 1px solid var(--line);
  font-size: 0.95rem; font-weight: 500; padding: 13px 24px; border-radius: 11px; transition: background 0.2s, border-color 0.2s; }
.btn-ghost:hover { background: var(--card); border-color: var(--ink); }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: var(--faint);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; display: inline-flex; flex-direction: column;
  align-items: center; gap: 8px; animation: fadeSlideUp 1s var(--ease) 1.2s both; }
.scroll-hint::after { content: ''; width: 1px; height: 30px; background: linear-gradient(var(--faint), transparent); animation: scrollpulse 2s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- STAGE LABEL (หัวกลุ่มเมนู) ---------- */
.stage-label { display: flex; align-items: center; gap: 14px; font-size: 0.74rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 22px; }
.stage-label::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }
.stage-label + .quick-grid { margin-bottom: 56px; }

/* ---------- QUICK LAUNCH (เมนู) — การ์ดมินิมอล ---------- */
.quick-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; }
.q-card { position: relative; overflow: hidden; cursor: pointer; padding: 22px;
  display: flex; flex-direction: column; gap: 16px; min-height: 150px;
  flex: 1 1 calc((100% - 42px) / 4); max-width: calc((100% - 42px) / 4);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: background 0.25s var(--ease), border-color 0.25s, transform 0.25s var(--ease); }
.q-card::before { content: counter(qc, decimal-leading-zero); counter-increment: qc;
  position: absolute; top: 18px; right: 20px; font-size: 0.72rem; color: var(--faint); letter-spacing: 0.05em; }
.quick-grid { counter-reset: qc; }
.q-card:hover { background: var(--card-hover); border-color: rgba(255,255,255,0.28); transform: translateY(-4px); }
.q-ico { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink);
  border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,0.02); }
.q-ico svg { width: 20px; height: 20px; }
.q-body { margin-top: auto; }
.q-title { font-size: 1.04rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.q-desc { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.q-card .q-arrow { position: absolute; bottom: 20px; right: 20px; color: var(--faint); opacity: 0;
  transform: translateX(-4px); transition: 0.25s var(--ease); }
.q-card:hover .q-arrow { opacity: 1; transform: translateX(0); color: var(--ink); }
.q-card.feature { background: rgba(40,42,52,0.82); border-color: rgba(255,255,255,0.22); }
.q-flag { position: absolute; top: 16px; left: 20px; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #000; background: var(--ink); padding: 3px 8px; border-radius: 5px; }

/* ============================================================
   CHANNEL STATS (เดิม Boss Battle) — มินิมอล
   ============================================================ */
.vs-section { position: relative; }
.vs-section::before { display: none; }
.vs-tagchip { display: inline-block; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--line); border-radius: 100px; padding: 5px 12px; margin-left: 14px; vertical-align: middle; }
.arena { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin-top: 40px; }
.contender { position: relative; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.3s, transform 0.3s var(--ease); }
.contender::before { display: none; }
.contender.pai { border-top: 2px solid color-mix(in srgb, var(--p1) 70%, transparent); }
.contender.sea { border-top: 2px solid color-mix(in srgb, var(--p2) 70%, transparent); }
.contender:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.24); }
.contender.lead { border-color: rgba(255,255,255,0.34); }
.player-tag { position: absolute; top: -11px; left: 22px; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px; color: #000; background: var(--ink); }
.contender.pai .player-tag { background: var(--p1); }
.contender.sea .player-tag { background: var(--p2); }
.contender-head { display: flex; align-items: center; gap: 13px; margin: 6px 0 22px; }
.contender-name { font-size: 1.2rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.contender-tag { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
.led { width: 8px; height: 8px; border-radius: 50%; }
.contender.pai .led { background: var(--p1); } .contender.sea .led { background: var(--p2); }
.crown { display: none; margin-left: auto; color: var(--ink); opacity: 0.85; }
.contender.lead .crown { display: inline-flex; }
.platform { background: transparent; border: 1px solid var(--line-soft); border-radius: 11px; padding: 16px; margin-bottom: 12px; }
.platform-head { display: flex; align-items: center; gap: 12px; padding-bottom: 13px; margin-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.platform-head img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); }
.platform-meta { flex: 1; overflow: hidden; }
.platform-nick { font-size: 0.95rem; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.platform-bio { font-size: 0.74rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.platform-ico svg { width: 20px; height: 20px; opacity: 0.7; }
.tk svg { color: var(--ink); } .yt svg { color: var(--ink); }
.stat-row { display: flex; justify-content: space-between; font-size: 0.86rem; padding: 7px 0; }
.stat-row + .stat-row { border-top: 1px solid var(--line-soft); }
.stat-row span:first-child { color: var(--faint); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.stat-row span:last-child { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.power-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.power-box img { width: 40px; height: 40px; object-fit: contain; image-rendering: auto; opacity: 0.9; }
.power-label { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.power-num { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 500; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fire-pai { color: var(--p1); } .flicker-sea { color: var(--p2); }
.vs-emblem { display: grid; place-items: center; align-self: center; }
.vs-badge { font-size: 0.8rem; letter-spacing: 0.1em; color: var(--muted); width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; }
/* แถบเปรียบเทียบ */
.power-bar { margin-top: 30px; display: grid; grid-template-columns: minmax(96px,auto) 1fr minmax(96px,auto); gap: 18px; align-items: center;
  padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pb-side { display: flex; flex-direction: column; gap: 3px; }
.pb-side.pai { align-items: flex-start; } .pb-side.sea { align-items: flex-end; }
.pb-side .pb-name { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.pb-side b { font-size: clamp(0.95rem, 2vw, 1.25rem); font-weight: 500; font-variant-numeric: tabular-nums; }
.pb-side.pai b { color: var(--p1); } .pb-side.sea b { color: var(--p2); }
.pb-track { display: flex; height: 8px; border-radius: 100px; overflow: hidden; background: rgba(255,255,255,0.08); }
.pb-fill { height: 100%; transition: width 1.1s var(--ease); min-width: 2px; }
.pb-fill.pai { background: var(--p1); } .pb-fill.sea { background: var(--p2); }
.formula { margin-top: 18px; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; align-items: center;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.formula .flabel { width: 100%; text-align: center; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.formula .eq { font-size: 0.9rem; color: var(--muted); } .formula .eq b { color: var(--ink); font-weight: 500; }
.frame { position: relative; }   /* ลบกรอบนีออน/วงเล็บมุมของเดิม */
.frame::before, .frame::after { display: none; }

/* ---------- FOOTER ---------- */
footer { margin-top: 0; padding: clamp(48px,7vw,80px) clamp(20px,5vw,64px); text-align: center;
  border-top: 1px solid var(--line-soft); }
.f-logo { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 16px; }
.f-logo .accent { color: var(--faint); }
.f-pill { display: inline-block; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
  border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px; margin-bottom: 18px; }
footer .credit { color: var(--muted); font-size: 0.88rem; max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* ---------- Version badge ---------- */
.version-badge { position: fixed; bottom: 16px; left: 16px; z-index: 25; font-size: 0.62rem; letter-spacing: 0.1em;
  color: var(--faint); background: transparent; padding: 0; border: none; pointer-events: none; }

/* ---------- Floating buttons ---------- */
#global-mute-btn { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px;
  background: rgba(255,255,255,0.06) !important; border: 1px solid var(--line) !important; border-radius: 11px !important;
  color: var(--ink) !important; cursor: pointer; z-index: 40; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px); transition: 0.2s; }
#global-mute-btn:hover { background: rgba(255,255,255,0.12) !important; }
#theme-toggle-btn { display: none !important; }   /* ธีมเดียว — ซ่อนปุ่มสลับธีม */

/* ---------- Reveal / fadeSlideUp ---------- */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1{transition-delay:.06s}.d2{transition-delay:.13s}.d3{transition-delay:.2s}.d4{transition-delay:.27s}.d5{transition-delay:.34s}.d6{transition-delay:.41s}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  [class*="fadeSlideUp"], .hero-coin, .hero h1, .hero-lead, .hero-actions { animation: none !important; }
  * { animation-duration: 0.001s !important; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* ============================================================
   RESPONSIVE v9.1 — Desktop / Tablet / Mobile symmetrical scale
   ============================================================ */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.78fr);
  align-items: end;
  column-gap: clamp(28px, 6vw, 88px);
  row-gap: clamp(16px, 2.8vw, 28px);
}
.hero-coin, .hero h1, .hero-lead, .hero-actions { grid-column: 1; }
.hero-quick-launch {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: end;
  width: min(100%, 520px);
  padding: clamp(14px, 1.6vw, 20px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 80px rgba(0,0,0,0.18);
  animation: fadeSlideUp 0.8s var(--ease) 0.82s both;
}
.hero-quick-kicker {
  color: var(--faint);
  font-size: clamp(0.66rem, 0.8vw, 0.76rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.1vw, 12px); }
.hero-quick-card {
  min-height: clamp(48px, 5.4vw, 62px);
  padding: clamp(10px, 1.25vw, 14px) clamp(12px, 1.5vw, 16px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.055);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.hero-quick-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.24); }
.hero-quick-card span { font-size: clamp(0.92rem, 1.1vw, 1rem); font-weight: 560; line-height: 1.18; }
.hero-quick-card small { color: var(--faint); font-size: clamp(0.68rem, 0.9vw, 0.78rem); line-height: 1.2; }
.hero-quick-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.25vw, 14px);
  align-items: stretch;
  justify-content: stretch;
}
.q-card {
  max-width: none;
  flex: none;
  min-height: clamp(96px, 8.6vw, 126px);
  padding: clamp(14px, 1.5vw, 20px);
  gap: clamp(8px, 1.1vw, 14px);
}
.q-ico { width: clamp(34px, 3.6vw, 42px); height: clamp(34px, 3.6vw, 42px); }
.q-title { font-size: clamp(0.9rem, 1.05vw, 1.04rem); line-height: 1.22; }
.q-desc { font-size: clamp(0.72rem, 0.84vw, 0.82rem); line-height: 1.32; }
.stage-label + .quick-grid { margin-bottom: clamp(32px, 4.4vw, 56px); }
@media (min-width: 768px) {
  .nav-desktop { display: inline-flex; }
  .hud-menu-btn { display: none; }
}
/* 1) Desktop: จอกว้าง — hero ใช้พื้นที่ผิวน้ำด้านขวา, เมนู 5 ช่องเท่ากัน */
@media (min-width: 1101px) {
  .hero { min-height: 100svh; }
  .hero-inner { padding-bottom: clamp(56px, 8vh, 96px); }
  .scroll-hint { bottom: 22px; }
}
/* 2) Tablet: จอกลาง — 1 คอลัมน์เนียน, เมนู 3 คอลัมน์ไม่บวม */
@media (min-width: 701px) and (max-width: 1100px) {
  .hudbar { padding: 0 clamp(22px, 4vw, 42px); }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + clamp(34px, 6vw, 60px)) !important; }
  .hero-inner { grid-template-columns: 1fr; max-width: 900px; padding-bottom: clamp(44px, 6vw, 70px); }
  .hero-quick-launch { grid-column: 1; grid-row: auto; width: 100%; max-width: 760px; margin-top: 4px; }
  .hero-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-quick-card:last-child:nth-child(odd) { grid-column: auto; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .q-card { min-height: 104px; }
  .arena { grid-template-columns: 1fr; gap: 18px; }
  .vs-emblem { margin: -4px 0; }
}
/* Tablet landscape: 900–1100px ใช้ 2 คอลัมน์เพื่อไม่ให้ hero สูงเกินจอ */
@media (min-width: 900px) and (max-width: 1100px) and (max-height: 900px) {
  .hero { min-height: 100svh; padding-top: 0 !important; }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
    max-width: 1040px;
    padding-bottom: clamp(42px, 6vh, 64px);
    column-gap: clamp(24px, 4vw, 52px);
  }
  .hero-coin, .hero h1, .hero-lead, .hero-actions { grid-column: 1; }
  .hero h1 { font-size: clamp(3rem, 6.6vw, 4.7rem); }
  .hero-quick-launch { grid-column: 2; grid-row: 1 / span 4; max-width: 420px; margin-top: 0; }
  .hero-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-quick-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* 3) Mobile: จอเล็กทุกขนาด — 2 คอลัมน์สมมาตร, ปุ่มเตี้ย ไม่กินพื้นที่ */
@media (max-width: 700px) {
  :root, html.light-mode, html.earth-mode { --nav-h: 68px; }
  .hudbar { height: var(--nav-h); padding: 0 clamp(16px, 5vw, 22px); gap: 10px; }
  .hud-logo b { font-size: 1rem; }
  .hud-cta { margin-left: auto; padding: 8px 12px; font-size: 0.78rem; min-height: 42px; }
  .hud-menu-btn { width: 42px; height: 42px; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 30px) !important; }
  .hero-inner { grid-template-columns: 1fr; padding: 0 clamp(18px, 5vw, 22px) clamp(34px, 8vw, 44px); }
  .hero-coin { margin-bottom: 16px; font-size: clamp(0.72rem, 3.2vw, 0.78rem); }
  .hero h1 { font-size: clamp(2.35rem, 12.2vw, 3.55rem); max-width: 9ch; }
  .hero-lead { margin-top: 16px; font-size: clamp(0.95rem, 4vw, 1.05rem); max-width: 26rem; }
  .hero-quick-launch { grid-column: 1; grid-row: auto; width: 100%; margin-top: 2px; padding: 12px; }
  .hero-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hero-quick-card { min-height: 48px; padding: 10px 11px; border-radius: 10px; }
  .hero-quick-card span { font-size: 0.9rem; }
  .hero-quick-card small { display: none; }
  .hero-actions { margin-top: 18px; gap: 10px; }
  .btn-primary, .btn-ghost { min-height: 46px; padding: 11px 14px; font-size: 0.9rem; }
  .scroll-hint { display: none; }
  .section { padding: clamp(42px, 10vw, 56px) 0; }
  .wrap { padding: 0 clamp(18px, 5vw, 22px); }
  .stage-label { margin-bottom: 14px; gap: 10px; letter-spacing: 0.14em; }
  .stage-label + .quick-grid { margin-bottom: 32px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .quick-grid > .q-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .q-card { min-height: 78px; padding: 12px; gap: 8px; }
  .q-card::before { top: 10px; right: 12px; font-size: 0.64rem; }
  .q-ico { width: 30px; height: 30px; border-radius: 9px; }
  .q-ico svg { width: 16px; height: 16px; }
  .q-body { margin-top: 4px; }
  .q-title { font-size: 0.9rem; }
  .q-desc { display: none; }
  .q-card .q-arrow { display: none; }
  .arena { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
  .vs-emblem { margin: -4px 0; }
  .contender { padding: 18px; }
  .power-bar { grid-template-columns: 1fr; gap: 12px; text-align: center; padding: 16px; }
  .pb-side { flex-direction: row; justify-content: center; gap: 8px; align-items: baseline; }
}
@media (max-width: 380px) {
  .hud-logo b { font-size: 0.92rem; }
  .hud-cta { max-width: 138px; overflow: hidden; white-space: nowrap; }
  .hero h1 { font-size: clamp(2.1rem, 11.4vw, 3rem); }
  .q-title, .hero-quick-card span { font-size: 0.84rem; }
}

/* ============================================================
   READABILITY v9.2-preview — สว่างขึ้น อ่านง่ายขึ้น ไม่เพิ่มเมนูล่างซ้ำ
   ============================================================ */
body { background: #f2f6fa; }
.light-bg {
  background:
    linear-gradient(180deg, rgba(7,18,30,0.22) 0%, rgba(7,18,30,0.18) 34%, rgba(7,18,30,0.38) 68%, #f2f6fa 100%);
}
.noise { opacity: 0.16; }
.hero h1 { color: #ffffff; text-shadow: 0 3px 22px rgba(0,0,0,0.52); }
.hero h1 .gradient-text { color: rgba(255,255,255,0.86); }
.hero-coin, .hero-lead { color: rgba(255,255,255,0.84); text-shadow: 0 2px 14px rgba(0,0,0,0.48); }
.hero-quick-launch {
  background: rgba(248,251,255,0.90);
  border-color: rgba(255,255,255,0.72);
  box-shadow: 0 26px 80px rgba(15,31,48,0.22);
}
.hero-quick-kicker { color: #52667a; font-weight: 650; }
.hero-quick-card {
  color: #102033;
  background: rgba(255,255,255,0.92);
  border-color: rgba(16,32,51,0.12);
}
.hero-quick-card:hover { background: #ffffff; border-color: rgba(16,32,51,0.22); }
.hero-quick-card span { color: #102033; font-weight: 650; }
.hero-quick-card small { color: #52667a; }
.hero-quick-card.tour { background: #f5fbff; border-color: rgba(55,112,150,0.16); }
#menus { display: none !important; }
.vs-section, footer {
  --ink: #102033;
  --muted: #52667a;
  --faint: #738496;
  --line: rgba(16,32,51,0.14);
  --line-soft: rgba(16,32,51,0.08);
  --card: rgba(255,255,255,0.92);
  background: #f2f6fa;
  color: var(--ink);
}
.vs-section .section-title, .vs-section .contender-name, footer .f-logo { color: var(--ink); }
.vs-section .section-sub, footer .credit { color: var(--muted); }
.contender { box-shadow: 0 18px 50px rgba(16,32,51,0.06); }
@media (max-width: 700px) {
  .hero-quick-launch { padding: 10px; }
  .hero-quick-grid { gap: 7px; }
  .hero-quick-card { min-height: 42px; padding: 8px 10px; }
}
