/* The loading card (platform/web/demo/front.js; markup #front in
   platform/web/shell.html): over the page only while the demo is being
   made, when the trial's installer is needed, or while the player's own
   folder is copied. The game's own main menu is the start screen; this
   card only waits with the player, in the menu's night colours and a book
   face. No web fonts, no images. */

#front {
  --night: #0c1016;
  --slate: #1a2230;
  --gilt: #d4b064;
  --vellum: #ece2c6;
  --mist: #9aa3ad;
  --book: 'Palatino Linotype', Palatino, 'Book Antiqua', 'URW Palladio L', Georgia, serif;
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: auto;
  color: var(--vellum);
  font: 17px/1.5 var(--book);
  background: radial-gradient(ellipse at 50% 30%, var(--slate) 0%, var(--night) 70%);
}
#front[hidden] { display: none; }
body.front-open { overflow: hidden; }

#front .card { width: min(560px, 100%); }
#front h1 {
  margin: 0 0 8px;
  font: 400 40px/1.1 var(--book);
  font-variant-caps: small-caps;
  letter-spacing: .03em;
  color: var(--gilt);
}
#front .lead { margin: 0 0 22px; color: #d5ccb6; }
#front progress { width: 100%; height: 6px; accent-color: var(--gilt); }
#front #front-status { min-height: 1.5em; margin: 8px 0 0; color: var(--mist); }
#front #front-status.bad { color: #f0a090; }
#front .act {
  margin-top: 12px;
  padding: 10px 20px;
  border: 1px solid var(--gilt);
  border-radius: 3px;
  background: #2a2214;
  color: var(--vellum);
  font: inherit;
  cursor: pointer;
}
#front .act:hover { background: #3a2f1a; }
#front hr { margin: 26px 0 16px; border: 0; border-top: 1px solid rgba(212, 176, 100, .2); }
#front .own { margin: 0; color: var(--mist); font-size: 15px; }
#front .own button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gilt);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#front .fine { margin: 14px 0 0; font-size: 13px; color: #6f7883; }
#front .fine a { color: #a9b1ba; margin-left: .5em; }
#front button:focus-visible, #front a:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }

/* Dropped files: the whole page says what a drop does. */
#drop {
  position: fixed;
  inset: 12px;
  z-index: 20;
  display: grid;
  place-items: center;
  border: 2px dashed #d4b064;
  border-radius: 8px;
  background: rgba(12, 16, 22, .85);
  color: #ece2c6;
  font: 400 28px/1.3 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  text-align: center;
  pointer-events: none;
}
#drop[hidden] { display: none; }
#drop small { display: block; margin-top: 8px; font-size: 16px; color: #9aa3ad; }

/* A site that makes the demo by itself: only a line and a bar while it does
   (front.js's plain), as the full game's loading notice (shell.html, #boot). */
#front.plain .card { width: min(280px, 100%); text-align: center; }
#front.plain h1, #front.plain .lead, #front.plain hr, #front.plain .own, #front.plain .fine { display: none; }
#front.plain #front-status { margin: 0 0 12px; color: var(--fg, #e9dfcc); font-size: 16px; }
#front.plain .card { display: flex; flex-direction: column-reverse; }
#front.plain { background: #110f0c; }
