:root {
  --r1: #ff6a4d; --r2: #d7263d;
  --y1: #ffd84d; --y2: #f59e0b;
  --g1: #4ade80; --g2: #10966b;
  --b1: #4cc3ff; --b2: #3056d3;
  --ink: #0b1020;
  --text: #eef1ff;
  --muted: #9aa3c7;
  --panel: rgba(18, 24, 48, .82);
  --line: rgba(255, 255, 255, .12);
  --accent: #ffd84d;
  --cw: clamp(58px, 8.4vw, 96px);
  --ch: calc(var(--cw) * 1.48);
  --glow: #ffffff;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: Inter, system-ui, sans-serif; color: var(--text); background: var(--ink);
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
#bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 46%, rgba(80, 60, 200, .35), transparent 70%),
    radial-gradient(ellipse 60% 40% at 15% 100%, rgba(255, 106, 77, .18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 0%, rgba(76, 195, 255, .16), transparent 70%),
    linear-gradient(160deg, #0b1020, #141a3a 50%, #0d1229);
}
#bg::after {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px;
}
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; }

/* ---------- telas ---------- */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: safe center; padding: 16px; overflow-y: auto; }
#game { overflow: hidden; }
.brand { text-align: center; margin-bottom: 22px; }
.brand h1 { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(56px, 12vw, 96px); margin: 0; line-height: .9; letter-spacing: -1px;
  background: linear-gradient(90deg, var(--r1), var(--y1), var(--g1), var(--b1)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(255, 216, 77, .25)); }
.tag { color: var(--muted); margin: 8px 0 0; }
.logo-cards { position: relative; height: 70px; width: 120px; margin: 0 auto 8px; }
.lc { position: absolute; left: 42px; top: 0; width: 40px; height: 60px; border-radius: 8px; border: 3px solid #fff; transform-origin: 50% 120%; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.lc.r { background: linear-gradient(135deg, var(--r1), var(--r2)); transform: rotate(-30deg); }
.lc.y { background: linear-gradient(135deg, var(--y1), var(--y2)); transform: rotate(-10deg); }
.lc.g { background: linear-gradient(135deg, var(--g1), var(--g2)); transform: rotate(10deg); }
.lc.b { background: linear-gradient(135deg, var(--b1), var(--b2)); transform: rotate(30deg); }

.panel { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; backdrop-filter: blur(12px); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.panel.wide { width: min(520px, 100%); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
label.inline { flex-direction: row; align-items: center; gap: 8px; }
input:not([type=checkbox]), select { background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--text); font-size: 16px; outline: none; min-width: 0; }
select { padding: 6px 10px; }
input:focus { border-color: var(--accent); }
#code { text-transform: uppercase; letter-spacing: 6px; text-align: center; font-weight: 700; flex: 1; }
.row { display: flex; gap: 10px; }
.grow { flex: 1; }
.btn { border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700; background: rgba(255,255,255,.1); border: 1px solid var(--line); transition: transform .1s, background .2s; }
.btn:hover { background: rgba(255,255,255,.16); }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, var(--y1), var(--y2)); color: #241500; border: 0; box-shadow: 0 6px 20px rgba(245, 158, 11, .35); }
.btn.danger { background: rgba(215, 38, 61, .25); border-color: rgba(255,106,77,.5); }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 12px; font-size: 14px; }
.btn:disabled { opacity: .4; pointer-events: none; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 4px; }
.or { text-align: center; color: var(--muted); font-size: 12px; position: relative; }
.or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.or span { position: relative; background: #151b37; padding: 0 10px; }
.muted { color: var(--muted); font-size: 14px; margin: 0; text-align: center; }

/* ---------- sala de espera ---------- */
.lobby-head { display: flex; justify-content: space-between; align-items: center; }
.lobby-head small { color: var(--muted); }
.big-code { font-family: 'Baloo 2'; font-size: 44px; font-weight: 800; letter-spacing: 8px; line-height: 1; color: var(--accent); }
.lobby-players { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lobby-players li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(255,255,255,.05); border-radius: 12px; border: 1px solid var(--line); }
.lobby-players li .nm { flex: 1; font-weight: 600; }
.lobby-players li .badge { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(255,216,77,.18); color: var(--accent); }
.lobby-players li.empty { opacity: .35; border-style: dashed; }
.lobby-players .x { background: none; border: 0; color: var(--muted); font-size: 18px; }
.host-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }

