/* TapTap Monster Fight styles */
.ttm-wrap{
    font-family: system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans';
    max-width: 900px; margin: 16px auto; padding: 12px 12px 18px;
    background: radial-gradient(1200px 600px at 20% -10%, rgba(34,197,94,.10), transparent 40%),
                radial-gradient(1200px 600px at 120% 110%, rgba(244,114,182,.10), transparent 40%),
                #0b1220;
    color:#e2e8f0; border-radius:16px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.ttm-header{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; padding-bottom:10px; border-bottom:1px solid rgba(255,255,255,.08);}
.ttm-title{ font-size:22px; font-weight:800; }
.ttm-badge{ font-size:12px; padding:2px 6px; border-radius:999px; background:#111827; border:1px solid #334155; color:#86efac; margin-left:8px;}
.ttm-controls{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.ttm-controls label{ font-size:13px; color:#cbd5e1; display:inline-flex; gap:6px; align-items:center; }
.ttm-controls select{ background:#0b1220; color:#e2e8f0; border:1px solid #334155; border-radius:10px; padding:6px; }
.ttm-btn{ background:#22c55e; color:#05150c; border:none; border-radius:999px; padding:8px 14px; font-weight:800; cursor:pointer; }
.ttm-btn:hover{ transform:translateY(-1px); box-shadow:0 6px 16px rgba(34,197,94,.35); }

.ttm-arena{ position:relative; background:#0a0f1a; border:1px solid #1f2937; border-radius:14px; padding:14px; overflow:hidden; min-height:300px; }
.ttm-scoreboard{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px;}
.ttm-label{ font-size:12px; color:#93c5fd; letter-spacing:1px; text-transform:uppercase;}
.ttm-emoji{ font-size:54px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); transition: transform .12s; }
.ttm-hit{ transform: translateY(-6px) scale(1.06) rotate(-3deg); }
.ttm-shake{ animation: ttm-shake .3s linear; }
@keyframes ttm-shake{
  0%,100%{ transform: translateX(0); }
  20%{ transform: translateX(-6px) rotate(-2deg); }
  40%{ transform: translateX(6px) rotate(2deg); }
  60%{ transform: translateX(-4px) rotate(-1deg); }
  80%{ transform: translateX(4px) rotate(1deg); }
}

.ttm-timer{ font-size:18px; font-weight:800; color:#fef08a; background:#1f2937; padding:4px 12px; border-radius:10px; }

.ttm-hpbar{ width:100%; height:14px; background:#101826; border-radius:999px; overflow:hidden; margin:10px 0 6px; border:1px solid #1f2937; }
.ttm-hpfill{ height:100%; width:100%; background:linear-gradient(90deg,#ef4444,#f59e0b); transition: width .08s linear; }
.ttm-hptext{ font-size:13px; color:#fca5a5; margin-bottom:8px; }

.ttm-tap{ width:100%; padding:16px; font-size:26px; border-radius:14px; border:2px solid #334155; background:#111827; color:#e2e8f0; cursor:pointer; }
.ttm-tap:active{ transform:scale(.99); }

.ttm-effects{ position:absolute; left:0; top:0; width:100%; height:100%; pointer-events:none; }
.ttm-pop{ position:absolute; font-weight:900; text-shadow:0 2px 8px rgba(0,0,0,.6); animation: ttm-pop .9s ease-out forwards; white-space:nowrap; }
.ttm-pop.left{ color:#86efac; }
.ttm-pop.right{ color:#fca5a5; }
@keyframes ttm-pop{
  0%{ transform:translate(-50%,0) scale(.85); opacity:1;}
  100%{ transform:translate(-50%,-46px) scale(1.1); opacity:0;}
}

.ttm-result{ text-align:center; padding:14px; }
.ttm-result-text{ font-size:28px; font-weight:900; }
.ttm-result-scores{ color:#cbd5e1; margin:8px 0; }
.ttm-leaderboard{ background:#0b1220; border:1px solid #1f2937; border-radius:12px; padding:8px; text-align:left; max-width:680px; margin:8px auto; }
.ttm-leaderboard h4{ margin:0 0 6px 0; }
.ttm-row{ display:grid; grid-template-columns:40px 60px 100px 110px 60px 80px 1fr; gap:8px; font-size:12px; color:#a5b4fc; border-bottom:1px dashed rgba(255,255,255,.06); padding:4px 0; }

.ttm-footnote{ font-size:12px; color:#94a3b8; margin-top:10px; }

@media (max-width:600px){
  .ttm-emoji{ font-size:46px; }
  .ttm-row{ grid-template-columns:36px 54px 90px 90px 56px 70px 1fr; }
}