/* VGame7.com - Neon Cyber Violet & Cyan Rhythm / Reflex Portal */
:root {
  --bg: #070514;
  --panel: #110c24;
  --panel-alt: #1b1438;
  --ink: #f8fafc;
  --muted: #a5b4fc;
  --accent: #06b6d4;
  --gold: #f43f5e;
  --violet: #8b5cf6;
  --border: rgba(139, 92, 246, 0.24);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #21104a 0%, var(--bg) 65%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 14px; }

.site-header {
  background: rgba(7, 5, 20, 0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: #fff; }
.brand-badge {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6 55%, #f43f5e);
  color: #fff;
  padding: 2px 8px;
  border-radius: 7px;
  font-size: 0.88rem;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}
.nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav-link { color: var(--muted); padding: 6px 11px; border-radius: 7px; font-size: 0.9rem; font-weight: 600; }
.nav-link:hover, .nav-link.active { background: rgba(139, 92, 246, 0.16); color: #fff; text-decoration: none; }
.nav-link.active { border: 1px solid rgba(6, 182, 212, 0.6); color: var(--accent); }

.ad-slot { margin: 12px auto; display: flex; align-items: center; justify-content: center; width: 100%; overflow: hidden; }
.ad-leaderboard { min-height: 90px; max-width: 970px; }
.ad-rectangle { min-height: 250px; max-width: 728px; }
.ad-placeholder {
  width: 100%;
  min-height: inherit;
  border: 1px dashed rgba(165, 180, 252, 0.22);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(165, 180, 252, 0.52);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.game-shell {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-top: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 32px rgba(139, 92, 246, 0.08);
}
.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.game-title-wrap h1 { margin: 0; font-size: 1.38rem; }
.game-subtitle { margin: 2px 0 0; font-size: 0.84rem; color: var(--muted); }
.hud-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-pill {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.84rem;
  color: var(--muted);
}
.stat-pill strong { color: #fff; margin-left: 4px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.btn {
  appearance: none;
  border: 1px solid rgba(165, 180, 252, 0.24);
  background: var(--panel-alt);
  color: #fff;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.btn:hover:not(:disabled) { background: #291f52; border-color: rgba(6, 182, 212, 0.55); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-accent { background: linear-gradient(135deg, #0891b2, #06b6d4); border-color: #22d3ee; color: #04101c; font-weight: 800; }
.btn-accent:hover:not(:disabled) { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.btn-danger { background: rgba(244, 63, 94, 0.22); border-color: #f43f5e; color: #ffe4e6; }
.btn-active { background: rgba(6, 182, 212, 0.25); border-color: #22d3ee; color: #67e8f9; }

.select-ctrl {
  background: var(--panel-alt);
  color: #fff;
  border: 1px solid rgba(165, 180, 252, 0.25);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.86rem;
  font-weight: 600;
}
.toast { min-height: 24px; font-size: 0.88rem; font-weight: 700; color: #22d3ee; margin-bottom: 10px; text-align: center; }

/* Quick-Start Bar */
.quickstart-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}
.qs-item { font-size: 0.8rem; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.qs-num {
  background: var(--accent);
  color: #070514;
  font-weight: 800;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  margin-top: 2px;
}
.qs-item strong { color: #fff; }

/* Tutorial Modal */
.tut-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 12, 0.78);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.tut-backdrop.open { display: flex; }
.tut-modal {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid rgba(6, 182, 212, 0.5);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72), 0 0 36px rgba(6, 182, 212, 0.16);
  max-height: 90vh;
  overflow-y: auto;
}
.tut-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.tut-head h2 { margin: 4px 0 2px; font-size: 1.3rem; color: var(--accent); }
.tut-sub { margin: 0; font-size: 0.84rem; color: var(--muted); }
.tut-badge { background: rgba(6, 182, 212, 0.18); color: var(--accent); padding: 2px 8px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; }
.tut-close { background: transparent; border: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.tut-goal { background: var(--panel-alt); border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: 6px; font-size: 0.88rem; margin-bottom: 12px; }
.tut-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.tut-step { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, 0.04); padding: 9px 11px; border-radius: 9px; }
.tut-num { background: var(--accent); color: #070514; font-weight: 800; width: 22px; height: 22px; min-width: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.tut-step p { margin: 2px 0 0; font-size: 0.82rem; color: var(--muted); }
.tut-box { font-size: 0.84rem; margin-bottom: 10px; }
.tut-box ul { margin: 4px 0 0 18px; padding: 0; color: var(--muted); }
.tut-tip { background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.4); padding: 8px 11px; border-radius: 8px; font-size: 0.84rem; margin-bottom: 14px; }
.tut-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; }
.tut-check { font-size: 0.82rem; color: var(--muted); display: flex; gap: 6px; align-items: center; cursor: pointer; }
.tut-start { background: linear-gradient(135deg, #06b6d4, #22d3ee); color: #070514; border: none; padding: 9px 18px; border-radius: 8px; font-weight: 800; cursor: pointer; font-size: 0.9rem; }

/* Sections & Catalog */
.section-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin: 18px 0;
}
.section-card h2 { margin-top: 0; font-size: 1.28rem; color: var(--accent); }
.section-card h3 { color: #e9d5ff; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 10px; }
.catalog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.catalog-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.catalog-card.current { border-color: var(--accent); background: rgba(6, 182, 212, 0.14); box-shadow: 0 0 18px rgba(6, 182, 212, 0.15); }
.catalog-card p { margin: 0; font-size: 0.8rem; color: var(--muted); }
.badge-pill { display: inline-block; align-self: flex-start; font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(6, 182, 212, 0.2); color: #22d3ee; }

.faq-item { border-bottom: 1px solid var(--border); padding: 10px 0; }
.faq-item:last-child { border-bottom: none; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 14px 36px;
  margin-top: 24px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
}
.footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

/* Responsive Canvas Arena & Live Progress Bar */
.arena-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 auto;
}
.arena-canvas {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 2px solid rgba(6, 182, 212, 0.45);
  background: #050311;
  box-shadow: 0 0 26px rgba(6, 182, 212, 0.16);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}
.arena-canvas.portrait {
  max-width: 440px;
}
.arena-progress {
  width: 100%;
  max-width: 760px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
.progress-track {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6, #f43f5e);
  transition: width 0.08s linear;
}

/* Mobile Touch Action Buttons */
.touch-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 4px;
}
.touch-btn {
  min-width: 124px;
  padding: 12px 18px;
  border-radius: 11px;
  border: 1px solid rgba(6, 182, 212, 0.55);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.25));
  color: #fff;
  font-weight: 800;
  font-size: 0.94rem;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.touch-btn:active, .touch-btn.pressed {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.45), rgba(244, 63, 94, 0.4));
  border-color: #22d3ee;
  transform: scale(0.97);
}

/* 4-Key Rhythm Lanes & Piano Tiles Columns */
.rhythm-wrap, .piano-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 auto;
}
.rhythm-wrap { max-width: 480px; }
.piano-wrap { max-width: 420px; }
.piano-canvas {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 2px solid rgba(6, 182, 212, 0.45);
  background: #050310;
  touch-action: none;
  cursor: pointer;
}
.rhythm-keys-bar, .piano-keys-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}
.rhythm-key-btn, .piano-key-btn {
  padding: 14px 6px;
  border-radius: 10px;
  border: 2px solid rgba(165, 180, 252, 0.28);
  background: var(--panel-alt);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  text-align: center;
  transition: transform 0.06s ease, box-shadow 0.08s ease, background 0.08s ease;
}
.rhythm-key-btn[data-lane="0"] { border-color: rgba(6, 182, 212, 0.65); color: #67e8f9; }
.rhythm-key-btn[data-lane="1"] { border-color: rgba(168, 85, 247, 0.65); color: #d8b4fe; }
.rhythm-key-btn[data-lane="2"] { border-color: rgba(244, 63, 94, 0.65); color: #fda4af; }
.rhythm-key-btn[data-lane="3"] { border-color: rgba(250, 204, 21, 0.65); color: #fde047; }
.rhythm-key-btn.active, .piano-key-btn.active {
  transform: translateY(2px) scale(0.97);
  background: rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.6);
  color: #fff;
}
.rhythm-key-btn[data-lane="2"].active {
  background: rgba(244, 63, 94, 0.4);
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.6);
}

/* Sprunki Beatbox 7-Character Mixer Grid */
.sprunki-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.sprunki-bpm-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}
.sprunki-bpm-wrap input[type="range"] {
  accent-color: var(--accent);
  cursor: pointer;
}
.sprunki-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.sprunki-card {
  background: var(--panel-alt);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
}
.sprunki-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.55);
}
.sprunki-card.active {
  border-color: var(--ch-color, var(--accent));
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.16), rgba(27, 20, 56, 0.95));
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.25);
}
.sprunki-card.muted-ch {
  opacity: 0.45;
}
.sprunki-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  background: rgba(7, 5, 20, 0.75);
  border: 2px solid var(--ch-color, var(--accent));
  position: relative;
}
.sprunki-card.active:not(.muted-ch) .sprunki-avatar {
  animation: sprunki-bob 0.45s ease-in-out infinite alternate;
  box-shadow: 0 0 18px var(--ch-color, var(--accent));
}
.sprunki-card.beat-hit .sprunki-avatar {
  transform: scale(1.12);
}
.sprunki-name {
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}
.sprunki-role {
  font-size: 0.72rem;
  color: var(--muted);
}
.sprunki-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 18px;
}
.sprunki-bar {
  width: 5px;
  height: 4px;
  border-radius: 3px;
  background: var(--ch-color, var(--accent));
  opacity: 0.35;
  transition: height 0.08s ease, opacity 0.08s ease;
}
.sprunki-card.active:not(.muted-ch) .sprunki-bar {
  opacity: 0.95;
}
.sprunki-mini-btns {
  display: flex;
  gap: 5px;
  width: 100%;
  justify-content: center;
}
.sprunki-mini-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 5, 20, 0.65);
  color: var(--muted);
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}
.sprunki-mini-btn.on {
  background: var(--gold);
  border-color: #fda4af;
  color: #fff;
}
.sprunki-mini-btn.solo-on {
  background: var(--accent);
  border-color: #67e8f9;
  color: #070514;
}

