:root {
  color-scheme: dark;
  --bg: #0f0c1b;
  --bg2: #17132a;
  --surface: #1e1937;
  --surface2: #2a2449;
  --ink: #f5f2ff;
  --muted: #a9a3c7;
  --line: #372f5e;
  --pink: #ff4d8d;
  --cyan: #35d0ff;
  --yellow: #ffd23f;
  --green: #7cff6b;
  --red: #ff5c5c;
  --radius: 18px;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  background: radial-gradient(1200px 600px at 10% -10%, #2b1650 0%, transparent 60%),
              radial-gradient(900px 500px at 110% 0%, #0f3553 0%, transparent 55%), var(--bg);
  background-attachment: fixed;
  font: 16px/1.6 "IBM Plex Sans Thai", "Noto Sans Thai", Tahoma, sans-serif;
}
h1, h2, h3, .display { font-family: Kanit, "IBM Plex Sans Thai", sans-serif; font-weight: 600; line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); }
h2 { font-size: 1.3rem; margin-top: 1.4em; }
a { color: var(--cyan); }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(15, 12, 27, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 600 1.15rem Kanit, sans-serif; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; }
.mode { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.mode button { border: 0; background: transparent; border-radius: 999px; padding: 5px 12px; font-size: .88rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.mode button[aria-pressed="true"] { background: var(--pink); color: #1a0010; font-weight: 600; }
html[data-mode="soft"] .mode button[aria-pressed="true"] { background: var(--cyan); color: #00202c; }

main.wrap { padding-top: 16px; padding-bottom: 40px; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.crumb a { color: var(--muted); }
.lead { color: var(--muted); margin: 0 0 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 22px;
  border-radius: 14px; border: 0; cursor: pointer; font: 600 1.05rem Kanit, sans-serif; letter-spacing: .01em;
  background: linear-gradient(135deg, var(--pink), #ff7a59); color: #1a0010; box-shadow: 0 6px 20px rgba(255, 77, 141, .3);
  touch-action: manipulation; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn.alt { background: linear-gradient(135deg, var(--cyan), #6b8cff); color: #00202c; box-shadow: 0 6px 20px rgba(53, 208, 255, .25); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.big { min-height: 64px; font-size: 1.25rem; }
.row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.row .btn { flex: 1 1 140px; }

/* ---------- เวทีเกม ---------- */
.stage {
  position: relative; background: linear-gradient(180deg, var(--surface), var(--bg2)); border: 1px solid var(--line);
  border-radius: 24px; padding: 18px 16px 20px; display: grid; gap: 14px; justify-items: center; text-align: center;
  min-height: min(72vh, 620px); align-content: center; overflow: hidden; transition: background .3s;
}
.stage.exploded { background: radial-gradient(circle at 50% 45%, #ff9b3d 0%, #ff3b3b 35%, #3a0612 80%); animation: shake .5s; }
.turn { min-height: 1.6em; color: var(--muted); font-size: 1.05rem; }
.turn b { color: var(--yellow); }
.hint { color: var(--muted); font-size: .98rem; margin: 10px 0 0; }
.pen { color: var(--yellow); }
html[data-mode="soft"] .pen { color: var(--cyan); }

.qcard {
  width: 100%; max-width: 560px; min-height: 260px; border-radius: 22px; padding: 22px 20px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; background: var(--surface2); border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35); user-select: none;
}
.qcard .q { font: 600 clamp(1.35rem, 5.5vw, 1.9rem)/1.35 Kanit, sans-serif; margin: 0; }
.qcard .q.dim { color: var(--muted); font-weight: 400; }
.tag { display: inline-block; justify-self: center; align-self: center; margin: 0 0 12px; padding: 4px 14px; border-radius: 999px; font: 600 .95rem Kanit, sans-serif; background: var(--surface); color: var(--cyan); }
.tag.truth { background: var(--cyan); color: #00202c; }
.tag.dare { background: var(--pink); color: #1a0010; }
.wyr { display: grid; gap: 10px; }
.wyr .opt { display: block; padding: 16px; border-radius: 16px; font: 600 clamp(1.1rem, 4.8vw, 1.45rem)/1.35 Kanit, sans-serif; }
.wyr .a { background: rgba(255, 77, 141, .18); border: 1px solid var(--pink); }
.wyr .b { background: rgba(53, 208, 255, .15); border: 1px solid var(--cyan); }
.wyr .or { color: var(--muted); font-size: .9rem; }

.pop { animation: pop .35s cubic-bezier(.2, .9, .3, 1.3); }
.shake { animation: shake .4s; }
@keyframes pop { from { transform: scale(.9); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }

/* ไพ่ */
.playcard {
  position: relative; width: min(62vw, 240px); aspect-ratio: 5 / 7; border-radius: 18px; border: 0; cursor: pointer;
  background: repeating-linear-gradient(45deg, #3b2a7a 0 10px, #2f2166 10px 20px); box-shadow: 0 18px 40px rgba(0, 0, 0, .5), inset 0 0 0 6px #fff2;
}
.playcard .back { font: 600 1.1rem Kanit, sans-serif; color: #fff; }
.playcard.face { background: #fbfaff; color: #16121f; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.playcard.red { color: #d6264f; }
.playcard .corner { position: absolute; top: 10px; left: 12px; font: 600 1.1rem/1.05 Kanit, sans-serif; text-align: center; }
.playcard .corner.br { top: auto; left: auto; bottom: 10px; right: 12px; transform: rotate(180deg); }
.playcard .big-r { font: 700 4.4rem Kanit, sans-serif; display: block; }
.playcard .big-s { font-size: 3rem; display: block; margin-top: -18px; }
.flip { animation: flip .45s ease; }
@keyframes flip { from { transform: rotateY(90deg); } to { transform: none; } }
.rule { max-width: 520px; min-height: 5em; }
.rule h2 { margin: 0 0 4px; color: var(--yellow); }
.rule p { margin: 0; font-size: 1.1rem; }
.meta { display: flex; gap: 16px; color: var(--muted); font-size: .9rem; }

/* ขวด */
.bottle-wrap { width: min(80vw, 380px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(circle, #2c2356 0%, #1a1533 70%); border: 2px dashed var(--line); }
#bottle { width: 34%; transition: transform 4s cubic-bezier(.12, .78, .18, 1); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.result { min-height: 3em; font-size: 1.15rem; }
.result b { font-family: Kanit, sans-serif; }

/* วางนิ้ว */
.touch-area {
  position: relative; width: 100%; height: min(70vh, 600px); border-radius: 24px; touch-action: none; user-select: none;
  background: radial-gradient(circle at 50% 50%, #251e48, #120f22); border: 1px solid var(--line); overflow: hidden;
}
.touch-hint { position: absolute; inset: auto 0 18px; text-align: center; color: var(--muted); padding: 0 16px; pointer-events: none; font-size: 1.05rem; }
.finger {
  position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; pointer-events: none;
  border: 6px solid var(--c); box-shadow: 0 0 30px var(--c), inset 0 0 20px var(--c); transition: transform .3s, opacity .3s;
}
.arming .finger { animation: pulse .55s infinite alternate; }
.finger.win { transform: scale(1.6); background: var(--c); }
.finger.lose { opacity: .12; transform: scale(.6); }
@keyframes pulse { to { transform: scale(1.18); } }

/* ระเบิด */
.bomb-btn {
  width: min(64vw, 260px); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  font: 700 1.6rem Kanit, sans-serif; background: radial-gradient(circle at 35% 30%, #5b5872, #1c1a26 70%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6), inset 0 -10px 30px rgba(0, 0, 0, .6); touch-action: manipulation;
}
.bomb-btn.blink { box-shadow: 0 0 0 6px rgba(255, 92, 92, .6), 0 20px 50px rgba(0, 0, 0, .6); }
.topic { font: 600 1.35rem Kanit, sans-serif; color: var(--yellow); min-height: 1.5em; }

/* เลขระเบิด */
.range { font: 700 clamp(2.4rem, 12vw, 3.6rem) Kanit, sans-serif; color: var(--yellow); }
.guess { font: 600 2rem Kanit, sans-serif; min-width: 5ch; padding: 4px 16px; border-radius: 12px; background: var(--surface2); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(100%, 340px); }
.pad button { min-height: 58px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface2); font: 600 1.4rem Kanit, sans-serif; cursor: pointer; touch-action: manipulation; }
.pad button:active { background: var(--line); }
.pad .ok { background: var(--pink); color: #1a0010; border: 0; }
.log { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 520px; color: var(--muted); }
.log span { background: var(--surface2); padding: 2px 10px; border-radius: 999px; }
.boom-text { width: 100%; font: 600 1.2rem Kanit, sans-serif; color: #fff; margin: 0 0 6px; }

/* ใบ้คำ */
.pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pill { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface2); cursor: pointer; }
.pill:has(input:checked) { background: var(--pink); color: #1a0010; border-color: var(--pink); font-weight: 600; }
.pill input { display: none; }
.charade-play { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: auto 1fr; background: var(--bg); }
.charade-play[hidden] { display: none; }
.charade-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; }
.clock { font: 700 2rem Kanit, sans-serif; color: var(--yellow); }
.charade-zones { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.charade-zones button { border: 0; font: 600 1.1rem Kanit, sans-serif; cursor: pointer; touch-action: manipulation; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 24px; }
.charade-zones #pass { background: rgba(255, 92, 92, .16); color: var(--red); }
.charade-zones #hit { background: rgba(124, 255, 107, .14); color: var(--green); }
.word { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; padding: 20px; text-align: center;
  font: 700 clamp(2.6rem, 11vw, 6rem)/1.15 Kanit, sans-serif; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.words { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.words span { padding: 4px 12px; border-radius: 999px; background: var(--surface2); }
.words .ok { color: var(--green); } .words .no { color: var(--muted); text-decoration: line-through; }

/* ลูกเต๋า */
.dice { display: flex; gap: 22px; cursor: pointer; }
.die {
  width: min(30vw, 120px); aspect-ratio: 1; border-radius: 22%; background: #fbfaff; padding: 14%;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); box-shadow: 0 14px 30px rgba(0, 0, 0, .5), inset 0 -6px 0 #d9d4ee;
}
.die i { width: 70%; aspect-ratio: 1; border-radius: 50%; background: #1a1530; place-self: center; }
.die[data-n="1"] i { grid-area: 2 / 2; background: var(--pink); }
.die[data-n="2"] i:nth-child(1) { grid-area: 1 / 1; } .die[data-n="2"] i:nth-child(2) { grid-area: 3 / 3; }
.die[data-n="3"] i:nth-child(1) { grid-area: 1 / 1; } .die[data-n="3"] i:nth-child(2) { grid-area: 2 / 2; } .die[data-n="3"] i:nth-child(3) { grid-area: 3 / 3; }
.die[data-n="4"] i:nth-child(1) { grid-area: 1 / 1; } .die[data-n="4"] i:nth-child(2) { grid-area: 1 / 3; } .die[data-n="4"] i:nth-child(3) { grid-area: 3 / 1; } .die[data-n="4"] i:nth-child(4) { grid-area: 3 / 3; }
.die[data-n="5"] i:nth-child(1) { grid-area: 1 / 1; } .die[data-n="5"] i:nth-child(2) { grid-area: 1 / 3; } .die[data-n="5"] i:nth-child(3) { grid-area: 2 / 2; } .die[data-n="5"] i:nth-child(4) { grid-area: 3 / 1; } .die[data-n="5"] i:nth-child(5) { grid-area: 3 / 3; }
.die[data-n="6"] i:nth-child(odd) { grid-column: 1; } .die[data-n="6"] i:nth-child(even) { grid-column: 3; }
.dbl { color: var(--green); font-weight: 600; }
.coin { width: 110px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 700 1.4rem Kanit, sans-serif; color: #3a2a00;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #e0a800 70%); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.coin.spin { animation: coin .6s; }
@keyframes coin { 50% { transform: rotateY(90deg) scale(1.1); } }

/* วงล้อ */
.wheel-box { position: relative; width: min(88vw, 440px); }
.wheel-box canvas { width: 100%; height: auto; display: block; cursor: pointer; }
.wheel-pin { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid #fff; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }

/* ฟอร์มทั่วไป */
.field { display: grid; gap: 6px; text-align: left; width: 100%; }
.field > span { font-weight: 500; color: var(--muted); font-size: .92rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; min-height: 46px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); font-size: 1rem;
}
textarea { resize: vertical; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--pink); }
.opts { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: center; align-items: center; width: 100%; }
.opts .field { width: auto; min-width: 150px; }

details.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; margin-top: 14px; }
details.panel summary { cursor: pointer; font-weight: 600; }
details.panel .field { margin-top: 10px; }
details.panel .field input { min-height: 36px; padding: 4px 10px; display: inline-block; width: auto; }
.players-add { display: flex; gap: 8px; margin-top: 10px; }
.players-add .btn { min-height: 46px; padding: 6px 16px; font-size: 1rem; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 12px; border-radius: 999px; background: var(--surface2); }
.chip button { border: 0; background: transparent; color: var(--muted); font-size: 1.1rem; width: 28px; height: 28px; cursor: pointer; border-radius: 50%; }

/* เนื้อหา */
.prose { margin-top: 28px; color: #ddd8f2; }
.prose li { margin: 4px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq p { color: var(--muted); margin: 8px 0 0; }

/* หน้าแรก */
.hero { padding: 26px 0 6px; }
.hero p { color: var(--muted); max-width: 60ch; }
.hero h1 span { background: linear-gradient(90deg, var(--pink), var(--yellow), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 12px; }
.game {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; transition: transform .15s, border-color .15s;
}
.game:hover { border-color: var(--pink); transform: translateY(-2px); }
.game .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.9rem; background: var(--surface2); }
.game strong { display: block; font: 600 1.08rem Kanit, sans-serif; }
.game span { color: var(--muted); font-size: .88rem; line-height: 1.4; display: block; }
.game em { position: absolute; top: 10px; right: 12px; font-style: normal; font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--yellow); color: #2a2000; }
.setup-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-top: 18px; }
.setup-card h2 { margin: 0 0 4px; font-size: 1.1rem; }
.note { color: var(--muted); font-size: .88rem; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; margin-top: 30px; }
footer .wrap { padding-top: 18px; padding-bottom: 30px; display: grid; gap: 6px; }
footer a { color: var(--muted); }
.warn-line { color: var(--yellow); }

@media (max-width: 420px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- สายเกม ---------- */
.vibes { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 4px; scrollbar-width: none; align-items: center; }
.vibes::-webkit-scrollbar { display: none; }
.vibes-label { color: var(--muted); font-size: .9rem; flex: none; }
.vibes button { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: .95rem; white-space: nowrap; }
.vibes button[aria-pressed="true"] { background: var(--yellow); color: #2a2000; border-color: var(--yellow); font-weight: 600; }
.vibe-note { margin: -4px 0 10px; }
.vibe-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.vibe-card { display: grid; gap: 2px; padding: 14px; border-radius: 18px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); transition: transform .15s; }
.vibe-card:hover { transform: translateY(-2px); }
.vibe-card b { font-size: 1.8rem; line-height: 1.2; }
.vibe-card strong { font: 600 1.1rem Kanit, sans-serif; }
.vibe-card span { color: var(--muted); font-size: .85rem; }
.v-fun { background: linear-gradient(160deg, #3a3000, var(--surface) 70%); }
.v-spicy { background: linear-gradient(160deg, #4a0f25, var(--surface) 70%); }
.v-drink { background: linear-gradient(160deg, #3d2600, var(--surface) 70%); }
.v-deep { background: linear-gradient(160deg, #102a4a, var(--surface) 70%); }
.v-couple { background: linear-gradient(160deg, #3d1240, var(--surface) 70%); }
.chip-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { padding: 6px 14px; border-radius: 999px; background: var(--surface2); color: var(--ink); text-decoration: none; }

/* ---------- เกมประจำสาย ---------- */
.sai-badge { display: inline-block; margin: -4px 0 10px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .88rem; }
.hold-btn { width: min(80vw, 320px); aspect-ratio: 4 / 3; border-radius: 22px; border: 2px dashed var(--line); background: var(--surface2); cursor: pointer;
  display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.hold-btn span { font: 700 clamp(2rem, 9vw, 3rem) Kanit, sans-serif; color: var(--yellow); }
.hold-btn em { font-style: normal; color: var(--muted); }
.hold-btn.holding { border-color: var(--yellow); background: #2f2750; }
.hold-btn.holding em { display: none; }
.tdice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 520px; cursor: pointer; }
.td { min-height: 110px; border-radius: 18px; display: grid; place-items: center; padding: 10px; text-align: center;
  font: 600 1.05rem/1.3 Kanit, sans-serif; background: #fbfaff; color: #2a0f1f; box-shadow: 0 12px 26px rgba(0,0,0,.45), inset 0 -5px 0 #f0c8d8; }
.td:nth-child(2) { background: #fff4f8; } .td:nth-child(3) { background: #ffe6ef; }
.big-task { font: 600 1.5rem Kanit, sans-serif; color: var(--pink); }
.duo-row { display: flex; align-items: center; gap: 10px; font: 600 1.2rem Kanit, sans-serif; }
.duo { padding: 6px 14px; border-radius: 12px; } .duo.a { background: rgba(255,77,141,.2); } .duo.b { background: rgba(53,208,255,.18); }
.vs { color: var(--yellow); }
.slots { display: flex; gap: 10px; }
.slot { width: 64px; aspect-ratio: 5 / 7; border-radius: 10px; display: grid; place-items: center; font: 700 1.3rem Kanit, sans-serif;
  background: repeating-linear-gradient(45deg, #3b2a7a 0 8px, #2f2166 8px 16px); color: #fff8; }
.slot.now { outline: 3px solid var(--yellow); outline-offset: 2px; }
.mini { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 10px; background: #fbfaff; color: #16121f; line-height: 1.05; }
.mini.red { color: #d6264f; }
.glass { position: relative; width: 150px; height: 220px; border: 5px solid rgba(255,255,255,.75); border-top: 0; border-radius: 0 0 26px 26px; overflow: hidden;
  background: rgba(255,255,255,.05); clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); }
.liquid { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, #fff8e0 0 8px, #ffc93c 8px, #f29f05); transition: height .05s linear; }
.glass .crack { position: absolute; inset: 0; opacity: 0; background:
  linear-gradient(115deg, transparent 45%, #fff 46%, transparent 47%), linear-gradient(60deg, transparent 55%, #fff 56%, transparent 57%); }
.glass.cracked .crack { opacity: 1; } .glass.cracked { animation: shake .5s; border-color: #ff9b9b; }
.pour-btn { touch-action: none; user-select: none; -webkit-user-select: none; width: min(100%, 320px); }
.pour-btn:active { transform: scale(.96); filter: brightness(1.15); }
.levels { display: flex; gap: 8px; }
.levels button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.levels button[aria-pressed="true"] { background: var(--cyan); color: #00202c; font-weight: 600; }
.tag.lv1 { background: #35d0ff33; } .tag.lv2 { background: #ff4d8d44; color: #ffd0e0; } .tag.wild { background: var(--yellow); color: #2a2000; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 520px; }
.opt-btn { min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface2); color: var(--ink); font: 500 1.02rem Kanit, sans-serif; cursor: pointer; padding: 8px; }
.opt-btn b { color: var(--yellow); margin-right: 4px; }
.opt-btn.right { background: var(--green); color: #0a2a06; border-color: var(--green); } .opt-btn.right b { color: #0a2a06; }
.opt-btn.dim { opacity: .35; }
.duel { display: grid; grid-template-rows: 1fr 1fr; height: min(78vh, 680px); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); touch-action: none; user-select: none; }
.duel-half { display: grid; place-items: center; text-align: center; cursor: pointer; transition: background .15s; padding: 12px; }
.duel-half.idle { background: var(--surface); } .duel-half.wait { background: #7a1428; } .duel-half.go { background: #15803d; }
.duel-half.win { background: #b8860b; } .duel-half.lose { background: #2a2449; }
.duel-half + .duel-half { border-top: 2px dashed rgba(255,255,255,.3); }
.duel-inner.flip { transform: rotate(180deg); }
.duel-msg { font: 600 1.25rem/1.45 Kanit, sans-serif; margin: 6px 0 0; }
.duel-score { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- เกมง่าย ---------- */
.croc { position: relative; width: min(92vw, 420px); padding-top: 40px; }
.jaw { position: relative; background: linear-gradient(180deg, #4caf50, #2e7d32); border: 3px solid #1b5e20; }
.jaw.top { height: 110px; border-radius: 60px 60px 18px 18px; transform-origin: 12% 100%; transform: rotate(-24deg); transition: transform .12s ease-in; z-index: 2; }
.jaw.top::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -3px; height: 14px; background: repeating-linear-gradient(90deg, #fff 0 14px, transparent 14px 26px); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.jaw .eye { position: absolute; top: -18px; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 3px solid #1b5e20; }
.jaw .eye:first-child { left: 28%; } .jaw .eye:nth-child(2) { left: 52%; }
.jaw .eye::after { content: ""; position: absolute; left: 12px; top: 8px; width: 12px; height: 16px; border-radius: 50%; background: #111; }
.jaw.bottom { height: 120px; border-radius: 18px 18px 60px 60px; margin-top: -6px; background: linear-gradient(180deg, #e57373 0 40%, #4caf50 40%); display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; }
.croc.bite .jaw.top { transform: rotate(0); }
.croc.bite { animation: shake .45s .1s; }
.teeth { display: flex; flex-wrap: nowrap; gap: 4px; padding: 0 16px; width: 100%; justify-content: center; }
.tooth { flex: 1; max-width: 30px; height: 40px; border: 0; background: #fffdf5; clip-path: polygon(0 0, 100% 0, 50% 100%); cursor: pointer; transition: transform .1s; touch-action: manipulation; }
.tooth.down { transform: translateY(14px) scaleY(.5); background: #d7d2c0; }
.slot-box { display: grid; gap: 10px; width: min(92vw, 420px); padding: 16px; border-radius: 22px; cursor: pointer;
  background: linear-gradient(180deg, #ffd23f, #ff8a3d); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.reel { background: #120f1f; border-radius: 14px; padding: 16px 10px; font: 700 clamp(1.6rem, 8vw, 2.4rem) Kanit, sans-serif; color: #fff; text-align: center; min-height: 1.6em; }
.reel.alt { color: var(--yellow); font-size: clamp(1.2rem, 6vw, 1.7rem); }
.simon-box { width: 100%; max-width: 560px; min-height: 42vh; border-radius: 26px; display: grid; place-items: center; cursor: pointer; background: var(--surface2); transition: background .2s; }
.cmd { font: 700 clamp(2.2rem, 11vw, 4rem)/1.2 Kanit, sans-serif; color: #120f1f; text-align: center; padding: 16px; margin: 0; text-shadow: 0 2px 0 rgba(255,255,255,.4); }
.simon-box[style] .cmd { color: #120f1f; } .simon-box:not([style]) .cmd { color: var(--ink); }
.card-table { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; min-height: 120px; }
.seat { display: grid; gap: 4px; justify-items: center; }
.seat .mini.big { width: 64px; height: 90px; font: 700 1.3rem Kanit, sans-serif; box-shadow: 0 8px 18px rgba(0,0,0,.4); }
.seat small { color: var(--muted); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat.lose .mini { outline: 4px solid var(--red); } .seat.lose small { color: var(--red); font-weight: 600; }
.champ { position: relative; width: 120px; height: 300px; border: 0; background: transparent; cursor: pointer; touch-action: manipulation; }
.champ .body { position: absolute; bottom: 0; left: 10px; right: 10px; height: 190px; border-radius: 30px 30px 18px 18px; background: linear-gradient(90deg, #0d4a2c, #1f8a55 45%, #0b3d24); display: grid; place-items: center; }
.champ .body em { font-style: normal; font-size: .8rem; color: #fff; background: #ffd23f33; padding: 4px 6px; border-radius: 8px; }
.champ .neck { position: absolute; bottom: 186px; left: 42px; right: 42px; height: 70px; background: linear-gradient(90deg, #0d4a2c, #1f8a55, #0b3d24); border-radius: 6px 6px 0 0; }
.champ .neck::before { content: ""; position: absolute; inset: 0 -4px 30px; background: #ffd23f; border-radius: 6px; }
.champ .cork { position: absolute; bottom: 252px; left: 44px; right: 44px; height: 30px; background: #c8965a; border-radius: 8px 8px 4px 4px; transition: transform .6s cubic-bezier(.2,.8,.3,1), opacity .6s; }
.champ.popped .cork { transform: translateY(-260px) rotate(540deg); opacity: 0; }
.champ.popped::after { content: "💦💦💦"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 2rem; animation: pop .4s; }
.wobble { animation: wobble .25s; }
@keyframes wobble { 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
.pressure { width: min(70vw, 260px); height: 12px; border-radius: 6px; background: var(--surface2); overflow: hidden; }
.pressure span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--yellow), var(--red)); transition: width .2s; }
.bottle-wrap.spicy { background: radial-gradient(circle, #4a0f25 0%, #1a0d1f 70%); border-color: var(--pink); }

/* ---------- ช่องชื่อผู้เล่น คนละช่อง ---------- */
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; margin-top: 10px; }
.prow { display: flex; align-items: center; gap: 6px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 4px 4px 4px 10px; }
.prow:focus-within { border-color: var(--cyan); }
.pnum { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); color: var(--yellow); font: 600 .8rem Kanit, sans-serif; }
.prow input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; min-height: 40px !important; padding: 4px 6px !important; }
.prow input:focus { outline: none; }
.prow button { flex: none; border: 0; background: transparent; color: var(--muted); font-size: 1.3rem; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; }
.prow button:hover { background: var(--surface2); color: var(--red); }
.add-p { margin-top: 10px; min-height: 44px; font-size: 1rem; width: 100%; }

/* ---------- แจ็คพอต ---------- */
.pen.jackpot { color: #1a1200 !important; background: linear-gradient(90deg, #ffe066, #ffb703, #ffe066); background-size: 200% 100%;
  padding: 2px 10px; border-radius: 10px; box-shadow: 0 0 18px rgba(255, 210, 63, .7); animation: shimmer 1.2s linear infinite, pop .4s; display: inline-block; }
@keyframes shimmer { to { background-position: -200% 0; } }
#jackpotFx { position: fixed; inset: 0; z-index: 100; pointer-events: none; display: grid; place-items: center; opacity: 0;
  background: radial-gradient(circle, rgba(255, 210, 63, .55), rgba(255, 140, 0, .25) 45%, transparent 70%); }
#jackpotFx span { font: 800 clamp(2.2rem, 12vw, 4.5rem) Kanit, sans-serif; color: #ffe066; text-shadow: 0 0 20px #ff9f1c, 0 4px 0 #7a4b00; transform: scale(.4); }
#jackpotFx.on { animation: jpfx 1.4s ease-out; }
#jackpotFx.on span { animation: jptext 1.4s cubic-bezier(.2, 1.4, .3, 1); }
@keyframes jpfx { 0% { opacity: 0; } 12% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes jptext { 0% { transform: scale(.4) rotate(-8deg); } 30% { transform: scale(1.15) rotate(3deg); } 60% { transform: scale(1); } 100% { transform: scale(1.05); } }
.slot-box.jp { box-shadow: 0 0 40px rgba(255, 210, 63, .9), 0 16px 40px rgba(0, 0, 0, .45); }
.jp-toggle { margin-top: 12px; font-size: .92rem; }
