/* TangPlay arena kit — shared UI styles: gold ☕ tip button (from 糖弹对决), host bot-count ＋/－, fixed joystick, toast, onboarding explainer, share card sheet, opt-in submit box.
   Theme via the game's --pink / --ink variables. */
[hidden]{display:none!important}
.toast{position:fixed;left:50%;top:calc(110px + var(--sat));transform:translate(-50%,-10px);opacity:0;z-index:90;padding:9px 16px;border-radius:999px;background:rgba(74,33,66,.92);color:#fff;
  font-size:14px;font-weight:800;pointer-events:none;transition:.25s;max-width:92vw;text-align:center}
.toast.on{opacity:1;transform:translate(-50%,0)}
.botwrap{margin:4px 0}.botctl{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px 6px 12px;border-radius:18px;background:#fff4f9;border:2px solid #ffd0e4}
.bc-l{font-size:16px;font-weight:900;color:#8a2c62;white-space:nowrap}.bc-l small{margin-left:6px;font-size:11px;font-weight:800;color:#b07595}
.bc-c{display:flex;align-items:center;gap:6px}
.bc-b{width:46px;height:46px;border:0;border-radius:16px;background:linear-gradient(#ff7cb4,#ff4f97);color:#fff;font-size:26px;font-weight:900;line-height:46px;padding:0;cursor:pointer;box-shadow:0 3px 0 #d63b7c}
.bc-b:active{transform:translateY(2px);box-shadow:0 1px 0 #d63b7c}.bc-b.off{background:#f1dbe6;color:#fff;box-shadow:none}
.bc-n{min-width:40px;text-align:center;font-size:26px;font-weight:900;color:var(--pink)}.bc-n.ro{min-width:28px}
.bc-ro{font-size:11px;font-weight:800;color:#b07595}.botctl.ro{padding:8px 12px}
.bc-h{margin:4px 2px 0;font-size:12px;font-weight:800;color:#b0507f;text-align:center}
/* ☕ 请糖玩喝杯咖啡 — copied from 糖弹对决: bright gold, same size as 再来一局 (results) / 开始 (lobby), placed directly above them; subtle shimmer. Note only (no payments). */
.big.coffeebig{position:relative;overflow:hidden;background:linear-gradient(#ffe979,#ffc414);color:#5c3200;font-weight:900;text-shadow:none;
  box-shadow:0 6px 0 #d89400,0 10px 20px rgba(230,160,0,.32);touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.big.coffeebig:active{transform:translateY(3px);box-shadow:0 3px 0 #d89400}
.big.coffeebig::after{content:'';position:absolute;top:0;bottom:0;left:-60%;width:45%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.75),transparent);transform:skewX(-20deg);animation:cfshine 4.5s ease-in-out infinite;pointer-events:none}
.big.coffeebig{animation:cfpulse 4.5s ease-in-out infinite}
@keyframes cfshine{0%,70%{left:-60%}88%,100%{left:130%}}
@keyframes cfpulse{0%,68%,100%{transform:scale(1)}78%{transform:scale(1.03)}88%{transform:scale(1)}}
.result .big.coffeebig{animation:cfpop .55s cubic-bezier(.3,1.6,.5,1) .5s both,cfpulse 4.5s ease-in-out 1.6s infinite}
@keyframes cfpop{0%{opacity:0;transform:scale(.6)}100%{opacity:1;transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.big.coffeebig,.big.coffeebig::after,.result .big.coffeebig{animation:none}}
.rbtns .big.coffeebig{margin:0 0 10px}#lobby .big.coffeebig{margin:6px 0 0}
.ib.coffeeib{background:linear-gradient(#fff3b0,#ffd23f);font-size:19px}
.joyzone{position:absolute;left:0;bottom:0;width:58%;top:calc(96px + var(--sat));touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;z-index:1}
.joy{position:absolute;left:calc(18px + env(safe-area-inset-left));bottom:calc(24px + var(--sab));width:136px;height:136px;border-radius:50%;pointer-events:none;opacity:.88;
  background:radial-gradient(circle,rgba(255,255,255,.55) 0 40%,rgba(255,255,255,.35) 41%);border:3px solid rgba(255,255,255,.9);box-shadow:0 6px 18px rgba(150,40,100,.18)}
.joy.act{opacity:1}.joyzone.off .joy{opacity:.4}
.knob{position:absolute;left:50%;top:50%;width:60px;height:60px;margin:-30px 0 0 -30px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#ff9dc8 45%,#ff5fa2);box-shadow:0 4px 0 #d23377;will-change:transform}
/* ---------- tutorial ---------- */
.tut{position:fixed;inset:0;z-index:85;background:rgba(74,33,66,.55);display:flex;align-items:center;justify-content:center}
.tut-card{width:min(88vw,360px);padding:14px 14px 12px;border-radius:26px;background:#fff;text-align:center;box-shadow:0 18px 40px rgba(0,0,0,.3);animation:banIn .4s cubic-bezier(.2,1.5,.4,1)}
.tut-card canvas{width:100%;height:auto;border-radius:18px;background:#fdf3ff}
.tut-card h3{margin:8px 0 2px;font-size:22px}.tut-card p{margin:0 0 10px;font-size:14px;font-weight:800;color:#9a5a80}
.tut-dots{display:flex;gap:6px;justify-content:center;margin-bottom:10px}.tut-dots i{width:8px;height:8px;border-radius:50%;background:#ffd0e4}.tut-dots i.on{background:var(--pink);width:20px;border-radius:4px}
.tut-b{display:flex;gap:8px}.tut-b .chip{flex:0 0 auto}.tut-b .big{flex:1;padding:12px}
/* ---------- share card sheet ---------- */
.cardsheet{position:fixed;inset:0;z-index:88;background:rgba(74,33,66,.6);display:flex;align-items:center;justify-content:center}
.cs-in{width:min(90vw,380px);max-height:94%;overflow:auto;padding:12px;border-radius:24px;background:#fff;text-align:center}
.cs-in img{width:100%;max-height:60vh;object-fit:contain;border-radius:16px;box-shadow:0 6px 18px rgba(0,0,0,.15)}
.cs-in .big{margin-top:10px}.cs-in .chip{margin-top:8px}
.subbox{margin-top:8px;padding:8px 10px;border-radius:14px;background:#fff4f9;border:1.5px dashed #ffb3d4;text-align:left}
.sub-c{display:flex;gap:6px;align-items:flex-start;font-size:12.5px;font-weight:800;color:#6a2a50}.sub-c input{width:18px;height:18px;flex:0 0 auto;accent-color:#ff5fa2;margin-top:1px}
.sub-go{display:block;width:100%;margin-top:6px;padding:10px;border:0;border-radius:12px;background:linear-gradient(#ffd23f,#ffb300);color:#5a2a00;font-weight:900;font-size:15px;cursor:pointer}.sub-go:disabled{opacity:.45}
.sub-msg{margin:6px 0 0;font-size:12px;color:#6a2a50}.sub-msg:empty{display:none}
.clipcopy{display:block;margin:8px auto 0}
/* full-screen shell (fullscreen.js) */
.tf-hint{position:fixed;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));transform:translate(-50%,140%);z-index:9999;display:flex;flex-direction:column;gap:2px;
  width:max-content;max-width:min(330px,calc(100vw - 32px));box-sizing:border-box;padding:10px 38px 10px 14px;border-radius:16px;background:rgba(74,33,66,.94);color:#fff;font:600 14px/1.3 "PingFang SC","Noto Sans CJK SC",sans-serif;
  box-shadow:0 8px 24px rgba(74,33,66,.3);transition:transform .35s cubic-bezier(.2,1.4,.4,1);pointer-events:auto}
.tf-hint.on{transform:translate(-50%,0)}.tf-hint small{font-weight:500;opacity:.85;font-size:12px}.tf-hint i{font-style:normal;display:inline-block;padding:0 3px;border-radius:4px;background:rgba(255,255,255,.18)}
.tf-hint button{position:absolute;right:6px;top:6px;width:26px;height:26px;border:0;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;font-size:16px;line-height:26px;padding:0}
.tf-hint::after{content:"";position:absolute;left:50%;bottom:-7px;margin-left:-7px;border:7px solid transparent;border-bottom:0;border-top-color:rgba(74,33,66,.94)}
/* music toggle (audio.js TangAudio.button) */
.tg-mus.off{opacity:.55;filter:grayscale(.6)}
/* long-press guard (fullscreen.js): no callout / selection / drag anywhere game-side; inputs stay editable */
html,body,body *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
input,textarea,select,[contenteditable="true"]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
img,canvas,svg,a{-webkit-user-drag:none;user-drag:none}
canvas,.joyzone,.dashbtn{touch-action:none}
button{touch-action:manipulation}
/* iPhone Safari with its toolbar: keep bottom controls off the edge so a tap/hold there doesn't pop the Safari bar / menus */
body.tf-ios:not(.tf-standalone){--tf-edge-b:30px}
