:root {
  color-scheme: dark;
  font-family: "Courier New", Courier, monospace;
  background: #000;
  color: #dfdacd;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; }
body { min-height: 100svh; }
body[data-phase] {
  -webkit-user-select: none;
  user-select: none;
}
button { font: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 3px solid #ffe19a; outline-offset: 5px; }
[hidden] { display: none !important; }
.screen { position: fixed; inset: 0; min-height: 100svh; outline: none; }
.off-screen { background: #000; color: #d19549; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; padding: 24px; }
.no-script { position: fixed; z-index: 10; bottom: 0; width: 100%; padding: 16px; margin: 0; background: #222; color: #fff; text-align: center; }
.utility-button { min-height: 40px; padding: 8px 12px; color: #bcb6ad; background: #202027; border: 1px solid #56525a; font-size: 11px; }
.utility-button:hover { color: #fff3d9; border-color: #bcb6ad; }
.bios-screen { background: #000; color: #c7c9ce; padding: clamp(20px, 3vw, 50px); font-weight: bold; font-size: clamp(11px, 1.5vw, 21px); line-height: 1.45; }
.bios-copy { max-width: calc(100% - clamp(150px, 20vw, 320px)); }
.bios-copy p { margin: 0 0 .65em; }
.bios-heading { color: #e9ed00; }
.bios-processor { color: #9fa8b1; }
.bios-copy .bios-memory { margin: 1.4em 0; color: #eee; }
.bios-copy .bios-mount { margin-top: 5em; color: #63dfee; }
.bios-logo { position: absolute; top: 5%; right: 4%; width: clamp(120px, 13vw, 265px); height: auto; }
.bios-footer { position: absolute; left: 3vw; right: 3vw; bottom: max(64px, 6vh); display: flex; justify-content: space-between; gap: 20px; padding-bottom: 6px; border-bottom: 1px solid #273139; font-size: .85em; }
.startup-skip { position: absolute; left: 3vw; bottom: max(12px, env(safe-area-inset-bottom)); min-height: 40px; padding: 8px 0; border: 0; background: transparent; color: #e9ed00; font-size: .7em; letter-spacing: .08em; }
.splash-screen { background: #000; display: flex; align-items: center; justify-content: center; }
.startup-frame {
  width: min(100vw, calc(100svh * 4 / 3)); aspect-ratio: 4 / 3;
  flex-shrink: 0; display: flex; flex-direction: column; overflow: hidden;
}
/* Preserve Berry's 2559 × 1439 source. Frame its central 4:3 composition
   (x=320..2238, y=0..1399), trimming only extra sky and the gradient guide.
   The remaining space in the display is the live gradient ribbon. */
.startup-art-window { position: relative; width: 100%; aspect-ratio: 1919 / 1400; flex-shrink: 0; overflow: hidden; }
.startup-art { position: absolute; top: 0; left: -16.6753517457%; display: block; height: auto; width: 133.3507034914%; max-width: none; }
.art-fallback { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: #77acd3; text-align: center; font-family: Arial, sans-serif; font-size: clamp(40px, 9vw, 100px); color: #17293d; font-weight: bold; }
.art-fallback span { display: block; margin-top: 20px; font: 15px "Courier New", monospace; }
.loading-ribbon {
  width: 100%; flex: 1; min-height: 0;
  background: linear-gradient(90deg, #547eaa 0%, #88a4bf 25%, #bcc8d1 50%, #88a4bf 75%, #547eaa 100%);
  background-size: 200% 100%; animation: ribbon 3s linear infinite;
}
@keyframes ribbon { to { background-position: 200% 0; } }
.desktop-screen { background: #008080; color: #111; font-family: Arial, Helvetica, sans-serif; }
.desktop-wordmark { position: absolute; right: 7%; bottom: 15%; color: #006e6e; font-size: clamp(44px, 6vw, 84px); font-weight: 800; letter-spacing: -3px; user-select: none; }
.desktop-wordmark > span:first-child { display: block; font-size: .42em; font-weight: normal; letter-spacing: 0; margin-bottom: -.15em; }
.desktop-version { font-weight: 300; }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; padding: 3px 4px; background: #c0c0c0; border-top: 2px solid #fff; box-shadow: 0 -1px #808080; }
.start-button { height: 100%; padding: 0 7px; background: #c0c0c0; color: #111; border: 2px solid; border-color: #fff #404040 #404040 #fff; font: bold 13px Arial, sans-serif; display: flex; align-items: center; gap: 5px; }
.start-button > img { object-fit: contain; }
.start-button[aria-expanded="true"], .start-button:active { border-color: #404040 #fff #fff #404040; }
.taskbar-divider { align-self: stretch; border-left: 1px solid #808080; border-right: 1px solid #fff; }
.taskbar-space { flex: 1; }
.system-tray { align-self: stretch; display: flex; align-items: center; flex-shrink: 0; padding: 0 5px 0 1px; border: 1px solid; border-color: #808080 #fff #fff #808080; }
.mute-button { align-self: stretch; display: grid; place-items: center; width: 28px; padding: 0; background: transparent; color: #333; border: 0; }
.mute-button:hover { background: #ddd; }
.mute-button .sound-muted, .mute-button[aria-pressed="true"] .sound-waves { display: none; }
.mute-button[aria-pressed="true"] .sound-muted { display: block; }
.desktop-clock { min-width: 62px; padding: 0 3px; font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
body[data-phase="desktop"] button:focus-visible { outline: 1px dotted #111; outline-offset: -5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .bios-screen { padding: 20px 14px; font-size: clamp(10px, 2.55vw, 15px); }
  .bios-copy { max-width: 100%; padding-top: 100px; }
  .bios-logo { top: 20px; right: 18px; width: 120px; }
  .bios-copy .bios-mount { margin-top: 3em; }
  .bios-footer { flex-direction: column; gap: 4px; }
}
@media (max-height: 500px) {
  .bios-screen { font-size: clamp(10px, 1.5vw, 12px); padding: 15px; }
  .bios-copy { max-width: calc(100% - 135px); padding-top: 0; }
  .bios-logo { top: 15px; right: 18px; width: 110px; }
  .bios-copy .bios-mount { margin-top: 1.7em; }
}
@media (prefers-reduced-motion: reduce) {
  .loading-ribbon { animation: none; }
}
