/* ============================================================
   palmitic.xyz — ธีมกลาง (ดึงจาก Kings Cup เดิม)
   ============================================================ */
:root{
  --ink: #131018;
  --ink-2: #1d1826;
  --cream: #f7efe1;
  --cream-dim: #d9cdb8;
  --gold: #eab949;
  --pink: #ff5d8f;
  --line: rgba(247,239,225,0.12);

  --tabbar-h: 62px;
}

*{ box-sizing:border-box; }

html,body{
  margin:0; padding:0;
  min-height:100%;
  background: radial-gradient(120% 90% at 50% -10%, #241c33 0%, var(--ink) 55%, #0d0b12 100%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: 'Sarabun', sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x:hidden;
}

body{
  display:flex;
  flex-direction:column;
  min-height:100vh;
  min-height:100dvh;
  /* กันเนื้อหาโดน tab bar (fixed) บัง + safe area iPhone */
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}

/* ============================================================
   Shell: header + stage + tab bar
   ============================================================ */
.app-header{
  position: sticky; top:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding: 12px 18px;
  padding-top: calc(12px + env(safe-area-inset-top));
  background: rgba(19,16,24,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand{
  font-family:'Kanit', sans-serif; font-weight:800; font-size:16px;
  color: var(--cream); letter-spacing:.01em;
}
.brand-dim{ color: var(--gold); }
.app-game-name{
  font-family:'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing:.12em; text-transform:uppercase;
  color: var(--cream-dim);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:50%;
}

.stage{
  flex: 1 0 auto;
  width:100%;
  display:flex; flex-direction:column; align-items:center;
  padding: 22px 18px 24px;
}
.stage-error{
  margin:auto; text-align:center; color: var(--pink);
  font-size:16px; line-height:1.6;
}
.stage-error small{ color: var(--cream-dim); }

.tabbar{
  position: fixed; left:0; right:0; bottom:0; z-index:50;
  display:flex; justify-content:flex-start; align-items:stretch; gap:2px;
  background: rgba(19,16,24,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.tabbar::-webkit-scrollbar{ display:none; }
.tab{
  flex: 0 0 auto; min-width: 60px; scroll-snap-align: center;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  background:none; border:none; cursor:pointer;
  color: var(--cream-dim);
  font-family:'Kanit', sans-serif; font-weight:500; font-size: 11px;
  padding: 6px 4px; border-radius: 14px;
  transition: color .18s ease, background .18s ease, transform .1s ease;
}
.tab:active{ transform: scale(0.94); }
.tab .tab-emoji{ font-size: 21px; line-height:1; }
.tab .tab-name{ white-space:nowrap; }
.tab.active{
  color: var(--gold);
  background: rgba(234,185,73,0.10);
}
.tab:focus-visible{ outline: 2px solid var(--pink); outline-offset: 2px; }

/* ============================================================
   Coming soon (แท็บว่าง)
   ============================================================ */
.coming-soon{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; gap:12px; padding: 70px 24px; color: var(--cream-dim);
}
.coming-soon .cs-emoji{ font-size: 66px; line-height:1; filter: grayscale(0.1); }
.coming-soon .cs-title{
  font-family:'Kanit', sans-serif; font-weight:800; font-size: 24px;
  color: var(--cream); margin:0;
}
.coming-soon .cs-text{ font-size: 14.5px; line-height:1.6; max-width: 300px; }
.coming-soon .cs-badge{
  font-family:'IBM Plex Mono', monospace; font-size: 11px; letter-spacing:.14em;
  text-transform:uppercase; color: var(--gold);
  border:1px solid rgba(234,185,73,0.35); background: rgba(234,185,73,0.08);
  padding: 6px 14px; border-radius: 100px; margin-top: 6px;
}

/* ============================================================
   Kings Cup (เกม)
   ============================================================ */
.kc-topbar{
  width:100%; max-width:520px;
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom: 10px;
}
.kc-eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing:.14em; text-transform:uppercase;
  color: var(--cream-dim);
}
.kc-counter{
  font-family:'IBM Plex Mono', monospace;
  font-size: 13px; color: var(--gold);
  background: rgba(234,185,73,0.08);
  border: 1px solid rgba(234,185,73,0.35);
  padding: 5px 11px; border-radius: 100px;
}
.kc-title{
  font-family:'Kanit', sans-serif; font-weight:800;
  font-size: clamp(22px, 6vw, 30px);
  margin: 6px 0 2px; text-align:center; letter-spacing:.01em;
}
.kc-subtitle{
  color: var(--cream-dim); font-size: 14px; text-align:center;
  margin-bottom: 26px;
}

.card-arena{
  position:relative;
  width: 100%; max-width: 380px;
  display:flex; justify-content:center; align-items:center;
  padding: 30px 0 18px;
}
.spotlight{
  position:absolute; inset:0; margin:auto;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--glow-color, rgba(234,185,73,0.35)) 0%, rgba(234,185,73,0) 70%);
  filter: blur(6px);
  transition: background 0.5s ease;
  pointer-events:none;
}
.card-scene{
  perspective: 1400px;
  width: clamp(180px, 46vw, 220px);
  height: clamp(260px, 66vw, 320px);
  position:relative; z-index:1;
}
.card-3d{
  width:100%; height:100%;
  position:relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(.2,.8,.2,1);
}
.card-3d.flipped{ transform: rotateY(180deg); }
.card-face{
  position:absolute; inset:0;
  border-radius: 18px;
  backface-visibility: hidden;
  display:flex; flex-direction:column;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 2px 0 rgba(255,255,255,0.04) inset;
}
.card-back{
  background:
    repeating-linear-gradient(45deg, rgba(234,185,73,0.16) 0 10px, rgba(234,185,73,0.05) 10px 20px),
    linear-gradient(160deg, #2a2236, #171220);
  border: 1.5px solid rgba(234,185,73,0.4);
  display:flex; align-items:center; justify-content:center;
}
.card-back::after{ content:"✦"; font-size: 34px; color: rgba(234,185,73,0.55); }
.card-front{
  background: linear-gradient(160deg, var(--cream) 0%, #efe4cf 100%);
  color: var(--ink);
  transform: rotateY(180deg);
  padding: 16px 14px;
  justify-content: space-between;
}
.corner{
  font-family:'Kanit', sans-serif; font-weight:700;
  line-height:0.95;
  font-size: clamp(20px, 5vw, 24px);
}
.corner.tr{ align-self:flex-end; text-align:right; }

.card-body{ flex:1; position:relative; width:100%; }

.hero-field{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
}
.hero-half{
  flex:1; display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden; padding: 2px 0;
}
.hero-half.bottom{ transform: rotate(180deg); }
.hero-figure{
  height: 94%; width:auto; max-width:92%; display:block;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.08));
}
.rank-letter{
  position:absolute; top:50%; left:50%;
  transform: translate(-50%,-50%);
  font-family:'Kanit', sans-serif; font-weight:800;
  font-size: clamp(28px, 8vw, 38px);
  opacity: 0.14;
  pointer-events:none;
}

.draw-btn{
  margin-top: 22px;
  font-family:'Kanit', sans-serif; font-weight:700; font-size: 18px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), #f7d374);
  border:none; border-radius: 100px;
  padding: 15px 42px;
  cursor:pointer;
  box-shadow: 0 10px 26px rgba(234,185,73,0.28);
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
}
.draw-btn:active{ transform: scale(0.96); }
.draw-btn:focus-visible{ outline: 3px solid var(--pink); outline-offset: 3px; }
.draw-btn:disabled{ opacity:0.5; cursor:default; box-shadow:none; }
.draw-btn.empty-deck{
  background: linear-gradient(135deg, var(--pink), #ff8fb3);
  box-shadow: 0 10px 26px rgba(255,93,143,0.3);
}

.rule-panel{
  margin-top: 22px;
  width:100%; max-width: 440px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  text-align:center;
  min-height: 74px;
  display:flex; align-items:center; justify-content:center;
  opacity:0; transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.rule-panel.show{ opacity:1; transform:none; }
.rule-panel .rule-text{ font-size: 16px; font-weight:600; line-height:1.5; }
.rule-panel .rule-sub{
  display:block; margin-top: 4px; font-size: 13px; color: var(--cream-dim); font-weight:400;
}
.rule-panel .rule-extra{
  color: var(--gold); font-weight:700; font-size: 12.5px;
  margin-top: 6px;
}

.history-wrap{ width:100%; max-width: 460px; margin-top: 26px; }
.history-label{
  font-family:'IBM Plex Mono', monospace; font-size: 11px; letter-spacing:.1em;
  color: var(--cream-dim); text-transform:uppercase; margin-bottom: 8px; text-align:left;
}
.history-strip{ display:flex; gap: 8px; overflow-x:auto; padding-bottom: 6px; scrollbar-width: thin; }
.history-chip{
  flex: 0 0 auto; width: 34px; height: 46px; border-radius: 7px;
  background: var(--cream);
  display:flex; align-items:center; justify-content:center;
  font-family:'Kanit', sans-serif; font-weight:700; font-size: 14px;
  border: 1px solid rgba(0,0,0,0.08);
}

details.full-rules{
  width:100%; max-width: 460px; margin-top: 22px;
  background: transparent; color: var(--cream-dim);
}
details.full-rules summary{
  cursor:pointer; font-size: 14px; text-align:center;
  padding: 8px; list-style:none; user-select:none; color: var(--gold);
}
details.full-rules summary::-webkit-details-marker{ display:none; }
.rules-grid{ margin-top: 10px; display:grid; gap: 8px; font-size: 13.5px; line-height:1.5; }
.rules-grid div{
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
}
.rules-grid b{ color: var(--cream); }

.reset-link{
  margin-top: 18px; background:none; border:none;
  color: var(--cream-dim); font-size: 13px; text-decoration:underline;
  cursor:pointer; font-family:'Sarabun', sans-serif;
}

@media (prefers-reduced-motion: reduce){ .card-3d{ transition:none; } }

/* ============================================================
   Games — คลาสกลางที่ใช้ร่วมกันทุกเกม
   ============================================================ */
.g-wrap{ width:100%; max-width:480px; display:flex; flex-direction:column; align-items:center; gap:16px; }
.g-head{ text-align:center; }
.g-title{ font-family:'Kanit',sans-serif; font-weight:800; font-size:clamp(22px,6vw,28px); margin:2px 0; }
.g-sub{ color:var(--cream-dim); font-size:14px; }
.g-card{
  width:100%; background:var(--ink-2); border:1px solid var(--line); border-radius:18px;
  padding:26px 20px; text-align:center; min-height:150px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
}
.g-prompt{ font-family:'Kanit',sans-serif; font-weight:700; font-size:clamp(20px,5.5vw,26px); line-height:1.4; }
.g-prompt-sub{ color:var(--cream-dim); font-size:14px; line-height:1.5; }
.g-emoji{ font-size:46px; line-height:1; }
.g-tag{
  font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--gold); border:1px solid rgba(234,185,73,0.35); background:rgba(234,185,73,0.08);
  padding:4px 12px; border-radius:100px;
}
.g-row{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; width:100%; }
.g-btn{
  font-family:'Kanit',sans-serif; font-weight:700; font-size:17px; color:var(--ink);
  background:linear-gradient(135deg, var(--gold), #f7d374); border:none; border-radius:100px;
  padding:14px 30px; cursor:pointer; box-shadow:0 10px 26px rgba(234,185,73,0.28);
  transition:transform .15s ease, box-shadow .15s ease, opacity .2s ease;
}
.g-btn:active{ transform:scale(0.96); }
.g-btn:disabled{ opacity:0.45; cursor:default; box-shadow:none; }
.g-btn.alt{ color:#fff; background:linear-gradient(135deg, var(--pink), #ff8fb3); box-shadow:0 10px 26px rgba(255,93,143,0.3); }
.g-btn.ghost{ color:var(--cream-dim); background:none; box-shadow:none; border:1px solid var(--line); }
.g-btn.sm{ font-size:14px; padding:10px 20px; }
.g-input{
  width:100%; font-family:'Sarabun',sans-serif; font-size:15px; color:var(--cream);
  background:rgba(255,255,255,0.04); border:1px solid var(--line); border-radius:12px;
  padding:12px 14px; outline:none;
}
.g-input:focus{ border-color:rgba(234,185,73,0.5); }
textarea.g-input{ resize:vertical; min-height:96px; line-height:1.7; }
.chip-list{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.chip{
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(255,255,255,0.05); border:1px solid var(--line); border-radius:100px;
  padding:6px 12px; font-size:14px; color:var(--cream);
}
.chip button{ background:none; border:none; color:var(--pink); cursor:pointer; font-size:16px; line-height:1; padding:0; }
.chip.selectable{ cursor:pointer; }
.chip.on{ color:var(--gold); border-color:rgba(234,185,73,0.5); background:rgba(234,185,73,0.10); }
.g-note{ color:var(--cream-dim); font-size:12.5px; text-align:center; line-height:1.5; }
.g-result{ font-family:'Kanit',sans-serif; font-weight:800; font-size:clamp(26px,7vw,34px); color:var(--gold); }

/* ===== วงล้อสุ่ม (wheel) ===== */
.wheel-stage{ position:relative; width:min(80vw,300px); height:min(80vw,300px); margin:6px auto; }
.wheel-svg{ width:100%; height:100%; transition:transform 4.2s cubic-bezier(.15,.7,.15,1);
  filter:drop-shadow(0 12px 30px rgba(0,0,0,.45)); }
.wheel-pointer{ position:absolute; top:-4px; left:50%; transform:translateX(-50%); z-index:3;
  width:0;height:0;border-left:13px solid transparent;border-right:13px solid transparent;
  border-top:24px solid var(--gold); filter:drop-shadow(0 2px 2px rgba(0,0,0,.4)); }

/* ===== stepper + config row (ใช้ร่วม croc/dice) ===== */
.stepper{ display:inline-flex; align-items:center; gap:12px;
  background:rgba(255,255,255,0.04); border:1px solid var(--line); border-radius:100px; padding:5px 8px; }
.stepper button{ width:38px; height:38px; border-radius:50%; border:none; cursor:pointer;
  background:var(--ink); color:var(--gold); font-size:22px; font-weight:700; line-height:1;
  display:flex; align-items:center; justify-content:center; }
.stepper button:active{ transform:scale(0.9); }
.stepper .val{ font-family:'Kanit',sans-serif; font-weight:800; font-size:22px; min-width:32px; text-align:center; }
.cfg-row{ display:flex; align-items:center; justify-content:space-between; gap:12px;
  width:100%; max-width:340px; background:rgba(255,255,255,0.03); border:1px solid var(--line);
  border-radius:16px; padding:12px 16px; }
.cfg-row .cfg-label{ font-family:'Kanit',sans-serif; font-weight:700; font-size:16px; display:flex; align-items:center; gap:8px; }

/* ===== ฟันจรเข้ (crocodile) — โหมดดุ ===== */
.croc2{ position:relative; width:min(88vw,340px); margin:4px auto 0; user-select:none; }
.croc2.shake{ animation:croc2-shake .46s ease; }
@keyframes croc2-shake{ 0%,100%{transform:translateX(0)} 20%{transform:translateX(-11px) rotate(-1.5deg)} 60%{transform:translateX(11px) rotate(1.5deg)} }
.croc2-eyes{ position:relative; z-index:4; display:flex; justify-content:center; gap:56px; margin-bottom:-18px; }
.croc2-eye{ position:relative; width:56px; height:46px; border-radius:52% 52% 46% 46%;
  background:radial-gradient(circle at 42% 38%, #eaff9c, #4d8f1e); border:3px solid #163c0b;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
  box-shadow:0 0 12px rgba(150,255,90,0.25); }
.croc2-eye::after{ content:''; width:11px; height:28px; border-radius:50%;
  background:#080808; box-shadow:0 0 5px rgba(255,30,30,0.9); }          /* รูม่านตาแคบดุ */
.croc2-eye .brow{ position:absolute; top:-3px; left:-6%; width:112%; height:15px;
  background:#10300a; border-radius:4px; z-index:6; transform:rotate(17deg); }
.croc2-eye:last-child .brow{ transform:rotate(-17deg); }                 /* คิ้วโกรธเข้าหากลาง */
.croc2-upper{ position:relative; z-index:3; height:84px;
  background:linear-gradient(180deg,#3f7d2c 0%, #21501a 100%);
  border-radius:50% 50% 30% 30% / 92% 92% 26% 26%;
  box-shadow:inset 0 -8px 0 rgba(0,0,0,.24), 0 6px 12px rgba(0,0,0,.45);
  transform-origin:50% 96%; transition:transform .18s cubic-bezier(.34,1.5,.5,1); }
.croc2-nostril{ position:absolute; top:15px; width:11px; height:14px; border-radius:50%;
  background:#0b2306; box-shadow:0 0 4px rgba(0,0,0,.6); }
.croc2-nostril.l{ left:40%; } .croc2-nostril.r{ right:40%; }
.croc2-mouth{ position:relative; z-index:1; margin-top:-4px;
  background:radial-gradient(130% 130% at 50% -20%, #6e130b 0%, #330504 90%);
  border-radius:6px 6px 46% 46% / 6px 6px 72% 72%;
  padding:12px; box-shadow:inset 0 12px 24px rgba(0,0,0,.65);
  display:flex; flex-direction:column; justify-content:space-between; gap:22px; min-height:152px; overflow:hidden; }
.croc2-teeth{ display:flex; flex-wrap:wrap; gap:6px; justify-content:center; transition:transform .18s ease; }
.c2tooth{ width:30px; height:44px; border:none; cursor:pointer; padding:0;
  background:linear-gradient(180deg,#fff 0%, #d7cbb4 100%);
  color:#8a1410; font-size:12px; font-weight:800; display:flex; justify-content:center;
  filter:drop-shadow(0 3px 2px rgba(0,0,0,.45));
  transition:transform .1s ease, filter .2s ease, opacity .25s ease; }
.croc2-teeth.bottom .c2tooth{ clip-path:polygon(50% 0,100% 26%,88% 100%,12% 100%,0 26%); align-items:flex-end; padding-bottom:5px; }   /* ฟันล่างแหลมขึ้น */
.croc2-teeth.top .c2tooth{ clip-path:polygon(50% 100%,100% 74%,88% 0,12% 0,0 74%); align-items:flex-start; padding-top:5px; }        /* ฟันบนแหลมลง */
.c2tooth:active{ transform:translateY(2px); }
.c2tooth.safe{ background:linear-gradient(180deg,#5aa53f,#2c661d); color:#eaffe0; filter:none; opacity:.72; cursor:default; }
.c2tooth.boom{ background:linear-gradient(180deg,#ff5252,#a00000); color:#fff; filter:drop-shadow(0 0 7px rgba(255,50,50,.85)); }
.c2tooth:disabled{ cursor:default; }
.croc2-lower{ position:relative; z-index:2; height:20px; margin-top:-6px;
  background:linear-gradient(180deg,#2c661d,#183f11); border-radius:30% 30% 50% 50% / 26% 26% 100% 100%; }
/* งับ: ขากรรไกรบนลงมา + ฟันบนงับหาฟันล่าง */
.croc2.chomp .croc2-upper{ transform:translateY(60px) scaleY(1.16); }
.croc2.chomp .croc2-teeth.top{ transform:translateY(40px); }

/* ===== คอร์กี้งับ (corgi) — วาดด้วย CSS ล้วน ไม่มีไฟล์รูป ===== */
.corgi{ position:relative; width:min(88vw,320px); margin:2px auto 0; padding-top:46px;
  user-select:none; -webkit-tap-highlight-color:transparent; }
.corgi.shake{ animation:corgi-shake .5s ease; }
@keyframes corgi-shake{ 0%,100%{transform:translateX(0) rotate(0)} 18%{transform:translateX(-12px) rotate(-2deg)}
  44%{transform:translateX(10px) rotate(2deg)} 70%{transform:translateX(-6px) rotate(-1deg)} }

/* หัว — ขากรรไกรบน (ลงมางับตอนแพ้) */
.corgi-head{ position:relative; z-index:3; height:106px;
  background:linear-gradient(180deg,#d99a55 0%, #C68642 55%, #a76c31 100%);
  border-radius:50% 50% 32% 32% / 86% 86% 28% 28%;
  box-shadow:inset 0 -8px 0 rgba(0,0,0,.16), 0 6px 14px rgba(0,0,0,.42);
  transform-origin:50% 96%; transition:transform .2s cubic-bezier(.34,1.5,.5,1); }
/* หูตั้งสามเหลี่ยม */
.corgi-ear{ position:absolute; top:-42px; width:56px; height:64px;
  background:linear-gradient(180deg,#C68642 0%, #8f5c29 100%);
  clip-path:polygon(50% 0, 100% 100%, 0 100%);
  filter:drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.corgi-ear::after{ content:''; position:absolute; left:50%; top:28%; margin-left:-13px;
  width:26px; height:40px; background:linear-gradient(180deg,#f0b3a4,#d4867a);
  clip-path:polygon(50% 0, 100% 100%, 0 100%); }
.corgi-ear.l{ left:4px; transform:rotate(-10deg); }
.corgi-ear.r{ right:4px; transform:rotate(10deg); }
/* ตา */
.corgi-eye{ position:absolute; top:32px; z-index:6; width:20px; height:24px; border-radius:50%;
  background:radial-gradient(circle at 38% 30%, #6b4b2f 0%, #1b1109 62%);
  box-shadow:0 0 0 2px rgba(0,0,0,.22); }
.corgi-eye::after{ content:''; position:absolute; top:4px; left:4px; width:6px; height:6px;
  border-radius:50%; background:rgba(255,255,255,.92); }
.corgi-eye.l{ left:27%; } .corgi-eye.r{ right:27%; }
/* แก้มปุยสีขาว */
.corgi-cheek{ position:absolute; bottom:-16px; z-index:2; width:80px; height:58px;
  background:radial-gradient(circle at 50% 32%, #fffaf0 0%, #ebdfca 100%);
  border-radius:62% 62% 54% 54% / 72% 72% 58% 58%;
  box-shadow:0 4px 9px rgba(0,0,0,.28); }
.corgi-cheek::before,.corgi-cheek::after{ content:''; position:absolute; border-radius:50%;
  background:#fdf8ee; box-shadow:0 3px 6px rgba(0,0,0,.16); }
.corgi-cheek::before{ width:32px; height:32px; bottom:0; }
.corgi-cheek::after{ width:24px; height:24px; bottom:12px; }
.corgi-cheek.l{ left:0; }
.corgi-cheek.l::before{ left:-10px; } .corgi-cheek.l::after{ left:-4px; bottom:-6px; }
.corgi-cheek.r{ right:0; }
.corgi-cheek.r::before{ right:-10px; } .corgi-cheek.r::after{ right:-4px; bottom:-6px; }
/* ปากกระบอกขาว + จมูก */
.corgi-snout{ position:absolute; left:50%; bottom:-22px; margin-left:-48px; z-index:5;
  width:96px; height:62px;
  background:radial-gradient(circle at 50% 28%, #fffdf7 0%, #efe4d2 100%);
  border-radius:52% 52% 48% 48% / 58% 58% 44% 44%;
  box-shadow:0 5px 11px rgba(0,0,0,.3); }
.corgi-nose{ position:absolute; left:50%; top:9px; margin-left:-13px;
  width:26px; height:20px; background:linear-gradient(180deg,#2c1c13,#0c0705);
  border-radius:46% 46% 60% 60% / 40% 40% 78% 78%; }
.corgi-nose::after{ content:''; position:absolute; left:50%; top:100%; margin-left:-1.5px;
  width:3px; height:13px; background:#3a2417; border-radius:2px; }

/* ปาก + ฟัน */
.corgi-mouth{ position:relative; z-index:1; margin-top:-6px;
  background:radial-gradient(130% 130% at 50% -25%, #6b1a1a 0%, #300808 92%);
  border-radius:8px 8px 46% 46% / 8px 8px 74% 74%;
  padding:30px 12px 16px; min-height:170px; overflow:hidden;
  box-shadow:inset 0 14px 26px rgba(0,0,0,.6);
  display:flex; flex-direction:column; align-items:center; justify-content:space-between; gap:10px;
  transition:min-height .2s ease; }
.corgi-teeth{ display:flex; flex-wrap:wrap; gap:7px; justify-content:center; transition:transform .2s ease; }
.ctooth{ width:32px; height:46px; border:none; cursor:pointer;
  background:linear-gradient(180deg,#ffffff 0%, #ded2bb 100%);
  color:#8a1410; font-family:'Kanit',sans-serif; font-size:13px; font-weight:800;
  display:flex; justify-content:center;
  touch-action:manipulation; -webkit-tap-highlight-color:transparent;
  filter:drop-shadow(0 3px 2px rgba(0,0,0,.45));
  transition:transform .14s ease, filter .2s ease, opacity .25s ease, background .2s ease; }
/* ฟันบนแหลมลง / ฟันล่างแหลมขึ้น */
.corgi-teeth.top .ctooth{ clip-path:polygon(50% 100%,100% 74%,88% 0,12% 0,0 74%);
  align-items:flex-start; padding-top:5px; }
.corgi-teeth.bottom .ctooth{ clip-path:polygon(50% 0,100% 26%,88% 100%,12% 100%,0 26%);
  align-items:flex-end; padding-bottom:5px; }
.ctooth:active{ transform:translateY(4px); }
/* แตะแล้วซี่นั้นกดลง */
.ctooth.down{ transform:translateY(13px); opacity:.5; cursor:default; filter:none;
  background:linear-gradient(180deg,#cfc4ae 0%, #988d79 100%); }
.ctooth.bite{ transform:translateY(13px); opacity:1; color:#fff;
  background:linear-gradient(180deg,#ff6b6b 0%, #a30f0f 100%);
  filter:drop-shadow(0 0 9px rgba(255,60,60,.9)); }
.ctooth:disabled{ cursor:default; }
.corgi-tongue{ width:74px; height:22px; background:linear-gradient(180deg,#ff7fa3,#d94a72);
  border-radius:40% 40% 50% 50% / 30% 30% 70% 70%; box-shadow:inset 0 -4px 6px rgba(0,0,0,.2);
  transition:opacity .18s ease; }
.corgi-chin{ position:relative; z-index:2; height:22px; margin-top:-8px;
  background:linear-gradient(180deg,#C68642,#8f5c29);
  border-radius:30% 30% 50% 50% / 24% 24% 100% 100%; }
/* งับ: หัวลงมาปิดปาก ฟันหุบตาม */
.corgi.chomp .corgi-head{ transform:translateY(78px) scaleY(1.08); }
.corgi.chomp .corgi-mouth{ min-height:96px; }
.corgi.chomp .corgi-teeth.top{ transform:translateY(40px); }
.corgi.chomp .corgi-tongue{ opacity:0; }

/* ===== ทอยลูกเต๋า (dice) ===== */
.dice-tray{ display:flex; flex-wrap:wrap; gap:14px; justify-content:center; align-items:center; min-height:92px; width:100%; }
.die{ width:62px; height:62px; background:linear-gradient(150deg,#fff,#ece3d3); border-radius:14px;
  box-shadow:0 6px 14px rgba(0,0,0,.35), inset 0 -3px 0 rgba(0,0,0,.12);
  display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(3,1fr); padding:9px; gap:2px; }
.die .pip{ border-radius:50%; }
.die .pip.on{ background:#1a1522; box-shadow:inset 0 -1px 1px rgba(0,0,0,.4); }
.die.tumble{ animation:die-tumble .5s linear infinite; }
@keyframes die-tumble{ 0%{transform:rotate(0) translateY(0)} 25%{transform:rotate(90deg) translateY(-10px)}
  50%{transform:rotate(180deg) translateY(0)} 75%{transform:rotate(270deg) translateY(-7px)} 100%{transform:rotate(360deg) translateY(0)} }
.die.settle{ animation:die-settle .42s cubic-bezier(.3,1.5,.5,1); }
@keyframes die-settle{ 0%{transform:scale(1.3) rotate(-8deg)} 100%{transform:scale(1) rotate(0)} }
.dice-sum{ font-family:'Kanit',sans-serif; font-weight:800; font-size:clamp(24px,7vw,32px); color:var(--gold); min-height:1.2em; }

/* ===== สัตว์วิ่งแข่ง (race) ===== */
.race-picker{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.race-pick{ display:flex; flex-direction:column; align-items:center; gap:2px; cursor:pointer;
  background:rgba(255,255,255,0.04); border:1px solid var(--line); border-radius:14px;
  padding:8px 10px; color:var(--cream-dim); font-family:'Kanit',sans-serif; font-size:12px; min-width:64px; }
.race-pick .rp-emoji{ font-size:26px; line-height:1; }
.race-pick.on{ color:var(--gold); border-color:rgba(234,185,73,0.5); background:rgba(234,185,73,0.1); }
.race-track{ width:100%; display:flex; flex-direction:column; gap:8px; }
.race-lane{ position:relative; height:42px; border-radius:10px;
  background:repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 18px, transparent 18px 36px), rgba(255,255,255,0.02);
  border:1px solid var(--line); }
.race-runner{ position:absolute; top:50%; left:0; transform:translateY(-50%); z-index:2;
  transition:left .05s linear; }
.race-runner .rr-emoji{ font-size:28px; display:inline-block; animation:run-bob .28s ease-in-out infinite; }
.race-runner.done .rr-emoji{ animation:none; }
@keyframes run-bob{ 0%,100%{transform:translateY(0) rotate(-4deg)} 50%{transform:translateY(-4px) rotate(4deg)} }
.race-finishline{ position:absolute; top:0; bottom:0; right:4px; display:flex; align-items:center; font-size:20px; opacity:.7; z-index:1; }
.race-result{ width:100%; display:flex; flex-direction:column; gap:6px; align-items:center; }
.race-rank{ font-family:'Kanit',sans-serif; font-weight:700; font-size:17px; color:var(--cream); }
.race-rank.win{ color:var(--gold); font-size:20px; font-weight:800; }

/* ===== ระเบิดเวลา (bomb) ===== */
.bomb{ font-size:90px; line-height:1; margin:6px 0; }
.bomb.ticking{ animation:bomb-pulse .5s ease-in-out infinite; }
@keyframes bomb-pulse{ 0%,100%{transform:scale(1)} 50%{transform:scale(1.14) rotate(-3deg)} }
.bomb.boom{ animation:bomb-boom .5s ease; }
@keyframes bomb-boom{ 0%{transform:scale(.7)} 40%{transform:scale(1.5)} 100%{transform:scale(1.2)} }

/* ===== สูบลูกโป่ง (balloon) ===== */
.balloon-stage{ height:210px; display:flex; align-items:center; justify-content:center; width:100%; overflow:hidden; }
.balloon{ font-size:78px; line-height:1; transition:transform .14s cubic-bezier(.3,1.4,.5,1); transform-origin:center bottom; }
.balloon.shake{ animation:bal-shake .16s ease; }
@keyframes bal-shake{ 0%,100%{margin-left:0} 33%{margin-left:-6px} 66%{margin-left:6px} }
.balloon.pop{ animation:bomb-boom .4s ease; }

/* ===== วัดปฏิกิริยา (reaction) ===== */
.react-pad{ width:100%; min-height:270px; border-radius:20px; cursor:pointer; user-select:none;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; text-align:center;
  transition:background .12s ease; border:1px solid var(--line); }
.react-pad.idle{ background:var(--ink-2); }
.react-pad.wait{ background:linear-gradient(160deg,#8a1f14,#5e120b); border-color:transparent; }
.react-pad.go{ background:linear-gradient(160deg,#33b84a,#1f7d32); }
.react-pad.early{ background:linear-gradient(160deg,#c81d25,#7a1119); }
.react-pad.done{ background:var(--ink-2); }
.react-big{ font-family:'Kanit',sans-serif; font-weight:800; font-size:clamp(30px,9vw,44px); color:#fff; }
.react-small{ color:rgba(255,255,255,.85); font-size:14px; padding:0 16px; }

/* ===== เครื่องจับโกหก (lie detector) ===== */
.scanner{ width:170px; height:170px; border-radius:50%; background:var(--ink-2); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; cursor:pointer; user-select:none;
  touch-action:none; transition:box-shadow .2s ease; }
.scanner.scanning{ box-shadow:0 0 26px rgba(234,185,73,.5); }
.scanner.truth{ box-shadow:0 0 30px rgba(90,220,110,.6); }
.scanner.lie{ box-shadow:0 0 30px rgba(255,80,80,.6); }
.scan-ring{ width:140px; height:140px; border-radius:50%;
  background:conic-gradient(var(--gold) var(--p,0%), rgba(255,255,255,0.07) 0);
  display:flex; align-items:center; justify-content:center; }
.scan-emoji{ width:110px; height:110px; border-radius:50%; background:var(--ink);
  display:flex; align-items:center; justify-content:center; font-size:46px; }

/* ===== จับคู่ความจำ (memory) ===== */
.mem-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; width:100%; max-width:330px; }
.mem-card{ aspect-ratio:1; border:none; border-radius:12px; cursor:pointer; position:relative;
  background:linear-gradient(160deg,#2a2236,#171220); border:1px solid rgba(234,185,73,.3);
  font-size:clamp(20px,7vw,28px); display:flex; align-items:center; justify-content:center; }
.mem-card::after{ content:'?'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:rgba(234,185,73,.6); font-family:'Kanit',sans-serif; font-weight:800; font-size:24px; }
.mem-card .mem-face{ opacity:0; }
.mem-card.flipped, .mem-card.matched{ background:linear-gradient(160deg,var(--cream),#efe4cf); border-color:transparent; }
.mem-card.flipped::after, .mem-card.matched::after{ opacity:0; }
.mem-card.flipped .mem-face, .mem-card.matched .mem-face{ opacity:1; }
.mem-card.matched{ opacity:.55; }

/* ===== ตบตัวตุ่น (whack) ===== */
.mole-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; width:100%; max-width:300px; }
.mole-hole{ aspect-ratio:1; border:none; border-radius:50%; cursor:pointer; overflow:hidden; position:relative;
  background:radial-gradient(circle at 50% 120%, #3a2a1a, #1a1410); box-shadow:inset 0 6px 12px rgba(0,0,0,.6); }
.mole{ position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:center; padding-bottom:8px;
  font-size:clamp(26px,10vw,40px); transform:translateY(110%); transition:transform .12s ease; }
.mole-hole.up .mole{ transform:translateY(0); }
.mole-hole.bonk{ background:radial-gradient(circle at 50% 120%, #6a4a2a, #2a2016); }

/* ===== หยุดให้ตรง (stop bar) ===== */
.bar-track{ position:relative; width:100%; max-width:420px; height:30px; border-radius:100px;
  background:var(--ink-2); border:1px solid var(--line); overflow:hidden; }
.bar-zone{ position:absolute; top:0; bottom:0; background:linear-gradient(180deg,var(--gold),#c99a2e); opacity:.9; }
.bar-marker{ position:absolute; top:-3px; bottom:-3px; width:6px; left:0; border-radius:4px;
  background:var(--cream); box-shadow:0 0 8px rgba(247,239,225,.7); transform:translateX(-50%); }
.bar-marker.good{ background:#7fe07a; box-shadow:0 0 12px rgba(120,240,110,.9); }
.bar-marker.bad{ background:var(--pink); box-shadow:0 0 12px rgba(255,93,143,.9); }

/* ===== เป่ายิงฉุบ (rps) ===== */
.rps-face{ display:flex; align-items:center; justify-content:center; gap:14px; font-size:52px; }
.rps-face .rps-vs{ font-family:'Kanit',sans-serif; font-weight:800; font-size:18px; color:var(--cream-dim); }

/* ===== ตัวเลือกแบบปุ่ม (trivia / math) ===== */
.choice-list{ display:flex; flex-direction:column; gap:8px; width:100%; max-width:400px; }
.choice-list.two{ display:grid; grid-template-columns:1fr 1fr; }
.choice-btn{ width:100%; font-family:'Kanit',sans-serif; font-weight:600; font-size:16px; color:var(--cream);
  background:var(--ink-2); border:1px solid var(--line); border-radius:12px; padding:14px 16px; cursor:pointer;
  transition:background .15s ease, border-color .15s ease; }
.choice-btn:active{ transform:scale(.98); }
.choice-btn.correct{ background:linear-gradient(180deg,#3fae5c,#2c7d40); border-color:transparent; color:#fff; }
.choice-btn.wrong{ background:linear-gradient(180deg,#e0435c,#a01b2c); border-color:transparent; color:#fff; }

/* ===== จับผิดสี (stroop) ===== */
.stroop-word{ font-family:'Kanit',sans-serif; font-weight:800; font-size:clamp(36px,12vw,56px); }
.stroop-word.miss{ animation:bal-shake .2s ease; }
.stroop-pads{ display:grid; grid-template-columns:1fr 1fr; gap:10px; width:100%; max-width:320px; }
.swatch{ border:none; border-radius:14px; padding:18px 0; cursor:pointer; color:#12100f;
  font-family:'Kanit',sans-serif; font-weight:800; font-size:16px; box-shadow:0 4px 10px rgba(0,0,0,.3); }
.swatch:active{ transform:scale(.96); }

/* ===== ทำตามลำดับ (simon) ===== */
.simon-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; width:min(78vw,280px); }
.simon-pad{ aspect-ratio:1; border:none; border-radius:16px; cursor:pointer;
  background:var(--pc); opacity:.42; transition:opacity .1s ease, transform .1s ease; box-shadow:0 4px 10px rgba(0,0,0,.3); }
.simon-pad.lit{ opacity:1; transform:scale(1.04); box-shadow:0 0 22px var(--pc); }
.simon-pad:active{ opacity:.8; }

/* ===== หัวก้อย (coin) ===== */
.coin-stage{ height:170px; display:flex; align-items:center; justify-content:center; perspective:900px; }
.coin{ width:130px; height:130px; position:relative; transform-style:preserve-3d; }
.coin-face{ position:absolute; inset:0; border-radius:50%; backface-visibility:hidden;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  font-family:'Kanit',sans-serif; font-weight:800; font-size:20px; color:#5a4410;
  background:radial-gradient(circle at 38% 32%, #ffe9a8, var(--gold) 60%, #b8892b);
  box-shadow:inset 0 0 0 6px rgba(0,0,0,.12), 0 8px 18px rgba(0,0,0,.4); }
.coin-h{ transform:rotateY(0deg); }
.coin-t{ transform:rotateY(180deg); }

/* ===== ทายอิโมจิ (emoji quiz) ===== */
.emoji-clue{ font-size:clamp(48px,15vw,72px); line-height:1.1; letter-spacing:4px; }

/* ===== เลือกสิ (would you rather) ===== */
.wyr-opt{ width:100%; max-width:420px; min-height:74px; cursor:pointer;
  font-family:'Kanit',sans-serif; font-weight:700; font-size:clamp(16px,4.6vw,20px); color:var(--cream);
  background:linear-gradient(160deg,#2b3566,#1d2344); border:1px solid var(--line); border-radius:16px; padding:16px; }
.wyr-opt.b{ background:linear-gradient(160deg,#5e2545,#3a1730); }
.wyr-opt.picked{ border-color:var(--gold); box-shadow:0 0 0 2px rgba(234,185,73,.5); }
.wyr-or{ font-family:'Kanit',sans-serif; font-weight:800; color:var(--gold); font-size:15px; }

/* ===== ดวงวันนี้ (fortune) ===== */
.fortune-emoji{ font-size:60px; line-height:1; }
.g-card.spin .fortune-emoji{ animation:bomb-pulse .3s linear infinite; }

/* ===== ตบมือดวล (tap duel) ===== */
.duel-wrap{ width:100%; max-width:420px; display:flex; flex-direction:column; gap:6px; }
.duel-half{ border:none; cursor:pointer; border-radius:16px; padding:18px 12px; color:#fff;
  display:flex; flex-direction:column; align-items:center; gap:8px; }
.duel-half.top{ background:linear-gradient(160deg,#3b5bdb,#26306e); transform:rotate(180deg); }
.duel-half.bot{ background:linear-gradient(160deg,#e0435c,#8a1f2c); }
.duel-half.win{ box-shadow:0 0 0 3px var(--gold), 0 0 22px rgba(234,185,73,.6); }
.duel-tap{ font-family:'Kanit',sans-serif; font-weight:800; font-size:26px; }
.duel-label{ font-family:'Kanit',sans-serif; font-weight:700; font-size:14px; opacity:.9; }
.duel-bar-wrap{ width:90%; height:12px; background:rgba(0,0,0,.3); border-radius:100px; overflow:hidden; }
.duel-bar{ height:100%; width:0; background:#fff; border-radius:100px; transition:width .05s linear; }
.duel-mid{ text-align:center; font-family:'Kanit',sans-serif; font-weight:800; font-size:16px; color:var(--gold); padding:4px 0; }

/* ===== ชุดเกม v8 ===== */
.tap-pad{ width:100%; max-width:340px; min-height:220px; border-radius:22px; cursor:pointer; user-select:none;
  background:radial-gradient(circle at 50% 40%, #2a2438, var(--ink-2)); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; transition:transform .05s ease, background .1s; }
.tap-pad.live{ background:radial-gradient(circle at 50% 40%, #3a2f52, #241c33); }
.tap-pad:active{ transform:scale(.98); }
.tap-count{ font-family:'Kanit',sans-serif; font-weight:800; font-size:64px; color:var(--gold); }

.aim-area{ position:relative; width:100%; max-width:360px; height:320px; border-radius:18px;
  background:var(--ink-2); border:1px solid var(--line); overflow:hidden; }
.aim-target{ position:absolute; width:52px; height:52px; margin:-26px 0 0 -26px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:34px; cursor:pointer; animation:aim-pop .18s ease; }
@keyframes aim-pop{ 0%{transform:scale(.4)} 100%{transform:scale(1)} }

.num-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; width:100%; max-width:320px; }
.num-cell{ aspect-ratio:1; border:none; border-radius:12px; cursor:pointer; font-family:'Kanit',sans-serif;
  font-weight:800; font-size:22px; color:var(--cream); background:var(--ink-2); border:1px solid var(--line); }
.num-cell.done{ background:linear-gradient(180deg,#3fae5c,#2c7d40); color:#fff; border-color:transparent; }

.arrow-big{ font-size:64px; } .arrow-big.miss{ animation:bal-shake .16s ease; }
.arrow-pads{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.arrow-mid{ display:flex; gap:60px; }
.arrow-btn{ width:66px; height:60px; border:none; border-radius:14px; font-size:28px; cursor:pointer;
  background:var(--ink-2); border:1px solid var(--line); }
.arrow-btn:active{ transform:scale(.94); }

.odd-grid{ display:grid; gap:8px; width:100%; max-width:340px; }
.odd-cell{ aspect-ratio:1; border:none; border-radius:10px; cursor:pointer; font-size:clamp(18px,6vw,30px);
  background:var(--ink-2); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; }
.odd-cell:active{ transform:scale(.94); }
.odd-cell.reveal{ box-shadow:0 0 0 3px var(--gold); }

.count-field{ display:flex; flex-wrap:wrap; gap:6px; justify-content:center; width:100%; max-width:360px;
  background:var(--ink-2); border:1px solid var(--line); border-radius:16px; padding:16px; font-size:26px; }

.taboo-word{ font-family:'Kanit',sans-serif; font-weight:800; font-size:clamp(26px,8vw,38px); color:var(--gold); }
.taboo-list{ display:flex; flex-wrap:wrap; gap:6px; justify-content:center; }
.taboo-item{ background:rgba(255,93,143,.12); border:1px solid rgba(255,93,143,.4); color:#ff9db8;
  border-radius:100px; padding:4px 12px; font-size:14px; }

.cat-letter{ font-family:'Kanit',sans-serif; font-weight:800; font-size:56px; color:var(--gold); line-height:1; }

.magic8{ width:180px; height:180px; border-radius:50%; cursor:pointer;
  background:radial-gradient(circle at 38% 32%, #444, #0b0b0b 70%); display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px rgba(0,0,0,.5); }
.magic8.shake8{ animation:croc2-shake .5s ease; }
.magic8-window{ width:100px; height:100px; border-radius:50%; background:#141a3a; display:flex; align-items:center; justify-content:center;
  padding:8px; text-align:center; color:#9fb0ff; font-family:'Kanit',sans-serif; font-weight:700; font-size:14px; box-shadow:inset 0 0 14px rgba(0,0,0,.7); }

.love-heart{ font-size:30px; }
.love-bar-wrap{ width:100%; max-width:400px; height:22px; background:var(--ink-2); border:1px solid var(--line); border-radius:100px; overflow:hidden; }
.love-bar{ height:100%; width:0; background:linear-gradient(90deg,#ff5d8f,#ff9db8); transition:width .03s linear; }

.slot-box{ display:flex; gap:10px; background:var(--ink-2); border:2px solid var(--gold); border-radius:18px; padding:16px; }
.slot-reel{ width:72px; height:88px; border-radius:12px; background:linear-gradient(180deg,#fff,#e7dcc7);
  display:flex; align-items:center; justify-content:center; font-size:42px; box-shadow:inset 0 4px 10px rgba(0,0,0,.2); }
.slot-reel.spinning{ animation:slot-blur .1s linear infinite; }
@keyframes slot-blur{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }

.scratch-card{ position:relative; width:100%; max-width:340px; height:200px; border-radius:18px; overflow:hidden; border:1px solid var(--line); }
.scratch-inner{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:8px; background:linear-gradient(160deg,#2a2236,#171220); text-align:center; padding:16px; }
.scratch-cover{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; cursor:pointer;
  background:linear-gradient(135deg,#8a8a8a,#c9c9c9); color:#555; font-family:'Kanit',sans-serif; font-weight:800; font-size:20px;
  touch-action:none; transition:opacity .05s linear; }

.adice-box{ display:flex; gap:12px; align-items:stretch; justify-content:center; }
.adice{ min-width:120px; background:linear-gradient(180deg,#fff,#e7dcc7); border-radius:16px; padding:16px 12px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; box-shadow:0 6px 14px rgba(0,0,0,.35); }
.adice.num{ min-width:76px; }
.adice-e{ font-size:38px; }
.adice-t{ font-family:'Kanit',sans-serif; font-weight:800; font-size:14px; color:#333; text-align:center; }
.adice.num .adice-e{ color:var(--pink); font-family:'Kanit',sans-serif; font-weight:800; }

.g-card.imp{ border-color:rgba(255,93,143,.5); }

/* ===== picker reveal ===== */
.reveal-name{ font-family:'Kanit',sans-serif; font-weight:800; font-size:clamp(30px,9vw,44px); line-height:1.2; min-height:1.2em; }
.reveal-name.spin{ color:var(--cream-dim); }
.reveal-name.win{ color:var(--gold); }

/* ===== pairing ===== */
.pair-list{ width:100%; display:flex; flex-direction:column; gap:10px; }
.pair-item{
  display:flex; align-items:center; gap:10px; justify-content:center;
  background:rgba(255,255,255,0.03); border:1px solid var(--line); border-radius:14px; padding:12px 14px;
  font-family:'Kanit',sans-serif; font-weight:700; font-size:16px;
}
.pair-item .vs{ color:var(--pink); font-size:13px; font-family:'IBM Plex Mono',monospace; }
.pair-item .solo{ color:var(--gold); font-size:12px; }

/* ===== charades timer ===== */
.timer-ring{ font-family:'IBM Plex Mono',monospace; font-size:34px; font-weight:500; color:var(--gold); }
.timer-ring.low{ color:var(--pink); }
