/* ═══════════════════════════════════════════════════════
   BOOT SEQUENCE
   Warm, lamp-lit tones matching the room itself — the desk
   lamp "warming up" is the whole visual idea here, echoing
   the actual light-switch/lamp objects inside the workspace.
   ═══════════════════════════════════════════════════════ */

.boot {
  --lb-bg: #14100c;
  --lb-bg2: #1d1610;
  --lb-amber: #e8a659;
  --lb-amber-bright: #ffcf94;
  --lb-cream: #f3ece0;
  --lb-muted: #a89880;
  --lb-ok: #8bb374;
  --lb-line: rgba(232, 166, 89, 0.14);

  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 38%, rgba(232, 166, 89, 0.1), transparent),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(80, 55, 30, 0.18), transparent),
    var(--lb-bg);
  overflow: hidden;
}

/* Warm dust motes drifting up — the same idea as the ambient dust inside
   the room, so the loading screen already feels like part of the space. */
.boot__motes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 15% 85%, rgba(255, 207, 148, 0.35), transparent),
    radial-gradient(2px 2px at 32% 92%, rgba(255, 207, 148, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 58% 88%, rgba(255, 207, 148, 0.3), transparent),
    radial-gradient(2px 2px at 74% 95%, rgba(255, 207, 148, 0.22), transparent),
    radial-gradient(1.5px 1.5px at 88% 82%, rgba(255, 207, 148, 0.28), transparent);
  background-repeat: no-repeat;
  animation: motes-rise 9s ease-in infinite;
  opacity: 0.7;
}

@keyframes motes-rise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.7; }
  85% { opacity: 0.35; }
  100% { transform: translateY(-70vh); opacity: 0; }
}

.boot__core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  width: min(480px, 86vw);
}

/* Identity — name lit by the same warm glow as the lamp filament idea,
   instead of a small abstract monogram inside spinning rings. */
.boot__identity {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.boot__identity-glow {
  position: absolute;
  top: -34px;
  left: 50%;
  translate: -50% 0;
  width: 260px;
  height: 150px;
  background: radial-gradient(ellipse, rgba(255, 207, 148, 0.28), transparent 70%);
  filter: blur(22px);
  animation: filament-glow 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes filament-glow {
  0%, 100% { opacity: 0.5; transform: scale(0.94); }
  50% { opacity: 0.95; transform: scale(1.06); }
}

.boot__name {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--lb-cream);
  text-shadow: 0 0 26px rgba(255, 207, 148, 0.45);
}

.boot__name-rule {
  position: relative;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lb-amber), transparent);
  animation: rule-draw 1.2s var(--ease-out) 0.2s forwards;
}

@keyframes rule-draw {
  to { width: 130px; }
}

.boot__role {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  color: var(--lb-muted);
}

/* Terminal */
.boot__terminal {
  width: 100%;
  height: 132px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: var(--lb-muted);
  mask-image: linear-gradient(180deg, transparent, #000 30%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%);
}

.boot__terminal .line { white-space: nowrap; }
.boot__terminal .line .t { color: rgba(168, 152, 128, 0.5); margin-right: 10px; }
.boot__terminal .line .ok { color: var(--lb-ok); }
.boot__terminal .line .accent { color: var(--lb-amber-bright); }

/* Progress */
.boot__progress {
  width: 100%;
  height: 2px;
  background: rgba(168, 152, 128, 0.15);
  border-radius: 99px;
  overflow: hidden;
}

.boot__progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--lb-amber), var(--lb-amber-bright));
  box-shadow: 0 0 12px rgba(255, 207, 148, 0.55);
}

.boot__meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--lb-muted);
}

#boot-percent { color: var(--lb-amber-bright); }

/* Enter button */
.boot__enter {
  position: relative;
  padding: 16px 44px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--lb-cream);
  border: 1px solid rgba(232, 166, 89, 0.4);
  border-radius: 12px;
  background: rgba(232, 166, 89, 0.06);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition: box-shadow 0.35s, border-color 0.35s;
}

.boot__enter:hover {
  border-color: var(--lb-amber-bright);
  box-shadow: 0 0 36px rgba(232, 166, 89, 0.32), inset 0 0 24px rgba(255, 207, 148, 0.1);
}

.boot__enter-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 207, 148, 0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: sheen 2.8s ease-in-out infinite;
}

@keyframes sheen {
  0%, 55% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
