@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");

/* Windows 95 Fonts for GUI (legacy) */
@font-face {
  font-family: 'w95font';
  src: url('fonts/w95font.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'w95font';
  src: url('fonts/w95font-bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

/* Mac System 6 Fonts */
@font-face {
  font-family: 'Chicago';
  src: url('fonts/ChicagoFLF.woff2') format('woff2'),
       url('fonts/ChicagoFLF.woff') format('woff');
}

@font-face {
  font-family: 'Chicago_12';
  src: url('fonts/ChiKareGo2.woff2') format('woff2'),
       url('fonts/ChiKareGo2.woff') format('woff');
}

@font-face {
  font-family: 'Geneva_9';
  src: url('fonts/FindersKeepers.woff2') format('woff2'),
       url('fonts/FindersKeepers.woff') format('woff');
}

@font-face {
  font-family: 'Monaco';
  src: url('fonts/monaco.woff2') format('woff2'),
       url('fonts/monaco.woff') format('woff');
}

/* Mac System 6 CSS Variables */
:root {
  --mac-white: #FFFFFF;
  --mac-black: #000000;
  --mac-grey: #A5A5A5;
  --mac-darkgrey: #B6B7B8;
  --mac-box-shadow: 2px 2px;
}

h1 {
  margin:0 0 0 0;
  font-size: 1em;
}

.scanlines {
  position: relative;
  overflow: hidden;
}
.scanlines:before, .scanlines:after {
  display: block;
  pointer-events: none;
  content: "";
  position: absolute;
}
.scanlines:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.4rem;
  z-index: 2147483649;
  opacity: 0.55;
  
}
.scanlines:after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483648;
}

canvas {
  background: white;
  display: none;
}
pre {
  margin: 1em 0 0 0;
  font-size:1.5rem;
}

#fancypress {
  display: none;
}

#pressme {
  cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.modal iframe {
    width: 100%;
    height: 515px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5e5e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 4rempx;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.close-button:hover {
    background-color: #ff1e1e;
}

#switch:checked ~ .screen.scanlines:before { 
  background: rgba(0, 0, 0, 0.25);
  animation: scan-moving 6s linear infinite;
}

#switch:checked ~ .screen.scanlines:after {
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.123) 51%);
  background-size: 100% 0.5rem;
  animation: scan-crt 1s steps(60) infinite;
}
#switch:checked ~ .screen > .contents {
  animation: crt-power-on 1.5s forwards ease-in;
}

#switch:not(:checked) ~ .screen > .contents {
  animation: crt-power-off 1.5s forwards ease-in;
}

@keyframes fadeinout {
    0% {
    background-size: 100% 0.5rem;
    }
    60% {
    background-size: 100% 0.0rem;
    }
    75% {
    background-size: 100% 0.5rem;
    }
    85% {
    background-size: 100% 0.5rem;
    }
    100% {
    background-size: 100% 0.2rem;
    }
}

@keyframes scan-moving {
  0% {
  transform: translate3d(0, 100vh, 0);
  }
}
@keyframes scan-crt {
  0% {
  background-position: 0 50%;
  }
}
@keyframes blink {
  to {
  visibility: hidden;
  }
}
@keyframes crt-power-on {
    0% {
    transform: scale(0, 0.0001) translate3d(0, 0, 0);
    filter: brightness(50);
    opacity: 1;
    }
    60% {
    transform: scale(1.3, 0.006) translate3d(0, 0, 0);
    filter: brightness(10);
    }
    75% {
    transform: scale(1.1, 1.3) translate3d(0, 0, 0);
    filter: brightness(5);
    }
    85% {
    transform: scale(1, 1) translate3d(0, 0, 0);
    filter: brightness(2);
    }
    100% {
    transform: scale(1, 1) translate3d(0, 0, 0);
    filter: brightness(1);
    
    }
}
@keyframes crt-power-off {
  0% {
  transform: scale(1, 1.3) translate3d(0, 0, 0);
  filter: brightness(1);
  opacity: 1;
  }
  60% {
  transform: scale(1.3, 0.001) translate3d(0, 0, 0);
  filter: brightness(10);
  }
  100% {
  transform: scale(0, 0.0001) translate3d(0, 0, 0);
  filter: brightness(50);
  }
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-size: 2.4rem;
  font-family: "VT323", "Courier New", Courier, monospace;
  font-weight: 900;
  text-shadow: 0 0 0.08em white, -0.08em 0 0.08em aqua, 0.08em 0 0.08em fuchsia;
}

.container {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  height:100vh;
  
}

.screentext {
  filter: blur(0.75px);
  height: 100%;
}

.screentext .terminal {
  height: 100% !important;
}

/* Ensure jQuery Terminal color formatting works */
.terminal [style*="--color"] {
  color: var(--color) !important;
}

.terminal span[style*="--color: cyan"],
.terminal span[style*="--color:cyan"] {
  --color: #00ffff !important;
}

.terminal span[style*="--color: yellow"],
.terminal span[style*="--color:yellow"] {
  --color: #ffff00 !important;
}

.terminal span[style*="--color: green"],
.terminal span[style*="--color:green"] {
  --color: #00ff00 !important;
}

.terminal span[style*="--color: red"],
.terminal span[style*="--color:red"] {
  --color: #ff0000 !important;
}

.terminal span[style*="--color: blue"],
.terminal span[style*="--color:blue"] {
  --color: #0000ff !important;
}

.terminal span[style*="--color: white"],
.terminal span[style*="--color:white"] {
  --color: #ffffff !important;
}

.terminal span[style*="--color: magenta"],
.terminal span[style*="--color:magenta"] {
  --color: #ff00ff !important;
}

.screen {
  position: relative;
  height: 100vh;
  width: 100%;
  box-sizing: content-box;
}
.screen .contents {
  position: absolute;
  overflow: scroll;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0064ff;
  box-sizing: border-box;
  box-shadow: inset 0 0 18rem rgb(39, 0, 45),
  inset 0 0 3rem rgb(39, 0, 45),
  0 0 10rem rgb(39, 0, 45);
  z-index: 1;
  pointer-events: none;
}

.screen .contents.active {
  z-index: 10;
  pointer-events: auto;
}

/* GUI System Styling - Mac System 6 */
.test-app-view {
  background: linear-gradient(90deg, var(--mac-white) 21px, transparent 1%) center, 
              linear-gradient(var(--mac-white) 21px, transparent 1%) center, 
              var(--mac-black);
  background-size: 22px 22px;
  background-attachment: fixed;
  box-shadow: none !important;
  font-family: "Chicago_12", "Chicago", sans-serif;
  /* Override terminal styling for GUI */
  color: var(--mac-black) !important;
  text-shadow: none !important;
}

