/* Lightbringer kit: the studio opening screen (the Lightbringer Studios logo with two candles).
   Master copy: Git-Lightbringer/play-ready/kit/. Don't edit a game's copy by hand.
   The logo font is Instrument Serif (free, SIL Open Font License), stored inside the game:
   put instrument-serif-400.woff2 in the game's public/fonts/ folder. */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('fonts/instrument-serif-400.woff2') format('woff2');
}

/* Covers the whole screen, above everything else in the game. */
.lb-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: #05070c; /* the studio's night color */
  opacity: 1;
  transition: opacity 0.45s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-shadow: none;
}
.lb-splash.lb-out {
  opacity: 0;
  pointer-events: none;
}

/* The wordmark. --lb-size is the height of the big letters; it shrinks on narrow phones. */
.lb-wm {
  --lb-size: min(56px, 10vw);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: #f6e7c1;
  line-height: 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.lb-in .lb-wm {
  opacity: 1;
  transform: none;
}
.lb-big {
  display: block;
  font: 400 var(--lb-size) / 1 'Instrument Serif', Georgia, serif;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.5em 0.26em 0 0.26em;
  margin-right: -0.26em;
}
.lb-sub {
  font: 600 calc(var(--lb-size) * 0.21) / 1 system-ui, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 0.62em;
  text-transform: uppercase;
  color: #d9b574;
  margin-top: calc(var(--lb-size) * 0.3);
  margin-right: -0.62em;
}

/* Each "I" is a candle: a thin wax stick, a wick, and a flame that lights up a moment after the logo appears. */
.lb-i {
  display: inline-block;
  position: relative;
  width: max(2px, 0.1em);
  height: 0.64em;
  margin: 0 0.26em 0 0.04em;
  background: linear-gradient(90deg, #d9b574, #f6e7c1 45%, #e0bd7e);
  border-radius: 0.02em 0.02em 0 0;
  vertical-align: baseline;
}
.lb-i::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: max(1px, 0.016em);
  height: max(2px, 0.07em);
  margin-left: max(-0.5px, -0.008em);
  background: #3a2a1c;
}
.lb-i::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + max(2px, 0.05em));
  width: max(3px, 0.12em);
  height: max(6px, 0.26em);
  margin-left: min(-1.5px, -0.06em);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 74%, #fffbe8 0, #ffe08a 38%, #ff9d2e 72%, rgba(255, 120, 30, 0) 100%);
  box-shadow: 0 0 0.3em 0.08em rgba(255, 185, 77, 0.55);
  transform-origin: 50% 100%;
  transform: scale(0.2);
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.lb-lit .lb-i::after {
  opacity: 1;
  transform: none;
}
/* The second candle lights a beat after the first. */
.lb-lit .lb-i ~ .lb-i::after {
  transition-delay: 0.18s;
}

/* People who asked their device for less motion: no sliding or popping, just a gentle fade. */
@media (prefers-reduced-motion: reduce) {
  .lb-wm,
  .lb-i::after {
    transform: none;
    transition: opacity 0.3s ease;
  }
}
