/* ============================================================
   M&P Concepts Lab — site chrome for the embedded Sudoku game
   (back-to-site button + right-hand Google AdSense rail)

   Kept in its own file, separate from the game's style.css, so
   replacing/updating the game never wipes the site integration.
   ============================================================ */

/* ---- "Back to Game Page" button (top-left, outside the phone frame) ---- */
#mp-back-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  background: #722F37;          /* site wine red */
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.15s ease;
}

#mp-back-btn:hover {
  background: #5a2329;
  transform: translateY(-1px);
}

#mp-back-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ---- Right-hand ad rail (Google AdSense slot) ---- */
#mp-ad-rail {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 10000;
  width: 300px;
}

#mp-ad-rail .ad-box {
  width: 300px;
  min-height: 600px;            /* classic 300x600 half-page unit */
  background: #f0ece4;
  border: 2px dashed #c9bfa8;
  border-radius: 10px;
  color: #8a7f68;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

#mp-ad-rail .ad-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.62rem;
  color: #a89b82;
}

/* ---- Responsive: only show the chrome when there is room beside the
   430px phone frame, so it never covers the game's own UI ---- */
@media (max-width: 1099px) {
  #mp-ad-rail { display: none; }   /* not enough width for a right rail */
}

/* Mid widths: shrink to an icon-only pill so a way back always exists */
@media (max-width: 899px) {
  #mp-back-btn {
    top: 10px;
    left: 10px;
    padding: 10px 11px;
  }
  #mp-back-btn .mp-back-label { display: none; }
}

/* True phone width: the game is full-bleed, so the browser's own
   back gesture is the way out — hide the overlay to avoid covering it */
@media (max-width: 559px) {
  #mp-back-btn { display: none; }
}