/* Ensure all GUI text is black without CRT effects */
.test-app-view * {
  text-shadow: none !important;
}

.test-app-view .desktop-widget,
.test-app-view .desktop-icon,
.test-app-view .mac-window,
.test-app-view .mac-menu-bar,
.test-app-view .desktop-watermark {
  color: var(--mac-black) !important;
}

/* BIOS Boot Screen - Larger font */
.bios-boot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #33ff33;
  font-family: 'VT323', 'Courier New', Courier, monospace;
  padding: 30px;
  display: flex;
  flex-direction: column;
  z-index: 101;
  overflow-y: auto;
}

.bios-boot pre {
  font-size: 3rem;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}

/* Loading Screen */
.gui-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.gui-loading.active {
  display: flex;
  opacity: 1;
}

.gui-loading.fading {
  opacity: 0;
}

/* Mac Boot Screen */
.mac-boot-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--mac-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.mac-happy-icon {
  font-size: 8rem;
  margin-bottom: 2rem;
  filter: grayscale(100%);
}

.mac-boot-text {
  font-family: 'Chicago_12', 'Chicago', sans-serif;
  font-size: 2.5rem;
  color: var(--mac-black);
  margin-bottom: 2rem;
}

.mac-progress-container {
  width: 300px;
}

.mac-progress-bar {
  width: 100%;
  height: 16px;
  background: var(--mac-white);
  border: 2px solid var(--mac-black);
  position: relative;
}

.mac-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--mac-black) 0%,
    var(--mac-black) 50%,
    var(--mac-grey) 50%,
    var(--mac-grey) 100%
  );
  background-size: 8px 100%;
}

@keyframes mac-loading {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Shutting Down Screen - Mac Style */
.gui-shutting-down {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--mac-white);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 101;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

.gui-shutting-down.active {
  display: flex;
  opacity: 1;
}

.mac-shutdown-screen {
  text-align: center;
}

.mac-shutdown-icon {
  font-size: 6rem;
  margin-bottom: 1.5rem;
  filter: grayscale(100%);
}

.mac-shutdown-text {
  font-family: 'Chicago_12', 'Chicago', sans-serif;
  font-size: 2.2rem;
  color: var(--mac-black);
}

/* Luke Master System Boot Screen */
.lukems-boot-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    #1a0d2e 0%, 
    #2d1b4e 25%, 
    #4a2d6e 50%, 
    #6a4d8e 75%, 
    #7a5d9e 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 1;
  transition: opacity 1s ease-out;
}

.lukems-boot-screen.fading {
  opacity: 0;
}

.lukems-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1, 1);
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  z-index: 1;
  max-width: 800px;
  width: 70%;
  height: auto;
  opacity: 0;
}

.lukems-logo.animating {
  animation: lukemsLogoFadeIn 1.5s ease-in forwards;
}

/* Background overlay - fades from black to white */
.lukems-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: 0;
  z-index: 0;
}

.lukems-overlay.animating {
  animation: lukemsBackgroundFade 1.5s ease-in forwards;
}

/* Hide audio elements */
.lukems-sound,
.lukems-music {
  display: none;
}

@keyframes lukemsLogoFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes lukemsBackgroundFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes lukemsBootPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Luke Master System Game Screen */
.lukems-game-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 101;
  overflow: hidden;
}

.lukems-game-screen.active {
  display: flex;
}

/* Game layer base styles - all images fill screen maintaining 16:9 aspect ratio */
.game-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

/* Background layer (game0) - fades in first */
.game-bg {
  z-index: 1;
}

.game-bg.animating {
  animation: gameBgFadeIn 1.5s ease-in forwards;
}

/* Sun layer (game1) - fades in second, then loops up/down */
.game-sun {
  z-index: 2;
}

.game-sun.animating {
  animation: gameSunFadeIn 1.5s ease-in forwards;
}

.game-sun.floating {
  opacity: 1;
  animation: gameSunFloat 3s ease-in-out infinite;
}

/* Rising layer (game2) - fades in third, rises from bottom */
.game-rise {
  z-index: 3;
  transform: translateY(100%);
  object-fit: contain;
  object-position: bottom center;
  width: 100%;
  height: auto;
  max-height: 100%;
  bottom: 0;
  top: auto;
}

.game-rise.animating {
  animation: gameRiseFadeIn 2s ease-out forwards;
}

/* Face layer (face0-face5) - fades in with game2, cycles through images */
.game-face {
  z-index: 4;
  opacity: 0;
  object-fit: cover;
  transform: translateY(-100%);
}

