/* =====================================================================
   Spirila - Descent :: Puzzle modal header, stats panel, 3x3 grid
   Extracted verbatim from index.html lines 220-339
   ===================================================================== */
/* Modal header + stats toggle */
.modal-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.modal-header h1{
  margin:0;
  font-size:18px;
}
.modal-header p{
  margin:4px 0 0;
  font-size:13px;
  color:var(--muted);
}
.icon-btn{
  width:32px;
  height:32px;
  border-radius:999px;
  border:1px solid var(--ring);
  background:var(--glass);
  color:var(--muted);
  display:grid;
  place-items:center;
  font-size:16px;
  cursor:pointer;
  box-shadow:var(--shadow);
}
.icon-btn:active{
  transform:translateY(1px) scale(.97);
}

/* Floating stats panel */
.stats-panel{
  position:absolute;
  top:64px;
  right:24px;
  min-width:220px;
  padding:12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(5,9,18,.95);
  font-size:12px;
  color:var(--muted);
  box-shadow:var(--shadow);
  z-index:5;
}
.stats-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.stats-row + .stats-row{
  margin-top:6px;
}
.stats-label{
  opacity:.8;
}
.stats-value{
  color:var(--ink);
  font-variant-numeric:tabular-nums;
}

/* Grid */
.grid{
  --size:88px;
  display:grid;
  grid-template-columns:repeat(3,var(--size));
  gap:12px;
  justify-content:center;
  margin:24px auto 16px;
}
@media (max-width:480px){
  .grid{--size:72px;}
}
.cell{
  width:var(--size);
  height:var(--size);
  border-radius:14px;
  background:var(--glass);
  border:1px solid var(--ring);
  box-shadow:var(--shadow);
  display:grid;
  place-items:center;
  cursor:pointer;
  user-select:none;
  font-size:26px;
  font-weight:500;
  color:var(--muted);
}
.cell.flash{
  background:linear-gradient(180deg,rgba(109,211,255,.4),rgba(184,146,255,.35));
  border-color:rgba(184,146,255,.7);
  color:#f5fbff;
}
.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid var(--ring);
  background:var(--glass);
  font-size:12px;
  color:var(--muted);
}
.muted{
  font-size:13px;
  color:var(--muted);
}

