/* ---------- Act 2 base: kill any wallpaper flash before our overlays mount ---------- */
html.act2 body { background: #000 !important; }
html.act2 .boot-screen,
html.act2 #login-screen { display: none !important; }

/* ---------- Act 2: Win 2000 "Log On to Windows" dialog ---------- */
/* Background: the classic Win 2000 login backdrop — a dim teal/blue with
   a vignette and the giant "Windows 2000 Professional" wordmark in the
   upper-left. Centered: the gray login dialog (reuses 98.css .window). */
#switch-user-screen , #party-login-screen  {
  position: fixed; inset: 0; z-index: 99000;
  display: flex; align-items: center; justify-content: center;
  font-family: Tahoma, sans-serif;
  color: #fff;
  opacity: 0;
  transition: opacity 0.7s ease;
}
#switch-user-screen.in,
#party-login-screen.in {
  opacity: 1;
}
#switch-user-screen.logging-in,
#party-login-screen.logging-in {
  background: #000;
  transition: background 0.9s ease;
}
#switch-user-screen .su-bg , #party-login-screen .su-bg  {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(120,170,200,0.22) 0%, transparent 60%),
    linear-gradient(180deg, #1d4368 0%, #0c2240 100%);
  z-index: 0;
}
#switch-user-screen .su-clock , #party-login-screen .su-clock  {
  position: absolute; top: 20px; right: 28px;
  color: rgba(220,230,240,0.65);
  font-size: 11px;
  z-index: 1;
}
#switch-user-screen .su-banner , #party-login-screen .su-banner  {
  position: absolute; left: 36px; top: 36px; z-index: 1;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.4);
}
#switch-user-screen .su-banner-line1 , #party-login-screen .su-banner-line1  {
  font-family: 'Trebuchet MS', Tahoma, sans-serif;
  font-size: 13px; opacity: 0.85; margin-bottom: -2px;
}
#switch-user-screen .su-banner-line2 , #party-login-screen .su-banner-line2  {
  font-family: 'Trebuchet MS', Tahoma, sans-serif;
  font-size: 48px; font-weight: bold; line-height: 1;
}
#switch-user-screen .su-banner-line2 sup , #party-login-screen .su-banner-line2 sup  {
  font-size: 22px; font-weight: bold; vertical-align: super; margin-left: 4px;
}
#switch-user-screen .su-banner-line3 , #party-login-screen .su-banner-line3  {
  font-family: 'Trebuchet MS', Tahoma, sans-serif;
  font-size: 17px; font-weight: bold;
  letter-spacing: 1px; opacity: 0.95;
  text-transform: uppercase;
}

/* Classic Win 2000 dialog (uses 98.css .window chrome) */
#switch-user-screen .su-dialog , #party-login-screen .su-dialog  {
  position: relative; z-index: 2;
  width: 460px;
  background: var(--surface, #c0c0c0);
  color: #000;
  font-family: Tahoma, sans-serif;
  box-shadow: 0 4px 32px rgba(0,0,0,0.55);
}
#switch-user-screen .su-dialog.shake , #party-login-screen .su-dialog.shake  { animation: dlgShake 0.45s ease; }
@keyframes dlgShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
#switch-user-screen .su-dialog-body , #party-login-screen .su-dialog-body  {
  padding: 14px 16px 12px;
}
#switch-user-screen .su-hero , #party-login-screen .su-hero  {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid #808080;
  padding-bottom: 12px; margin-bottom: 12px;
}
#switch-user-screen .su-hero img , #party-login-screen .su-hero img  {
  width: 48px; height: 48px;
  image-rendering: pixelated;
}
#switch-user-screen .su-hero-msg , #party-login-screen .su-hero-msg  {
  font-size: 12px;
  color: #000;
  line-height: 1.45;
}
#switch-user-screen .su-fields label , #party-login-screen .su-fields label  {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 6px; align-items: center;
  font-size: 12px; color: #000;
  margin-bottom: 8px;
}
#switch-user-screen .su-fields input,
#party-login-screen .su-fields input,
#switch-user-screen .su-fields select,
#party-login-screen .su-fields select {
  border: 1px inset #888; background: #fff;
  padding: 2px 6px; font-size: 12px;
  font-family: Tahoma, sans-serif;
  width: 100%;
}
#switch-user-screen .su-buttons , #party-login-screen .su-buttons  {
  display: flex; justify-content: flex-end; gap: 6px;
  margin-top: 14px;
}
#switch-user-screen .su-buttons button , #party-login-screen .su-buttons button  {
  padding: 3px 14px; font-size: 12px;
  min-width: 70px;
}

/* ---------- Jim's interior-voice intro lines ---------- */
#jim-welcome {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9500;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
#jim-welcome .jw-line {
  position: absolute;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 30px;
  color: #fff;
  letter-spacing: 0.5px;
  text-align: center;
  max-width: 80%;
  /* Match every other diegetic overlay — translucent black background. */
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 22px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.75);
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
#jim-welcome .jw-line.in  { opacity: 1; transform: translateY(0); }
#jim-welcome .jw-line.out { opacity: 0; transform: translateY(-6px); }

/* ---------- Persistent bottom hint (post-intro) ---------- */
#jim-hint {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 56px;
  z-index: 9400;
  background: rgba(0,0,0,0.78);
  color: rgba(245,240,225,0.88);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 14px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.65);
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
#jim-hint.in  { opacity: 1; }
#jim-hint.out { opacity: 0; }

/* ---------- Jim's wallpaper / theme ----------
   The home computer's wallpaper is the same for both accounts — Jim and
   Buddy share hardware. Differentiation is icons, theme, dim, and the
   subtle vignette below. */
html.user-jim #desktop,
body.user-jim #desktop {
  background: #6ea1d8 url("../assets/wallpaper/me-wallpaper.webp") center/cover no-repeat !important;
}

/* While Jim's session is active, the desktop has a calmer, slightly dimmer
   feel than Buddy's bright bedroom. */
body.user-jim {
  filter: brightness(0.92) saturate(0.92);
}

/* Subtle vignette over the whole desktop in Jim's session — feels older,
   feels like the den at 11:47 PM. */
body.user-jim #desktop::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