@keyframes sprunki-bob {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-5px) scale(1.06); }
}

@media (max-width: 920px) {
  .sprunki-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .quickstart-bar { grid-template-columns: 1fr; }
  .sprunki-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .touch-btn { min-width: 96px; padding: 11px 14px; font-size: 0.88rem; }
}

/* ============================================================
   Extra 10 Games Custom Styles (Beat Slicer, Synth Pad, Whack Beat)
   ============================================================ */

/* Neon Beat Slicer 2D Dual Action Pads */
.bs-pad-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 480px;
}
.bs-pad-btn {
  padding: 15px 12px;
  border-radius: 12px;
  border: 2px solid rgba(165, 180, 252, 0.3);
  background: var(--panel-alt);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.06s ease, box-shadow 0.08s ease, background 0.08s ease;
}
.bs-pad-cyan {
  border-color: rgba(6, 182, 212, 0.75);
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.14);
}
.bs-pad-rose {
  border-color: rgba(244, 63, 94, 0.75);
  color: #fda4af;
  background: rgba(244, 63, 94, 0.14);
}
.bs-pad-cyan.active, .bs-pad-cyan:active {
  transform: scale(0.96);
  background: rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.65);
  color: #fff;
}
.bs-pad-rose.active, .bs-pad-rose:active {
  transform: scale(0.96);
  background: rgba(244, 63, 94, 0.45);
  box-shadow: 0 0 22px rgba(244, 63, 94, 0.65);
  color: #fff;
}

