/* ==========================================================================
   syn.css — ระบบดีไซน์เว็บ syndicate.in.th (เกม SYNDICATE)
   โครง/สัดส่วนยกจากพอร์ทัล robex3.com (rbo.css) ทุกส่วน: แถบบน · เมนูโลโก้ห้อยกลาง · คีย์อาร์ต · ปุ่มเข้าเล่นวงกลม · แผ่นเนื้อหา
   สี = ธีมเกม "Arcane Noir": พื้นหมึกดำอมน้ำเงิน · เวทเขียวน้ำทะเล · ม่วงเวท · เหล็กเงิน — ไม่มีทอง/อำพัน
   กฎ: ไม่มี inline style ใน HTML · สีทั้งหมดผ่านตัวแปรด้านล่าง
   ========================================================================== */

:root {
  --bg: #06090d;
  --bg-2: #0a0f15;
  --panel: #0d141b;
  --panel-2: #121b24;
  --panel-3: #18242f;
  --line: rgba(176, 204, 212, 0.12);
  --line-2: rgba(176, 204, 212, 0.22);
  --line-3: rgba(111, 211, 193, 0.55);

  --text: #e7eef0;
  --text-2: #b9c6cb;
  --muted: #8d9da5;
  --dim: #5d6b72;

  --hex: #6fd3c1;
  --hex-2: #a8f2e4;
  --hex-3: #d9fff7;
  --hex-d: #2e8f80;
  --hex-dd: #15504a;
  --vio: #9a7bd8;
  --vio-2: #c9b6ff;
  --vio-d: #5b4499;
  --steel: #b7c6cc;
  --steel-2: #dce6ea;
  --red: #e0584e;
  --red-2: #ff9c8e;
  --sky: #7cd3f4;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;
  --shadow-s: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-l: 0 30px 80px rgba(0, 0, 0, 0.6);
  --glow-hex: 0 0 0 3px rgba(111, 211, 193, 0.22);

  --font: "Kanit", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
  --topbar-h: 34px;
  --container: 1240px;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- พื้นฐาน */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 8% -6%, rgba(46, 143, 128, 0.2), transparent 62%),
    radial-gradient(900px 520px at 100% 12%, rgba(91, 68, 153, 0.2), transparent 64%),
    radial-gradient(1200px 700px at 50% 110%, rgba(21, 80, 74, 0.2), transparent 60%),
    linear-gradient(180deg, #070b10 0%, #06090d 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--hex); text-decoration: none; }
a:hover { color: var(--hex-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--hex); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(111, 211, 193, 0.35); color: #fff; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: #f3f8f9; font-weight: 500; }
p { margin: 0 0 0.8em; }
b, strong { font-weight: 500; }
.ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
svg.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- ปุ่ม */
.btn {
  --bg: linear-gradient(180deg, #2a3947 0%, #1b2732 100%);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--steel-2); font-weight: 500; font-size: 15px; letter-spacing: 0.2px;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap; user-select: none;
}
.btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { filter: grayscale(0.6) opacity(0.6); cursor: not-allowed; transform: none; }
.btn-hex {
  --bg: linear-gradient(180deg, #d9fff7 0%, #8fe9d8 38%, #45b9a6 100%);
  color: #04221d; font-weight: 600; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(10, 80, 70, 0.35), 0 6px 20px rgba(60, 200, 180, 0.35), 0 0 0 1px rgba(168, 242, 228, 0.25);
}
.btn-hex:hover { color: #021613; filter: brightness(1.06); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(10, 80, 70, 0.35), 0 10px 28px rgba(60, 200, 180, 0.5), 0 0 0 1px rgba(168, 242, 228, 0.4); }
.btn-play {
  --bg: linear-gradient(180deg, #ff8f62 0%, #f0432a 46%, #c41b1f 100%);
  color: #fff; font-weight: 600; text-shadow: 0 1px 0 rgba(90, 8, 12, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(90, 8, 12, 0.4), 0 6px 20px rgba(240, 60, 40, 0.42), 0 0 0 1px rgba(255, 150, 120, 0.28);
}
.btn-play:hover { color: #fff; filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 0 rgba(90, 8, 12, 0.4), 0 10px 28px rgba(240, 60, 40, 0.58), 0 0 0 1px rgba(255, 150, 120, 0.45); }
.btn-vio { --bg: linear-gradient(180deg, #b9a2f2 0%, #8a6ad2 55%, #6a4fc0 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 18px rgba(106, 79, 192, 0.4); }
.btn-ghost { --bg: rgba(176, 204, 212, 0.05); color: var(--hex-2); box-shadow: inset 0 0 0 1.5px rgba(111, 211, 193, 0.4); }
.btn-ghost:hover { color: #fff; box-shadow: inset 0 0 0 1.5px var(--hex); }
.btn-plain { --bg: transparent; color: var(--text-2); box-shadow: none; }
.btn-plain:hover { color: var(--hex-2); background: rgba(176, 204, 212, 0.06); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn .ico { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------------- ป้าย/ชิป */
.tag { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; border: 1.5px solid currentColor; background: rgba(6, 9, 13, 0.5); white-space: nowrap; }
.tag-notice { color: var(--steel-2); }
.tag-update { color: var(--hex); }
.tag-event { color: var(--red-2); }
.tag-news { color: var(--vio-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(176, 204, 212, 0.06); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.chip b { color: var(--hex-2); font-weight: 500; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.4px; color: #04221d; background: linear-gradient(180deg, #a8f2e4, #5fc9b6); }
.badge-test { background: linear-gradient(180deg, #c9b6ff, #8a6ad2); color: #fff; }

/* ---------------------------------------------------------------- หน้าต่าง (panel) */
.window { position: relative; background: linear-gradient(180deg, rgba(15, 22, 30, 0.96), rgba(11, 16, 22, 0.96)); border-radius: var(--radius-l); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); overflow: hidden; }
.window-head {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 22px;
  background: linear-gradient(180deg, rgba(176, 204, 212, 0.08) 0%, rgba(176, 204, 212, 0.02) 100%);
  border-bottom: 1px solid var(--line);
}
.window-head h2, .window-head h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.window-head .ico { color: var(--hex); }
.window-head .spacer { flex: 1; }
.window-body { padding: 20px 22px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 0 0 14px; }
.section-title .ico { width: 30px; height: 30px; flex: none; }
.section-title .more { margin-left: auto; font-size: 14px; font-weight: 400; display: inline-flex; align-items: center; gap: 4px; }
.section-title small { font-size: 13px; font-weight: 300; color: var(--muted); letter-spacing: 0.2px; }

/* ---------------------------------------------------------------- ฟอร์ม */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-size: 14px; font-weight: 500; color: var(--text); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .hint.ok { color: var(--hex); }
.field .hint.bad { color: var(--red-2); }
.input {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line-2);
  background: rgba(4, 7, 10, 0.6); color: var(--text); font-size: 15.5px; font-weight: 400; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--hex); background: rgba(4, 7, 10, 0.85); box-shadow: var(--glow-hex); }
.input.is-bad { border-color: var(--red); }
.input.is-ok { border-color: var(--hex-d); }
.input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px #0a1016 inset; caret-color: var(--text); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.input-wrap .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.input-wrap .eye:hover { color: var(--hex-2); background: rgba(176, 204, 212, 0.08); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--hex); flex: none; }
.rules { display: grid; gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.rules li { display: flex; align-items: center; gap: 6px; }
.rules li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.rules li.ok { color: var(--hex); }
.rules li.ok::before { border-color: var(--hex-d); background: var(--hex-d) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/10px no-repeat; }
.form-error { display: none; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(224, 88, 78, 0.12); border: 1px solid rgba(224, 88, 78, 0.4); color: #ffb4ab; font-size: 14px; }
.form-error.on { display: block; }
.form-ok { display: none; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(111, 211, 193, 0.1); border: 1px solid rgba(111, 211, 193, 0.4); color: var(--hex-2); font-size: 14px; }
.form-ok.on { display: block; }
.form-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: rgba(154, 123, 216, 0.1); border: 1px dashed rgba(154, 123, 216, 0.5); color: var(--vio-2); font-size: 13.5px; line-height: 1.55; }
.form-note .ico { color: var(--vio-2); margin-top: 2px; }
.form-note a { color: var(--hex-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- ส่วนหัว */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; }
.topbar { height: var(--topbar-h); background: rgba(3, 5, 8, 0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--muted); font-size: 13px; border-bottom: 1px solid rgba(176, 204, 212, 0.07); }
.topbar .container { height: 100%; display: flex; align-items: center; gap: 16px; }
.topbar a { color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--hex-2); }
.topbar .spacer { flex: 1; }
.topbar .sep { width: 1px; height: 12px; background: rgba(176, 204, 212, 0.22); }
.topbar .gem { width: 7px; height: 7px; transform: rotate(45deg); background: var(--hex); box-shadow: 0 0 8px rgba(111, 211, 193, 0.9); flex: none; }
.topbar .phase { display: inline-flex; align-items: center; gap: 6px; color: var(--vio-2); }
.topbar .phase i { width: 7px; height: 7px; border-radius: 50%; background: var(--vio); box-shadow: 0 0 0 3px rgba(154, 123, 216, 0.22); animation: live 2s infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 6px rgba(154, 123, 216, 0.04); } }
.gnb { position: relative; height: var(--header-h); background: linear-gradient(180deg, rgba(12, 18, 24, 0.94), rgba(9, 13, 18, 0.92)); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.gnb::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(111, 211, 193, 0.5) 30%, rgba(111, 211, 193, 0) 43%, rgba(111, 211, 193, 0) 57%, rgba(111, 211, 193, 0.5) 70%, transparent 100%); pointer-events: none; }
.gnb .container { height: 100%; display: grid; grid-template-columns: 1fr 300px 1fr; align-items: center; }
.gnb-side { display: flex; align-items: stretch; height: 100%; justify-content: space-evenly; }
.gnb-link { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 12px; color: var(--steel-2); font-weight: 400; font-size: 15px; letter-spacing: 0.3px; white-space: nowrap; transition: color 0.2s; }
.gnb-link .ico { width: 34px; height: 34px; transition: transform 0.25s cubic-bezier(.3, 1.6, .5, 1), filter 0.25s; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5)); }
.gnb-link:hover { color: var(--hex-2); }
.gnb-link:hover .ico { transform: translateY(-3px) scale(1.08); filter: drop-shadow(0 0 10px rgba(111, 211, 193, 0.55)); }
.gnb-link.is-active { color: var(--hex-2); }
.gnb-link.is-active::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 7px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--hex), transparent); box-shadow: 0 0 10px rgba(111, 211, 193, 0.9); }
/* โลโก้ห้อยกลาง: ป้ายเหล็กดำมุมตัด ยื่นลงมาใต้แถบเมนู */
.gnb-logo { position: relative; height: 100%; display: flex; justify-content: center; }
.gnb-logo a { position: absolute; top: 0; width: 300px; height: 124px; display: grid; place-items: center; padding: 0 30px 14px; transition: transform 0.3s ease; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.6)); }
.gnb-logo a::before, .gnb-logo a::after { content: ""; position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 30px 100%, 0 calc(100% - 30px)); }
.gnb-logo a::before { background: linear-gradient(180deg, rgba(176, 204, 212, 0.1) 0%, rgba(176, 204, 212, 0.28) 55%, rgba(111, 211, 193, 0.85) 100%); }
.gnb-logo a::after { inset: 0 1.5px 1.5px; background: linear-gradient(180deg, #0c1218 0%, #0a0f15 62%, #0c151a 100%); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 29.5px), calc(100% - 29.5px) 100%, 29.5px 100%, 0 calc(100% - 29.5px)); }
.gnb-logo a:hover { transform: translateY(2px); }
.gnb-logo img { position: relative; z-index: 1; width: 100%; height: auto; }
.gnb-mobile { display: none; }
.site-header.scrolled .gnb { background: linear-gradient(180deg, rgba(10, 15, 20, 0.98), rgba(8, 11, 16, 0.98)); }

/* มือถือ */
.drawer-bg { position: fixed; inset: 0; background: rgba(2, 4, 6, 0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(84vw, 340px); background: linear-gradient(180deg, #0f1820 0%, #090d12 100%); border-right: 1px solid var(--line-2); z-index: 91; transform: translateX(-102%); transition: transform 0.28s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; box-shadow: var(--shadow-l); }
.drawer.on { transform: none; }
.drawer.on + .drawer-bg, .drawer-bg.on { opacity: 1; pointer-events: auto; }
.drawer-head { padding: 16px 16px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.drawer-head img { width: 150px; height: auto; }
.drawer-head .x { margin-left: auto; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(176, 204, 212, 0.08); color: var(--steel-2); display: grid; place-items: center; }
.drawer nav { padding: 10px; overflow-y: auto; flex: 1; }
.drawer nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; color: var(--steel-2); font-weight: 400; font-size: 16px; }
.drawer nav a .ico { width: 30px; height: 30px; }
.drawer nav a:hover, .drawer nav a.is-active { background: rgba(111, 211, 193, 0.1); color: var(--hex-2); }
.drawer-foot { padding: 14px 16px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

@media (max-width: 1080px) {
  :root { --header-h: 58px; }
  .topbar { display: none; }
  .gnb .container { display: flex; justify-content: space-between; padding: 0 12px; }
  .gnb::after { display: none; }
  .gnb-side { display: none; }
  .gnb-mobile { display: flex; align-items: center; gap: 6px; }
  .gnb-logo { flex: 1; align-items: center; }
  .gnb-logo a { position: static; width: 128px; height: auto; padding: 0; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5)); }
  .gnb-logo a::before, .gnb-logo a::after { display: none; }
  .gnb-logo a:hover { transform: none; }
  .icon-btn { width: 42px; height: 42px; border-radius: 14px; border: 0; background: rgba(176, 204, 212, 0.08); box-shadow: inset 0 0 0 1px var(--line); color: var(--steel-2); display: grid; place-items: center; }
  .icon-btn .ico { width: 22px; height: 22px; }
}

/* ---------------------------------------------------------------- หน้าแรก: ฮีโร่ */
.page-home main { padding-top: 0; }
.hero { position: relative; min-height: 520px; height: 64vh; max-height: 700px; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: kenburns 30s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.07) translateY(-1%); } }
.hero-bg::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 46%; z-index: 1; background: linear-gradient(180deg, rgba(4, 6, 9, 0.72) 0%, rgba(4, 6, 9, 0.28) 52%, rgba(4, 6, 9, 0) 100%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 44%; background: linear-gradient(180deg, rgba(6, 9, 13, 0) 0%, rgba(6, 9, 13, 0.82) 60%, var(--bg) 100%); pointer-events: none; }
/* หมอกควันเวทลอยช้า ๆ หน้าเมือง */
.hero-fog { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; mix-blend-mode: screen; opacity: 0.55; }
.hero-fog::before, .hero-fog::after { content: ""; position: absolute; left: -30%; right: -30%; bottom: 8%; height: 46%;
  background: radial-gradient(38% 60% at 22% 60%, rgba(111, 211, 193, 0.22), transparent 70%), radial-gradient(34% 55% at 62% 50%, rgba(154, 123, 216, 0.2), transparent 70%), radial-gradient(30% 50% at 88% 66%, rgba(111, 211, 193, 0.16), transparent 70%);
  filter: blur(18px); animation: fog 38s linear infinite alternate; }
.hero-fog::after { bottom: 22%; opacity: 0.6; animation-duration: 54s; animation-direction: alternate-reverse; }
@keyframes fog { from { transform: translateX(-9%); } to { transform: translateX(9%); } }
.hero-center { position: absolute; left: 50%; top: calc(var(--topbar-h) + var(--header-h) + 196px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 6; }
.home-sheet { position: relative; z-index: 4; margin-top: -170px; }
.sheet { position: relative; background: linear-gradient(180deg, rgba(15, 22, 30, 0.95) 0%, rgba(10, 15, 21, 0.97) 100%); border-radius: 36px; padding: 26px; box-shadow: var(--shadow-l), inset 0 1px 0 rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sheet::before { content: ""; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(111, 211, 193, 0.7) 30%, rgba(111, 211, 193, 0) 44%, rgba(111, 211, 193, 0) 56%, rgba(111, 211, 193, 0.7) 70%, transparent); pointer-events: none; }

/* แบนเนอร์สไลด์ */
.carousel { position: relative; border-radius: 26px; overflow: hidden; background: #070a0e; aspect-ratio: 1190 / 380; min-height: 260px; box-shadow: inset 0 0 0 1px rgba(176, 204, 212, 0.14); isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; display: block; color: #fff; }
.slide.on { opacity: 1; z-index: 1; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; transform: scale(1.04); transition: transform 6s ease-out; }
.slide.on img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 10, 14, 0) 40%, rgba(7, 10, 14, 0.78) 60%, rgba(7, 10, 14, 0.97) 78%); }
.slide-text { position: absolute; z-index: 2; right: 4.5%; top: 50%; transform: translateY(-46%); width: min(33.5%, 400px); }
.slide-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; background: rgba(111, 211, 193, 0.1); color: var(--hex-2); border: 1px solid rgba(111, 211, 193, 0.42); margin-bottom: 12px; }
.slide-kicker::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--hex-2); box-shadow: 0 0 8px rgba(111, 211, 193, 0.9); }
.slide-title { font-size: clamp(24px, 3.1vw, 43px); font-weight: 600; line-height: 1.14; color: #fff; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6); letter-spacing: 0.2px; }
.slide-desc { margin-top: 12px; font-size: clamp(13px, 1.2vw, 15.5px); color: #c9d6da; line-height: 1.65; }
.slide-cta { margin-top: 18px; }
.car-ctrl { position: absolute; z-index: 3; right: 18px; bottom: 16px; display: flex; gap: 8px; align-items: center; }
.car-btn { height: 34px; min-width: 34px; padding: 0 10px; border-radius: 10px; border: 0; background: rgba(176, 204, 212, 0.12); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(176, 204, 212, 0.12); }
button.car-btn:hover { background: rgba(111, 211, 193, 0.28); }
.car-count { display: inline-flex; grid-auto-flow: column; letter-spacing: 1px; }
.car-count span { opacity: 0.5; margin: 0 6px; }
.car-dots { position: absolute; z-index: 3; left: 22px; bottom: 18px; display: flex; gap: 6px; }
.car-dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.35); transition: width 0.3s, background 0.3s; }
.car-dot.on { width: 26px; background: linear-gradient(90deg, #d9fff7, #6fd3c1); box-shadow: 0 0 10px rgba(111, 211, 193, 0.8); }
.car-prog { position: absolute; z-index: 3; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, #6fd3c1, #9a7bd8); }
.car-prog.run { animation: prog linear forwards; }
@keyframes prog { to { width: 100%; } }

.home-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; margin-top: 26px; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.news-item a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 16px; background: rgba(176, 204, 212, 0.045); border: 1px solid var(--line); color: var(--text); transition: background 0.15s, transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.news-item a:hover { background: rgba(111, 211, 193, 0.08); border-color: rgba(111, 211, 193, 0.35); transform: translateX(3px); }
.news-item .t { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-item .d { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.news-item.pinned .t::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; vertical-align: 2px; transform: rotate(45deg); background: var(--red); box-shadow: 0 0 8px rgba(224, 88, 78, 0.8); }
.guide-card { position: relative; display: block; border-radius: 22px; overflow: hidden; min-height: 230px; background: #0a1016; color: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); }
.guide-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: transform 0.4s; }
.guide-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 12, 17, 0) 30%, rgba(8, 12, 17, 0.84) 60%, rgba(8, 12, 17, 0.96)); }
.guide-card .txt { position: absolute; z-index: 2; right: 18px; top: 18px; bottom: 18px; width: 52%; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.guide-card h3 { color: #fff; font-size: 20px; }
.guide-steps { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: 13.5px; }
.guide-steps li { display: flex; align-items: flex-start; gap: 8px; color: #d2dee2; line-height: 1.45; }
.guide-steps b { width: 22px; height: 22px; border-radius: 50%; background: rgba(111, 211, 193, 0.18); box-shadow: inset 0 0 0 1px rgba(111, 211, 193, 0.5); color: var(--hex-2); display: grid; place-items: center; font-size: 12px; flex: none; }
.guide-card:hover { color: #fff; }
.guide-card:hover img { transform: scale(1.03); }
.quick-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 16px; background: rgba(176, 204, 212, 0.045); border: 1px solid var(--line); color: var(--steel-2); font-weight: 400; font-size: 13.5px; text-align: center; transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s; }
.quick .ico { width: 32px; height: 32px; }
.quick:hover { background: rgba(111, 211, 193, 0.08); border-color: rgba(111, 211, 193, 0.35); color: var(--hex-2); transform: translateY(-2px); }

/* แถบจุดเด่นใต้แผ่นหน้าแรก */
.feat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.feat { display: flex; align-items: center; gap: 12px; padding: 4px 6px; }
.feat .n { font-size: 30px; font-weight: 600; line-height: 1; color: var(--hex-2); text-shadow: 0 0 18px rgba(111, 211, 193, 0.45); font-variant-numeric: tabular-nums; }
.feat .l { font-size: 13.5px; color: var(--text-2); line-height: 1.35; }
.feat .l small { display: block; color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------------------- หน้าใน: หัวหน้า */
.page-hero { position: relative; height: 386px; overflow: hidden; margin-bottom: -80px; }
.page-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 6, 9, 0.62) 0%, rgba(4, 6, 9, 0.32) 45%, rgba(6, 9, 13, 0.7) 78%, var(--bg) 100%); }
.page-hero .title { position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--topbar-h) + var(--header-h) + 66px); text-align: center; color: #fff; padding: 0 16px; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); font-weight: 600; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8); letter-spacing: 0.5px; }
.page-hero p { margin-top: 6px; font-size: 15px; color: #d6e2e6; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.page-hero .kick { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; color: var(--hex-2); text-shadow: 0 1px 8px #000; }
.page-hero .kick::before, .page-hero .kick::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--hex-2)); }
.page-hero .kick::after { transform: scaleX(-1); }
.page-body { position: relative; z-index: 3; padding-bottom: 60px; }
.page-body .sheet { padding: 22px 24px 28px; border-radius: 30px; }
.page-plain { padding-top: calc(var(--topbar-h) + var(--header-h) + 74px); padding-bottom: 60px; }
@media (max-width: 1080px) { .page-plain { padding-top: calc(var(--header-h) + 18px); } .page-hero { height: 300px; } .page-hero .title { top: calc(var(--header-h) + 28px); } }

/* แท็บ */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; background: rgba(4, 7, 10, 0.55); border-radius: 999px; border: 1px solid var(--line-2); width: max-content; max-width: 100%; }
.tab { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font-weight: 400; font-size: 14px; white-space: nowrap; }
.tab:hover { color: var(--hex-2); }
.tab.on { background: linear-gradient(180deg, #a8f2e4, #4fbfab); color: #04221d; font-weight: 500; box-shadow: 0 4px 16px rgba(60, 200, 180, 0.35); }
.tabs-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.lead { margin: 18px 0 0; color: var(--text-2); font-size: 15px; max-width: 760px; }
.sub-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 30px 0 4px; font-size: 20px; }
.sub-title::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg) translateY(-2px); background: var(--hex); box-shadow: 0 0 10px rgba(111, 211, 193, 0.9); flex: none; align-self: center; }
.sub-title small { font-size: 12px; font-weight: 400; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------------------------------------------------------------- ข่าว */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.news-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); box-shadow: var(--shadow-s); color: var(--text); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(111, 211, 193, 0.4); color: var(--text); }
.news-card .cover { aspect-ratio: 16 / 8; background: #0a1016; overflow: hidden; }
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .cover img { transform: scale(1.04); }
.news-card .b { padding: 14px 16px 16px; display: grid; gap: 8px; }
.news-card h3 { font-size: 16.5px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .s { font-size: 13.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.article { max-width: 860px; margin: 0 auto; }
.article .window-body { padding: 28px 34px 34px; }
.article h1 { font-size: clamp(22px, 3vw, 32px); margin: 10px 0 6px; font-weight: 600; }
.article .meta { color: var(--muted); font-size: 13.5px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.article .cover { margin: 20px 0; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); }
.article .cover img { width: 100%; height: auto; }
.prose { font-size: 16px; line-height: 1.85; color: var(--text); }
.prose h2 { font-size: 21px; margin: 26px 0 10px; padding-left: 12px; border-left: 3px solid var(--hex); }
.prose h3 { font-size: 18px; margin: 20px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--hex); }
.prose b { color: #fff; }
.prose code { background: rgba(176, 204, 212, 0.1); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
.prose blockquote { margin: 16px 0; padding: 12px 16px; background: rgba(111, 211, 193, 0.07); border-radius: 14px; border-left: 3px solid var(--vio); color: var(--text-2); }
.around { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.around a { display: block; padding: 14px 16px; border-radius: 14px; background: rgba(176, 204, 212, 0.045); border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.around a:hover { border-color: rgba(111, 211, 193, 0.4); }
.around a small { display: block; color: var(--muted); }
.around a.next { text-align: right; }

/* ---------------------------------------------------------------- เอกสาร: ข้อตกลง · การซื้อ · คืนเงิน · ความเป็นส่วนตัว (10-12) */
/* แถบสลับเอกสาร — กลางจอบนคอม · มือถือเลื่อนข้างได้ในแถบ (หน้าไม่ล้น) · margin auto หัวท้าย = กลางเมื่อพอดี ชิดซ้ายเมื่อล้น */
.legal-tabs { max-width: 860px; margin: 0 auto 14px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.legal-tabs::-webkit-scrollbar { display: none; }
.legal-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--text-2); background: rgba(13, 20, 27, 0.88); border: 1px solid var(--line-2); transition: border-color 0.2s, color 0.2s; }
.legal-tabs a:first-child { margin-left: auto; }
.legal-tabs a:last-child { margin-right: auto; }
.legal-tabs a .ico { width: 17px; height: 17px; color: var(--muted); }
.legal-tabs a:hover { color: #fff; border-color: rgba(111, 211, 193, 0.55); }
.legal-tabs a[aria-current="page"] { color: #fff; background: linear-gradient(180deg, rgba(111, 211, 193, 0.2), rgba(111, 211, 193, 0.07)); border-color: rgba(111, 211, 193, 0.6); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.legal-tabs a[aria-current="page"] .ico { color: var(--hex); }
.prose h2[id] { scroll-margin-top: 150px; }
.prose .lead { font-size: 16.5px; color: var(--text); }
/* สรุปสั้นก่อนอ่าน: การ์ด 2 × 2 */
.legal-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 6px; }
.legal-sum > div { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; align-items: start; padding: 14px 16px; border-radius: 16px; background: rgba(176, 204, 212, 0.045); border: 1px solid var(--line); }
.legal-sum .ico { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--hex); background: rgba(111, 211, 193, 0.1); box-shadow: inset 0 0 0 1px rgba(111, 211, 193, 0.25); }
.legal-sum b { font-size: 15.5px; font-weight: 500; line-height: 1.55; }
.legal-sum span { font-size: 14px; color: var(--text-2); line-height: 1.65; }
/* กล่องสำคัญ (ช่วงทดสอบ) — ม่วงเวท ไม่ใช้แดง (ไม่ใช่ข้อผิดพลาด) */
.legal-alert { margin: 18px 0; padding: 15px 18px 6px; border-radius: 18px; background: linear-gradient(180deg, rgba(154, 123, 216, 0.14), rgba(154, 123, 216, 0.05)); border: 1px solid rgba(154, 123, 216, 0.45); }
.legal-alert .t { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 500; color: var(--vio-2); line-height: 1.5; margin-bottom: 4px; }
.legal-alert .t .ico { color: var(--vio-2); width: 22px; height: 22px; }
.legal-alert li::marker { color: var(--vio-2); }
.legal-alert p { margin: 0 0 10px; color: var(--text-2); }
/* ตารางค่าเติมเงิน */
.legal-kv { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 16px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; font-size: 15px; }
.legal-kv th, .legal-kv td { padding: 11px 16px; text-align: left; vertical-align: top; line-height: 1.65; }
.legal-kv th { width: 22%; font-weight: 400; color: var(--muted); background: rgba(176, 204, 212, 0.045); }
.legal-kv tr + tr > * { border-top: 1px solid var(--line); }
.legal-kv td small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.legal-kv .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.prose .legal-kv .chip b { color: var(--hex-2); }
/* ขั้นตอน (เลขในวง) */
.prose .legal-steps { list-style: none; padding: 0; counter-reset: st; display: grid; gap: 10px; margin: 10px 0 16px; }
.prose .legal-steps li { counter-increment: st; position: relative; margin: 0; padding: 12px 16px 12px 60px; border-radius: 14px; background: rgba(176, 204, 212, 0.045); border: 1px solid var(--line); line-height: 1.7; }
.prose .legal-steps li::before { content: counter(st); position: absolute; left: 15px; top: 13px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: #06211d; background: linear-gradient(180deg, var(--hex-2), var(--hex-d)); box-shadow: 0 0 14px rgba(111, 211, 193, 0.3); }
.prose .legal-steps li > b { display: block; }
.prose .legal-steps span { color: var(--text-2); font-size: 15px; }
/* คืนได้ / ไม่คืน — สองคอลัมน์ */
.legal-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 8px; }
.legal-yn > div { padding: 14px 18px 4px; border-radius: 18px; border: 1px solid var(--line-2); }
.legal-yn .yes { border-color: rgba(111, 211, 193, 0.4); background: linear-gradient(180deg, rgba(111, 211, 193, 0.1), rgba(111, 211, 193, 0.02)); }
.legal-yn .no { border-color: rgba(224, 88, 78, 0.36); background: linear-gradient(180deg, rgba(224, 88, 78, 0.09), rgba(224, 88, 78, 0.02)); }
.prose .legal-yn h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 16.5px; }
.legal-yn .yes h3 { color: var(--hex-2); }
.legal-yn .no h3 { color: var(--red-2); }
.legal-yn h3 .ico { width: 28px; height: 28px; padding: 5px; border-radius: 50%; }
.legal-yn .yes h3 .ico { color: var(--hex); background: rgba(111, 211, 193, 0.15); }
.legal-yn .no h3 .ico { color: var(--red-2); background: rgba(224, 88, 78, 0.15); }
.legal-yn li { font-size: 15px; line-height: 1.7; }
.prose .legal-yn .no li::marker { color: var(--red); }
/* ติดต่อทีมงาน */
.legal-contact { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 16px 18px; border-radius: 18px; background: rgba(176, 204, 212, 0.045); border: 1px solid var(--line-2); }
.legal-contact > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 14px; color: var(--hex); background: rgba(111, 211, 193, 0.1); box-shadow: inset 0 0 0 1px rgba(111, 211, 193, 0.25); }
.legal-contact .c { flex: 1; min-width: 0; line-height: 1.6; }
.legal-contact .c > b { display: block; font-size: 16px; font-weight: 500; }
.legal-contact .c span { color: var(--text-2); font-size: 14px; }
.legal-contact .btn { flex: none; }
@media (max-width: 760px) {
  .legal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; overflow: visible; padding: 0; }      /* มือถือ: 2 × 2 เห็นครบทุกปุ่ม ไม่ต้องเลื่อน */
  .legal-tabs a, .legal-tabs a:first-child, .legal-tabs a:last-child { margin: 0; justify-content: center; height: 42px; padding: 0 10px; font-size: 13.5px; }
  .prose h2[id] { scroll-margin-top: 80px; }
  .legal-sum, .legal-yn { grid-template-columns: 1fr; }
  .legal-kv th, .legal-kv td { display: block; width: auto; padding: 10px 14px; }
  .legal-kv th { padding-bottom: 0; background: none; font-size: 13.5px; }
  .legal-kv tr + tr > td { border-top: 0; }
  .legal-kv td { padding-top: 2px; }
  .prose .legal-steps li { padding-left: 54px; }
  .prose .legal-steps li::before { left: 12px; }
  .legal-contact { flex-wrap: wrap; align-items: flex-start; }
  .legal-contact .btn { width: 100%; }
}

/* ---------------------------------------------------------------- อาชีพ */
/* ตารางการ์ดแบบจัดกึ่งกลาง: --n = จำนวนต่อแถว · แถวสุดท้ายที่ไม่เต็มอยู่กลาง (7 อาชีพ = 4+3) */
.class-grid, .mob-grid, .stage-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g); }
.class-grid > *, .mob-grid > *, .stage-row > * { flex: 0 0 calc((100% - (var(--n) - 1) * var(--g)) / var(--n)); min-width: 0; }
.class-grid { --n: 4; --g: 16px; margin-top: 18px; }
@media (min-width: 1081px) { .class-grid.n6 { --n: 3; max-width: 960px; margin-inline: auto; } }      /* 6 ใบบนคอม = 3 + 3 (ไม่ให้แถวล่างเหลือ 2) */
.class-card { position: relative; display: block; width: 100%; padding: 0; text-align: left; color: inherit; cursor: pointer; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #16212c 0%, #0c1218 100%); box-shadow: var(--shadow-s); border: 1px solid var(--line-2); transition: transform 0.25s cubic-bezier(.3, 1.4, .5, 1), box-shadow 0.25s, border-color 0.25s; }
.class-card:hover { transform: translateY(-6px); box-shadow: var(--shadow), 0 0 0 1px rgba(111, 211, 193, 0.35); border-color: rgba(111, 211, 193, 0.5); }
.class-card .art { position: relative; height: 300px; display: flex; align-items: flex-end; justify-content: center; padding-top: 12px;
  background: radial-gradient(130px 60px at 50% 93%, rgba(111, 211, 193, 0.32), transparent 72%), radial-gradient(190px 190px at 50% 50%, rgba(154, 123, 216, 0.14), transparent 70%); }
.class-card .art::before { content: ""; position: absolute; left: 50%; bottom: 10px; width: 150px; height: 26px; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(111, 211, 193, 0.5); box-shadow: 0 0 18px rgba(111, 211, 193, 0.35), inset 0 0 14px rgba(111, 211, 193, 0.25); }
.class-card .art img { position: relative; height: 272px; width: auto; max-width: 94%; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.55)); transition: transform 0.3s; margin-bottom: 14px; }
.class-card:hover .art img { transform: scale(1.05) translateY(-3px); }
.class-card > span { display: block; }
.class-card .cap { padding: 12px 14px 14px; background: rgba(6, 9, 13, 0.6); border-top: 1px solid var(--line); min-height: 86px; }
.class-card .cap b { display: block; font-size: 17px; color: #fff; letter-spacing: 0.3px; }
.class-card .cap small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.class-card .job { position: absolute; top: 10px; left: 10px; z-index: 2; }
.job-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(6, 9, 13, 0.72); color: var(--steel-2); font-size: 12px; font-weight: 400; box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.job-dot { width: 8px; height: 8px; transform: rotate(45deg); }
.job-novice { background: #c9d5da; } .job-swordman { background: #e0584e; } .job-archer { background: #6fd3c1; }
.job-magician { background: #9a7bd8; } .job-merchant { background: #e39a5c; } .job-acolyte { background: #f1f6f7; } .job-thief { background: #5fa7c9; }
.class-detail { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: start; }
.pose-stage { position: relative; border-radius: 24px; background: radial-gradient(240px 90px at 50% 90%, rgba(111, 211, 193, 0.3), transparent 72%), radial-gradient(320px 320px at 50% 46%, rgba(154, 123, 216, 0.16), transparent 70%), linear-gradient(180deg, #151f29, #0a0f15); height: 440px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); }
.pose-stage img { height: 400px; width: auto; max-width: 96%; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.6)); animation: floaty 4.5s ease-in-out infinite; margin-bottom: 18px; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.pose-pick { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.pose-pick button { width: 66px; height: 66px; border-radius: 16px; border: 1.5px solid var(--line-2); background: rgba(176, 204, 212, 0.05); padding: 4px; transition: border-color 0.15s, box-shadow 0.15s; }
.pose-pick button img { width: 100%; height: 100%; object-fit: contain; }
.pose-pick button.on { border-color: var(--hex); box-shadow: var(--glow-hex); }
.class-info h3 { font-size: 30px; font-weight: 600; letter-spacing: 0.4px; }
.class-info .th { color: var(--hex-2); font-size: 15px; margin: 2px 0 12px; }
.class-info p { color: var(--text-2); font-size: 15px; }
.kv-list { display: grid; gap: 8px; margin: 14px 0 0; }
.kv-list > div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(176, 204, 212, 0.045); border: 1px solid var(--line); font-size: 14px; }
.kv-list dt { color: var(--muted); }
.kv-list dd { margin: 0; color: var(--text); }
.note-soon { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(154, 123, 216, 0.08); border: 1px dashed rgba(154, 123, 216, 0.45); color: var(--vio-2); font-size: 14px; }
.note-soon .ico { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- มอนสเตอร์ */
.mob-grid { --n: 6; --g: 12px; margin-top: 14px; }
.mob-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mob-nav a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--text-2); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2); transition: border-color 0.2s, color 0.2s; }
.mob-nav a:hover { color: #fff; border-color: rgba(111, 211, 193, 0.6); }
.mob-nav b { color: var(--hex); font-weight: 600; }
.mob-sec { margin-top: 36px; scroll-margin-top: 150px; }
.mob-sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mob-sec-head h2 { margin: 0; font-size: 24px; color: #fff; }
.mob-sec-head .cnt { font-size: 12.5px; color: var(--hex); padding: 3px 11px; border-radius: 999px; background: rgba(111, 211, 193, 0.1); box-shadow: inset 0 0 0 1px rgba(111, 211, 193, 0.25); }
.mob-sec-head p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 13.5px; }
.mob-sec .sub-title { margin-top: 22px; font-size: 17px; }
.mob-sec .mob-sec-head + .mob-grid { margin-top: 18px; }
.mob-card .art { position: relative; }
.rk { position: absolute; top: 8px; left: 8px; z-index: 1; height: 19px; padding: 0 7px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; line-height: 19px; color: #fff; }
.rk-mvp { background: linear-gradient(180deg, #e2553a, #a52a1b); box-shadow: 0 0 12px rgba(226, 85, 58, 0.5); }
.rk-mini { background: linear-gradient(180deg, #8f6fd0, #5b4399); }
.rk-elite { background: linear-gradient(180deg, #3f9c8e, #256b62); }
.mob-card.boss { border-color: rgba(226, 85, 58, 0.32); }
.mob-card { border-radius: 20px; background: linear-gradient(180deg, #141e28, #0c1218); border: 1px solid var(--line-2); box-shadow: var(--shadow-s); overflow: hidden; text-align: center; transition: transform 0.2s, border-color 0.2s; }
.mob-card:hover { transform: translateY(-4px); border-color: rgba(154, 123, 216, 0.6); }
.mob-card .art { height: 156px; display: grid; place-items: center; background: radial-gradient(110px 46px at 50% 88%, rgba(154, 123, 216, 0.3), transparent 72%), radial-gradient(140px 120px at 50% 40%, rgba(111, 211, 193, 0.08), transparent 70%); }
.mob-card .art img { max-height: 132px; width: auto; height: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.55)); transition: transform 0.3s; }
.mob-card:hover .art img { transform: scale(1.07) rotate(-2deg); }
.mob-card .cap { padding: 10px 12px 12px; border-top: 1px solid var(--line); background: rgba(6, 9, 13, 0.55); }
.mob-card b { display: block; color: #fff; font-size: 16px; }
.mob-card small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.lv { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-bottom: 3px; border-radius: 999px; font-size: 11.5px; font-weight: 500; color: var(--vio-2); background: rgba(154, 123, 216, 0.14); box-shadow: inset 0 0 0 1px rgba(154, 123, 216, 0.4); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- แผนที่โลก */
.stage-row { --n: 3; --g: 16px; margin-top: 14px; }
.stage-row.wide { --n: 2; }
.stage-card { position: relative; border-radius: 20px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-s); display: flex; flex-direction: column; transition: transform 0.2s, border-color 0.2s; }
.stage-card:hover { transform: translateY(-4px); border-color: rgba(111, 211, 193, 0.45); }
.stage-card .pic { position: relative; aspect-ratio: 16 / 8.4; overflow: hidden; }
.stage-card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.stage-card:hover .pic img { transform: scale(1.05); }
.stage-card .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 17, 0) 38%, rgba(8, 12, 17, 0.92)); }
.stage-card .c { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 10px; }
.stage-card .c b { display: block; font-size: 19px; font-weight: 500; color: #fff; text-shadow: 0 2px 10px #000; }
.stage-card .c small { font-size: 11.5px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--hex-2); }
.stage-card .type { position: absolute; z-index: 2; top: 10px; left: 10px; }
.stage-card .lvr { position: absolute; z-index: 2; top: 10px; right: 10px; }
.stage-card .mobs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 14px; }
.stage-card .mobs .chip { height: 26px; font-size: 12px; }
.stage-card .mobs .safe { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- คู่มือ */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.platform { padding: 18px; border-radius: 20px; background: rgba(176, 204, 212, 0.045); border: 1px solid var(--line); }
.platform .ico { width: 40px; height: 40px; margin-bottom: 8px; }
.platform h3 { font-size: 17px; margin-bottom: 4px; }
.platform p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.steps { counter-reset: st; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; padding: 0; list-style: none; }
.steps li { counter-increment: st; position: relative; padding: 18px 18px 18px 64px; border-radius: 20px; background: linear-gradient(180deg, rgba(111, 211, 193, 0.08), rgba(111, 211, 193, 0.02)); border: 1px solid rgba(111, 211, 193, 0.25); }
.steps li::before { content: counter(st); position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 600; color: #04221d; background: linear-gradient(180deg, #d9fff7, #5fc9b6); box-shadow: 0 0 16px rgba(111, 211, 193, 0.5); }
.steps b { display: block; font-size: 16px; color: #fff; }
.steps span { font-size: 13.5px; color: var(--text-2); }
.keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.key-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(176, 204, 212, 0.045); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.key-row .k { display: flex; align-items: center; gap: 4px; flex: none; min-width: 128px; }
kbd { display: inline-grid; place-items: center; min-width: 32px; height: 30px; padding: 0 8px; border-radius: 8px; background: linear-gradient(180deg, #25323e, #18222c); border: 1px solid var(--line-2); border-bottom-width: 3px; font-family: var(--font); font-size: 12.5px; font-weight: 500; color: var(--steel-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.tip-card { padding: 16px 18px; border-radius: 18px; background: rgba(176, 204, 212, 0.045); border: 1px solid var(--line); }
.tip-card h3 { font-size: 16px; margin-bottom: 6px; color: var(--hex-2); }
.tip-card ul { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14px; }
.tip-card li::marker { color: var(--hex); }

/* ---------------------------------------------------------------- เรื่องราว */
.story-lead { max-width: 820px; margin: 10px auto 0; text-align: center; }
.story-lead .quote { font-size: clamp(20px, 2.6vw, 30px); font-weight: 500; line-height: 1.45; color: #fff; }
.story-lead .quote em { font-style: normal; color: var(--hex-2); text-shadow: 0 0 22px rgba(111, 211, 193, 0.45); }
.story-lead p { margin-top: 14px; color: var(--text-2); font-size: 15.5px; }
.story-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: center; margin-top: 34px; }
.story-row.flip .pic { order: 2; }
.story-row .pic { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); aspect-ratio: 16 / 9; }
.story-row .pic img { width: 100%; height: 100%; object-fit: cover; }
.story-row h2 { font-size: 26px; font-weight: 600; margin: 4px 0 10px; }
.story-row .kick { font-size: 12px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--hex); }
.story-row p { color: var(--text-2); font-size: 15.5px; }

/* ---------------------------------------------------------------- โมดัล */
.modal-bg { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 4, 6, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-bg.on { display: flex; animation: fade 0.18s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(100%, 480px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #121b24, #0b1016); border: 1px solid var(--line-2); box-shadow: var(--shadow-l), 0 0 0 1px rgba(111, 211, 193, 0.12); animation: pop 0.22s cubic-bezier(.2, 1.2, .4, 1); }
.modal.wide { width: min(100%, 880px); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.modal-head { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); background: rgba(176, 204, 212, 0.05); }
.modal-head h3 { font-size: 17px; flex: 1; }
.modal-x { width: 38px; height: 38px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font-size: 16px; }
.modal-x:hover { background: rgba(176, 204, 212, 0.1); color: #fff; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- toast */
.toasts { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #131d27; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14.5px; animation: pop 0.2s ease; }
.toast .i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: rgba(176, 204, 212, 0.16); flex: none; }
.toast.ok .i { background: var(--hex-d); color: #fff; }
.toast.bad .i { background: var(--red); color: #fff; }

/* ---------------------------------------------------------------- สมาชิก (ล็อกอิน/สมัคร) */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; padding-top: calc(var(--topbar-h) + var(--header-h)); }
.auth-art { position: relative; overflow: hidden; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 14% center; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 9, 13, 0.1), rgba(6, 9, 13, 0) 55%, rgba(6, 9, 13, 0.94) 100%), linear-gradient(180deg, rgba(6, 9, 13, 0.45) 0%, rgba(6, 9, 13, 0) 30%, rgba(6, 9, 13, 0) 55%, rgba(6, 9, 13, 0.85) 100%); }
.auth-art .cap { position: absolute; z-index: 2; left: 34px; bottom: 30px; right: 34px; color: #fff; text-shadow: 0 3px 14px rgba(0, 0, 0, 0.9); }
.auth-art .cap b { font-size: 28px; font-weight: 600; display: block; }
.auth-art .cap span { color: #d6e2e6; }
.auth-side { display: flex; align-items: center; justify-content: center; padding: 64px 20px 34px; }
.auth-card { width: min(100%, 440px); }
.auth-card .window-body { padding: 26px 28px 28px; }
.auth-card h1 { font-size: 26px; font-weight: 600; margin-bottom: 4px; }
.auth-card .sub { color: var(--text-2); font-size: 14.5px; margin-bottom: 22px; }
.auth-links { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0 18px; font-size: 14px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14.5px; color: var(--text-2); }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; padding-top: var(--header-h); }
  .auth-art { height: 210px; }
  .auth-art img { object-position: 50% 58%; }
  .auth-art .cap { left: 18px; bottom: 54px; right: 18px; }
  .auth-art .cap b { font-size: 21px; }
  .auth-art .cap span { font-size: 13.5px; }
  .auth-side { padding: 0 14px 40px; margin-top: -40px; position: relative; z-index: 2; align-items: flex-start; }
}

/* ---------------------------------------------------------------- สมาชิก (10-13 · เปิดระบบ): สถานะบนหัวเว็บ · แผงสำเร็จ · รหัสกู้บัญชี · บัญชีของฉัน */
/* ชุดแสดงตามสถานะ: html.is-member = เข้าสู่ระบบด้วย ID แล้ว · ก่อนรู้สถานะ (ยังไม่มี .me-known) ซ่อนทั้งสองชุดไว้กันกระพริบ */
.only-guest, .only-member { display: contents; }
html.is-member .only-guest, html:not(.is-member) .only-member { display: none !important; }
html:not(.me-known) .only-guest, html:not(.me-known) .only-member { visibility: hidden; }
.topbar .me-link .ico { width: 15px; height: 15px; color: var(--hex); }
.topbar .me-link b { color: var(--hex-2); font-weight: 500; letter-spacing: 0.2px; }
.linkish { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--text-2); cursor: pointer; }
.linkish:hover { color: var(--hex-2); }
.icon-btn.is-me { color: var(--hex-2); box-shadow: inset 0 0 0 1.5px rgba(111, 211, 193, 0.55), 0 0 12px rgba(111, 211, 193, 0.18); }
.drawer-me { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(111, 211, 193, 0.07); border: 1px solid rgba(111, 211, 193, 0.28); color: var(--text); }
.drawer-me .av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(111, 211, 193, 0.14); color: var(--hex-2); flex: none; }
.drawer-me small { display: block; font-size: 11.5px; color: var(--muted); }
.drawer-me b { display: block; font-size: 16px; font-weight: 600; color: var(--hex-2); word-break: break-all; line-height: 1.3; }
.btn-out { color: var(--red-2); }
.btn-out:hover { color: #ffc4bb; background: rgba(224, 88, 78, 0.1); }
.logout-ask p { margin: 0 0 8px; }
.logout-ask b { color: var(--hex-2); }

/* แถบแจ้งโทนเวท (ผูกบัญชีผู้มาเยือน · ย้ายตัวละคร · เข้าสู่ระบบอยู่แล้ว) */
.form-note.note-hex { background: rgba(111, 211, 193, 0.07); border-color: rgba(111, 211, 193, 0.42); color: var(--text-2); }
.form-note.note-hex .ico { color: var(--hex); }
.form-note.note-hex b { color: var(--hex-2); font-weight: 500; }
.form-foot { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.form-foot .ico { width: 15px; height: 15px; margin-top: 2px; color: var(--hex-d); }
.auth-links .muted { font-size: 12.5px; }

/* แผงสำเร็จ (สมัคร · ตั้งรหัสผ่านใหม่) */
.auth-done { text-align: center; outline: none; animation: pop 0.28s cubic-bezier(.2, 1.2, .4, 1); }
.auth-done .sub { line-height: 1.7; }
.auth-done .uname { color: var(--hex-2); font-weight: 600; word-break: break-all; }
.done-mark { width: 74px; height: 74px; margin: 2px auto 14px; border-radius: 50%; display: grid; place-items: center; color: #04221d;
  background: radial-gradient(circle at 50% 32%, #e6fffa 0%, #8fe9d8 46%, #2e8f80 100%);
  box-shadow: 0 0 0 6px rgba(111, 211, 193, 0.12), 0 0 0 13px rgba(111, 211, 193, 0.05), 0 10px 34px rgba(60, 200, 180, 0.45); }
.done-mark .ico { width: 36px; height: 36px; }
.done-acts { display: grid; gap: 10px; margin-top: 22px; }

/* รหัสกู้บัญชี: กล่องรหัส + ปุ่มคัดลอก · ช่องกรอกตัวพิมพ์ใหญ่ระยะห่างกว้าง */
.rc-box { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 16px; text-align: left;
  background: linear-gradient(180deg, rgba(111, 211, 193, 0.09), rgba(111, 211, 193, 0.03)); border: 1.5px dashed rgba(111, 211, 193, 0.5); }
.rc-main { min-width: 0; flex: 1; display: grid; gap: 4px; }
.rc-box .lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.rc-box .lbl .ico { width: 15px; height: 15px; color: var(--hex); }
.rc-code { font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace; font-size: 19px; font-weight: 600; letter-spacing: 1.2px; color: var(--hex-3); white-space: nowrap; user-select: all; -webkit-user-select: all; }
.rc-box:not(.ready) .rc-code { color: var(--muted); font-family: inherit; font-size: 15px; font-weight: 400; letter-spacing: 0; }
.rc-box:not(.ready) [data-copy] { visibility: hidden; }
.rc-box .btn { flex: none; }
.rc-tip { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.auth-done .rc-box { margin-top: 4px; }
.rc-input { font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace; letter-spacing: 2px; text-transform: uppercase; font-size: 16.5px; }
.rc-input::placeholder { letter-spacing: 2px; }
.rc-where { margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; background: rgba(176, 204, 212, 0.04); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.rc-where b { display: flex; align-items: center; gap: 7px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.rc-where b .ico { width: 16px; height: 16px; color: var(--hex); }
.rc-where ul { margin: 0; padding-left: 20px; }
.rc-where li::marker { color: var(--hex-d); }

/* บัญชีของฉัน */
.acct-id { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.acct-id .av { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; flex: none; color: var(--hex-2);
  background: linear-gradient(180deg, rgba(111, 211, 193, 0.24), rgba(111, 211, 193, 0.06)); border: 1px solid var(--line-3); box-shadow: 0 0 22px rgba(111, 211, 193, 0.16); }
.acct-id .av .ico { width: 28px; height: 28px; }
.acct-id.guest .av { color: var(--steel-2); background: rgba(176, 204, 212, 0.08); border-color: var(--line-2); box-shadow: none; }
.acct-id .who { min-width: 0; display: grid; gap: 1px; }
.acct-id small { font-size: 12px; color: var(--muted); letter-spacing: 0.8px; }
.acct-id b { font-size: 25px; font-weight: 600; color: #fff; line-height: 1.25; word-break: break-all; }
.acct-id .muted { font-size: 13px; line-height: 1.5; }
.acct-gap { margin-top: 10px; }
.acct-list { display: grid; gap: 10px; margin: 20px 0 14px; }
.acct-sec { border-radius: 16px; border: 1px solid var(--line); background: rgba(176, 204, 212, 0.03); transition: border-color 0.2s, background 0.2s; }
.acct-sec[open] { border-color: var(--line-2); background: rgba(176, 204, 212, 0.05); }
.acct-sec > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; border-radius: 16px; }
.acct-sec > summary::-webkit-details-marker { display: none; }
.acct-sec > summary:hover { background: rgba(111, 211, 193, 0.05); }
.acct-sec > summary:focus-visible { outline: 2px solid var(--hex); outline-offset: 2px; }
.acct-sec > summary > .ico { width: 22px; height: 22px; color: var(--hex); }
.acct-sec > summary > span { flex: 1; display: grid; gap: 2px; font-weight: 500; color: var(--text); }
.acct-sec > summary small { font-weight: 400; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.acct-sec > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -5px 4px 0 0; transition: transform 0.2s; flex: none; }
.acct-sec[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.acct-sec .sec-body { padding: 4px 16px 16px; }
.acct-sec .rc-box { padding: 12px 12px 12px 16px; }
.acct-sec .rc-code { font-size: 17.5px; }
.acct-sec #rcRenew { margin-top: 10px; padding: 0 10px; color: var(--muted); }
.acct-sec #rcRenew .ico { width: 15px; height: 15px; }

/* ผังหน้า auth ห้ามกว้างเกินจอ (คอลัมน์ 1fr = ขั้นต่ำเท่าเนื้อหา → ชิ้นที่ไม่ตัดบรรทัดดันทั้งหน้าให้ล้นข้าง) */
.auth { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
/* จุดตัดบรรทัดภาษาไทย: ห่อวลีไม่ให้ขาดกลางคำ (text-wrap: balance ตัด "เครื่อง|นี้" "รหัส|ผ่าน" → ไม่ใช้) · .line = บรรทัดของตัวเอง */
.nb { white-space: nowrap; }
.acct-id .muted .line { display: block; }
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
}
/* จอแคบ: รหัสกู้ขึ้นแถวของตัวเอง ตัวใหญ่กึ่งกลาง (จด/อ่านง่าย) · ป้าย + ปุ่มคัดลอกอยู่แถวบน */
@media (max-width: 520px) {
  .rc-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; padding: 12px 12px 14px 16px; }
  .rc-main { display: contents; }
  .rc-box .lbl { grid-column: 1; grid-row: 1; }
  .rc-box .btn { grid-column: 2; grid-row: 1; }
  .rc-code { grid-column: 1 / -1; grid-row: 2; justify-self: center; text-align: center; white-space: normal; font-size: min(21px, 5.2vw); letter-spacing: 0.08em; padding: 2px 0; }
  .acct-sec .rc-box { padding: 10px 10px 12px 14px; }
  .acct-sec .rc-code { font-size: min(18px, 4.4vw); }
  .acct-id b { font-size: 22px; }
}
/* จอเตี้ย (มือถือแนวนอน): ข้อความแจ้งขึ้นด้านบนใต้หัวเว็บ ไม่ทับการ์ดกลางจอ */
@media (max-height: 520px) {
  .toasts { top: calc(var(--header-h) + 10px); bottom: auto; }
}

/* เล่นแบบผู้มาเยือน (Guest · 10-13): ทางเลือกใต้ปุ่มหลักของหน้าเข้าสู่ระบบ/สมัคร — ไม่ต้องสมัคร เข้าเกมได้ทันที */
.guest-alt { margin-top: 20px; }
.guest-alt .or { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.guest-alt .or::before, .guest-alt .or::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 40%, var(--line-2) 60%, transparent); }
.guest-btn .ico { width: 18px; height: 18px; color: var(--hex); }
.guest-btn [data-guest-label] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest-note { margin: 10px 2px 0; text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.guest-note a, a.guest-link { color: var(--hex-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- ท้ายเว็บ */
.site-footer { margin-top: 40px; background: linear-gradient(180deg, #05070a, #030406); border-top: 1px solid var(--line-2); color: var(--muted); font-size: 13.5px; }
.site-footer .container { padding-top: 30px; padding-bottom: 30px; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.site-footer img { width: 200px; height: auto; opacity: 0.95; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--hex-2); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; font-size: 12.5px; color: var(--dim); line-height: 1.7; }
.page-home .site-footer { margin-top: 30px; }

/* ---------------------------------------------------------------- 404 */
.nf { text-align: center; padding: 30px 0 10px; }
.nf img { height: 200px; width: auto; margin: 0 auto 6px; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.6)); animation: floaty 4s ease-in-out infinite; }
.nf h1 { font-size: 64px; font-weight: 600; color: var(--hex-2); text-shadow: 0 0 30px rgba(111, 211, 193, 0.5); line-height: 1; }
.nf p { color: var(--text-2); margin: 8px 0 18px; }

/* ---------------------------------------------------------------- ปุ่มเข้าเล่น: ลูกแก้วเถ้าถ่าน (canvas · play.js) — รุ่น 3 */
/* ผู้ใช้ 10-07: รุ่น 1 เขียว-ม่วง+สไลม์ "แปลก ตลก" → รุ่น 2 แดง-ส้มแดง → "ลองสีแบบเถ้าถ่าน มีควันลอยในปุ่มเท่ ๆ" = รุ่นนี้ */
/* ถ่านดำ-เทาขี้เถ้า · ไฟถ่านส้มแดงคุที่ก้น · ควันลอย (วาดใน canvas) · ขอบเหล็กเทาโดนไฟลน · ห้ามเฉดเหลือง/ทอง · ไม่มีมาสคอต */
.play-btn { position: relative; width: 250px; height: 250px; border-radius: 50%; border: 0; padding: 0; container-type: inline-size;
  background: radial-gradient(circle at 50% 100%, #ff9a66 0%, #f2552c 8%, #a3241a 18%, #431a17 30%, #1e2023 46%, #121416 72%, #08090a 100%);
  box-shadow: inset 0 0 0 4.6cqw #8e979d, inset 0 0 0 5.2cqw rgba(6, 7, 8, 0.9);
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 6px 26px rgba(255, 84, 44, 0.5)) drop-shadow(0 0 14px rgba(214, 222, 226, 0.22));
  transition: transform 0.25s cubic-bezier(.3, 1.5, .5, 1), filter 0.25s; -webkit-tap-highlight-color: transparent; }
.play-btn.fx-on { background: none; box-shadow: none; }
.play-btn .play-fx { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; display: block; }
/* วงเรืองหมุนรอบปุ่ม (เทาขี้เถ้า ↔ ไฟถ่าน) + คลื่นแผ่ออก 2 จังหวะ */
.play-halo { position: absolute; inset: -19%; border-radius: 50%; pointer-events: none; z-index: -1;
  background: conic-gradient(from 0deg, rgba(214, 222, 226, 0) 0deg, rgba(214, 222, 226, 0.7) 70deg, rgba(255, 104, 58, 0.9) 150deg, rgba(255, 104, 58, 0) 215deg, rgba(214, 222, 226, 0.55) 300deg, rgba(214, 222, 226, 0) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 58%, #000 62%, transparent 71%); mask: radial-gradient(circle, transparent 54%, #000 58%, #000 62%, transparent 71%);
  filter: blur(9px); animation: halo 9s linear infinite; }
@keyframes halo { to { transform: rotate(360deg); } }
.play-btn::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(226, 232, 236, 0.7); animation: ring 2.8s ease-out infinite; pointer-events: none; }
.play-btn::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 112, 70, 0.7); animation: ring 2.8s ease-out 1.4s infinite; pointer-events: none; }
@keyframes ring { 0% { transform: scale(0.92); opacity: 0.9; } 80%, 100% { transform: scale(1.24); opacity: 0; } }
.play-btn:hover { transform: scale(1.06); filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 6px 40px rgba(255, 100, 58, 0.85)) drop-shadow(0 0 18px rgba(226, 232, 236, 0.4)); }
.play-btn:active { transform: scale(0.98); }
.play-btn .play-fallback { position: absolute; left: 12%; top: 22%; width: 76%; height: auto; pointer-events: none; }
.play-btn.fx-on .play-fallback { display: none; }
@media (prefers-reduced-motion: reduce) { .play-halo { animation: none; } }

/* ---------------------------------------------------------------- ตอบสนองขนาดจอ */
@media (max-width: 1080px) {
  .hero { height: min(62vw, 560px); min-height: 0; max-height: none; }
  .hero-bg img { object-position: 50% 24%; }
  .hero-center { top: auto; bottom: 16px; }
  .play-btn { width: 170px; height: 170px; }
  .home-sheet { margin-top: -101px; }
  .home-sheet .sheet { padding: 70px 14px 14px; border-radius: 26px; }
  .sheet::before { display: none; }
  .carousel { -webkit-mask: radial-gradient(circle 97px at 50% -70px, transparent 96px, #000 97.5px); mask: radial-gradient(circle 97px at 50% -70px, transparent 96px, #000 97.5px); }
  .home-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
  .carousel { aspect-ratio: auto; height: auto; min-height: 0; }
  .slide { position: relative; display: none; }
  .slide.on { display: block; }
  .slide img { position: relative; aspect-ratio: 16 / 8; height: auto; transform: none !important; object-position: center; }
  .slide::after { display: none; }
  .slide-text { position: relative; transform: none; right: auto; top: auto; width: 100%; padding: 16px 16px 58px; background: linear-gradient(180deg, #0b1016, #080b10); }
  .car-dots { bottom: 22px; }
  .feat-row { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .class-detail { grid-template-columns: 1fr; }
  .pose-stage { height: 340px; }
  .pose-stage img { height: 310px; }
  .class-grid { --n: 3; }
  .mob-grid { --n: 5; }
  .stage-row, .stage-row.wide { --n: 2; }
  .platform-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .story-row, .story-row.flip { grid-template-columns: 1fr; gap: 14px; }
  .story-row.flip .pic { order: 0; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .container { padding: 0 14px; }
  .hero { height: min(92vw, 370px); }
  .hero-bg img { object-position: 50% 20%; }
  .play-btn { width: 150px; height: 150px; }
  .hero-center { bottom: 14px; }
  .home-sheet { margin-top: -89px; }
  .home-sheet .sheet { padding-top: 60px; }
  .carousel { -webkit-mask: radial-gradient(circle 86px at 50% -60px, transparent 85px, #000 86.5px); mask: radial-gradient(circle 86px at 50% -60px, transparent 85px, #000 86.5px); }
  .slide img { aspect-ratio: 4 / 3; }
  .news-grid { grid-template-columns: 1fr; }
  .news-item a { gap: 10px; padding: 12px; }
  .window-body { padding: 16px; }
  .article .window-body { padding: 18px; }
  .page-body .sheet { padding: 14px 14px 20px; border-radius: 24px; }
  .around { grid-template-columns: 1fr; }
  .stage-row, .stage-row.wide { --n: 1; }
  .keys { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .guide-card .txt { width: 60%; right: 14px; }
  .guide-card h3 { font-size: 17px; }
  .class-grid { --n: 2; --g: 10px; }
  .class-card .art { height: 216px; }
  .class-card .art img { height: 196px; }
  .class-card .art::before { width: 116px; }
  .mob-grid { --n: 3; --g: 8px; }
  .mob-card { border-radius: 16px; }
  .mob-card .art { height: 112px; }
  .mob-card .art img { max-height: 92px; }
  .mob-card .cap { padding: 8px 6px 10px; }
  .mob-card b { font-size: 14px; }
  .mob-card small { font-size: 11px; }
  .mob-nav a { height: 32px; padding: 0 11px; font-size: 13px; }
  .mob-sec { margin-top: 28px; scroll-margin-top: 76px; }
  .mob-sec-head h2 { font-size: 20px; }
  .rk { top: 6px; left: 6px; height: 17px; line-height: 17px; font-size: 9px; padding: 0 6px; }
  .kv-list > div { grid-template-columns: 1fr; gap: 2px; }
  .site-footer .container { grid-template-columns: 1fr; text-align: center; }
  .site-footer nav { justify-content: center; }
  .site-footer img { margin: 0 auto; }
  .modal-body { padding: 16px; }
}
/* มือถือแนวนอน (จอเตี้ย): ฮีโร่เตี้ยลง ปุ่มยังคร่อมขอบแผ่น */
@media (max-width: 1080px) and (orientation: landscape) and (max-height: 520px) {
  .hero { height: min(38vw, 300px); }
  .hero-bg img { object-position: 50% 18%; }
}

/* ---------------------------------------------------------------- เกี่ยวกับเกม + ประกาศโปรเจกต์อิสระ (10-13) */
.story-about { max-width: 820px; margin: 40px auto 0; padding: 22px 24px; border-radius: 20px; text-align: center; background: rgba(111, 211, 193, 0.05); border: 1px solid var(--line-2); }
.story-about .kick { font-size: 12px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--hex); }
.story-about h2 { margin-top: 4px; font-size: clamp(20px, 2.4vw, 26px); color: #fff; }
.story-about p { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.7; }
.story-about .indie { font-size: 13.5px; color: var(--muted, #8d9da5); }
.indie-note { max-width: 560px; margin: 26px auto 18px; padding: 0 16px; text-align: center; font-size: 12.5px; line-height: 1.6; color: var(--muted, #8d9da5); }

/* สร้างโดย build.py จาก web/data/play_label.json */
.play-btn .play-fallback { left: 7.00%; top: 22.55%; width: 86.10%; }
