/* Dodge & Drift — page-scoped styles (works with your site.css + topbar) */

/* Make the game full-bleed inside the Jekyll layout's padded <main> */
.dnd-page{
  color-scheme: dark;
  position: relative;
  /* negate main padding from site.css: 24px 16px 48px */
  margin: -24px -16px -48px;
  height: calc(100vh - 62px); /* approx topbar height; keeps it from hiding under the topbar */
  background: #0b0f14;
  overflow: hidden;
}

/* Canvas fills the available page area */
.dnd-page canvas{
  display:block;
  width:100%;
  height:100%;
}

/* HUD / overlays */
.dnd-page .hud{
  position: absolute;
  inset: 0;
  pointer-events: none;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 16px;
  color: #d8e2ff;
  text-shadow: 0 1px 0 rgba(0,0,0,.5);
  font-weight: 600;
  letter-spacing: .2px;
}

.dnd-page .panel{
  background: rgba(10,14,20,.45);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px 12px;
  backdrop-filter: blur(8px);
}

.dnd-page .small{ font-weight: 500; opacity:.9; font-size: 13px; }

.dnd-page .center{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(520px, calc(100% - 24px));
  pointer-events: none;
  text-align: center;
  color: #e7eeff;
}

.dnd-page .center .card{
  pointer-events: auto;
  background: rgba(10,14,20,.72);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
}

.dnd-page .title{ margin:0 0 6px 0; }
.dnd-page .help{ margin:0 0 14px 0; line-height:1.4; }

.dnd-page button{
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(120,160,255,.18);
  color: #e7eeff;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}
.dnd-page button:hover{ background: rgba(120,160,255,.28); }

.dnd-page .kbd{
  display:inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  font-size: 12px;
}

/* Highscore list */
.dnd-page .hs-wrap{
  margin-top: 14px;
  text-align: left;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 12px;
}
.dnd-page .hs-title{ margin: 0 0 8px 0; font-size: 14px; opacity: .95; }
.dnd-page ol.hs{
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.dnd-page ol.hs li{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  opacity: .92;
}
.dnd-page .hs-score{ font-weight: 800; }
.dnd-page .hs-date{ opacity:.75; font-weight: 500; white-space: nowrap; }

/* On small screens, keep HUD readable */
@media (max-width: 520px){
  .dnd-page .hud{ padding: 12px; }
}