.game-face.animating {
  animation: gameFaceFadeIn 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.game-face.floating {
  opacity: 1;
  animation: gameFaceFloat 4s ease-in-out infinite;
}

.game-face.fading-out {
  opacity: 1;
  animation: gameFaceFadeOut 1s ease-out forwards;
}

@keyframes gameFaceFadeIn {
  0% { 
    opacity: 0;
    transform: translateY(-100%);
  }
  100% { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gameFaceFloat {
  0%, 100% { 
    transform: translateY(0);
  }
  50% { 
    transform: translateY(-15px);
  }
}

@keyframes gameFaceFadeOut {
  0% { 
    opacity: 1;
  }
  100% { 
    opacity: 0;
  }
}

/* Screen darkening overlay */
.game-darken-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 5;
  pointer-events: none;
  transition: background 1s ease-out;
}

.game-darken-overlay.active {
  background: rgba(0, 0, 0, 0.7);
  pointer-events: all;
}

/* Contact form container */
.contact-form-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.contact-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  font-family: "VT323", "Courier New", Courier, monospace;
  font-size: 3rem;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
  margin: 0;
  border-radius: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  user-select: none;
}

.contact-close-btn:hover {
  background: rgba(255, 0, 0, 0.3);
  border-color: rgba(255, 0, 0, 0.7);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  transform: rotate(90deg) scale(1.1);
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.contact-close-btn:active {
  transform: rotate(90deg) scale(0.95);
  background: rgba(255, 0, 0, 0.5);
}

.contact-form-container.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  animation: contactFormDropDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 90%;
  max-width: 500px;
  padding: 3rem;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  backdrop-filter: blur(2px);
}

.contact-form-title {
  font-family: "VT323", "Courier New", Courier, monospace;
  font-size: 4rem;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
}

.contact-input,
.contact-textarea {
  font-family: "VT323", "Courier New", Courier, monospace;
  font-size: 2.4rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  outline: none;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.contact-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: "VT323", "Courier New", Courier, monospace;
}

.contact-submit {
  font-family: "VT323", "Courier New", Courier, monospace;
  font-size: 2.4rem;
  padding: 1.5rem 3rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.contact-submit:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.contact-submit:active {
  transform: scale(0.98);
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-social-label {
  font-family: "VT323", "Courier New", Courier, monospace;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  font-family: "VT323", "Courier New", Courier, monospace;
  font-size: 1.6rem;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
}

.social-link:hover {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.social-link:hover::before {
  left: 0;
}

.social-link:active {
  transform: translateY(0);
}

.social-link[data-platform="instagram"]:hover {
  border-color: #E4405F;
  box-shadow: 0 0 15px rgba(228, 64, 95, 0.5);
}

.social-link[data-platform="threads"]:hover {
  border-color: #000;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.social-link[data-platform="bluesky"]:hover {
  border-color: #00A8E8;
  box-shadow: 0 0 15px rgba(0, 168, 232, 0.5);
}

.social-link[data-platform="linkedin"]:hover {
  border-color: #0077B5;
  box-shadow: 0 0 15px rgba(0, 119, 181, 0.5);
}

@keyframes contactFormDropDown {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Game content overlay */
.lukems-game-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  font-family: "w95font", sans-serif;
}

.lukems-game-content h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.lukems-game-content p {
  font-size: 2rem;
  opacity: 0.7;
}

@keyframes gameBgFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes gameSunFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes gameSunFloat {
  0%, 100% { 
    transform: translateY(0);
    opacity: 1;
  }
  50% { 
    transform: translateY(-20px);
    opacity: 1;
  }
}

@keyframes gameRiseFadeIn {
  0% { 
    opacity: 0;
    transform: translateY(100%);
  }
  100% { 
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-logo {
  text-align: center;
}

.logo-box {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 4px solid #fff;
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-family: "w95font", sans-serif;
  color: #fff;
  margin: 0 auto 30px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(102, 126, 234, 0.5); }
  50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(102, 126, 234, 0.8); }
}

.loading-bar {
  width: 300px;
  height: 20px;
  background: #333;
  border: 2px solid #666;
  margin: 0 auto;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

@keyframes loading {
  0% { width: 0%; }
  100% { width: 100%; }
}

.loading-text {
  color: #fff;
  font-family: "w95font", sans-serif;
  font-size: 2.5rem;
  margin-top: 20px;
  animation: blink 1s steps(2) infinite;
}

/* Desktop - Mac System 6 Style */
.gui-desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
}

.gui-desktop.active {
  display: flex;
}

.mac-desktop {
  background: linear-gradient(90deg, var(--mac-white) 21px, transparent 1%) center, 
              linear-gradient(var(--mac-white) 21px, transparent 1%) center, 
              var(--mac-black);
  background-size: 22px 22px;
}

.desktop-area {
  flex: 1;
  padding: 20px;
  padding-top: 50px; /* Space for menu bar */
  position: relative;
}

/* Mac Menu Bar */
.mac-menu-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: var(--mac-white);
  border-bottom: 2px solid var(--mac-black);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.mac-menu-items {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Chicago_12', 'Chicago', sans-serif;
  font-size: 2rem;
  width: 100%;
  color: var(--mac-black);
}

.mac-menu-items > li {
  position: relative;
  padding: 2px 12px;
  cursor: pointer;
  color: var(--mac-black);
}

.mac-menu-items > li:hover {
  background: var(--mac-black);
  color: var(--mac-white);
}

.mac-menu-items > li > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--mac-white);
  border: 1px solid var(--mac-black);
  box-shadow: var(--mac-box-shadow);
  z-index: 1001;
  margin: 0;
  padding: 4px 0;
}

.mac-menu-items > li:hover > ul {
  display: block;
}

.mac-menu-items ul li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mac-menu-items ul li a {
  display: block;
  padding: 6px 12px;
  margin: 0;
  color: var(--mac-black);
  text-decoration: none;
  font-family: 'Chicago_12', 'Chicago', sans-serif;
  font-size: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.mac-menu-items ul li a:hover {
  background: var(--mac-black);
  color: var(--mac-white);
}

.mac-menu-items ul li.divider {
  border-top: 1px dotted var(--mac-black);
  margin: 4px 0;
  padding: 0;
}

.mac-menu-items ul li.divider a {
  display: none;
}

/* Apple Menu Icon */
.apple-menu {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.apple-icon {
  display: inline-block;
  width: 16px;
  height: 18px;
  background-image: url('images/system-icons/apple.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.apple-menu:hover .apple-icon,
.apple-menu:focus .apple-icon {
  filter: invert(1);
}

/* Window Styles */
/* Mac System 6 Window Styling */
.window, .mac-window {
  position: absolute;
  top: 60px;
  left: 60px;
  width: 550px;
  height: 380px;
  background: var(--mac-white);
  border: 1px solid var(--mac-black);
  box-shadow: var(--mac-box-shadow);
  display: flex;
  flex-direction: column;
  font-family: "Inconsolata", Menlo, "Chicago", Geneva, sans-serif;
  z-index: 10;
  min-width: 200px;
  min-height: 150px;
}

.mac-window:focus-within {
  z-index: 20;
}

.window.maximized, .mac-window.maximized {
  top: 34px !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100% - 34px) !important;
  border-width: 0;
  border-top: 1px solid var(--mac-black);
  box-shadow: none;
}

.window.minimized, .mac-window.minimized {
  display: none;
}

/* Mac Title Bar */
.mac-window .title-bar {
  flex: none;
  display: flex;
  align-items: center;
  height: 30px;
  margin: 2px;
  padding: 2px 4px;
  background: linear-gradient(var(--mac-black) 50%, transparent 50%);
  background-size: 6.666% 13.333%;
  background-clip: content-box;
  cursor: move;
  user-select: none;
}

.mac-window .title-bar .title {
  padding: 0 0.5em;
  margin: 0 auto;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
  background: var(--mac-white);
  cursor: default;
  font-family: 'Chicago_12', 'Chicago', sans-serif;
  color: var(--mac-black);
}

.mac-window .title-bar button {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 4px;
  border: 2px solid var(--mac-black);
  background-color: var(--mac-white);
  cursor: pointer;
  transform: scale(1);
  box-sizing: border-box;
}

.mac-window .title-bar button.close::before,
.mac-window .title-bar button.close::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
}

.mac-window .title-bar button.close:active::before,
.mac-window .title-bar button.close:active::after {
  opacity: 1;
}

.mac-window .title-bar button.close::before {
  background: 
    linear-gradient(var(--mac-black) 0%, var(--mac-black) 100%) left center, 
    linear-gradient(var(--mac-black) 0%, var(--mac-black) 100%) right center, 
    linear-gradient(var(--mac-black) 0%, var(--mac-black) 100%) center top, 
    linear-gradient(var(--mac-black) 0%, var(--mac-black) 100%) center bottom;
  background-size: 30% 2px, 30% 2px, 2px 30%, 2px 30%;
  background-repeat: no-repeat;
}

.mac-window .title-bar button.resize {
  background: 
    linear-gradient(var(--mac-black) 0%, var(--mac-black) 100%) left 58%, 
    linear-gradient(to bottom, var(--mac-black) 0%, var(--mac-black) 100%) 58% top;
  background-size: 60% 2px, 2px 60%;
  background-repeat: no-repeat;
  background-color: var(--mac-white);
}

.mac-window .title-bar button.resize:active {
  background: var(--mac-white);
}

/* Mac Window Content */
.mac-window .separator {
  flex: none;
  border-top: 1px solid var(--mac-black);
}

.mac-window .details-bar {
  flex: none;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 6px 12px;
  border-bottom: 1px solid var(--mac-black);
  font-size: 1.8rem;
  font-family: 'Chicago_12', 'Chicago', sans-serif;
  background: var(--mac-white);
  color: var(--mac-black);
}

.mac-window .window-pane {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  flex: 1;
  padding: 16px 20px;
  font-size: 2rem;
  letter-spacing: -0.025em;
  background: var(--mac-white);
  color: var(--mac-black);
  font-family: 'Chicago_12', 'Chicago', sans-serif;
}

.mac-window .window-content {
  flex: 1;
  background: var(--mac-white);
  color: var(--mac-black);
  padding: 16px 20px;
  font-family: 'Chicago_12', 'Chicago', sans-serif;
  font-size: 2rem;
  overflow: auto;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.mac-window .window-content pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Chicago_12', 'Chicago', sans-serif !important;
  font-size: 2rem;
  line-height: 1.6;
  color: var(--mac-black);
}

.mac-window .window-content a {
  color: var(--mac-black);
  text-decoration: underline;
  cursor: pointer;
}

.mac-window .window-content a:hover {
  background: var(--mac-black);
  color: var(--mac-white);
}

/* Mac Scrollbar Styling */
.mac-window .window-pane::-webkit-scrollbar,
.mac-window .window-content::-webkit-scrollbar {
  width: 18px;
  background-color: var(--mac-white);
}

.mac-window .window-pane::-webkit-scrollbar-track,
.mac-window .window-content::-webkit-scrollbar-track {
  background: linear-gradient(45deg, var(--mac-black) 25%, transparent 25%, transparent 75%, var(--mac-black) 75%, var(--mac-black)), 
              linear-gradient(45deg, var(--mac-black) 25%, transparent 25%, transparent 75%, var(--mac-black) 75%, var(--mac-black));
  background-color: var(--mac-white);
  background-size: 4px 4px;
  background-position: 0 0, 2px 2px;
  border-left: 2px solid var(--mac-black);
}

.mac-window .window-pane::-webkit-scrollbar-thumb,
.mac-window .window-content::-webkit-scrollbar-thumb {
  background-color: var(--mac-white);
  border: 2px solid var(--mac-black);
  border-right: none;
}

/* Mac Resize Handle */
.mac-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  background: linear-gradient(
    135deg,
    transparent 50%,
    var(--mac-black) 50%,
    var(--mac-black) 60%,
    transparent 60%,
    transparent 70%,
    var(--mac-black) 70%,
    var(--mac-black) 80%,
    transparent 80%
  );
}

/* Legacy Win95 styles kept for backward compatibility but hidden */
.taskbar-window-btn {
  display: none;
}

.taskbar-window-btn.active {
  display: none;
}

.taskbar-window-btn:active {
  display: none;
}

.task-btn-icon {
  display: none;
}

.task-btn-text {
  line-height: 1;
}

/* File Explorer Styles */
.file-explorer {
  width: 700px;
  height: 500px;
  top: 50px;
  left: 50px;
}

/* Mac File Explorer Content */
.explorer-content {
  flex: 1;
  background: var(--mac-white);
  padding: 12px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  grid-auto-rows: 80px;
  gap: 8px;
  align-content: start;
}

.explorer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
}

.explorer-item:hover {
  background: none;
}

.explorer-item.selected,
.explorer-item:active {
  background: var(--mac-black);
}

.explorer-item.selected .explorer-item-name,
.explorer-item:active .explorer-item-name {
  color: var(--mac-white);
  background: var(--mac-black);
}

.explorer-item-icon {
  font-size: 3rem;
  margin-bottom: 4px;
  line-height: 1;
  filter: grayscale(100%);
}

.explorer-item-name {
  font-size: 1.6rem;
  text-align: center;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 100%;
  line-height: 1.3;
  color: var(--mac-black);
  font-family: 'Chicago_12', 'Chicago', sans-serif;
  padding: 2px 4px;
  background: var(--mac-white);
}

.explorer-error {
  padding: 20px;
  color: var(--mac-black);
  font-family: 'Chicago_12', 'Chicago', sans-serif;
  font-size: 2rem;
}

/* Mac status bar (removed - not used in System 6) */
.status-bar {
  display: none;
}

/* Desktop Icon Styles */
/* Mac Desktop Icons */
.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  padding: 6px;
  margin: 8px;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  position: absolute;
  right: 20px;
}

#my-computer-icon {
  top: 60px;
}