/* Cyber Drum & Synth Pad 4x4 Grid & 16-Step Sequencer */
.sp-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.sp-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.sp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
}
.sp-pad {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 76px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 2px solid rgba(165, 180, 252, 0.25);
  background: var(--panel-alt);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.07s ease, box-shadow 0.1s ease, border-color 0.1s ease, background 0.1s ease;
}
.sp-pad:hover {
  border-color: var(--pad-col, var(--accent));
}
.sp-pad.lit, .sp-pad:active {
  transform: scale(0.95);
  border-color: #fff;
  background: var(--pad-col, var(--accent));
  color: #070514;
  box-shadow: 0 0 22px var(--pad-col, var(--accent));
}
.sp-pad-key {
  position: absolute;
  top: 5px;
  left: 7px;
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.65;
}
.sp-pad-name {
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}
.sp-pad-sub {
  font-size: 0.7rem;
  opacity: 0.78;
}
.sp-seq-bar {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}
.sp-seq-step {
  height: 22px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(165, 180, 252, 0.2);
  cursor: pointer;
  transition: background 0.08s ease, transform 0.08s ease;
}
.sp-seq-step.has-notes {
  background: rgba(6, 182, 212, 0.35);
  border-color: rgba(6, 182, 212, 0.75);
}
.sp-seq-step.now {
  background: #f43f5e;
  border-color: #fff;
  transform: scaleY(1.18);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.7);
}