.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: 'Baloo 2'; font-weight: 800; font-size: 20px; color: #fff; flex: none; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); position: relative; }

/* ---------- mesa ---------- */
#game { padding: 0; justify-content: flex-start; align-items: stretch; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid var(--line); font-size: 18px; }
.room-chip { font-size: 13px; color: var(--muted); background: rgba(0,0,0,.25); padding: 6px 12px; border-radius: 99px; }
.room-chip b { color: var(--text); }

#table { position: relative; flex: 1; min-height: 0; }
#opponents { position: absolute; inset: 0; pointer-events: none; }
.seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: auto; transition: left .4s, top .4s; }
.seat .who { display: flex; align-items: center; gap: 8px; background: rgba(10, 14, 32, .7); padding: 5px 12px 5px 5px; border-radius: 99px; border: 2px solid var(--line); transition: border-color .3s, box-shadow .3s; position: relative; }
.seat .who .avatar { width: 34px; height: 34px; font-size: 17px; }
.seat .nm { font-weight: 700; font-size: 14px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .pts { font-size: 11px; color: var(--muted); }
.seat.turn .who { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,216,77,.2), 0 0 30px rgba(255,216,77,.35); }
.seat.off .who { opacity: .5; }
.seat .mini { position: relative; height: calc(var(--cw) * .62); display: flex; justify-content: center; }
.seat .mini i { width: calc(var(--cw) * .42); height: calc(var(--cw) * .62); margin-left: calc(var(--cw) * -.3); border-radius: 6px; background: var(--back); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transform-origin: 50% 140%; }
.seat .mini i:first-child { margin-left: 0; }
.seat .count { position: absolute; right: -14px; top: -6px; background: #fff; color: var(--ink); font-weight: 800; font-size: 13px; min-width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; padding: 0 6px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.tag-virada { font-family: 'Baloo 2'; font-weight: 800; font-size: 13px; color: var(--ink); background: var(--accent); border-radius: 8px; padding: 0 8px; }
.catch { font-family: 'Baloo 2'; font-weight: 800; font-size: 14px; border: 0; border-radius: 10px; padding: 4px 12px; background: linear-gradient(135deg, var(--r1), var(--r2)); color: #fff; animation: pulse .7s infinite alternate; }
.seat .ring { position: absolute; inset: -5px; border-radius: 99px; pointer-events: none; }
.bubble { position: absolute; top: -40px; font-size: 30px; animation: bubble 2s forwards; pointer-events: none; }
@keyframes bubble { 0% { transform: translateY(10px) scale(.4); opacity: 0; } 15% { transform: translateY(0) scale(1.1); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-20px); opacity: 0; } }
@keyframes pulse { to { transform: scale(1.08); } }

#center { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); width: calc(var(--cw) * 3.4); height: calc(var(--cw) * 2.6); display: flex; align-items: center; justify-content: center; gap: calc(var(--cw) * .35); }
#dirRing { position: absolute; left: 50%; top: 50%; width: calc(var(--cw) * 3.6); height: calc(var(--cw) * 3.6); transform: translate(-50%, -50%); opacity: .35; pointer-events: none; }
#dirRing svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }
#dirRing.ccw svg { animation-direction: reverse; }
#dirRing.ccw .arrows { transform: scale(-1, 1); transform-origin: 100px 100px; }
#dirRing svg { fill: var(--glow); }
#dirRing svg::before { content: ""; }
#dirRing circle { fill: none; }
@keyframes spin { to { transform: rotate(360deg); } }
#colorGlow { position: absolute; left: 50%; top: 50%; width: calc(var(--cw) * 3.2); height: calc(var(--cw) * 3.2); transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%); opacity: .28; transition: background .5s; pointer-events: none; border: 2px dashed color-mix(in srgb, var(--glow) 60%, transparent); }
#deck { position: relative; cursor: pointer; }
#deck::before, #deck::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; border: inherit; z-index: -1; }
#deck::before { transform: translate(3px, 3px); filter: brightness(.7); }
#deck::after { transform: translate(6px, 6px); filter: brightness(.5); }
#deck.can { animation: deckPulse 1s infinite alternate; }
@keyframes deckPulse { to { box-shadow: 0 0 0 4px var(--accent), 0 0 30px var(--accent); } }
.deck-count { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--muted); }
#pile { position: relative; width: var(--cw); height: var(--ch); }
#pile .card { position: absolute; left: 0; top: 0; }
#pendingBadge { position: absolute; right: calc(var(--cw) * -.2); top: calc(var(--cw) * -.25); background: linear-gradient(135deg, var(--r1), var(--r2)); color: #fff; font-family: 'Baloo 2'; font-weight: 800; font-size: 22px; padding: 2px 12px; border-radius: 12px; box-shadow: 0 4px 20px rgba(215,38,61,.6); animation: pulse .6s infinite alternate; z-index: 5; }

