/* stockbetting.com — logo intro animation (dice roll → terminal wordmark).
   Plays once on first homepage visit each session, and again right after a
   Play login/guest-login. All per-frame values are set inline from
   logo-intro.js; this file only holds the static layout. */

.li-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg, #0B0E14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  opacity: 1;
  transition: opacity .35s ease;
}
.li-overlay.li-out { opacity: 0; }

.li-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.li-scene {
  position: absolute;
  inset: 0;
}
.li-scene[hidden] { display: none; }

/* ---------- dice scene ---------- */
.li-dice {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  perspective: 700px;
}
.li-die {
  width: 108px;
  height: 108px;
  position: relative;
  transform-style: preserve-3d;
}
.li-face {
  position: absolute;
  inset: 0;
  width: 108px;
  height: 108px;
  background: #f4f4f4;
  border-radius: 15px;
  box-shadow: inset 0 0 0 2px rgba(10, 14, 18, 0.15);
}
.li-face--front  { transform: translateZ(54px); }
.li-face--back   { transform: rotateY(180deg) translateZ(54px); }
.li-face--right  { transform: rotateY(90deg) translateZ(54px); }
.li-face--left   { transform: rotateY(-90deg) translateZ(54px); }
.li-face--top    { transform: rotateX(90deg) translateZ(54px); }
.li-face--bottom { transform: rotateX(-90deg) translateZ(54px); }

.li-pip {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #111;
  transform: translate(-50%, -50%);
}

/* ---------- intro scene (candles + wordmark) ---------- */
.li-candles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.li-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(10, 14, 18, 0.2) 0%, rgba(10, 14, 18, 0.85) 70%);
}
.li-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.li-logo-inner {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 64px);
  letter-spacing: 0.5px;
  display: flex;
  align-items: baseline;
  color: var(--text, #E8ECF4);
  text-shadow: 0 0 40px rgba(34, 197, 94, 0.18);
}
.li-chars span { opacity: 0; }
.li-caret {
  display: inline-block;
  width: 0.22em;
  height: 0.9em;
  margin-left: 6px;
  background: var(--pos, #22C55E);
  opacity: 0;
  transform: translateY(4px);
}

@media (prefers-reduced-motion: reduce) {
  .li-overlay { display: none !important; }
}