/* Cyber Mole Reflex Tap 3x3 Node Grid */
.wb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.wb-timer-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  overflow: hidden;
}
.wb-timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #f43f5e, #8b5cf6, #06b6d4);
  transition: width 0.08s linear;
}
.wb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.wb-node {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 2px solid rgba(139, 92, 246, 0.35);
  background: radial-gradient(circle at center, #1e1640 0%, #0d0822 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 1.9rem;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  transition: transform 0.08s ease, border-color 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}
.wb-node:active { transform: scale(0.95); }
.wb-node-key {
  position: absolute;
  top: 7px;
  left: 9px;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(165, 180, 252, 0.5);
}
.wb-node-tag {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.wb-node.cyan {
  border-color: #22d3ee;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.42), rgba(14, 116, 144, 0.25));
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.45);
}
.wb-node.gold {
  border-color: #facc15;
  background: radial-gradient(circle at center, rgba(250, 204, 21, 0.42), rgba(161, 98, 7, 0.28));
  box-shadow: 0 0 26px rgba(250, 204, 21, 0.55);
}
.wb-node.red {
  border-color: #f43f5e;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.45), rgba(136, 19, 55, 0.3));
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.5);
}
.wb-node.flash-ok {
  border-color: #34d399;
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.75);
}
.wb-node.flash-bad {
  border-color: #ef4444;
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.85);
}

