/* Shared Majlis prompt: deliberately independent of each game's palette. */
#free-play-dialog {
  box-sizing: border-box;
  width: min(460px, calc(100vw - 40px));
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: auto;
  padding: 36px 32px 32px;
  overflow-y: auto;
  border: 0;
  border-radius: 24px;
  background: #0d2137;
  color: #fff;
  box-shadow: 0 20px 64px rgba(0, 8, 18, .4);
  font-family: var(--font-sans);
  text-align: center;
  direction: rtl;
  color-scheme: dark;
}
#free-play-dialog::backdrop {
  background: rgba(3, 13, 24, .64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#free-play-dialog h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 900;
  line-height: 1.5;
}
#free-play-dialog p {
  margin: 0 auto 28px;
  max-width: 30ch;
  color: #c7d6e5;
  font-size: 17px;
  line-height: 1.9;
  text-wrap: pretty;
}
.free-play-actions { display: grid; gap: 12px; }
#free-play-dialog button {
  width: 100%;
  min-height: 56px;
  padding: 10px 18px;
  border: 0;
  border-radius: 14px;
  font: 800 19px/1.6 var(--font-sans);
  cursor: pointer;
  transition: background-color .16s ease, transform .16s ease;
}
#free-play-continue { background: #e58d00; color: #071523; }
#free-play-store { background: #1d3851; color: #fff; }
@media (hover: hover) {
  #free-play-continue:hover { background: #ffa91f; }
  #free-play-store:hover { background: #294b68; }
}
#free-play-dialog button:active { transform: translateY(1px); }
#free-play-dialog button:focus-visible { outline: 3px solid #ffd166; outline-offset: 4px; }
#free-play-dialog ::selection { background: #e58d00; color: #071523; }
@media (max-height: 480px) and (min-width: 600px) {
  #free-play-dialog { width: min(540px, calc(100vw - 64px)); padding: 24px 28px; }
  #free-play-dialog h2 { font-size: 28px; margin-bottom: 8px; }
  #free-play-dialog p { max-width: 38ch; margin-bottom: 20px; }
  .free-play-actions { grid-template-columns: 1fr 1fr; }
  #free-play-dialog button { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  #free-play-dialog button { transition: none; }
}
