:root{
  --bg: #0f172a;        /* slate-900 */
  --panel: #111827;     /* gray-900 */
  --ink: #e5e7eb;       /* gray-200 */
  --muted:#94a3b8;      /* slate-400 */
  --accent:#22d3ee;     /* cyan-400 */
  --playing:#f59e0b;    /* amber-500 */
  --radius: 16px;
  --shadow: 0 12px 30px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.2);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--ink);
  background: radial-gradient(1200px 800px at 10% 10%, #0b1220 0%, var(--bg) 60%);
}
.wrap{max-width:900px;margin:40px auto;padding:24px}
h1{font-family:Montserrat, Inter, sans-serif; font-weight:600; letter-spacing:.5px; margin:.2em 0 .4em; font-size:clamp(28px,4vw,42px)}
.hint{color:var(--muted); margin-top:0}

.keys{
  display:grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap:18px;
  margin-top:20px;
}
.key{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  background: linear-gradient(180deg, #0b1220 0%, var(--panel) 100%);
  border:1px solid #1f2937;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:26px 20px;
  min-height:120px;
  cursor:pointer;
  transition: transform .06s ease, box-shadow .15s ease, border-color .2s ease;
}
.key:focus-visible{outline:3px solid #475569; outline-offset:2px}
.key .kbd{
  font-weight:600; font-size:28px; letter-spacing:.5px;
  border:2px solid #334155; border-radius:10px; padding:6px 12px; min-width:48px; text-align:center;
  background:#0b1220;
}
.key .name{margin-top:10px; color:var(--muted); font-size:14px}
.key.playing{
  transform: translateY(-2px) scale(1.02);
  border-color: var(--playing);
  box-shadow: 0 12px 24px rgba(245, 158, 11, .25), 0 2px 8px rgba(245, 158, 11, .35);
}
.foot{margin-top:28px; color:var(--muted)}
.tiny{font-size:12px; opacity:.8}
@media (max-width:720px){
  .keys{grid-template-columns: repeat(2, minmax(140px, 1fr));}
}
@media (max-width:480px){
  .keys{grid-template-columns: 1fr;}
}
