/* =====================================================================
   Spirila - Descent :: Help and shortcuts dialog
   Extracted verbatim from index.html lines 398-557
   ===================================================================== */
/* ---------- Help & Shortcuts dialog ---------- */
.info-back{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  padding:20px;
  background:rgba(3,6,14,.55);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  /* Above the God Mode banner (100), which would otherwise cut the title. */
  z-index:110;
}
.info-back.open{display:grid;}

.info-card{
  position:relative;
  width:min(94vw,600px);
  max-height:min(86vh,760px);
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:24px 26px 22px;
  border-radius:20px;
  color:var(--ink);
  background:linear-gradient(155deg,
    rgba(255,255,255,.12) 0%,
    rgba(255,255,255,.035) 45%,
    rgba(255,255,255,.07) 100%);
  backdrop-filter:blur(26px) saturate(170%);
  -webkit-backdrop-filter:blur(26px) saturate(170%);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:
    0 24px 60px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.22);
  animation:infoIn .22s cubic-bezier(.2,.7,.3,1);
}
@keyframes infoIn{
  from{opacity:0;transform:translateY(12px) scale(.985)}
  to{opacity:1;transform:none}
}
@media (prefers-reduced-motion:reduce){
  .info-card{animation:none}
}

.info-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.info-head h2{
  font-size:17px;
  font-weight:700;
  letter-spacing:-.2px;
}
.info-head p{
  margin-top:4px;
  font-size:12.5px;
  color:var(--muted);
}
.info-close{
  flex:0 0 auto;
  width:30px;
  height:30px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:var(--ink);
  font-size:15px;
  line-height:1;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.info-close:hover{background:rgba(255,255,255,.16);}
.info-close:focus-visible{outline:2px solid #8fd1ff;outline-offset:2px;}

.info-lead{
  margin-top:14px;
  font-size:13.5px;
  line-height:1.6;
  color:var(--muted);
}

.info-sect{margin-top:18px;}
.info-sect h3{
  font-size:10.5px;
  font-weight:700;
  letter-spacing:1.3px;
  text-transform:uppercase;
  color:rgba(125,215,255,.95);
  margin-bottom:4px;
}
.info-sect.is-god h3{color:#68ffb3;}
.info-sect.is-god{
  border:1px solid rgba(104,255,179,.28);
  background:rgba(104,255,179,.06);
  border-radius:12px;
  padding:12px 14px 10px;
}

.info-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
  padding:7px 0;
  border-top:1px solid rgba(255,255,255,.07);
}
.info-sect h3 + .info-row{border-top:0;}
.info-label{
  font-size:13px;
  line-height:1.4;
  color:var(--muted);
}
.info-keys{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.info-card kbd{
  display:inline-block;
  min-width:24px;
  text-align:center;
  padding:3px 7px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.22);
  border-bottom-width:2px;
  background:rgba(255,255,255,.1);
  color:var(--ink);
  font:600 12px/1.25 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  white-space:nowrap;
}
.info-card kbd.soft{
  font-family:inherit;
  font-weight:500;
  background:rgba(255,255,255,.05);
  border-bottom-width:1px;
  color:var(--muted);
}

.info-foot{
  margin-top:18px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.1);
  font-size:11.5px;
  color:var(--muted);
  opacity:.75;
  text-align:center;
}

@media (max-width:520px){
  .info-card{padding:20px 18px 18px;}
  .info-row{grid-template-columns:1fr;gap:6px;}
  .info-keys{justify-content:flex-start;}
}

