/* FormVerz — โทน Sakura · Raiden: ดำอมม่วง + ชมพูซากุระ + ฟ้า + ม่วงสายฟ้า โค้งมนนุ่ม มีกลีบซากุระลอย */
:root {
  --bg: #07060c;
  --bg2: #0c0a14;
  --panel: rgba(16, 13, 24, 0.82);
  --panel2: rgba(22, 18, 32, 0.92);
  --line: rgba(255, 126, 182, 0.1);
  --line2: rgba(255, 126, 182, 0.24);
  --text: #f4f0f8;
  --muted: #b3abc2;
  --dim: #776f88;
  --v: #ff7eb6; /* สีหลัก (ชมพูซากุระ) */
  --v-rgb: 255, 126, 182;
  --p: #7fd4ff; /* สีรอง (ฟ้า) */
  --pink: #ff7eb6;
  --sky: #7fd4ff;
  --vio: #a78bfa;
  --c: #7fd4ff;
  --ink: #14060e; /* ตัวอักษรบนพื้นชมพู/ฟ้า */
  --ok: #6ee7b7;
  --warn: #ffc531;
  --bad: #ff5470;
  --grad: linear-gradient(110deg, #ff7eb6 0%, #c79bff 50%, #7fd4ff 100%);
  --r: 16px;
  --r2: 10px;
  --cut: none;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.85);
  --head: "Kanit", "IBM Plex Sans Thai", system-ui, sans-serif;
  --body: "IBM Plex Sans Thai", "Kanit", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 15.5px/1.6 var(--body);
  display: flex; flex-direction: column; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
::selection { background: rgba(var(--v-rgb), 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--v); outline-offset: 2px; border-radius: 6px; }

/* พื้นหลัง */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg .blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.22; }
.bg .b1 { width: 640px; height: 640px; left: -220px; top: -260px; background: #ff7eb6; animation: drift 24s ease-in-out infinite alternate; }
.bg .b2 { width: 520px; height: 520px; right: -200px; top: 160px; background: #7c5cff; opacity: 0.2; animation: drift 28s ease-in-out infinite alternate-reverse; }
.bg .b3 { width: 460px; height: 460px; left: 35%; bottom: -300px; background: #1e6ea8; opacity: 0.3; animation: drift 32s ease-in-out infinite alternate; }
.bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(var(--v-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--v-rgb), 0.045) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}
.bg::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px); }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.app { flex: 1; padding-bottom: 72px; }

/* หัวเว็บ */
.top { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); background: rgba(7, 6, 12, 0.78); border-bottom: 1px solid var(--line); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--v-rgb), 0.55), transparent); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 21px/1 var(--head); letter-spacing: 0.01em; }
.logo img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(var(--v-rgb), 0.45)); }
.logo b { color: var(--v); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; transition: 0.15s; position: relative; }
.nav a:hover, .nav a.on { color: var(--text); background: rgba(var(--v-rgb), 0.08); }
.nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--v); box-shadow: 0 0 8px var(--v); }
.top .sp { flex: 1; }
.top .acts { display: flex; gap: 8px; align-items: center; }
.top .menu-btn { display: none; }