@media (max-width: 520px) {
  .sp-pad { min-height: 64px; }
  .sp-seq-bar { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .wb-grid { gap: 9px; }
  .wb-node { font-size: 1.55rem; }
}

/* ============================================================
   Extra Batch 2 Games Custom Styles (5-Fret Rock, Metronome Lab)
   ============================================================ */

/* 5-Fret Rock Rhythm Key Bar */
.gh-keys-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 480px;
}
.gh-key-btn {
  padding: 13px 4px;
  border-radius: 10px;
  border: 2px solid rgba(165, 180, 252, 0.3);
  background: var(--panel-alt);
  color: #fff;
  font-weight: 900;
  font-size: 0.96rem;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  text-align: center;
  transition: transform 0.06s ease, box-shadow 0.08s ease, background 0.08s ease;
}
.gh-key-btn[data-lane="0"] { border-color: rgba(34, 197, 94, 0.72); color: #86efac; }
.gh-key-btn[data-lane="1"] { border-color: rgba(244, 63, 94, 0.72); color: #fda4af; }
.gh-key-btn[data-lane="2"] { border-color: rgba(250, 204, 21, 0.72); color: #fde047; }
.gh-key-btn[data-lane="3"] { border-color: rgba(6, 182, 212, 0.72); color: #67e8f9; }
.gh-key-btn[data-lane="4"] { border-color: rgba(249, 115, 22, 0.72); color: #fdba74; }
.gh-key-btn.active, .gh-key-btn:active {
  transform: translateY(2px) scale(0.96);
  color: #fff;
}
.gh-key-btn[data-lane="0"].active { background: rgba(34, 197, 94, 0.45); box-shadow: 0 0 18px rgba(34, 197, 94, 0.65); }
.gh-key-btn[data-lane="1"].active { background: rgba(244, 63, 94, 0.45); box-shadow: 0 0 18px rgba(244, 63, 94, 0.65); }
.gh-key-btn[data-lane="2"].active { background: rgba(250, 204, 21, 0.45); box-shadow: 0 0 18px rgba(250, 204, 21, 0.65); }
.gh-key-btn[data-lane="3"].active { background: rgba(6, 182, 212, 0.45); box-shadow: 0 0 18px rgba(6, 182, 212, 0.65); }
.gh-key-btn[data-lane="4"].active { background: rgba(249, 115, 22, 0.45); box-shadow: 0 0 18px rgba(249, 115, 22, 0.65); }

/* Perfect Beat Timing Lab Oversized Tap Pad */
.mp-tap-btn {
  width: 100%;
  max-width: 360px;
  padding: 16px 22px;
  border-radius: 14px;
  border: 2px solid #22d3ee;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(139, 92, 246, 0.35));
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.25);
  transition: transform 0.06s ease, box-shadow 0.08s ease;
}
.mp-tap-btn:active {
  transform: scale(0.96);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.65);
}

@media (max-width: 520px) {
  .gh-keys-bar { gap: 5px; }
  .gh-key-btn { padding: 12px 2px; font-size: 0.85rem; }
}

/* ============================================================
   Extra Batch 3 Games Custom Styles (4-Drum Kit, 7-Key Piano, 3-Lane)
   ============================================================ */

/* 4-Drum Electronic Kit Pads */
.dh-pads-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 540px;
}
.dh-pad {
  padding: 14px 6px;
  border-radius: 12px;
  border: 2px solid rgba(165, 180, 252, 0.3);
  background: var(--panel-alt);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: transform 0.06s ease, box-shadow 0.08s ease, background 0.08s ease;
}
.dh-pad small {
  font-size: 0.72rem;
  opacity: 0.8;
  font-weight: 700;
}
.dh-pad[data-pad="0"] { border-color: rgba(244, 63, 94, 0.72); color: #fda4af; }
.dh-pad[data-pad="1"] { border-color: rgba(6, 182, 212, 0.72); color: #67e8f9; }
.dh-pad[data-pad="2"] { border-color: rgba(250, 204, 21, 0.72); color: #fde047; }
.dh-pad[data-pad="3"] { border-color: rgba(168, 85, 247, 0.72); color: #d8b4fe; }
.dh-pad.active, .dh-pad:active {
  transform: translateY(2px) scale(0.96);
  color: #fff;
}
.dh-pad[data-pad="0"].active { background: rgba(244, 63, 94, 0.45); box-shadow: 0 0 20px rgba(244, 63, 94, 0.65); }
.dh-pad[data-pad="1"].active { background: rgba(6, 182, 212, 0.45); box-shadow: 0 0 20px rgba(6, 182, 212, 0.65); }
.dh-pad[data-pad="2"].active { background: rgba(250, 204, 21, 0.45); box-shadow: 0 0 20px rgba(250, 204, 21, 0.65); }
.dh-pad[data-pad="3"].active { background: rgba(168, 85, 247, 0.45); box-shadow: 0 0 20px rgba(168, 85, 247, 0.65); }

/* 7-Key Melody Memory Synth Piano */
.cs-piano-bar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  max-width: 600px;
}
.cs-key {
  height: 92px;
  padding: 10px 4px;
  border-radius: 10px 10px 14px 14px;
  border: 2px solid rgba(139, 92, 246, 0.4);
  background: linear-gradient(180deg, #1a1338 0%, #0d0921 100%);
  color: #e2e8f0;
  font-weight: 900;
  font-size: 0.96rem;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.06s ease, box-shadow 0.1s ease, background 0.1s ease, border-color 0.1s ease;
}
.cs-key small {
  font-size: 0.7rem;
  color: rgba(165, 180, 252, 0.65);
  font-weight: 700;
}
.cs-key.lit, .cs-key:active {
  transform: translateY(3px) scale(0.97);
  border-color: #22d3ee;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.55) 0%, rgba(139, 92, 246, 0.5) 100%);
  color: #fff;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.65);
}
.cs-key.ok {
  border-color: #34d399;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.75);
}
.cs-key.bad {
  border-color: #f43f5e;
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.55) 0%, rgba(136, 19, 55, 0.55) 100%);
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.75);
}

/* Compact 3-button touch bar */
.touch-btn-sm {
  min-width: 88px;
  flex: 1;
  max-width: 165px;
  padding: 12px 10px;
}

@media (max-width: 520px) {
  .dh-pads-bar { gap: 6px; }
  .dh-pad { padding: 11px 3px; font-size: 0.8rem; }
  .cs-piano-bar { gap: 4px; }
  .cs-key { height: 78px; font-size: 0.84rem; }
}

/* ============================================================
   Extra Batch 4 Games Custom Styles (Echo Beat, Arrow Frenzy)
   ============================================================ */

/* Echo Beat Simon 4-Pad Bar */
.eb-pads-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 520px;
}
.eb-pad {
  padding: 13px 6px;
  border-radius: 12px;
  border: 2px solid rgba(165, 180, 252, 0.3);
  background: var(--panel-alt);
  color: #fff;
  font-weight: 900;
  font-size: 0.92rem;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: transform 0.06s ease, box-shadow 0.08s ease, background 0.08s ease;
}
.eb-pad small {
  font-size: 0.72rem;
  opacity: 0.82;
  font-weight: 700;
}
.eb-pad[data-pad="0"] { border-color: rgba(6, 182, 212, 0.72); color: #67e8f9; }
.eb-pad[data-pad="1"] { border-color: rgba(244, 63, 94, 0.72); color: #fda4af; }
.eb-pad[data-pad="2"] { border-color: rgba(250, 204, 21, 0.72); color: #fde047; }
.eb-pad[data-pad="3"] { border-color: rgba(168, 85, 247, 0.72); color: #d8b4fe; }
.eb-pad.active, .eb-pad:active {
  transform: translateY(2px) scale(0.96);
  color: #fff;
}
.eb-pad[data-pad="0"].active { background: rgba(6, 182, 212, 0.45); box-shadow: 0 0 20px rgba(6, 182, 212, 0.65); }
.eb-pad[data-pad="1"].active { background: rgba(244, 63, 94, 0.45); box-shadow: 0 0 20px rgba(244, 63, 94, 0.65); }
.eb-pad[data-pad="2"].active { background: rgba(250, 204, 21, 0.45); box-shadow: 0 0 20px rgba(250, 204, 21, 0.65); }
.eb-pad[data-pad="3"].active { background: rgba(168, 85, 247, 0.45); box-shadow: 0 0 20px rgba(168, 85, 247, 0.65); }

/* Arrow Frenzy 4-Direction Touch Pad */
.af-dpad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 540px;
}
.af-dir-btn {
  padding: 13px 6px;
  border-radius: 12px;
  border: 2px solid rgba(6, 182, 212, 0.55);
  background: var(--panel-alt);
  color: #e0f2fe;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.06s ease, background 0.08s ease, box-shadow 0.08s ease;
}
.af-dir-btn:active {
  transform: translateY(2px) scale(0.96);
  background: rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.55);
}

@media (max-width: 520px) {
  .eb-pads-bar, .af-dpad { gap: 6px; }
  .eb-pad, .af-dir-btn { padding: 11px 4px; font-size: 0.82rem; }
}
