*,::after,::before{-webkit-box-sizing:border-box;box-sizing:border-box}
html{height:100%}
body.jzg-page{
  margin:0;
  min-height:100vh;
  color:#0f172a;
  font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  letter-spacing:.3px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background-color:#f4f9fc;
  background-image:
    radial-gradient(ellipse 70% 50% at 12% 8%, rgba(56,189,248,.28), transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(99,102,241,.18), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 92%, rgba(14,165,233,.14), transparent 55%),
    linear-gradient(160deg, #f7fbfe 0%, #eef6fb 45%, #e8f4fc 100%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%230ea5e9' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-attachment:fixed;
}
a{outline:0;color:#0284c7;text-decoration:none}
a:focus,a:hover{outline:0;color:#0ea5e9}
audio{display:none}

/* Align with other tools: max-width shell */
.jzg-shell{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:6px clamp(12px,2.5vw,20px) 28px;
  position:relative;
}

body.jzg-page .xn-nav-container{
  position:relative;
}
body.jzg-page .jzg-tip{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  margin:0;
  max-width:min(52vw,520px);
  text-align:center;
  font-size:clamp(.78rem,1.35vw,.95rem);
  color:#64748b;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  pointer-events:none;
  z-index:1;
}
@media (max-width:720px){
  body.jzg-page .jzg-tip{display:none}
}

.jzg-stage{
  position:relative;
  border-radius:20px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(14,165,233,.16);
  box-shadow:0 10px 28px rgba(14,165,233,.1);
  overflow:hidden;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.jzg-stage::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%,rgba(14,165,233,.08),transparent 70%),
    linear-gradient(180deg,rgba(240,249,255,.65),transparent 28%);
  z-index:0;
}

.container{
  display:-webkit-flex;
  display:flex;
  overflow:hidden;
  width:100%;
  min-height:min(720px,calc(100vh - 160px));
  height:auto;
  -webkit-flex-direction:column;
  flex-direction:column;
  position:relative;
  z-index:1;
}
.content{
  overflow:hidden;
  flex:1;
  display:-webkit-flex;
  display:flex;
  -webkit-justify-content:center;
  justify-content:center;
  -webkit-align-items:center;
  align-items:center;
  position:relative;
  width:100%;
  padding:clamp(8px,2vw,16px) clamp(8px,2vw,16px) 72px;
}

.container-drums{
  display:-webkit-flex;
  display:flex;
  width:100%;
  max-width:min(980px,100%);
  margin:0 auto;
  padding:0;
  -webkit-align-items:center;
  align-items:center;
  -webkit-justify-content:center;
  justify-content:center;
  -webkit-transition:max-width .55s cubic-bezier(.2,1,.3,1), transform .55s cubic-bezier(.2,1,.3,1);
  transition:max-width .55s cubic-bezier(.2,1,.3,1), transform .55s cubic-bezier(.2,1,.3,1);
  transform:none;
}
.container-drums svg{
  display:block;
  width:100%;
  height:auto;
  max-height:min(680px,calc(100vh - 200px));
  margin:0 auto;
  -webkit-tap-highlight-color:transparent;
  filter:drop-shadow(0 16px 28px rgba(14,165,233,.12));
  transform:none;
}
.container-drums svg g{cursor:pointer}

.container-sequencer{
  display:-webkit-flex;
  display:flex;
  height:100%;
  width:0;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
  -webkit-justify-content:center;
  justify-content:center;
  -webkit-align-items:center;
  align-items:center;
  -webkit-transition:width .55s cubic-bezier(.2,1,.3,1), opacity .35s ease;
  transition:width .55s cubic-bezier(.2,1,.3,1), opacity .35s ease;
}
.container-sequencer:not(.collapse){
  width:min(400px,42vw);
  opacity:1;
  pointer-events:auto;
  padding:8px 4px 8px 8px;
}
.container-drums.screen-sm-hidden{
  max-width:520px;
}

.btn{
  margin:0 .125em;
  padding:.55rem .75rem;
  width:auto;
  border:0;
  border-radius:10px;
  background:#f0f9ff;
  color:#0284c7;
  vertical-align:middle;
  text-decoration:none;
  font-weight:700;
  font-size:1.2em;
  line-height:1;
  cursor:pointer;
  border:1px solid rgba(14,165,233,.18);
  transition:transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:focus,.btn:hover{
  outline:0;
  background:#e0f2fe;
  color:#0369a1;
  box-shadow:0 8px 20px rgba(14,165,233,.18);
  transform:translateY(-1px);
}
.btn .fa{vertical-align:middle}

.sequencer{
  display:-webkit-flex;
  display:flex;
  -webkit-flex-direction:column;
  flex-direction:column;
  -webkit-align-items:center;
  align-items:center;
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(14,165,233,.16);
  box-shadow:0 12px 28px rgba(14,165,233,.1);
}
.row{
  position:relative;
  display:-webkit-flex;
  display:flex;
  width:100%;
}
.row:hover{z-index:100}
.sequencer-controls{
  display:-webkit-flex;
  display:flex;
  padding:12px 0 0;
  width:100%;
  -webkit-justify-content:space-between;
  justify-content:space-between;
  -webkit-align-items:center;
  align-items:center;
}
.sequencer label span{
  position:relative;
  display:block;
  margin:.4vh;
  width:4.4vh;
  height:4.4vh;
  min-width:26px;
  min-height:26px;
  border:2px solid rgba(148,163,184,.55);
  border-radius:8px;
  cursor:pointer;
  background:#f8fafc;
  transition:background .15s ease, border-color .15s ease;
}
.sequencer label input[type=checkbox]:checked~span{background:#94a3b8;border-color:#64748b}
.sequencer label.active input[type=checkbox]:checked~span{background:#0ea5e9;border-color:#38bdf8;box-shadow:0 0 12px rgba(14,165,233,.4)}
.sequencer label input{display:none}
.sequencer .active span{border-color:#0ea5e9}
.sequencer-controls .btn,input[type=number]{
  margin:5px;
  padding:0;
  border:none;
  background:0 0;
  text-align:center;
  font-size:1.15rem;
  line-height:1;
  color:#0f172a;
}
input[type=number]{border:none;color:#0284c7;-moz-appearance:textfield;width:3.2em}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}
.sequencer img{
  position:relative;
  z-index:10;
  margin:.4vh;
  width:4.4vh;
  height:4.4vh;
  min-width:26px;
  min-height:26px;
  border-radius:8px;
  -webkit-transition:transform .2s ease;
  transition:transform .2s ease;
}
.sequencer img:hover{transform:scale(1.8)}

.demo-footer{
  position:absolute;
  right:16px;
  bottom:16px;
  z-index:20;
  display:-webkit-flex;
  display:flex;
  padding:0;
}
.container-btns{display:flex;gap:8px}
.demo-footer .btn{
  width:46px;
  height:46px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#38bdf8,#0ea5e9);
  border:1px solid rgba(255,255,255,.55);
  box-shadow:0 10px 24px rgba(14,165,233,.35);
  color:#fff;
}
.demo-footer .btn:hover{
  background:linear-gradient(135deg,#7dd3fc,#0ea5e9);
  color:#fff;
}

.jzg-foot{
  margin:18px 0 0;
  text-align:center;
  font-size:.85rem;
  color:#64748b;
}
.jzg-foot a{color:#0284c7;font-weight:600}
.jzg-foot a:hover{color:#0ea5e9}

#All-Keys{display:none}
#All-Keys .key-wrap{cursor:pointer}
.key-wrap{fill:rgba(255,255,255,.92);stroke:rgba(14,165,233,.35);stroke-width:2}
.key-text{font-weight:700;font-size:46px;fill:#475569;pointer-events:none}
.key-label{font-weight:500;font-size:20px;fill:#94a3b8;pointer-events:none}

body.jzg-page.xn-has-fixed-nav{padding-top:72px !important}

@media (min-width:700px){
  .btn-tooltip{position:relative}
  .btn-tooltip::after,.btn-tooltip::before{
    position:absolute;left:50%;opacity:0;pointer-events:none
  }
  .btn-tooltip:hover::after,.btn-tooltip:hover::before{
    opacity:1;
    transition:opacity .3s ease, transform .3s ease;
    transition-delay:.08s
  }
  .btn-tooltip::before{
    bottom:100%;
    margin:0 0 6px -6px;
    width:0;height:0;
    border:solid transparent;
    border-width:6px;
    content:'';
    border-top-color:#0f172a;
    transform:translate3d(0,4px,0)
  }
  .btn-tooltip:hover::before{transform:translate3d(0,0,0)}
  .btn-tooltip::after{
    bottom:100%;
    margin:0 0 12px 0;
    padding:8px 10px;
    border-radius:8px;
    background:#0f172a;
    color:#fff;
    content:attr(aria-label);
    letter-spacing:1px;
    font-weight:700;
    font-size:.55em;
    line-height:1.2;
    white-space:nowrap;
    transform:translate3d(-50%,4px,0);
    box-shadow:0 8px 20px rgba(0,0,0,.2)
  }
  .btn-tooltip:hover::after{transform:translate3d(-50%,0,0)}
}

@media (max-width:700px){
  .container{min-height:480px}
  .container-sequencer:not(.collapse){
    position:absolute;
    inset:0;
    width:100%;
    z-index:30;
    background:rgba(247,251,254,.97);
    padding:16px 12px 72px;
  }
  .content{padding-bottom:80px}
  .demo-footer{right:12px;bottom:12px}
  .btn-keys{display:none}
}