#live-data-icon {
  top: 160px;
}

.desktop-icon:hover {
  background: none;
  border-color: transparent;
}

.desktop-icon.selected,
.desktop-icon:active {
  background: var(--mac-black);
}

.desktop-icon.selected .desktop-icon-text,
.desktop-icon:active .desktop-icon-text {
  color: var(--mac-white);
  background: var(--mac-black);
}

.desktop-icon-img {
  font-size: 4rem;
  margin-bottom: 4px;
  filter: grayscale(100%);
}

.desktop-icon-text {
  font-size: 1.8rem;
  color: var(--mac-black);
  text-align: center;
  font-family: 'Chicago_12', 'Chicago', sans-serif;
  padding: 2px 4px;
  background: var(--mac-white);
}

/* Enhanced BIOS Boot Screen - Larger Font */
.bios-boot {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 3rem;
  color: #33ff33;
  background: #000;
  padding: 30px;
  height: 100%;
  overflow-y: auto;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Windows 95 Boot Screen */
.loading-logo {
  position: relative;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(to bottom, 
    #4a90c8 0%, 
    #87ceeb 30%, 
    #87ceeb 70%, 
    #b0d9f0 100%
  );
}

/* Animated clouds background */
.win95-clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(ellipse 200px 80px at 20% 30%, rgba(255,255,255,0.8) 0%, transparent 70%),
    radial-gradient(ellipse 250px 100px at 70% 25%, rgba(255,255,255,0.7) 0%, transparent 70%),
    radial-gradient(ellipse 180px 70px at 45% 40%, rgba(255,255,255,0.6) 0%, transparent 70%),
    radial-gradient(ellipse 220px 90px at 85% 45%, rgba(255,255,255,0.75) 0%, transparent 70%),
    radial-gradient(ellipse 200px 80px at 15% 60%, rgba(255,255,255,0.65) 0%, transparent 70%),
    radial-gradient(ellipse 240px 95px at 60% 65%, rgba(255,255,255,0.7) 0%, transparent 70%);
  animation: clouds-drift 60s linear infinite;
  opacity: 0.9;
}

