/* Unstruck on its own page (unstruck/index.html). The game's own styles live in
   ../css/daily-pick.css; this supplies what the main site's stylesheets
   otherwise give it: the page, the card, fonts and the light buttons. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* The visible height: on phones 100vh also counts the space behind the
     browser's toolbar, which left an empty strip to scroll into. */
  min-height: 100vh;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  color: #e5e5e5;
  background-color: #202328;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.035), transparent 30%),
    radial-gradient(circle at 82% 76%, rgba(120,134,156,.055), transparent 34%),
    linear-gradient(145deg, #24282e 0%, #202328 48%, #1d2025 100%);
  background-attachment: fixed;
}

button { font: inherit; color: inherit; }

.unstruck-page {
  display: flex;
  justify-content: center;
  padding: 16px 12px 32px;
}

#dailyPickScreen { width: 100%; max-width: 560px; }

/* The card (the main site styles it through .menu-center). */
#dailyPickScreen .dp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(190,211,232,.2);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(24,34,49,.96), rgba(11,16,24,.96));
  box-shadow: 0 22px 70px rgba(0,0,0,.44);
}

.dp-card .menu-title { font-weight: 800; text-transform: uppercase; color: #f5f8fc; }

/* Light action buttons (Guess, Play, Got it). */
.dp-next { background: #f1f2f4; color: #15181d; }
.dp-next:disabled { background: transparent; color: inherit; }
.dp-share { background: #3b7dd8; color: #fff; }

@media (min-width: 760px) {
  .unstruck-page { padding-top: 4vh; }
}

/* Notches and home bars: keep the game clear of them. */
.unstruck-page {
  padding-top: max(16px, env(safe-area-inset-top));
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}
/* Light mode: the page behind the card. */
body.dp-light-page { color: #1b1f27; background: #eef1f5; }
