* { box-sizing: border-box; }
:root { font-family: Tahoma, "Trebuchet MS", Arial, sans-serif; color: #141414; font-synthesis: none; }
body { margin: 0; background: #488ccc url("assets/bliss.png") center center / cover no-repeat fixed; }
.logged-out .desktop, .logged-out .taskbar { visibility: hidden; }
.xp-login { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-rows: 15% 1fr 15%; min-height: 100svh; background: #5b7fdb; color: white; }
.xp-login[hidden] { display: none; }
.login-top { background: #08349f; border-bottom: 2px solid #b2c4f6; }
.login-main { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: radial-gradient(ellipse at 15% 0%, #91a8ee, transparent 55%); }
.login-brand { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: 55px 55px 55px 25px; min-height: 330px; position: relative; }
.login-brand::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, #d3dfff 30%, #d3dfff 70%, transparent); }
.login-wordmark { display: flex; align-items: center; gap: 17px; font-family: "Trebuchet MS", Arial, sans-serif; text-shadow: 1px 2px 2px #355da6; }
.microsoft-word { display: block; font: 15px Arial, sans-serif; margin: 0 0 -4px 3px; }
.windows-word { display: block; font-size: 48px; font-weight: 600; letter-spacing: -2px; line-height: 1.2; }
.xp-word { display: inline-block; vertical-align: top; margin: 1px 0 0 3px; color: #ff9d33; font-size: 28px; letter-spacing: -1px; font-weight: 700; }
.login-brand p { margin: 25px 0 0; font-size: 18px; text-shadow: 1px 1px #4166af; }
.login-flag { display: grid; grid-template-columns: 31px 31px; grid-template-rows: 29px 29px; gap: 4px; transform: perspective(180px) rotateY(-18deg) skewY(-10deg) rotate(5deg); filter: drop-shadow(2px 3px 2px #234e9266); }
.login-flag i { background: linear-gradient(120deg, #ffbd43, #e6421c); }
.login-flag i:nth-child(2) { background: linear-gradient(120deg, #c1e637, #4b9d23); }
.login-flag i:nth-child(3) { background: linear-gradient(120deg, #67c7fa, #217ac8); }
.login-flag i:nth-child(4) { background: linear-gradient(120deg, #fff5a1, #f6b920); }
.login-users { padding: 30px 35px; }
.login-user { display: flex; align-items: center; gap: 17px; width: min(380px, 100%); padding: 11px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: white; cursor: pointer; text-align: left; }
.login-user:hover, .login-user:focus-visible { border-color: #c1d0f3; background: linear-gradient(90deg, #2149aa99, #3566cb33); outline: none; }
.user-avatar { flex: 0 0 78px; height: 78px; padding: 2px; border: 2px solid #fff2bf; border-radius: 6px; background: white; box-shadow: 1px 2px 4px #234c9266; overflow: hidden; }
.user-avatar img { display: block; width: 100%; height: 100%; border-radius: 2px; }
.user-details { display: flex; flex-direction: column; gap: 8px; }
.user-name { font-size: 23px; text-shadow: 1px 2px #355aa5; }
.user-hint { font-size: 11px; color: #e5edff; }
.login-arrow { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; border: 1px solid white; border-radius: 5px; background: linear-gradient(135deg, #a3e487, #3d9b30 60%, #1a6c20); box-shadow: inset 1px 1px #d3f2bc; font-size: 20px; }
.login-user:active { transform: translateY(1px); }
.login-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 5%; border-top: 2px solid #f4b977; background: #08349f; font-size: 12px; }
@media (max-width: 700px) {
  .xp-login { grid-template-rows: 11% 1fr 12%; }
  .login-main { grid-template-columns: 1fr; align-content: center; }
  .login-brand { justify-self: center; align-items: center; min-height: 0; padding: 15px 15px 30px; }
  .login-brand::after { width: 80%; height: 1px; left: 10%; top: auto; background: linear-gradient(90deg, transparent, #d3dfff, transparent); }
  .windows-word { font-size: 39px; }
  .login-brand p { font-size: 15px; margin-top: 20px; }
  .login-users { padding: 22px 18px; }
  .login-user { margin-inline: auto; width: min(330px, 100%); }
  .user-name { font-size: 20px; }
  .login-bottom { font-size: 10px; padding-inline: 20px; }
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.desktop { min-height: calc(100svh - 34px); display: grid; place-items: center; padding: 28px 18px; position: relative; isolation: isolate; }
#macfolio-window { position: relative; z-index: 10; }
.intro-running #macfolio-window { visibility: hidden; opacity: 0; transform: scale(.96); }
#macfolio-window.reminder-reveal { animation: reminder-reveal 120ms cubic-bezier(.215, .61, .355, 1) both; }
@keyframes reminder-reveal {
  from { opacity: 0; transform: scale(.99) translateY(3px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.warning-windows { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.window.virus-warning { position: absolute; width: 296px; max-width: calc(100% - 24px); pointer-events: auto; }
.virus-warning .window-body { min-height: 0; padding: 20px 18px 15px; align-items: stretch; }
.virus-warning .window-title { font-size: 12px; }
.warning-message { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; }
.warning-message p { margin: 0; font-size: 12px; line-height: 1.5; }
.warning-message strong { display: block; margin-bottom: 5px; font-weight: 700; }
.warning-icon { flex: 0 0 32px; height: 32px; display: grid; place-items: center; font: bold 26px Arial, sans-serif; }
.warning-icon.error { color: white; border-radius: 50%; border: 1px solid #9b140a; background: radial-gradient(circle at 30% 20%, #ff9782, #e73626 48%, #b71912); text-shadow: 1px 1px #8b120b; box-shadow: 1px 2px 2px #0003, inset 1px 1px 2px #fff9; }
.warning-icon.caution { color: #332800; background: linear-gradient(#fff7a0, #ffd12c); clip-path: polygon(50% 0, 100% 95%, 0 95%); padding-top: 5px; font-size: 24px; }
.warning-actions { display: flex; justify-content: center; gap: 8px; }
.warning-actions .xp-button { min-width: 78px; min-height: 26px; padding: 4px 12px; cursor: pointer; box-shadow: inset 0 0 0 1px white; }
/* Cascading stacks surround the main window as the desktop fills up. */
.window.virus-warning {
  width: 320px;
  left: var(--x);
  top: var(--y);
  animation: warning-appear 110ms cubic-bezier(.215, .61, .355, 1) both;
}
@keyframes warning-appear {
  from { opacity: 0; transform: translateY(2px) scale(.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.window.virus-warning.is-aside {
  animation: none;
  transform: translate(var(--aside-x, 0px), var(--aside-y, 0px)) rotate(var(--aside-tilt, 0deg));
  transition: transform 360ms cubic-bezier(.4, 0, .2, 1);
  transition-delay: var(--aside-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .window.virus-warning { animation: none; }
  .window.virus-warning.is-aside { transition: none; }
  #macfolio-window.reminder-reveal { animation: none; }
}
@media (max-width: 1050px) {
  .window.virus-warning { width: 285px; }
}
@media (max-width: 600px) {
  .window.virus-warning {
    width: 265px;
  }
  .virus-warning .window-body { padding: 12px; }
  .warning-message { margin-bottom: 10px; }
}
.window { width: min(510px, 100%); padding: 3px; border: 1px solid #003bba; border-radius: 9px 9px 0 0; background: #0055e5; box-shadow: 1px 2px 0 #001f93, inset 1px 0 0 #4087ff, 6px 9px 25px #0005; }
.window[hidden] { display: none; }
.title-bar { height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -2px -2px 0; padding: 2px 3px 3px 6px; border-radius: 8px 8px 0 0; background: linear-gradient(#4c99ff 0%, #1769f5 9%, #0055e5 22%, #0051dd 80%, #0042bc); box-shadow: inset 0 1px 0 #8cbcff; color: white; }
.window-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; text-shadow: 1px 1px #123b87; white-space: nowrap; }
.window-controls { display: flex; gap: 2px; }
.caption-button { width: 22px; height: 22px; position: relative; padding: 0; border: 1px solid white; border-radius: 3px; background: linear-gradient(135deg, #82b6ff, #246df0 45%, #0647ce); box-shadow: inset 1px 1px 1px #c3dcff, inset -1px -1px 1px #0038a0; cursor: pointer; }
.caption-button:hover { filter: brightness(1.15); }
.caption-button:active { filter: brightness(.85); }
.minimize::before { content: ""; position: absolute; width: 9px; height: 3px; background: white; left: 4px; bottom: 4px; }
.maximize::before { content: ""; position: absolute; width: 11px; height: 10px; border: 1px solid white; border-top-width: 3px; left: 4px; top: 4px; }
.close { background: linear-gradient(135deg, #f8b69f, #e86849 40%, #ca391d); box-shadow: inset 1px 1px 1px #ffd5c2, inset -1px -1px 1px #9e250a; }
.close::before, .close::after { content: ""; position: absolute; top: 9px; left: 4px; width: 13px; height: 2px; background: white; transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }
.window-body { background: #ece9d8; border: 1px solid #fff5; min-height: 218px; padding: 35px 32px 29px; display: flex; flex-direction: column; align-items: center; }
.message-row { width: 100%; display: flex; align-items: center; justify-content: center; gap: 23px; margin-bottom: 30px; }
.information-icon { flex: 0 0 36px; height: 36px; display: grid; place-items: center; color: white; font: bold 29px Georgia, serif; text-shadow: 1px 1px #003b9a; background: radial-gradient(circle at 30% 20%, #8edbff, #2786ed 40%, #0041b2 85%); border: 1px solid #003e9e; border-radius: 50%; box-shadow: 1px 2px 2px #0004, inset 1px 1px 2px #fff9; }
h1 { margin: 0; font-size: 23px; line-height: 1.4; font-weight: 400; letter-spacing: -.5px; }
.xp-button { min-width: 154px; min-height: 33px; padding: 7px 20px; text-align: center; border: 1px solid #003c74; border-radius: 3px; background: linear-gradient(#fff, #f3f2ea 58%, #e5e3d4); box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 3px #b7cce9; color: #111; font-size: 12px; text-decoration: none; }
.xp-button:hover { box-shadow: inset 0 0 0 1px white, inset 0 0 0 3px #f6c568; }
.xp-button:active { background: #dedccd; box-shadow: inset 1px 1px 2px #888; }
.retro-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; font-weight: 700; border-radius: 0; box-shadow: inset 2px 2px #fff, inset -2px -2px #969386, 2px 2px #535044; }
.retro-button::before { content: ""; position: absolute; inset: 4px; border: 1px dashed #003c74; pointer-events: none; animation: retro-blink 1.2s steps(2, end) infinite; }
.retro-arrow { font-size: 10px; color: #0047ba; animation: retro-blink 1.2s steps(2, end) infinite; }
@keyframes retro-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
.retro-button:hover { background: #fff4bf; box-shadow: inset 2px 2px #fff, inset -2px -2px #b79b51, 2px 2px #535044; }
.retro-button:active { transform: translate(2px, 2px); box-shadow: inset 2px 2px #969386, inset -2px -2px #fff; }
@media (prefers-reduced-motion: reduce) {
  .retro-button::before, .retro-arrow { animation: none; }
}
:focus-visible { outline: 1px dotted #111; outline-offset: -5px; }
.caption-button:focus-visible { outline-color: white; outline-offset: -4px; }
.taskbar { height: 34px; display: flex; position: fixed; z-index: 20; bottom: 0; width: 100%; background: linear-gradient(#3889f9, #1b61df 15%, #245edb 80%, #174ec0); box-shadow: inset 0 1px #62a4ff; }
.start-button { display: flex; align-items: center; gap: 7px; padding: 0 22px 2px 12px; border-radius: 0 12px 12px 0; background: linear-gradient(#73b574, #3c9a3d 16%, #328c33 70%, #287329); box-shadow: inset 0 2px 3px #b3e8b0, inset -2px 0 3px #195c21; color: white; font: italic bold 20px "Trebuchet MS", Arial, sans-serif; text-shadow: 1px 2px #234e23; text-decoration: none; }
.start-button:hover { filter: brightness(1.1); }
.flag { display: grid; grid-template-columns: 9px 9px; gap: 2px; transform: skewY(-9deg) rotate(6deg); filter: drop-shadow(1px 1px 1px #1238); }
.flag i { height: 9px; background: #ef5a35; }
.flag i:nth-child(2) { background: #7fc044; }
.flag i:nth-child(3) { background: #36a2ec; }
.flag i:nth-child(4) { background: #f9d34d; }
.task-list { flex: 1; padding: 3px 12px; min-width: 0; }
.task-button { height: 28px; width: 190px; max-width: 100%; display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap; border: 1px solid #1644a1; border-radius: 3px; background: #1951b9; color: white; padding: 0 8px; font-size: 11px; text-align: left; box-shadow: inset 1px 1px 2px #12377e, 1px 1px #4c8ff4; cursor: pointer; }
.task-button:hover { background: #286bd2; }
.system-tray { display: flex; align-items: center; gap: 11px; padding: 0 15px 0 12px; border-left: 1px solid #0955b1; box-shadow: inset 1px 1px #5ed0f4; background: linear-gradient(#1bb0f4, #1296e5 18%, #0b92df); color: white; font-size: 11px; white-space: nowrap; }
.sound-toggle { display: flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 4px; border: 0; border-radius: 2px; background: transparent; color: white; font-size: 11px; cursor: pointer; }
.sound-toggle:hover { background: #ffffff20; }
.sound-toggle[hidden] { display: none; }
.sound-toggle:focus-visible { outline-color: white; }
.window.is-maximized { width: min(900px, 100%); }
.window.is-maximized .window-body { min-height: 380px; justify-content: center; }
@media (max-width: 520px) { .window-body { padding: 30px 20px 26px; } .message-row { gap: 16px; } h1 { font-size: 20px; } .desktop-break { display: none; } .system-tray { padding-inline: 9px; } .system-tray svg { display: none; } .task-list { padding-inline: 6px; } .task-button { font-size: 10px; } }
