/* 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: #1b1a18;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.035), transparent 30%),
    radial-gradient(circle at 82% 76%, rgba(160,150,135,.055), transparent 34%),
    linear-gradient(145deg, #211f1d 0%, #1b1a18 48%, #181715 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(236,228,214,.2);
  border-radius: 16px;
  background: #22201e;
  box-shadow: 0 22px 70px rgba(0,0,0,.44);
}

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

/* Light action buttons (Guess, Play, Got it). */
.dp-next { background: #f1ece2; color: #1c1b19; }
.dp-next:disabled { background: transparent; color: inherit; }
.dp-brag { background: var(--dp-accent); color: var(--dp-on-accent); }

@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: #2b2925; background: #f3f2f0; }

/* Before the game loads: its name, what it is, and that it's coming. */
.dp-preload { margin: 18vh auto 0; max-width: 320px; text-align: center; color: #f6f2ea; }
.dp-preload-title { font-size: 34px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.dp-preload-pitch { margin-top: 10px; font-size: 16px; line-height: 1.4; opacity: .8; }
.dp-preload-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.dp-preload-dots i { width: 9px; height: 9px; border-radius: 50%; background: #f6f2ea; opacity: .25; animation: dp-preload 1.2s ease-in-out infinite; }
.dp-preload-dots i:nth-child(2) { animation-delay: .2s; } .dp-preload-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dp-preload { 50% { opacity: .9; } }
.dp-preload-logo { display: block; width: 92px; height: 92px; margin: 0 auto 12px; }

/* The loading dots sit in a button-sized box, so Play takes their place without the page shifting. */
.dp-preload-dots { height: 50px; align-items: center; margin: 18px 22px 0; border-radius: 14px; border: 1.5px solid rgba(246,242,234,.14); }
body.dp-light-page .dp-preload-dots { border-color: rgba(43,41,37,.14); }