#logBox { position: absolute; left: 10px; bottom: 6px; font-size: 12px; color: var(--muted); max-width: 40%; display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
#logBox div { animation: fadeIn .3s; }
#logBox div:last-child { color: var(--text); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } }

/* ---------- cartas ---------- */
.card { width: var(--cw); height: var(--ch); border-radius: calc(var(--cw) * .12); position: relative; flex: none;
  border: calc(var(--cw) * .045) solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.45); overflow: hidden; color: #fff; font-family: 'Baloo 2', sans-serif; font-weight: 800; }
.card.r { background: linear-gradient(150deg, var(--r1), var(--r2)); }
.card.y { background: linear-gradient(150deg, var(--y1), var(--y2)); color: #3a2400; }
.card.g { background: linear-gradient(150deg, var(--g1), var(--g2)); }
.card.b { background: linear-gradient(150deg, var(--b1), var(--b2)); }
.card.w { background: linear-gradient(150deg, #2a2f4a, #0d1022); }
.card::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 4px, transparent 4px 12px); }
.card .face { position: absolute; left: 50%; top: 50%; width: 74%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-12deg); border-radius: 30%;
  background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.55); display: grid; place-items: center; }
.card.y .face { background: rgba(255,255,255,.35); }
.card.w .face { background: conic-gradient(var(--r1) 0 25%, var(--y1) 0 50%, var(--g1) 0 75%, var(--b1) 0); border-color: #fff; }
.card .face b { transform: rotate(12deg); font-size: calc(var(--cw) * .5); line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.card .face svg { transform: rotate(12deg); width: 60%; height: 60%; fill: currentColor; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.card.w .face svg { fill: #fff; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.card .tl, .card .br { position: absolute; font-size: calc(var(--cw) * .2); line-height: 1; display: flex; align-items: center; }
.card .tl { left: 6%; top: 4%; }
.card .br { right: 6%; bottom: 4%; transform: rotate(180deg); }
.card .tl svg, .card .br svg { width: calc(var(--cw) * .2); height: calc(var(--cw) * .2); fill: currentColor; }
.card .lbl { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; font-size: calc(var(--cw) * .12); letter-spacing: .5px; opacity: .9; text-transform: uppercase; }
.card.back, .mini i { --back: radial-gradient(circle at 50% 50%, transparent 30%, rgba(0,0,0,.25) 31%, transparent 33%), conic-gradient(from 45deg, var(--r2), var(--y2), var(--g2), var(--b2), var(--r2)); }
.card.back { background: var(--back); }
.card.back::after { content: "V"; position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--cw) * .55); color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.3); transform: rotate(-12deg); }

/* ---------- minha área ---------- */
#me { position: relative; padding: 0 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
#statusBar { display: flex; flex-direction: column; align-items: center; gap: 6px; }
#turnInfo { font-family: 'Baloo 2'; font-weight: 700; font-size: 18px; min-height: 26px; text-align: center; }
#turnInfo.mine { color: var(--accent); }
#timerBar { width: min(320px, 70%); height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
#timerBar i { display: block; height: 100%; background: var(--accent); width: 100%; transform-origin: left; }
.actions { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 8px 0 4px; flex-wrap: wrap; }
.btn.virada { font-family: 'Baloo 2'; font-size: 18px; padding: 6px 18px; background: linear-gradient(135deg, var(--r1), var(--y2)); border: 0; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.2); opacity: .35; }
.btn.virada.ready { opacity: 1; animation: pulse .6s infinite alternate; box-shadow: 0 0 24px rgba(255,106,77,.6); }
.btn.virada.done { opacity: 1; background: var(--accent); color: var(--ink); text-shadow: none; }
#emotes { display: flex; gap: 2px; }
#emotes button { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 10px; width: 34px; height: 34px; font-size: 17px; padding: 0; }
#hand { display: flex; justify-content: center; align-items: flex-end; height: calc(var(--ch) + 30px); padding: 18px 10px 0; overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
#hand::-webkit-scrollbar { display: none; }
#hand .card { margin-left: var(--overlap, -20px); transition: transform .18s, margin .25s, filter .2s; cursor: pointer; }
#hand .card:first-child { margin-left: 0; }
#hand .card.dim { filter: brightness(.55) saturate(.6); cursor: default; }
#hand .card.ok { transform: translateY(-10px); box-shadow: 0 0 0 3px var(--accent), 0 8px 20px rgba(0,0,0,.5); }
#hand .card.ok:hover { transform: translateY(-24px) scale(1.04); z-index: 5; }
#hand .card.new { animation: dealIn .35s; }
@keyframes dealIn { from { transform: translateY(-60px) scale(.6); opacity: 0; } }
#myInfo { text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- modais ---------- */
.modal { position: fixed; inset: 0; background: rgba(5, 8, 20, .7); display: grid; place-items: center; z-index: 50; padding: 16px; backdrop-filter: blur(4px); animation: fadeIn .2s; }
.modal-box { background: #161c3b; border: 1px solid var(--line); border-radius: 20px; padding: 22px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); max-height: 90vh; overflow: auto; }
.modal-box h2, .modal-box h3 { margin: 0; font-family: 'Baloo 2'; text-align: center; }
.modal-box h2 { font-size: 30px; }
.color-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cp { height: 86px; border-radius: 16px; border: 3px solid #fff; font-family: 'Baloo 2'; font-weight: 800; font-size: 20px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); transition: transform .1s; }
.cp:hover { transform: scale(1.04); }
.cp.r { background: linear-gradient(135deg, var(--r1), var(--r2)); }
.cp.y { background: linear-gradient(135deg, var(--y1), var(--y2)); color: #3a2400; text-shadow: none; }
.cp.g { background: linear-gradient(135deg, var(--g1), var(--g2)); }
.cp.b { background: linear-gradient(135deg, var(--b1), var(--b2)); }
.swap-list { display: grid; gap: 8px; }
.swap-list button { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); text-align: left; }
.swap-list button span { flex: 1; font-weight: 700; }
#scoreTable { width: 100%; border-collapse: collapse; }
#scoreTable td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
#scoreTable td:last-child, #scoreTable td:nth-child(3) { text-align: right; }
#scoreTable tr.win td { color: var(--accent); font-weight: 700; }
#scoreTable .bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; margin-top: 4px; overflow: hidden; }
#scoreTable .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--y2), var(--y1)); }
.rules p { margin: 0; line-height: 1.5; font-size: 14px; color: #cfd5f3; }
.rule-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; --cw: 44px; }
.rule-cards div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #cfd5f3; }
.rule-cards b { color: #fff; display: block; }

#toast { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); background: #fff; color: var(--ink); font-weight: 700; padding: 10px 18px; border-radius: 12px; z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(6px); }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.fly { position: fixed; transition: transform .45s cubic-bezier(.2,.8,.3,1), opacity .45s; z-index: 41; }
.shout { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); font-family: 'Baloo 2'; font-weight: 800; font-size: clamp(40px, 10vw, 90px); color: #fff; text-shadow: 0 6px 0 rgba(0,0,0,.3), 0 0 40px var(--glow); animation: shout 1.2s forwards; white-space: nowrap; }
@keyframes shout { 0% { transform: translate(-50%, -50%) scale(.3) rotate(-8deg); opacity: 0; } 20% { transform: translate(-50%, -50%) scale(1.15) rotate(-4deg); opacity: 1; } 70% { transform: translate(-50%, -50%) scale(1) rotate(-4deg); opacity: 1; } 100% { transform: translate(-50%, -60%) scale(.95); opacity: 0; } }
.confetti { position: fixed; width: 10px; height: 14px; top: -20px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

@media (max-height: 640px) { :root { --cw: clamp(48px, 7vw, 76px); } .topbar { padding: 4px 10px; } #turnInfo { font-size: 15px; } }
@media (max-width: 520px) { #logBox { display: none; } .room-chip { font-size: 11px; } .seat .nm { max-width: 72px; font-size: 12px; } .seat .who .avatar { width: 28px; height: 28px; font-size: 14px; } }

/* ---------- regras da casa ---------- */
.house-rules { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.house-rules small { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 11px; }
.house-rules label { color: var(--text); font-size: 14px; }
.house-rules input:disabled + * , .house-rules input:disabled { opacity: .7; }
#silenceBanner { position: absolute; left: 50%; top: calc(54% + var(--cw) * 1.45); transform: translateX(-50%); background: rgba(10,14,32,.85); border: 2px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 99px; white-space: nowrap; animation: pulse .8s infinite alternate; z-index: 6; }
#slapBtn { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); z-index: 30; width: min(280px, 80vw); aspect-ratio: 1.6; border-radius: 28px; border: 4px solid #fff;
  background: radial-gradient(circle at 50% 35%, var(--y1), var(--r2)); color: #fff; font-family: 'Baloo 2'; font-weight: 800; font-size: clamp(22px, 5vw, 32px); text-shadow: 0 3px 0 rgba(0,0,0,.3);
  box-shadow: 0 0 0 10px rgba(255,216,77,.25), 0 20px 60px rgba(0,0,0,.6); animation: slapIn .25s, wobble .35s .25s infinite alternate; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
#slapBtn span { font-size: 1.8em; line-height: 1; }
#slapBtn i { position: absolute; left: 0; bottom: 0; height: 8px; background: #fff; width: 100%; transform-origin: left; }
#slapBtn.done { background: #1f2a52; animation: none; font-size: 20px; }
@keyframes slapIn { from { transform: translate(-50%, -50%) scale(.3); } }
@keyframes wobble { from { transform: translate(-50%, -50%) rotate(-2deg) scale(1); } to { transform: translate(-50%, -50%) rotate(2deg) scale(1.04); } }
#hand .card.jump { transform: translateY(-14px); box-shadow: 0 0 0 3px #4ade80, 0 0 24px #4ade80; animation: pulse .5s infinite alternate; }
#chatForm { display: flex; }
#chatInput { width: 120px; padding: 7px 10px; font-size: 14px; border-radius: 10px; }
.bubble.txt { font-size: 14px; font-weight: 700; background: #fff; color: var(--ink); padding: 4px 10px; border-radius: 12px; white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.slapped { position: absolute; top: -10px; left: -10px; font-size: 22px; }