/* ปุ่ม */
.btn {
  --bc: var(--line2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: 42px;
  border-radius: 8px; border: 1px solid var(--bc); background: rgba(255, 255, 255, 0.03); cursor: pointer;
  font-weight: 600; white-space: nowrap; transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.15s, filter 0.15s; user-select: none;
}
.btn:hover { background: rgba(var(--v-rgb), 0.07); border-color: rgba(var(--v-rgb), 0.5); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn.pri { background: var(--v); border-color: transparent; color: var(--ink); font-family: var(--head); font-weight: 700; letter-spacing: 0.02em; clip-path: var(--cut); border-radius: 0; }
.btn.pri:hover { filter: brightness(1.08) drop-shadow(0 0 14px rgba(var(--v-rgb), 0.55)); }
.btn.ok { background: linear-gradient(110deg, #6ee7b7, #7fd4ff); border-color: transparent; color: var(--ink); }
.btn.danger { color: #ffd2da; border-color: rgba(255, 84, 112, 0.4); background: rgba(255, 84, 112, 0.08); }
.btn.danger:hover { background: rgba(255, 84, 112, 0.16); border-color: rgba(255, 84, 112, 0.6); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn.sm { padding: 6px 12px; min-height: 34px; border-radius: 7px; font-size: 14px; }
.btn.xs { padding: 3px 9px; min-height: 28px; border-radius: 6px; font-size: 13px; }
.btn.lg { padding: 14px 28px; min-height: 52px; border-radius: 10px; font-size: 17px; }
.btn.pri.sm, .btn.pri.xs, .btn.pri.lg { border-radius: 0; }
.btn.block { width: 100%; }
.btn .ico { font-size: 1.1em; line-height: 1; }

/* การ์ด/แผง */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: relative; }
.card.tight { padding: 16px; }
.card h3 { font-size: 18px; margin-bottom: 4px; }
.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(var(--v-rgb), 0.85), rgba(127, 212, 255, 0.15) 40%, rgba(127, 212, 255, 0.05) 60%, rgba(var(--v-rgb), 0.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13.5px; }
.tiny { font-size: 12px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 14px; }
.stack.lg { gap: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 6px 0; }

/* ป้าย */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--muted); white-space: nowrap; }
.chip.live { color: #ffd6ea; background: rgba(var(--v-rgb), 0.12); border-color: rgba(var(--v-rgb), 0.4); }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--v); box-shadow: 0 0 0 0 rgba(var(--v-rgb), 0.7); animation: pulse 1.6s infinite; }
.chip.warn { color: #ffe7a3; background: rgba(255, 197, 49, 0.1); border-color: rgba(255, 197, 49, 0.38); }
.chip.bad { color: #ffd2da; background: rgba(255, 84, 112, 0.1); border-color: rgba(255, 84, 112, 0.38); }
.chip.vio { color: var(--v); background: rgba(var(--v-rgb), 0.1); border-color: rgba(var(--v-rgb), 0.4); }
.chip.agency { color: var(--ink); background: linear-gradient(110deg, #7fd4ff, #7dd3fc); border-color: transparent; font-weight: 700; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(var(--v-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--v-rgb), 0); } }

/* ฟอร์ม */
label.f { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
label.f .hint { font-weight: 400; color: var(--dim); font-size: 12.5px; }
label.f .req { color: var(--pink); margin-left: 3px; }
.inp, select.inp, textarea.inp {
  width: 100%; padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(5, 4, 9, 0.7);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s; font-weight: 400; min-height: 44px;
}
textarea.inp { min-height: 96px; resize: vertical; line-height: 1.55; }
.inp:hover { border-color: rgba(var(--v-rgb), 0.28); }
.inp:focus { border-color: var(--v); box-shadow: 0 0 0 3px rgba(var(--v-rgb), 0.16); }
.inp::placeholder { color: var(--dim); }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--v) 50%), linear-gradient(135deg, var(--v) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.inp option { background: #100d18; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--v); margin: 2px 0 0; flex: none; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; padding: 8px 14px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(5, 4, 9, 0.55); cursor: pointer; font-weight: 500; font-size: 14px; transition: 0.15s; }
.opt span:hover { border-color: rgba(var(--v-rgb), 0.35); }
.opt input:checked + span { background: rgba(var(--v-rgb), 0.14); border-color: var(--v); color: #fff; box-shadow: inset 0 0 0 1px rgba(var(--v-rgb), 0.3); }
.opt input:focus-visible + span { outline: 2px solid var(--v); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: #ffd2da; background: rgba(255, 84, 112, 0.1); border: 1px solid rgba(255, 84, 112, 0.32); border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.note { color: #ffe3f0; background: rgba(var(--v-rgb), 0.07); border: 1px solid rgba(var(--v-rgb), 0.24); border-left: 3px solid var(--v); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch b { display: block; font-weight: 600; }
.switch small { color: var(--dim); font-size: 12.5px; }
.switch input { appearance: none; width: 46px; height: 26px; border-radius: 99px; background: #1f1a2b; border: 1px solid rgba(255, 255, 255, 0.1); position: relative; flex: none; cursor: pointer; transition: 0.2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #a79fb6; transition: 0.2s; }
.switch input:checked { background: var(--v); border-color: transparent; box-shadow: 0 0 12px rgba(var(--v-rgb), 0.45); }
.switch input:checked::after { left: 23px; background: var(--ink); }

/* หน้าแรก */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 700; line-height: 1.08; }
.hero h1 .grad-text { filter: drop-shadow(0 0 22px rgba(var(--v-rgb), 0.35)); }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 20px 0 30px; max-width: 34em; }
.kicker { display: inline-flex; gap: 8px; align-items: center; padding: 5px 14px 5px 6px; border-radius: 6px; border: 1px solid var(--line2); background: rgba(var(--v-rgb), 0.06); font-size: 13.5px; font-weight: 600; margin-bottom: 22px; color: #ffe3f0; }
.kicker i { font-style: normal; background: var(--v); color: var(--ink); padding: 2px 9px; border-radius: 4px; font: 700 12px var(--head); letter-spacing: 0.06em; }
.hero .stats { display: flex; gap: 0; margin-top: 34px; flex-wrap: wrap; }
.hero .stats > div { padding: 2px 26px 2px 0; margin-right: 26px; border-right: 1px solid var(--line2); }
.hero .stats > div:last-child { border-right: 0; }
.hero .stats b { display: block; font: 700 24px/1.1 var(--head); color: var(--v); }
.hero .stats span { color: var(--dim); font-size: 13px; }
.mock { position: relative; }
.mock .card { padding: 0; overflow: hidden; box-shadow: var(--shadow), 0 0 80px -30px rgba(var(--v-rgb), 0.35); }
.mock .mh { padding: 16px 18px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, rgba(var(--v-rgb), 0.12), rgba(124, 92, 255, 0.12)); }
.mock .ml { padding: 10px; display: grid; gap: 6px; }
.mock .mq { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); animation: slidein 0.6s both; }
.mock .mq.on { background: rgba(var(--v-rgb), 0.08); border: 1px solid rgba(var(--v-rgb), 0.28); }
.mock .mq .n { font: 700 13px var(--head); width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.mock .mq.on .n { background: var(--v); color: var(--ink); }
.mock .float { position: absolute; padding: 10px 14px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 13.5px; backdrop-filter: blur(10px); }
.mock .float b { color: var(--v); }
.mock .f1 { left: -34px; bottom: -22px; animation: bob 5s ease-in-out infinite; }
.mock .f2 { right: -20px; top: -20px; animation: bob 6s ease-in-out infinite reverse; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes slidein { from { opacity: 0; transform: translateX(14px); } }

.sec { padding: 56px 0 8px; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-h h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
.sec-h p { color: var(--muted); margin-top: 6px; }
.eyebrow { font: 700 12.5px var(--head); letter-spacing: 0.2em; text-transform: uppercase; color: var(--v); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--v); box-shadow: 0 0 8px var(--v); flex: none; }

/* ไทล์เกม (รูปจริงของแต่ละเกม) */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.game {
  position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); background: var(--panel);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; display: flex; flex-direction: column; cursor: pointer; text-align: left; padding: 0;
}
.game:hover { transform: translateY(-4px); border-color: rgba(var(--v-rgb), 0.6); box-shadow: 0 16px 40px -16px rgba(var(--v-rgb), 0.45); }
.game .art { height: 118px; position: relative; display: grid; place-items: center; overflow: hidden; background: #0e0b16; }
.game .art .img { position: absolute; inset: 0; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s; filter: saturate(1.05); }
.game:hover .art .img { transform: scale(1.07); filter: saturate(1.2) brightness(1.06); }
.game .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 6, 12, 0.85)); pointer-events: none; }
.game .art b { font: 700 46px/1 var(--head); color: var(--ink); position: relative; z-index: 1; }
/* เกมที่ตั้งเอง (ไม่มีรูป): ลายเส้นเฉียง + กรอบประ + เครื่องหมายนีออน */
.game .art.noimg .img { background: repeating-linear-gradient(135deg, rgba(var(--v-rgb), 0.09) 0 2px, transparent 2px 12px), radial-gradient(circle at 50% 45%, rgba(var(--v-rgb), 0.22), transparent 60%), #0c0a14 !important; }
.game .art.noimg::before { content: ""; position: absolute; inset: 12px; border: 1.5px dashed rgba(var(--v-rgb), 0.45); border-radius: 6px; z-index: 1; }
.game .art.noimg b { color: var(--v); font-size: 54px; text-shadow: 0 0 22px rgba(var(--v-rgb), 0.8); }
.game .art .go { position: absolute; left: 10px; bottom: 9px; z-index: 2; font: 700 12px var(--head); letter-spacing: 0.04em; color: var(--ink); background: var(--v); padding: 4px 9px; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); opacity: 0; transform: translateY(6px); transition: 0.2s; }
.game:hover .art .go, .game.sel .art .go { opacity: 1; transform: none; }
.game .gi { padding: 11px 14px 14px; display: grid; gap: 3px; border-top: 2px solid transparent; transition: border-color 0.18s; }
.game:hover .gi { border-top-color: var(--v); }
.game .gi h4 { font-size: 16px; font-weight: 700; }
.game .gi p { color: var(--dim); font-size: 12.5px; line-height: 1.45; }
.game.sel { border-color: var(--v); box-shadow: 0 0 0 2px rgba(var(--v-rgb), 0.45), 0 0 30px -8px rgba(var(--v-rgb), 0.6); }
.game.sel .gi { border-top-color: var(--v); }
.game-banner { border-radius: var(--r); overflow: hidden; position: relative; padding: 28px; min-height: 170px; display: flex; align-items: flex-end; gap: 18px; border: 1px solid rgba(255, 255, 255, 0.08); }
.game-banner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--v); box-shadow: 0 0 16px var(--v); z-index: 1; }
.game-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(7, 6, 12, 0.55)); }
.game-banner > * { position: relative; z-index: 1; }
.game-banner h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.game-banner .big { font: 700 64px/0.9 var(--head); opacity: 0.3; color: var(--ink); position: absolute; right: 22px; top: 18px; z-index: 1; }
.av.gav { border-radius: 8px; background-color: #0e0b16; color: var(--ink); }

/* ขั้นตอน/ฟีเจอร์ */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 56px; overflow: hidden; }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 18px; left: 22px; width: 42px; height: 30px; display: grid; place-items: center; font: 700 16px var(--head); letter-spacing: 0.04em; background: var(--v); color: var(--ink); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.step::after { content: "0" counter(s); position: absolute; right: 14px; top: -8px; font: 700 92px/1 var(--head); color: rgba(var(--v-rgb), 0.06); pointer-events: none; }
.feat { transition: border-color 0.18s, transform 0.18s; }
.feat:hover { border-color: rgba(var(--v-rgb), 0.35); transform: translateY(-2px); }
.feat h3 { font-size: 17px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 14.5px; }

/* ราคา */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin-inline: auto; }
.plan { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.plan .price { font: 700 48px/1 var(--head); color: var(--v); text-shadow: 0 0 28px rgba(var(--v-rgb), 0.35); }
.plan .price small { font: 500 16px var(--body); color: var(--muted); margin-left: 6px; text-shadow: none; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 9px; }
.plan li { display: flex; gap: 10px; color: var(--muted); }
.plan li::before { content: "▸"; color: var(--v); font-weight: 700; flex: none; }
.plan.agency { background: linear-gradient(160deg, rgba(127, 212, 255, 0.14), rgba(16, 13, 24, 0.85) 60%); border-color: rgba(127, 212, 255, 0.25); }
.plan.agency .price { color: #7fd4ff; text-shadow: 0 0 28px rgba(127, 212, 255, 0.35); }
.plan.agency li::before { color: #7fd4ff; }
.plan .tag { align-self: flex-start; }

/* FAQ */
details.faq { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 0 18px; transition: border-color 0.15s; }
details.faq[open] { border-color: var(--line2); }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font: 600 22px/1 var(--head); color: var(--v); transition: 0.2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { padding: 0 0 16px; color: var(--muted); }

/* หน้า auth */
.auth { max-width: 440px; margin: 56px auto 0; }
.auth h1 { font-size: 30px; margin-bottom: 6px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: rgba(5, 4, 9, 0.65); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { flex: 1; padding: 9px 14px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; white-space: nowrap; text-align: center; transition: 0.15s; }
.tabs button:hover, .tabs a:hover { color: var(--text); }
.tabs .on { background: rgba(var(--v-rgb), 0.12); color: var(--v); box-shadow: inset 0 -2px 0 var(--v); }
.rv-box { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 10px; background: linear-gradient(120deg, rgba(127, 212, 255, 0.12), rgba(127, 212, 255, 0.03)); border: 1px solid rgba(127, 212, 255, 0.3); }
.rv-box .rv { flex: none; width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; font: 700 14px var(--head); color: var(--ink); background: linear-gradient(120deg, #7fd4ff, #7dd3fc); }

/* แดชบอร์ด */
.dash { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 26px; padding-top: 28px; }
.side { position: sticky; top: 86px; align-self: start; display: grid; gap: 4px; }
.side a { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 8px; color: var(--muted); font-weight: 500; transition: 0.15s; border-left: 2px solid transparent; }
.side a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.side a.on { color: #fff; background: linear-gradient(90deg, rgba(var(--v-rgb), 0.14), rgba(var(--v-rgb), 0.02)); border-left-color: var(--v); }
.side a .ico { width: 22px; text-align: center; }
.side .me { padding: 14px; margin-bottom: 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.side .me b { display: block; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-h h1 { font-size: 30px; font-weight: 700; }
.page-h p { color: var(--muted); margin-top: 4px; }
.av { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; display: grid; place-items: center; font: 700 18px var(--head); color: var(--ink); background: var(--grad); overflow: hidden; }
.av.lg { width: 96px; height: 96px; font-size: 38px; border: 3px solid rgba(var(--v-rgb), 0.35); }
.av.xl { width: 120px; height: 120px; font-size: 46px; border: 4px solid var(--bg); box-shadow: 0 0 0 2px rgba(var(--v-rgb), 0.55); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.stat { padding: 18px; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: 0; top: 0; width: 34px; height: 34px; background: linear-gradient(225deg, rgba(var(--v-rgb), 0.35) 50%, transparent 50%); }
.stat b { display: block; font: 700 30px/1.1 var(--head); }
.stat span { color: var(--dim); font-size: 13px; }
.plan-bar { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

/* รายการฟอร์ม */
.forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.fcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: 0.18s; }
.fcard:hover { border-color: rgba(var(--v-rgb), 0.45); transform: translateY(-2px); box-shadow: 0 14px 34px -18px rgba(var(--v-rgb), 0.5); }
.fcard .top-art { height: 92px; position: relative; padding: 12px 16px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid rgba(var(--v-rgb), 0.5); }
.fcard .top-art > * { position: relative; z-index: 1; }
.fcard .top-art b { font: 700 26px/1 var(--head); color: var(--ink); }
.fcard .top-art .chip { background: rgba(7, 6, 12, 0.75); backdrop-filter: blur(4px); }
.fcard .body { padding: 14px 16px 16px; display: grid; gap: 10px; flex: 1; }
.fcard h3 { font-size: 17px; font-weight: 700; }
.fcard .nums { display: flex; gap: 16px; font-size: 13px; color: var(--dim); }
.fcard .nums b { color: var(--text); font: 700 18px var(--head); margin-right: 4px; }
.empty { text-align: center; padding: 48px 20px; }
.empty h3 { font-size: 20px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 18px; }

/* จัดการคิว */
.qbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; position: sticky; top: 72px; z-index: 5; }
.qbar .counts { display: flex; gap: 18px; margin-right: auto; flex-wrap: wrap; }
.qbar .counts div { font-size: 13px; color: var(--dim); }
.qbar .counts b { font: 700 22px/1 var(--head); color: var(--text); margin-right: 5px; }
.qsec { font: 700 12.5px var(--head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin: 18px 4px 8px; display: flex; align-items: center; gap: 8px; }
.qlist { display: grid; gap: 8px; }
.qi { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); animation: slidein 0.25s both; }
.qi.called { border-color: rgba(var(--v-rgb), 0.5); background: linear-gradient(110deg, rgba(var(--v-rgb), 0.12), rgba(16, 13, 24, 0.8) 60%); box-shadow: inset 3px 0 0 var(--v); }
.qi.pending { border-style: dashed; border-color: rgba(255, 197, 49, 0.45); }
.qi .no { width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; font: 700 17px var(--head); background: rgba(255, 255, 255, 0.06); color: var(--text); }
.qi.called .no { background: var(--v); color: var(--ink); box-shadow: 0 0 16px rgba(var(--v-rgb), 0.45); }
.qi .nm { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qi .kv { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.qi .kv span b { color: var(--dim); font-weight: 500; margin-right: 4px; }
.qi .kv .long { flex-basis: 100%; white-space: pre-wrap; }
.qi .qnote { font-size: 13px; color: #ffe7a3; margin-top: 4px; }
.qi .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.copy { display: flex; gap: 8px; align-items: stretch; }
.copy .inp { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13.5px; }
.short { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 8px; background: rgba(var(--v-rgb), 0.06); border: 1px dashed rgba(var(--v-rgb), 0.4); }
.short b { font: 700 clamp(17px, 2.4vw, 22px)/1.2 var(--head); color: var(--v); letter-spacing: 0.01em; word-break: break-all; }

/* ตัวแก้ช่องกรอก */
.fld { padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 4, 9, 0.5); display: grid; gap: 10px; }
.fld .fh { display: flex; gap: 8px; align-items: center; }
.fld .fh .t { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fld .grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.save-bar { position: sticky; bottom: 16px; z-index: 6; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 10px; background: rgba(16, 13, 24, 0.96); border: 1px solid var(--line2); box-shadow: var(--shadow); margin-top: 18px; animation: up 0.25s both; }
@keyframes up { from { opacity: 0; transform: translateY(12px); } }

/* หน้าสาธารณะของฟอร์ม */
.pub { max-width: 760px; margin: 0 auto; padding-top: 26px; }
.creator { display: flex; gap: 14px; align-items: center; }
.creator h2 { font-size: 20px; }
.pform { margin-top: 18px; }
.status-big { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 10px; background: rgba(5, 4, 9, 0.6); border: 1px solid var(--line); }
.status-big b { font: 700 26px/1 var(--head); }
.rules { white-space: pre-wrap; color: var(--muted); font-size: 14.5px; background: rgba(5, 4, 9, 0.45); border-left: 3px solid var(--v); border-radius: 0 8px 8px 0; padding: 12px 16px; }
.pq { display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.pq div { display: flex; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 7px; background: rgba(255, 255, 255, 0.03); }
.pq div.called { background: rgba(var(--v-rgb), 0.09); box-shadow: inset 2px 0 0 var(--v); }
.pq i { font: 700 13px var(--head); font-style: normal; color: var(--muted); width: 36px; }
.ticket { text-align: center; padding: 34px 24px; }
.ticket .no { font: 700 96px/1 var(--head); margin: 10px 0 6px; }
.ticket .no small { font-size: 32px; color: var(--muted); }
.ticket.called .no { color: var(--v); text-shadow: 0 0 40px rgba(var(--v-rgb), 0.6); }

/* หน้าเพจผู้สร้าง */
.cover { height: 180px; border-radius: var(--r); position: relative; overflow: hidden; }
.cover::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 14px), linear-gradient(transparent, rgba(7, 6, 12, 0.7)); }
.cpage-h { display: flex; gap: 20px; align-items: flex-end; margin: -60px 24px 0; position: relative; z-index: 1; flex-wrap: wrap; }
.links { display: flex; gap: 8px; flex-wrap: wrap; }

/* ตาราง */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--dim); font: 600 12px var(--head); letter-spacing: 0.08em; text-transform: uppercase; padding: 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(var(--v-rgb), 0.025); }
.scroll-x { overflow-x: auto; }

/* QR / จ่ายเงิน */
.qr { background: #fff; border-radius: 10px; padding: 14px; width: 220px; max-width: 100%; box-shadow: 0 0 0 3px rgba(var(--v-rgb), 0.5), 0 0 30px -6px rgba(var(--v-rgb), 0.45); }
.qr svg { width: 100%; height: auto; display: block; }
.drop { border: 2px dashed var(--line2); border-radius: 10px; padding: 22px; text-align: center; cursor: pointer; transition: 0.15s; display: grid; place-items: center; gap: 8px; min-height: 140px; }
.drop:hover, .drop.over { border-color: var(--v); background: rgba(var(--v-rgb), 0.05); }
.drop img { max-height: 220px; border-radius: 8px; }

/* modal + ครอปรูป */
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(3, 2, 6, 0.78); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade 0.15s; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #0e0b16; border: 1px solid var(--line2); border-top: 2px solid var(--v); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); animation: up 0.2s; }
.modal h3 { font-size: 20px; margin-bottom: 4px; }
@keyframes fade { from { opacity: 0; } }
.crop { position: relative; width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #000; touch-action: none; cursor: grab; user-select: none; }
.crop img { position: absolute; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.6); pointer-events: none; border: 2px solid var(--v); }
input[type="range"] { width: 100%; accent-color: var(--v); }

/* toast */
.toasts { position: fixed; z-index: 90; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 8px; background: #110e1a; border: 1px solid var(--line2); box-shadow: var(--shadow); font-weight: 500; animation: up 0.2s; display: flex; gap: 10px; align-items: center; }
.toast.ok { border-color: rgba(var(--v-rgb), 0.5); box-shadow: var(--shadow), inset 3px 0 0 var(--v); }
.toast.bad { border-color: rgba(255, 84, 112, 0.55); box-shadow: var(--shadow), inset 3px 0 0 var(--bad); }

/* ---------- ไอคอน (icons.js) ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; vertical-align: -0.2em; overflow: visible; }
.i .d { fill: currentColor; stroke: none; opacity: 0.22; }
.i .f { fill: currentColor; stroke: none; }
.btn .i { width: 1.1em; height: 1.1em; }
.btn.pri .i .d { opacity: 0.3; }
.chip .i { width: 13px; height: 13px; stroke-width: 2; }
.chip.agency .i { width: 11px; height: 11px; }
.tabs a, .tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.tabs .i { width: 17px; height: 17px; }
.side a .i { width: 19px; height: 19px; color: var(--dim); transition: color 0.15s; }
.side a:hover .i { color: var(--muted); }
.side a.on .i { color: var(--v); filter: drop-shadow(0 0 6px rgba(var(--v-rgb), 0.6)); }
.toast > .i { width: 20px; height: 20px; color: var(--v); }
.toast.bad > .i { color: var(--bad); }
.toast.info > .i { color: var(--c); }
.note.ic { display: flex; gap: 10px; align-items: flex-start; }
.note.ic > .i { width: 19px; height: 19px; color: var(--v); margin-top: 1px; }
a.note.ic { align-items: center; transition: border-color 0.15s, background 0.15s; }
a.note.ic:hover { background: rgba(var(--v-rgb), 0.12); border-color: rgba(var(--v-rgb), 0.5); }
a.note.ic > .i:last-child { margin-left: auto; }
h3.ih { display: flex; align-items: center; gap: 9px; }
h3.ih .i { color: var(--v); width: 20px; height: 20px; }
.back { display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
.back:hover { color: var(--v); }
.qnote { display: flex; gap: 6px; align-items: flex-start; }
.qnote .i { width: 15px; height: 15px; margin-top: 2px; flex: none; }
.mock .float { display: flex; align-items: center; gap: 9px; }
.mock .float .i { width: 20px; height: 20px; color: var(--v); }
.stat .si { position: absolute; right: 14px; bottom: 12px; width: 34px; height: 34px; color: var(--v); opacity: 0.35; }

/* ตรา (emblem): กล่องมุมตัด ขอบนีออน ใส่ไอคอนตรงกลาง */
.emb {
  --s: 54px; width: var(--s); height: var(--s); flex: none; display: grid; place-items: center; position: relative; color: var(--v);
  background: linear-gradient(145deg, rgba(var(--v-rgb), 0.95), rgba(127, 212, 255, 0.55) 55%, rgba(var(--v-rgb), 0.25));
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.emb::before { content: ""; position: absolute; inset: 1.5px; background: radial-gradient(circle at 30% 20%, #2a1430, #08070e 70%); clip-path: inherit; }
.emb .i { position: relative; width: 52%; height: 52%; stroke-width: 1.7; filter: drop-shadow(0 0 6px rgba(var(--v-rgb), 0.55)); }
.emb.sm { --s: 42px; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.emb.teal { color: #7fd4ff; background: linear-gradient(145deg, #7fd4ff, rgba(125, 211, 252, 0.5)); }
.emb.teal .i { filter: drop-shadow(0 0 6px rgba(127, 212, 255, 0.6)); }

/* กล่องว่าง */
.card.empty { overflow: hidden; background: radial-gradient(ellipse at 50% 0%, rgba(var(--v-rgb), 0.07), transparent 60%), repeating-linear-gradient(135deg, rgba(var(--v-rgb), 0.025) 0 1px, transparent 1px 14px), var(--panel); }
.card.empty::before, .card.empty::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid rgba(var(--v-rgb), 0.45); pointer-events: none; }
.card.empty::before { left: 12px; top: 12px; border-right: 0; border-bottom: 0; }
.card.empty::after { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }
.empty .emb { --s: 76px; margin: 0 auto 18px; clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); animation: embGlow 3.2s ease-in-out infinite; }
.empty .emb .i { width: 46%; height: 46%; }
@keyframes embGlow { 50% { filter: drop-shadow(0 0 18px rgba(var(--v-rgb), 0.45)); } }
.empty .row { justify-content: center; }

/* หัวข้อ section แบบมีตรา */
.sec-h.withic { justify-content: flex-start; align-items: center; gap: 16px; margin-top: 40px; }
.sec-h.withic h2 { font-size: clamp(22px, 2.6vw, 28px); }
.sec-h.withic .eyebrow { margin-bottom: 4px; }
.sec-h.withic p { margin-top: 2px; }

/* แบนเนอร์เกมแบบ HUD */
.game-banner.hud { min-height: 210px; align-items: flex-end; box-shadow: 0 24px 60px -30px rgba(var(--v-rgb), 0.35); }
.game-banner.hud > .btn { align-self: flex-end; }
.hud .genre { background: rgba(7, 6, 12, 0.65); color: var(--v); border-color: rgba(var(--v-rgb), 0.45); backdrop-filter: blur(6px); letter-spacing: 0.04em; }
.bstats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.bstats span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; font-size: 13px; color: rgba(255, 255, 255, 0.82); background: rgba(7, 6, 12, 0.6); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 6px; backdrop-filter: blur(6px); }
.bstats .i { color: var(--v); width: 16px; height: 16px; }
.bstats b { font: 700 15px var(--head); color: #fff; }
.feat .emb { margin-bottom: 16px; }
.feat:hover .emb .i { filter: drop-shadow(0 0 10px rgba(var(--v-rgb), 0.9)); }

/* การ์ดแม่แบบฟอร์ม */
.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.tpl { display: flex; flex-direction: column; gap: 14px; overflow: hidden; transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s; }
.tpl::before { content: ""; position: absolute; right: 0; top: 0; width: 70%; height: 150px; background: var(--art, none) center 30% / cover no-repeat; opacity: 0.34; -webkit-mask-image: linear-gradient(225deg, #000 0%, transparent 65%); mask-image: linear-gradient(225deg, #000 0%, transparent 65%); pointer-events: none; transition: opacity 0.25s; }
.tpl::after { content: ""; position: absolute; left: 0; top: 0; width: 40%; height: 2px; background: linear-gradient(90deg, var(--v), transparent); }
.tpl > * { position: relative; }
.tpl:hover { border-color: rgba(var(--v-rgb), 0.5); transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(var(--v-rgb), 0.45); }
.tpl:hover::before { opacity: 0.5; }
.tpl-h { display: flex; gap: 14px; align-items: center; }
.tpl-h h3 { font-size: 19px; margin: 2px 0 0; line-height: 1.25; }
.tpl-no { font: 700 11px var(--head); letter-spacing: 0.2em; color: var(--v); opacity: 0.85; }
.tpl-fields { display: grid; gap: 2px; padding: 6px; border-radius: 10px; background: rgba(5, 4, 9, 0.55); border: 1px solid var(--line); }
.tpl-fields .fr { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; font-size: 14px; }
.tpl-fields .fr:hover { background: rgba(var(--v-rgb), 0.05); }
.tpl-fields .ti { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 6px; background: rgba(var(--v-rgb), 0.08); color: var(--v); }
.tpl-fields .ti .i { width: 15px; height: 15px; }
.tpl-fields .fl { flex: 1; min-width: 0; font-weight: 500; }
.tpl-fields .fl .req { color: var(--pink); margin-left: 3px; }
.tpl-fields .ft { font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.tplbtn { margin-top: auto; border-color: rgba(var(--v-rgb), 0.45); color: var(--v); font-family: var(--head); }
.tplbtn .i { transition: transform 0.18s; }
.tpl:hover .tplbtn { background: var(--v); color: var(--ink); border-color: transparent; }
.tpl:hover .tplbtn .i { transform: translateX(3px); }

/* หน้าฟอร์มคนดู */
.rules-h { display: flex; align-items: center; gap: 7px; color: var(--text); margin-bottom: 6px; }
.rules-h .i { color: var(--v); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-row span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 7px; font-size: 13px; color: var(--muted); background: rgba(5, 4, 9, 0.5); border: 1px solid var(--line); }
.meta-row .i { color: var(--v); width: 15px; height: 15px; }

/* ปุ่มโซเชียล */
.btn.soc .i { width: 15px; height: 15px; }
.btn.soc.youtube:hover { color: #ff4e45; border-color: rgba(255, 78, 69, 0.5); }
.btn.soc.twitch:hover { color: #b28bff; border-color: rgba(178, 139, 255, 0.5); }
.btn.soc.kick:hover { color: #53fc18; }
.btn.soc.discord:hover { color: #8c9eff; border-color: rgba(140, 158, 255, 0.5); }
.btn.soc.facebook:hover { color: #4f9bff; border-color: rgba(79, 155, 255, 0.5); }
.btn.soc.tiktok:hover { color: #25f4ee; border-color: rgba(37, 244, 238, 0.5); }

/* โหลด */
.loading { display: grid; place-items: center; padding: 120px 0; }
.loading i { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(var(--v-rgb), 0.15); border-top-color: var(--v); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ท้ายเว็บ */
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--dim); font-size: 13.5px; }
.foot .wrap { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.foot a:hover { color: var(--v); }

/* มือถือ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 40px; }
  .mock .f1 { left: 8px; }
  .mock .f2 { right: 8px; }
  .dash { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .side { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side .me { display: none; }
  .side a { white-space: nowrap; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); }
  .side a.on { border-color: rgba(var(--v-rgb), 0.5); }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .nav { display: none; }
  .nav.open { display: grid; position: absolute; top: 64px; left: 0; right: 0; background: rgba(7, 6, 12, 0.97); padding: 12px 16px 18px; border-bottom: 1px solid var(--line); margin: 0; }
  .top .menu-btn { display: inline-flex; }
  .top .acts .hide-m { display: none; }
  .grid2, .grid3, .plans { grid-template-columns: 1fr; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .game .art { height: 92px; }
  .game .art b { font-size: 34px; }
  .game .gi { padding: 9px 11px 11px; }
  .game .gi h4 { font-size: 14.5px; }
  .game .gi p { display: none; }
  .card { padding: 18px; }
  .card.fcard { padding: 0; }
  .grid3:has(> .stat) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 11.5px; }
  .qi { grid-template-columns: auto minmax(0, 1fr); }
  .qi .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .qbar { top: 64px; }
  .fld .grid { grid-template-columns: 1fr; }
  .page-h h1 { font-size: 25px; }
  .cpage-h { margin: -48px 12px 0; }
  .ticket .no { font-size: 78px; }
  .game-banner { padding: 20px; min-height: 150px; }
  .game-banner .big { font-size: 40px; top: 12px; right: 14px; }
  .hero .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero .stats > div { padding: 0 10px 0 0; margin: 0 10px 0 0; }
  .hero .stats b { font-size: 19px; }
  .hero .stats span { font-size: 11.5px; display: block; line-height: 1.35; }
  .game-banner.hud { flex-wrap: wrap; min-height: 0; padding-top: 70px; }
  .game-banner.hud > .btn { width: 100%; }
  .tpls { grid-template-columns: 1fr; }
  .sec-h.withic { margin-top: 30px; gap: 12px; }
  .card.step { padding-top: 60px; }
  .step::before { top: 16px; left: 18px; }
  .step::after { font-size: 72px; }
}

/* ============ Sakura · Raiden (4 พ.ย. 2026): โค้งมน นุ่ม ไล่ชมพู→ม่วง→ฟ้า แทนมุมตัดแบบ esports ============ */
.btn.pri, .btn.pri.sm, .btn.pri.xs, .btn.pri.lg { background: var(--grad); background-size: 140% 100%; background-position: 0 0; border-radius: 999px; clip-path: none; color: var(--ink); font-weight: 600; box-shadow: 0 8px 24px -10px rgba(255, 126, 182, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35); transition: background-position 0.35s, box-shadow 0.2s, transform 0.12s; }
.btn.pri:hover { filter: none; background-position: 100% 0; box-shadow: 0 10px 30px -8px rgba(167, 139, 250, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn { border-radius: 12px; }
.btn.sm { border-radius: 10px; }
.btn.xs { border-radius: 8px; }
.btn.ok { background: linear-gradient(110deg, #9ff3d1, #7fd4ff); }
.chip { border-radius: 999px; }
.chip.vio { color: #d9ccff; background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.42); }
.chip.sakura { color: #ffe3f0; background: linear-gradient(110deg, rgba(255, 126, 182, 0.22), rgba(127, 212, 255, 0.14)); border-color: rgba(255, 126, 182, 0.5); }
.chip .i { width: 13px; height: 13px; }
.chip.agency { background: linear-gradient(110deg, #7fd4ff, #c7b8ff); }
.card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.emb, .emb.sm, .empty .emb { clip-path: none; border-radius: 30%; background: linear-gradient(145deg, #ff9fc8, #a78bfa 55%, #7fd4ff); }
.emb::before { border-radius: calc(30% - 1px); clip-path: none; background: radial-gradient(circle at 30% 20%, #2a1430, #0b0814 72%); }
.emb.teal { background: linear-gradient(145deg, #7fd4ff, #c7b8ff); }
.card.empty::before, .card.empty::after { border-color: rgba(255, 126, 182, 0.35); border-radius: 6px; }
.card.empty { background: radial-gradient(ellipse at 50% 0%, rgba(255, 126, 182, 0.09), transparent 60%), radial-gradient(ellipse at 100% 100%, rgba(127, 212, 255, 0.06), transparent 55%), var(--panel); }
.game .art .go, .kicker i, .step::before { clip-path: none !important; border-radius: 999px; }
.logo { font-weight: 600; letter-spacing: 0; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo img { filter: drop-shadow(0 4px 14px rgba(255, 126, 182, 0.45)); }
.top::after { background: linear-gradient(90deg, transparent, rgba(255, 126, 182, 0.55), rgba(127, 212, 255, 0.55), transparent); }
.bg .b1 { opacity: 0.16; }
.bg .b2 { opacity: 0.22; }
.bg .b3 { opacity: 0.26; }
.bg .grid { background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px); background-size: 34px 34px; }
.bg::after { background: none; }
.qi.called { box-shadow: inset 3px 0 0 var(--v); }
:focus-visible { outline-color: var(--sky); }

/* กลีบซากุระลอย (พื้นหลัง) */
.bg .petal { position: absolute; top: -20px; width: 14px; height: 11px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #ffe0ee, #ff9fc8); opacity: 0.5; animation: petal linear infinite; }
.bg .petal:nth-of-type(3n) { background: linear-gradient(135deg, #e6f6ff, #9fdcff); opacity: 0.35; }
.bg .petal:nth-of-type(4n) { width: 10px; height: 8px; }
@keyframes petal { 0% { transform: translate3d(0, -20px, 0) rotate(0); } 50% { transform: translate3d(-60px, 50vh, 0) rotate(220deg); } 100% { transform: translate3d(30px, 105vh, 0) rotate(440deg); } }
/* สายฟ้าม่วงบาง ๆ (Raiden) */
.bg .bolt { position: absolute; right: 8%; top: 12%; width: 200px; height: 340px; opacity: 0.08; background: linear-gradient(180deg, #c4b5fd, transparent); clip-path: polygon(55% 0, 20% 52%, 46% 52%, 28% 100%, 82% 40%, 54% 40%, 76% 0); filter: blur(1px); }

/* ---------- ฟีเจอร์ใหม่ ---------- */
.lbl { font-weight: 600; margin-bottom: 6px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.05em; }
/* คิว: รูปคนลงคิว + ขอลัดคิว */
.qav { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255, 126, 182, 0.5); }
.qi.skipping { border-color: rgba(255, 209, 102, 0.55); background: linear-gradient(110deg, rgba(255, 209, 102, 0.1), rgba(255, 126, 182, 0.06) 50%, var(--panel) 80%); }
.skipreq { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: rgba(255, 209, 102, 0.08); border: 1px dashed rgba(255, 209, 102, 0.45); }
.skipreq > span { display: inline-flex; align-items: center; gap: 6px; color: #ffe7a3; }
.skipreq .i { width: 16px; height: 16px; }
/* เสียงแจ้งเตือน */
.sndlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.snd { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); cursor: pointer; transition: 0.15s; }
.snd:hover { border-color: rgba(255, 126, 182, 0.4); }
.snd.on { border-color: var(--v); background: linear-gradient(110deg, rgba(255, 126, 182, 0.14), rgba(127, 212, 255, 0.06)); }
.snd.off { opacity: 0.55; cursor: default; }
.snd input { accent-color: var(--v); }
.snd > div { flex: 1; min-width: 0; display: grid; }
.snd small { color: var(--dim); font-size: 12px; }
input[type="range"] { accent-color: var(--v); width: 100%; }
/* Overlay */
.ovgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 22px; align-items: start; }
.ovstage { position: relative; width: 100%; max-width: 340px; height: 420px; border-radius: 16px; overflow: hidden; background: repeating-conic-gradient(#17131f 0% 25%, #0d0a14 0% 50%) 50% / 24px 24px; border: 1px solid var(--line); }
.ovstage iframe { border: 0; position: absolute; left: 0; top: 0; transform: scale(0.64); transform-origin: 0 0; }
.ovstage.wide { max-width: none; height: 110px; }
.ovstage.wide iframe { transform: scale(0.42); }
.asset { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.asset-prev { flex: none; display: grid; place-items: center; overflow: hidden; background: rgba(0, 0, 0, 0.35); border: 1px dashed var(--line2); }
.asset-prev.banner { width: 110px; height: 44px; border-radius: 8px; }
.asset-prev.icon { width: 48px; height: 48px; border-radius: 12px; }
.asset-prev img { width: 100%; height: 100%; object-fit: cover; }
/* คูปอง */
.coupon { background: linear-gradient(120deg, rgba(255, 126, 182, 0.1), rgba(167, 139, 250, 0.06) 45%, var(--panel) 75%); border-color: rgba(255, 126, 182, 0.3); }
.coupon::after { content: ""; position: absolute; right: 18px; top: 50%; width: 120px; height: 120px; transform: translateY(-50%); background: radial-gradient(circle, rgba(127, 212, 255, 0.12), transparent 70%); pointer-events: none; }
button.code { font: 600 13.5px ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.06em; color: var(--text); background: rgba(255, 126, 182, 0.08); border: 1px solid rgba(255, 126, 182, 0.3); border-radius: 8px; padding: 4px 8px; cursor: pointer; margin-right: 6px; }
button.code:hover { border-color: var(--v); }
/* ฟอร์มคนดู: รูปโปรไฟล์ */
.facepick { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--line2); background: rgba(255, 255, 255, 0.02); }
.face { width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; cursor: pointer; border: 2px solid rgba(255, 126, 182, 0.55); background: radial-gradient(circle at 30% 25%, rgba(255, 126, 182, 0.25), rgba(127, 212, 255, 0.08)); color: var(--v); }
.face img { width: 100%; height: 100%; object-fit: cover; }
.face .i { width: 24px; height: 24px; }
.tface { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 12px auto 0; border: 3px solid var(--v); box-shadow: 0 0 24px rgba(255, 126, 182, 0.45); }
/* ตั๋ว: ลัดคิว */
.skipcard { border-color: rgba(255, 209, 102, 0.4); background: linear-gradient(120deg, rgba(255, 209, 102, 0.09), rgba(255, 126, 182, 0.06) 55%, var(--panel)); }
button.drop { width: 100%; color: inherit; font: inherit; background: rgba(255, 255, 255, 0.025); }
.ovassets { display: grid; gap: 10px; }
@media (max-width: 860px) {
  .ovgrid { grid-template-columns: 1fr; }
  .ovstage { margin-inline: auto; }
}
@media (max-width: 560px) {
  .sndlist { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