@keyframes clouds-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50px); }
}

.win95-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

/* Windows 95 Logo */
.win95-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: logo-fade-in 0.5s ease-out;
}

@keyframes logo-fade-in {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo-window {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 80px;
  height: 80px;
  gap: 4px;
  transform: skewY(-5deg);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.logo-pane {
  border-radius: 2px;
}

.logo-red {
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

.logo-green {
  background: linear-gradient(135deg, #44ff44 0%, #00cc00 100%);
}

.logo-blue {
  background: linear-gradient(135deg, #4444ff 0%, #0000cc 100%);
}

.logo-yellow {
  background: linear-gradient(135deg, #ffff44 0%, #cccc00 100%);
}

.logo-text {
  font-family: 'w95font', sans-serif;
  font-size: 5rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 
    2px 2px 4px rgba(0,0,0,0.5),
    0 0 20px rgba(255,255,255,0.5);
  letter-spacing: -2px;
}

.logo-tm {
  font-size: 2rem;
  vertical-align: super;
  margin-left: -5px;
}

/* Windows 95 Progress Bar */
.win95-progress-container {
  width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.win95-progress-bar {
  width: 100%;
  height: 12px;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 
    inset 0 1px 3px rgba(0,0,0,0.3),
    0 2px 4px rgba(0,0,0,0.2);
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(
    90deg,
    #0000aa 0%,
    #0000ff 25%,
    #5555ff 50%,
    #0000ff 75%,
    #0000aa 100%
  );
  background-size: 200% 100%;
  animation: win95-progress-shimmer 1s linear infinite;
}

@keyframes win95-progress-shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

@keyframes loading {
  0% { width: 0%; }
  20% { width: 30%; }
  50% { width: 60%; }
  80% { width: 85%; }
  100% { width: 100%; }
}

.win95-starting-text {
  font-size: 1.8rem;
  color: #000;
  font-family: 'w95font', sans-serif;
  text-shadow: 
    1px 1px 0 rgba(255,255,255,0.8),
    2px 2px 4px rgba(0,0,0,0.2);
  margin: 0;
  font-weight: bold;
}

/* Fade out loading screen */
.gui-loading.fading {
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

.screen h2 span {
  animation: blink 1s steps(5, start) infinite;
}
.screen a {
  color: #fff;
}

nav {
  margin: 15px 0 10px 0;
}

nav ul li a {
  text-decoration: none;
}

.screen a:hover {
    /* animation: blink .5s steps(2, start) infinite; */
}

@keyframes ablink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

h1 {
  text-transform: uppercase;
}

h2 {
  text-transform: uppercase;
}

.screen nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-transform: uppercase;
}

.screen nav ul li {
  padding: 0.75rem 0;
}
.screen nav ul li:before {
  content: "-";
}
.screen nav ul li:hover:after {
  content: " ⊗";
  font-size:3.45rem;
  animation: blink 1s steps(5, start) infinite;
}

section {
    display: none;
}

.prescale {
  font-family: monospace;
}

section {
  display: none; /* Hide all sections by default */
}

section.active {
  display: block; /* Show the active section */
}

section p {
  letter-spacing: 0.01rem;
}

/* Widescreen Desktop */
@media (min-width: 1920px) {
  /* styles for widescreen desktop */
  .screen .contents {
  font-size: 4rem;
  }
}

/* Desktop */
@media (max-width: 1920px) {
  /* styles for desktop */
  .screen .contents {
  font-size: 4rem;
  }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
  /* styles for tablet */
  .screen .contents {
  font-size: 4rem;
  }
  .screen nav ul li {
    padding: 0.75rem 0;
  }
  
  pre.prescale {
    font-size:1rem;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  /* styles for mobile */
  .screen .contents {
  font-size: 4rem;
  }
  
  section p {
    font-size:2.5rem;
  }
  
  pre.prescale {
    font-size:0.525rem;
  }
  
  .modal iframe {
      height: 200px;
  }
  
  .lukems-logo {
    min-width: 300px;
    max-width: 90%;
    width: 90%;
  }
}

/* ============================================
   SPOTIFY PLAYER WINDOW - FULL CONTROLS
   ============================================ */

.spotify-player {
  width: 360px;
  min-width: 340px;
  max-height: 90vh;
}

.spotify-content {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: var(--mac-white);
  gap: 10px;
  overflow-y: auto;
  max-height: calc(90vh - 40px);
}

/* Now Playing Section */
.spotify-now-playing {
  display: flex;
  gap: 12px;
  align-items: center;
}

.spotify-album-art {
  width: 100px;
  height: 100px;
  min-width: 100px;
  background: #e0e0e0;
  border: 2px solid var(--mac-black);
  box-shadow: inset 1px 1px 0 #808080;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.spotify-album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.spotify-album-art img.loaded {
  display: block;
}

.spotify-no-music {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #808080;
  font-family: 'Chicago_12', 'Chicago', monospace;
  font-size: 11px;
  text-align: center;
}

.spotify-no-music .spotify-icon {
  font-size: 32px;
  margin-bottom: 4px;
  opacity: 0.6;
  animation: gentle-pulse 2s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.spotify-album-art img.loaded + .spotify-no-music {
  display: none;
}

.spotify-info {
  flex: 1;
  min-width: 0;
}

.spotify-track {
  font-family: 'Chicago_12', 'Chicago', monospace;
  font-size: 16px;
  font-weight: bold;
  color: var(--mac-black);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-track.idle {
  color: #666;
  font-style: italic;
}

.spotify-artist {
  font-family: 'Geneva_9', Geneva, monospace;
  font-size: 14px;
  color: #444;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-album {
  font-family: 'Geneva_9', Geneva, monospace;
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Progress Bar */
.spotify-progress {
  width: 100%;
}

.spotify-progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border: 1px solid var(--mac-black);
  box-shadow: inset 1px 1px 0 #808080;
  overflow: hidden;
  cursor: pointer;
}

.spotify-progress-bar:hover {
  background: #d0d0d0;
}

.spotify-progress-fill {
  height: 100%;
  background: #1DB954;
  width: 0%;
  transition: width 0.3s linear;
  pointer-events: none;
}

.spotify-times {
  display: flex;
  justify-content: space-between;
  font-family: 'Monaco', monospace;
  font-size: 12px;
  color: #666;
  margin-top: 3px;
}

/* Playback Controls */
.spotify-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.spotify-btn {
  width: 36px;
  height: 36px;
  border: 2px solid var(--mac-black);
  background: var(--mac-white);
  box-shadow: 1px 1px 0 var(--mac-black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.1s;
}

.spotify-btn:hover {
  background: #e0e0e0;
}

.spotify-btn:active {
  box-shadow: none;
  transform: translate(1px, 1px);
}

.spotify-btn-play {
  width: 46px;
  height: 46px;
  font-size: 20px;
  background: #1DB954;
  color: white;
}

.spotify-btn-play:hover {
  background: #1ed760;
}

.spotify-btn.active {
  background: #1DB954;
  color: white;
}

/* Volume Control */
.spotify-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 5px;
}

.spotify-volume-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
}

.spotify-volume-slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #e0e0e0;
  border: 1px solid var(--mac-black);
  cursor: pointer;
}

.spotify-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--mac-black);
  cursor: pointer;
}

.spotify-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--mac-black);
  cursor: pointer;
  border: none;
}

.spotify-volume-value {
  font-family: 'Monaco', monospace;
  font-size: 12px;
  color: #666;
  width: 35px;
  text-align: right;
}

/* Device & Status */
.spotify-device {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geneva_9', Geneva, monospace;
  font-size: 12px;
  color: #666;
  padding: 0 5px;
}

.spotify-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #808080;
}

.spotify-status-dot.playing {
  background: #1DB954;
  animation: pulse 1.5s infinite;
}

.spotify-status-dot.paused {
  background: #f4b400;
}

.spotify-status-dot.offline {
  background: #808080;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Divider */
.spotify-divider {
  height: 1px;
  background: #808080;
  margin: 5px 0;
}

/* Section Headers */
.spotify-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Chicago_12', 'Chicago', monospace;
  font-size: 14px;
  font-weight: bold;
  color: var(--mac-black);
  margin-bottom: 6px;
}

.spotify-btn-small {
  width: 20px;
  height: 20px;
  border: 1px solid var(--mac-black);
  background: var(--mac-white);
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotify-btn-small:hover {
  background: #e0e0e0;
}

/* Queue Section */
.spotify-queue-section {
  max-height: 150px;
  display: flex;
  flex-direction: column;
}

.spotify-queue {
  flex: 1;
  overflow-y: auto;
  background: #f5f5f5;
  border: 1px solid var(--mac-black);
  box-shadow: inset 1px 1px 0 #808080;
}

.spotify-queue-empty {
  padding: 15px;
  text-align: center;
  color: #808080;
  font-family: 'Geneva_9', Geneva, monospace;
  font-size: 12px;
}

.spotify-queue-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid #ddd;
  font-family: 'Geneva_9', Geneva, monospace;
  font-size: 10px;
}

.spotify-queue-item:last-child {
  border-bottom: none;
}

.spotify-queue-item:hover {
  background: #e8e8e8;
}

.spotify-queue-item.now-playing {
  background: #d4edda;
}

.spotify-queue-item-art {
  width: 30px;
  height: 30px;
  background: #ddd;
  flex-shrink: 0;
}

.spotify-queue-item-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotify-queue-item-info {
  flex: 1;
  min-width: 0;
}

.spotify-queue-item-name {
  font-weight: bold;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-queue-item-artist {
  color: #666;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-queue-item-now {
  color: #1DB954;
  font-size: 10px;
  font-weight: bold;
}

/* Search Section */
.spotify-search-section {
  max-height: 180px;
  display: flex;
  flex-direction: column;
}

.spotify-search {
  display: flex;
  gap: 5px;
  margin-bottom: 6px;
}

.spotify-search-input {
  flex: 1;
  padding: 6px 10px;
  font-family: 'Geneva_9', Geneva, monospace;
  font-size: 14px;
  border: 1px solid var(--mac-black);
  box-shadow: inset 1px 1px 0 #808080;
  background: var(--mac-white);
}

.spotify-search-input:focus {
  outline: none;
  background: #fffff0;
}

.spotify-search-results {
  flex: 1;
  overflow-y: auto;
  background: #f5f5f5;
  border: 1px solid var(--mac-black);
  box-shadow: inset 1px 1px 0 #808080;
  min-height: 60px;
}

.spotify-search-empty {
  padding: 15px;
  text-align: center;
  color: #808080;
  font-family: 'Geneva_9', Geneva, monospace;
  font-size: 12px;
}

.spotify-search-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid #ddd;
  font-family: 'Geneva_9', Geneva, monospace;
  font-size: 12px;
  cursor: pointer;
}

.spotify-search-item:last-child {
  border-bottom: none;
}

.spotify-search-item:hover {
  background: #d4edda;
}

.spotify-search-item-art {
  width: 28px;
  height: 28px;
  background: #ddd;
  flex-shrink: 0;
}

.spotify-search-item-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotify-search-item-info {
  flex: 1;
  min-width: 0;
}

.spotify-search-item-name {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-search-item-artist {
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-search-item-add {
  color: #1DB954;
  font-size: 14px;
  font-weight: bold;
}

/* Toast notification for queue add */
.spotify-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1DB954;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-family: 'Chicago_12', 'Chicago', monospace;
  font-size: 12px;
  z-index: 10000;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ===========================================
   LIVE DATA WINDOW STYLES v2.0
   Luke Status - Tabbed Interface with Better Typography
   =========================================== */

.live-data-window {
  width: 420px;
  min-height: 500px;
  max-height: 80vh;
  top: 60px;
  left: 280px;
}

/* ===== Tab Bar ===== */
.livedata-tabs {
  display: flex;
  gap: 0;
  padding: 0 8px;
  background: linear-gradient(to bottom, #f0f0f0, #d8d8d8);
  border-bottom: 2px solid var(--mac-black);
}

.livedata-tab {
  flex: 1;
  padding: 10px 12px;
  font-size: 1.4rem;
  font-weight: bold;
  font-family: 'Chicago_12', 'Chicago', sans-serif;
  background: linear-gradient(to bottom, #e0e0e0, #c0c0c0);
  border: 1px solid var(--mac-black);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  margin-top: 4px;
  position: relative;
  top: 2px;
  transition: all 0.15s ease;
}

.livedata-tab:hover {
  background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
}

.livedata-tab.active {
  background: var(--mac-white);
  border-bottom: 2px solid var(--mac-white);
  top: 2px;
  z-index: 1;
}

/* ===== Status Bar ===== */
.livedata-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
  border-bottom: 1px solid #ccc;
  font-size: 1.3rem;
}

.livedata-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.livedata-status-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #666;
  font-size: 1.2rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
}

.live-data-window .status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.live-data-window .status-dot.online {
  background: #00c853;
  box-shadow: 0 0 6px #00c853;
}

.live-data-window .status-dot.offline {
  background: #888;
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== Tab Content Container ===== */
.livedata-content {
  padding: 16px !important;
  overflow-y: auto;
  max-height: calc(80vh - 120px);
}

.livedata-tab-content {
  display: none;
}

.livedata-tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Watch Hero Section ===== */
.ld-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  background: linear-gradient(135deg, #ff2d55 0%, #ff6b35 100%);
  border: 2px solid var(--mac-black);
  border-radius: 8px;
  margin-bottom: 16px;
  position: relative;
}

.ld-hero-left {
  flex: 1;
}

.ld-hero-hr {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ld-hero-hr-icon {
  font-size: 2.8rem;
  animation: pulse-heart 1s ease-in-out infinite;
}

.ld-hero-hr-value {
  font-size: 5rem;
  font-weight: bold;
  color: white;
  font-family: 'Chicago_12', 'Chicago', monospace;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  line-height: 1;
}

.ld-hero-hr-unit {
  font-size: 1.8rem;
  color: rgba(255,255,255,0.8);
  font-weight: bold;
}

.ld-hero-resting {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
}

.ld-hero-right {
  text-align: right;
}

.ld-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,255,0,0.2);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #00ff00;
  margin-bottom: 8px;
}

.ld-hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff00;
  animation: pulse-dot 1s ease-in-out infinite;
  box-shadow: 0 0 6px #00ff00;
}

.ld-hero-watch-info {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

.ld-hero-session {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px 8px 0 0;
}

.ld-session-badge {
  font-size: 1.1rem;
  font-weight: bold;
  color: #00ff00;
  text-shadow: 0 0 4px #00ff00;
  letter-spacing: 0.1em;
  animation: pulse-text 1.5s ease-in-out infinite;
}

.ld-session-duration {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
  font-family: 'Chicago_12', 'Chicago', monospace;
}

@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ===== Quick Stats Grid (Overview Tab) ===== */
.ld-quick-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.ld-stat-card {
  background: linear-gradient(to bottom, #fafafa, #f0f0f0);
  border: 2px solid var(--mac-black);
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
  position: relative;
}

.ld-stat-icon {
  font-size: 2rem;
  margin-bottom: 4px;
}

.ld-stat-value {
  font-size: 2.4rem;
  font-weight: bold;
  font-family: 'Chicago_12', 'Chicago', monospace;
  line-height: 1.1;
  color: var(--mac-black);
}

.ld-stat-label {
  font-size: 1.3rem;
  color: #666;
  margin-top: 2px;
}

.ld-stat-source {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.ld-stat-source.watch {
  background: linear-gradient(135deg, #ff9500, #ff6b00);
  color: white;
}

.ld-stat-source.phone {
  background: linear-gradient(135deg, #007aff, #0055cc);
  color: white;
}

.ld-goal {
  font-size: 0.7em;
  color: #888;
  font-weight: normal;
}

/* ===== Activity Rings Section ===== */
.ld-rings-section {
  margin-bottom: 16px;
}

.ld-section-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  padding-left: 4px;
  border-left: 4px solid var(--mac-black);
}

.ld-rings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ld-ring-item {
  text-align: center;
  padding: 12px 8px;
  border-radius: 8px;
  border: 2px solid var(--mac-black);
}

.ld-ring-move { background: linear-gradient(to bottom, #ffecec, #ffd6d6); }
.ld-ring-exercise { background: linear-gradient(to bottom, #ecffec, #d6ffd6); }
.ld-ring-stand { background: linear-gradient(to bottom, #ecf4ff, #d6e8ff); }

.ld-ring-value {
  font-size: 2.2rem;
  font-weight: bold;
  font-family: 'Chicago_12', 'Chicago', monospace;
  line-height: 1;
}

.ld-ring-goal {
  font-size: 1.1rem;
  color: #666;
  margin-top: 2px;
}

.ld-ring-label {
  font-size: 1.1rem;
  font-weight: bold;
  color: #444;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* ===== Activity Bar ===== */
.ld-activity-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
  border: 1px solid var(--mac-black);
  border-radius: 6px;
  font-size: 1.4rem;
}

.ld-activity-icon {
  font-size: 1.8rem;
}

.ld-activity-text {
  font-weight: bold;
  text-transform: uppercase;
  flex: 1;
}

.ld-activity-network {
  font-size: 1.4rem;
}

.ld-activity-network-text {
  color: #666;
}

/* ===== Cards (Health/Device/Context Tabs) ===== */
.ld-card {
  background: var(--mac-white);
  border: 2px solid var(--mac-black);
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
}

.ld-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
  border-bottom: 1px solid var(--mac-black);
}

.ld-card-title {
  font-size: 1.6rem;
  font-weight: bold;
}

.ld-card-badge {
  font-size: 1.1rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.ld-card-badge.watch {
  background: linear-gradient(135deg, #ff9500, #ff6b00);
  color: white;
}

.ld-card-badge.phone {
  background: linear-gradient(135deg, #007aff, #0055cc);
  color: white;
}

.ld-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 12px;
  gap: 0;
}

.ld-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
}

.ld-card-item:nth-child(odd) {
  border-right: 1px solid #eee;
}

.ld-card-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.ld-item-label {
  font-size: 1.3rem;
  color: #666;
}

.ld-item-value {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: 'Chicago_12', 'Chicago', monospace;
  text-align: right;
}

.ld-subtext {
  font-size: 0.85em;
  color: #888;
  font-weight: normal;
}

/* ===== Sensor Rows ===== */
.ld-sensor-rows {
  padding: 8px 12px;
  background: #f5f5f5;
  border-top: 1px solid #ddd;
  font-family: 'Chicago_12', 'Chicago', monospace;
}

.ld-sensor-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 1.3rem;
}

.ld-sensor-label {
  font-weight: bold;
  color: #555;
}

.ld-sensor-value {
  color: #333;
  letter-spacing: -0.3px;
}

/* ===== Weather Card ===== */
.ld-weather-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(to bottom, #e8f4ff, #d0e8ff);
}

.ld-weather-icon {
  font-size: 3.5rem;
}

.ld-weather-temp {
  text-align: left;
}

.ld-weather-value {
  font-size: 3rem;
  font-weight: bold;
  font-family: 'Chicago_12', 'Chicago', monospace;
  line-height: 1;
}

.ld-weather-condition {
  font-size: 1.4rem;
  color: #555;
  text-transform: capitalize;
}

.ld-weather-feels {
  text-align: center;
  font-size: 1.3rem;
  color: #666;
  padding: 6px;
  background: rgba(0,0,0,0.03);
}

/* ===== Now Playing ===== */
.ld-nowplaying {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(to bottom, #fff0f5, #ffe8ef);
}

.ld-nowplaying-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.ld-nowplaying-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.ld-nowplaying-song {
  font-size: 1.5rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ld-nowplaying-artist {
  font-size: 1.3rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Workout Stats ===== */
.ld-workout-stats {
  margin-top: 10px;
  padding: 10px;
  background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
  border-radius: 6px;
}

.ld-workout-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
  text-align: center;
  margin-bottom: 8px;
}

.ld-workout-stats .ld-card-grid {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 8px;
}

.ld-workout-stats .ld-card-item {
  border-color: rgba(255,255,255,0.2);
}

.ld-workout-stats .ld-item-label {
  color: rgba(255,255,255,0.8);
}

.ld-workout-stats .ld-item-value {
  color: white;
}

/* ===== Warning States ===== */
.ld-item-value.warning {
  color: #ff3b30;
}

#ld-noise-warning {
  color: #ff3b30;
  margin-left: 4px;
}

/* ===== Offline State ===== */
.livedata-offline .ld-stat-value,
.livedata-offline .ld-item-value {
  color: #999;
}

/* ===== Heartbeat Animation ===== */
.ld-stat-value.heartbeat {
  animation: heartbeat 1s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}


/* ============================================
   LUKENTOSH DESKTOP WIDGETS
   Live data widgets that make the OS feel alive
   ============================================ */

/* Widget Container Positioning */
.desktop-widget {
  position: absolute;
  background: var(--mac-white);
  border: 2px solid var(--mac-black);
  box-shadow: 3px 3px 0 var(--mac-black);
  font-family: 'Chicago_12', 'Chicago', sans-serif;
  z-index: 5;
  cursor: default;
  user-select: none;
}

/* Heart Rate Widget - Top Left */
.widget-heart {
  top: 60px;
  left: 20px;
  width: 100px;
  padding: 12px;
  text-align: center;
  background: linear-gradient(135deg, #fff5f5, #ffe0e0);
}

.widget-heart .widget-icon {
  font-size: 2.4rem;
  animation: widget-heartbeat 1s ease-in-out infinite;
}

.widget-heart .widget-value {
  font-size: 3.2rem;
  font-weight: bold;
  line-height: 1;
  margin: 4px 0;
  color: #ff2d55 !important;
  font-family: 'Chicago_12', 'Chicago', monospace;
}

.widget-heart .widget-label {
  font-size: 1.2rem;
  color: #666 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.widget-heart .widget-source {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 1rem;
  opacity: 0.6;
}

@keyframes widget-heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

/* Activity Widget - Below Heart */
.widget-activity {
  top: 195px;
  left: 20px;
  width: 100px;
  padding: 10px;
  text-align: center;
  background: linear-gradient(135deg, #f0fff0, #d0ffd0);
}

.widget-activity-icon {
  font-size: 2.4rem;
  margin-bottom: 4px;
}

.widget-activity-text {
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #228b22 !important;
}

.widget-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--mac-black) !important;
}

.widget-steps-icon {
  font-size: 1.2rem;
}

/* Battery Widget - Below Activity */
.widget-battery {
  top: 310px;
  left: 20px;
  width: 100px;
  padding: 10px;
  background: linear-gradient(135deg, #f5f5ff, #e0e0ff);
}

.widget-battery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 1.4rem;
}

.widget-battery-row:first-child {
  border-bottom: 1px dotted #999;
  padding-bottom: 6px;
  margin-bottom: 2px;
}

.widget-battery-icon {
  font-size: 1.4rem;
}

.widget-battery-value {
  font-weight: bold;
  font-family: 'Chicago_12', 'Chicago', monospace;
  color: var(--mac-black) !important;
}

/* Now Playing Mini Widget - Bottom Left */
.widget-nowplaying {
  bottom: 80px;
  left: 20px;
  width: 160px;
  padding: 10px;
  display: none; /* Hidden by default, shown when music plays */
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fff5f8, #ffe0eb);
}

.widget-nowplaying.visible {
  display: flex;
}

.widget-np-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.widget-np-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.widget-np-song {
  font-size: 1.2rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--mac-black) !important;
}

.widget-np-artist {
  font-size: 1.1rem;
  color: #666 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Widget Live Indicator */
.widget-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00c853;
  animation: widget-pulse 1.5s infinite;
  margin-left: 4px;
  vertical-align: middle;
}

@keyframes widget-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px #00c853; }
  50% { opacity: 0.4; box-shadow: none; }
}

/* Widget hover effect */
.desktop-widget:hover {
  box-shadow: 4px 4px 0 var(--mac-black);
}

/* Widget offline state */
.desktop-widget.offline {
  opacity: 0.5;
  filter: grayscale(50%);
}

.desktop-widget.offline .widget-value,
.desktop-widget.offline .widget-battery-value {
  color: #999 !important;
}

/* Desktop Watermark/Branding */
.desktop-watermark {
  position: absolute;
  bottom: 20px;
  right: 20px;
  text-align: right;
  font-family: 'Chicago_12', 'Chicago', sans-serif;
  color: var(--mac-black) !important;
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

.watermark-text {
  display: block;
  font-size: 1.6rem;
  font-weight: bold;
}

.watermark-version {
  display: block;
  font-size: 1.2rem;
}

/* Responsive: Hide widgets on small screens */
@media (max-width: 900px) {
  .desktop-widget {
    display: none !important;
  }
  
  .desktop-watermark {
    display: none;
  }
}



/* ═══════════════════════════════════════════════════
   POV WINDOW - Luke's View from Meta Glasses
   ═══════════════════════════════════════════════════ */

.pov-window {
  width: 400px;
  min-width: 300px;
  max-width: 90vw;
}

.pov-content {
  padding: 0;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
}

.pov-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 60vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#pov-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.pov-no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
  text-align: center;
  padding: 2rem;
  font-family: 'Chicago_12', 'Chicago', sans-serif;
}

.pov-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.pov-hint {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}

.pov-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--mac-white);
  border-top: 1px solid var(--mac-black);
  font-family: 'Chicago_12', 'Chicago', sans-serif;
  font-size: 1rem;
  color: var(--mac-black);
}

.pov-timestamp {
  color: #666;
}

.pov-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pov-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #999;
}

.pov-status-dot.pov-status-live {
  background: #00c853;
  animation: pov-pulse 1.5s infinite;
}

.pov-status-dot.pov-status-recent {
  background: #ffab00;
}

.pov-status-dot.pov-status-old {
  background: #666;
}

.pov-status-dot.pov-status-offline {
  background: #999;
}

.pov-status-dot.pov-status-checking {
  background: #2196f3;
  animation: pov-pulse 0.5s infinite;
}

.pov-status-dot.pov-status-error {
  background: #f44336;
}

@keyframes pov-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px currentColor; }
  50% { opacity: 0.4; box-shadow: none; }
}

.pov-status-text {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
