/* TapTap Festival Taiko styles */
.ttk-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 15% -10%, rgba(244,114,182,.12), transparent 40%),
        radial-gradient(1200px 600px at 120% 110%, rgba(34,197,94,.10), transparent 40%),
        #0b1220;
    color:#e2e8f0; border-radius:16px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.ttk-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);}
.ttk-title{ font-size:22px; font-weight:800; }
.ttk-badge{ font-size:12px; padding:2px 6px; border-radius:999px; background:#111827; border:1px solid #334155; color:#f472b6; margin-left:8px;}
.ttk-controls{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.ttk-controls label{ font-size:13px; color:#cbd5e1; display:inline-flex; gap:6px; align-items:center; }
.ttk-controls select{ background:#0b1220; color:#e2e8f0; border:1px solid #334155; border-radius:10px; padding:6px; }
.ttk-btn{ background:#f472b6; color:#1a0a14; border:none; border-radius:999px; padding:8px 14px; font-weight:800; cursor:pointer; }
.ttk-btn:hover{ transform:translateY(-1px); box-shadow:0 6px 16px rgba(244,114,182,.35); }

.ttk-lanterns{ display:flex; justify-content:space-between; gap:10px; margin:10px 0; padding:6px 10px; position:relative; }
.ttk-lanterns:before{ content:""; position:absolute; left:0; right:0; top:50%; height:2px; background:linear-gradient(to right, #334155, transparent 10%, transparent 90%, #334155); opacity:.4; }
.ttk-lanterns span{ display:inline-block; font-size:20px; filter: drop-shadow(0 4px 10px rgba(255,0,0,.25)); animation: ttk-sway 2.6s ease-in-out infinite; transform-origin: top center; }
.ttk-lanterns span:nth-child(odd){ animation-delay: .8s; }
@keyframes ttk-sway{ 0%,100%{ transform: rotate(2deg);} 50%{ transform: rotate(-2deg);} }

.ttk-arena{ position:relative; background:#0a0f1a; border:1px solid #1f2937; border-radius:14px; padding:14px; overflow:hidden; min-height:300px; }
.ttk-scoreboard{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px;}
.ttk-label{ font-size:12px; color:#93c5fd; letter-spacing:1px; text-transform:uppercase;}
.ttk-num{ font-size:30px; font-weight:900; }
.ttk-timer{ font-size:18px; font-weight:800; color:#fef08a; background:#1f2937; padding:4px 12px; border-radius:10px; }

.ttk-progress{ width:100%; height:10px; background:#101826; border-radius:999px; overflow:hidden; margin:10px 0 12px; }
.ttk-bar{ height:100%; width:50%; background:linear-gradient(90deg,#f472b6,#60a5fa); transition:width .08s linear; }

.ttk-stage{ position:relative; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; margin:10px 0 12px; }
.ttk-drum{ font-size:54px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); transition: transform .1s; }
.ttk-drum.hit{ transform: translateY(-6px) scale(1.08) rotate(-4deg); }
.ttk-vs{ font-weight:900; color:#94a3b8; opacity:.7; }

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

.ttk-effects{ position:absolute; left:0; top:0; width:100%; height:100%; pointer-events:none; }
.ttk-pop{ position:absolute; font-weight:900; text-shadow:0 2px 8px rgba(0,0,0,.6); animation: ttk-pop .9s ease-out forwards; white-space:nowrap; }
.ttk-pop.left{ color:#86efac; }
.ttk-pop.right{ color:#93c5fd; }
@keyframes ttk-pop{
  0%{ transform:translate(-50%,0) scale(.85); opacity:1;}
  100%{ transform:translate(-50%,-46px) scale(1.1); opacity:0;}
}
.ttk-firework{ position:absolute; font-size:28px; animation: ttk-rise 1.4s ease-out forwards; text-shadow:0 6px 16px rgba(0,0,0,.5); }
@keyframes ttk-rise{
  0%{ transform: translate(-50%, 20px) scale(.8); opacity:.2;}
  60%{ transform: translate(-50%, -120px) scale(1.2); opacity:1;}
  100%{ transform: translate(-50%, -170px) scale(1.1); opacity:0;}
}

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

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

@media (max-width:600px){
  .ttk-drum{ font-size:46px; }
  .ttk-row{ grid-template-columns:38px 100px 52px 62px 1fr; }
}