/* ================================
   Homepage — "Landon's Day 98" retro desktop.
   Loaded only on the homepage (without styles.css, so none of the
   shared streaming-site styling leaks in). Everything is built from
   the classic grey 3D bevels: raised for buttons/windows, sunken
   for fields/lists.
   ================================ */

/* Comic Sans stand-in for the sticky note (iPhones don't ship Comic
   Sans and would otherwise fall back to a fancy script font). */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

:root {
  --face: #c0c0c0;
  --face-light: #dfdfdf;
  --shadow: #808080;
  --dark: #0a0a0a;
  --title: #000080;
  --title-end: #1084d0;
  --title-off: #808080;
  --title-off-end: #b5b5b5;
  --select: #000080;
  --teal: #008080;
  --taskbar-h: 32px;

  --bevel-out: inset -1px -1px var(--dark), inset 1px 1px #fff, inset -2px -2px var(--shadow), inset 2px 2px var(--face-light);
  --bevel-in: inset -1px -1px #fff, inset 1px 1px var(--shadow), inset -2px -2px var(--face-light), inset 2px 2px var(--dark);
  --bevel-pressed: inset -1px -1px #fff, inset 1px 1px var(--dark), inset -2px -2px var(--face-light), inset 2px 2px var(--shadow);
  --bevel-thin-in: inset -1px -1px #fff, inset 1px 1px var(--shadow);

  --clouds:
    radial-gradient(ellipse 22% 9% at 18% 22%, rgba(255, 255, 255, 0.95), transparent 70%),
    radial-gradient(ellipse 16% 7% at 30% 26%, rgba(255, 255, 255, 0.8), transparent 70%),
    radial-gradient(ellipse 24% 8% at 72% 16%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(ellipse 30% 11% at 58% 58%, rgba(255, 255, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 20% 8% at 84% 70%, rgba(255, 255, 255, 0.8), transparent 70%),
    radial-gradient(ellipse 26% 10% at 14% 80%, rgba(255, 255, 255, 0.85), transparent 70%),
    linear-gradient(#2b64c8, #6fa4e8 55%, #b7d4f4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: Tahoma, 'MS Sans Serif', Geneva, Verdana, sans-serif;
  font-size: 12px;
  color: #000;
  background: var(--teal);
  -webkit-font-smoothing: none;
}

button, input, select, textarea { font: inherit; color: inherit; }

a { color: #0000ee; }

/* ---- Shared 98 pieces ---- */
.btn {
  min-width: 75px;
  min-height: 23px;
  padding: 3px 12px;
  background: var(--face);
  border: none;
  border-radius: 0;
  box-shadow: var(--bevel-out);
  cursor: pointer;
  text-decoration: none;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.btn:active { box-shadow: var(--bevel-pressed); padding: 4px 11px 2px 13px; }
.btn:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
.btn.default { box-shadow: 0 0 0 1px #000, var(--bevel-out); }
.btn[disabled] { color: var(--shadow); text-shadow: 1px 1px #fff; cursor: default; }

.field {
  background: #fff;
  box-shadow: var(--bevel-in);
  padding: 3px 5px;
  min-height: 21px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sep { height: 0; border-top: 1px solid var(--shadow); border-bottom: 1px solid #fff; margin: 3px 2px; }

/* ---- Desktop ---- */
.desktop {
  position: fixed;
  inset: 0 0 var(--taskbar-h) 0;
  background: var(--teal);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.icons {
  position: absolute;
  top: 8px;
  left: 8px;
  bottom: 8px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 76px);
  grid-auto-columns: 78px;
  gap: 6px 4px;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 2px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  text-align: center;
}

.icon svg { width: 36px; height: 36px; flex: none; }

.icon span {
  padding: 1px 2px;
  line-height: 1.2;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.85);
  border: 1px dotted transparent;
}

.icon.selected svg { filter: brightness(0.65) sepia(1) hue-rotate(190deg) saturate(4); }
.icon.selected span { background: var(--select); text-shadow: none; border-color: #ff0; }
.icon:focus-visible { outline: none; }
.icon:focus-visible span { border-color: #fff; }

/* ---- "Landon's Day 98" logo wallpaper: faint embossed sun + wordmark
   printed on the desktop, like an old PC maker's branded background. */
.desktop-logo {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  user-select: none;
}

.desktop.show-logo .desktop-logo { display: flex; }

.desktop-logo svg { width: 150px; height: 150px; opacity: 0.35; }

.desktop-logo .wordmark {
  font-family: 'Trebuchet MS', Tahoma, sans-serif;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: bold;
  font-style: italic;
  color: rgba(255, 255, 255, 0.16);
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.12), 1px 1px 0 rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.desktop-logo .wordmark sup { color: rgba(255, 216, 58, 0.45); font-size: 0.45em; margin-left: 6px; }

.desktop-logo .tagline {
  color: rgba(255, 255, 255, 0.28);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---- Desktop widgets ("Active Desktop") ----
   A right-hand column that wraps into extra columns (leftwards) when
   the screen isn't tall enough for all of them. */
.widgets {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap-reverse;
  align-content: flex-start;
  gap: 14px;
  z-index: 1;
}

.widget {
  width: 260px;
  background: var(--face);
  box-shadow: var(--bevel-out), 3px 3px 0 rgba(0, 0, 0, 0.25);
  padding: 3px;
  cursor: pointer;
}

.widget-title {
  height: 16px;
  padding: 1px 4px;
  background: linear-gradient(90deg, var(--title), var(--title-end));
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.widget-title svg { width: 12px; height: 12px; }

/* Sticky note: no frame, just a yellow square slapped on the screen */
.sticky {
  width: 220px;
  padding: 12px 14px 14px;
  background: linear-gradient(#fff59d, #ffec6e);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.25);
  transform: rotate(-2deg);
  font-family: 'Comic Sans MS', 'Comic Neue', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  cursor: default;
}

.sticky b { display: block; font-size: 15px; margin-bottom: 2px; }
.sticky .done { text-decoration: line-through; color: #777; }

/* Rosie photo frame */
.frame-photo {
  position: relative;
  height: 190px;
  background: #000;
  box-shadow: var(--bevel-in);
  overflow: hidden;
}

.frame-photo img {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.frame-photo img.on { opacity: 1; }

.frame-caption {
  padding: 4px 3px 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Now Playing: a Winamp-ish LCD */
.lcd {
  background: #000;
  color: #3cff3c;
  font-family: 'Lucida Console', 'Courier New', monospace;
  font-size: 12px;
  padding: 6px 8px;
  box-shadow: var(--bevel-in);
  overflow: hidden;
}

.lcd-scroll { white-space: nowrap; display: inline-block; padding-left: 100%; animation: lcdScroll 12s linear infinite; }

@keyframes lcdScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.lcd-row { display: flex; justify-content: space-between; margin-top: 4px; color: #1fbf1f; font-size: 11px; }

.np-art { display: block; width: 100%; height: 72px; object-fit: cover; margin-top: 3px; box-shadow: var(--bevel-in); }

.np-bar { height: 8px; margin: 5px 0 4px; box-shadow: var(--bevel-in); background: #fff; }
.np-bar span { display: block; height: 100%; background: var(--title); }

.np-controls { display: flex; gap: 3px; }
.np-controls .btn { min-width: 0; flex: 1; padding: 1px 0; min-height: 20px; font-size: 11px; }

/* What's New list */
.news { background: #fff; box-shadow: var(--bevel-in); padding: 3px; }

.news-item {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding: 4px 3px;
  line-height: 1.3;
}

.news-item + .news-item { border-top: 1px dotted #bbb; }
.news-item:hover { background: var(--select); color: #fff; }
.news-item:hover small { color: #cfd8ff; }
.news-item svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.news-item small { display: block; color: #666; }

/* ---- Windows ---- */
.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  min-height: 120px;
  padding: 3px;
  background: var(--face);
  box-shadow: var(--bevel-out), 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.win.min { display: none; }

.win.max {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.win.opening { animation: winOpen 0.16s ease-out; }

@keyframes winOpen {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.win-title {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 2px 2px 2px 3px;
  background: linear-gradient(90deg, var(--title-off), var(--title-off-end));
  color: var(--face-light);
  font-weight: bold;
  user-select: none;
  touch-action: none;
  cursor: default;
}

.win.active .win-title {
  background: linear-gradient(90deg, var(--title), var(--title-end));
  color: #fff;
}

.win-title svg.app-icon { width: 16px; height: 16px; flex: none; }

.win-title-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.win-controls { display: flex; gap: 2px; }
.win-controls .wc + .wc.close { margin-left: 2px; }

.wc {
  width: 16px;
  height: 14px;
  padding: 0;
  background: var(--face);
  border: none;
  box-shadow: var(--bevel-out);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wc:active { box-shadow: var(--bevel-pressed); }
.wc svg { display: block; }

.win-menu {
  display: flex;
  gap: 2px;
  padding: 2px 0;
}

.win-menu span { padding: 1px 6px; }
.win-menu span::first-letter { text-decoration: underline; }

.win-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 2px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid var(--shadow);
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.win-toolbar .label { padding: 0 2px 0 4px; color: #222; }
.win-toolbar .field { flex: 1; min-width: 120px; }

.win-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  position: relative;
}

.win-body.sunken {
  background: #fff;
  box-shadow: var(--bevel-in);
  padding: 2px;
}

.win-status {
  display: flex;
  gap: 2px;
  margin-top: 3px;
}

.win-status span {
  flex: 1;
  padding: 2px 5px;
  box-shadow: var(--bevel-thin-in);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loading { padding: 12px; color: #444; }

/* ---- Explorer "large icons" view ---- */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px 6px;
  padding: 10px 6px;
}

.file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  color: #000;
  text-decoration: none;
  padding: 2px;
}

.file img {
  width: 64px;
  height: 96px;
  object-fit: cover;
  background: #eee;
  box-shadow: 1px 1px 0 #000;
}

.file .name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
  padding: 0 2px;
}

.file .meta { color: #555; font-size: 11px; }

.file:hover .name,
.file:focus-visible .name { background: var(--select); color: #fff; }
.file:focus-visible { outline: none; }

/* ---- Explorer "details" view ---- */
.details {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.details th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-weight: normal;
  padding: 2px 6px;
  background: var(--face);
  box-shadow: var(--bevel-out);
}

.details td { padding: 3px 6px; }
.details td.wrap { white-space: normal; min-width: 180px; }
.details tr.row { cursor: pointer; }
.details tr.row:hover td { background: var(--select); color: #fff; }
.details img.thumb { width: 60px; height: 28px; object-fit: cover; vertical-align: middle; margin-right: 6px; }
.details .num { text-align: right; }

/* ---- Notepad ---- */
.notepad {
  width: 100%;
  height: 100%;
  resize: none;
  border: none;
  outline: none;
  padding: 4px 6px;
  font-family: 'Lucida Console', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.45;
  background: #fff;
}

/* ---- Picture viewers ---- */
.viewer {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.caption-bar {
  padding: 6px 8px;
  margin-top: 3px;
  background: #ffffe1;
  box-shadow: var(--bevel-thin-in);
  line-height: 1.4;
  max-height: 72px;
  overflow: auto;
}

/* ---- Welcome ---- */
.welcome { display: flex; height: 100%; background: #fff; box-shadow: var(--bevel-in); }

.welcome-side {
  flex: 0 0 44px;
  background: linear-gradient(0deg, var(--title), var(--title-end));
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
}

.welcome-side span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.welcome-side b { color: #ffd83a; margin-top: 4px; }

.welcome-main { flex: 1; padding: 14px 16px; overflow: auto; }
.welcome-main h1 { margin: 0 0 8px; font-size: 20px; font-weight: normal; }
.welcome-main h1 b { color: var(--title); }
.welcome-main p { margin: 0 0 12px; line-height: 1.5; }

.welcome-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin-bottom: 12px; }
.welcome-links .btn { justify-content: flex-start; padding-left: 8px; }
.welcome-links svg { width: 20px; height: 20px; }

.tip { background: #ffffe1; border: 1px solid #000; padding: 6px 8px; line-height: 1.4; }

.win-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
  flex-wrap: wrap;
}

.win-footer label { margin-right: auto; display: flex; align-items: center; gap: 5px; }

/* ---- System Properties ---- */
.tabs { display: flex; padding-left: 4px; }

.tab {
  padding: 3px 10px;
  background: var(--face);
  box-shadow: inset 1px 1px #fff, inset -1px 0 var(--dark), inset -2px 0 var(--shadow);
  position: relative;
  top: 1px;
}

.tab.on { padding-bottom: 5px; top: 0; z-index: 1; }
.tab.off { color: #444; margin-top: 2px; }

.tab-page {
  flex: 1;
  padding: 14px;
  box-shadow: var(--bevel-out);
  display: flex;
  gap: 18px;
  overflow: auto;
}

.tab-page .logo svg { width: 96px; height: 96px; }
.tab-page dl { margin: 0; line-height: 1.5; }
.tab-page dt { margin-top: 10px; }
.tab-page dt:first-child { margin-top: 0; }
.tab-page dd { margin: 0 0 0 16px; }

/* ---- Display Properties ---- */
.display { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px; }

.monitor {
  width: 184px;
  padding: 10px 10px 18px;
  background: var(--face);
  box-shadow: var(--bevel-out);
  position: relative;
}

.monitor::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 70px;
  height: 12px;
  transform: translateX(-50%);
  background: var(--face);
  box-shadow: var(--bevel-out);
}

.monitor-screen { height: 110px; box-shadow: var(--bevel-in); background-size: cover; background-position: center; }

.display select { width: 100%; max-width: 280px; }

/* ---- Message box ---- */
.msg { display: flex; gap: 14px; align-items: flex-start; padding: 14px 10px 6px; line-height: 1.45; }
.msg svg { width: 34px; height: 34px; flex: none; }
.msg-buttons { display: flex; justify-content: center; gap: 8px; padding: 6px 0 4px; }

/* ---- Taskbar ---- */
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--taskbar-h);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 3px 2px;
  background: var(--face);
  box-shadow: inset 0 1px var(--face-light), inset 0 2px #fff;
}

.start-btn {
  height: 24px;
  padding: 0 8px 0 5px;
  font-weight: bold;
  min-width: 0;
}

.start-btn svg { width: 18px; height: 18px; }
.start-btn.open { box-shadow: var(--bevel-pressed); }

.task-buttons { flex: 1; min-width: 0; display: flex; gap: 3px; overflow: hidden; }

.task-btn {
  flex: 0 1 160px;
  min-width: 36px;
  height: 24px;
  justify-content: flex-start;
  padding: 0 6px;
  overflow: hidden;
}

.task-btn span { overflow: hidden; text-overflow: ellipsis; }
.task-btn svg { width: 16px; height: 16px; flex: none; }

.task-btn.active {
  box-shadow: var(--bevel-pressed);
  font-weight: bold;
  background-color: #e8e8e8;
  background-image: repeating-conic-gradient(#fff 0 25%, transparent 0 50%);
  background-size: 2px 2px;
}

.tray {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  box-shadow: var(--bevel-thin-in);
  white-space: nowrap;
}

.tray svg { width: 16px; height: 16px; cursor: pointer; }

/* ---- Start menu & context menu ---- */
.menu {
  position: fixed;
  z-index: 100001;
  background: var(--face);
  box-shadow: var(--bevel-out), 2px 2px 0 rgba(0, 0, 0, 0.3);
  padding: 3px;
}

.menu[hidden] { display: none; }

.start-menu {
  left: 2px;
  bottom: calc(var(--taskbar-h) - 2px);
  display: flex;
  min-width: 230px;
}

.start-banner {
  width: 26px;
  background: linear-gradient(0deg, var(--title), var(--title-end));
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
}

.start-banner span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 17px;
  font-weight: bold;
  white-space: nowrap;
}

.start-banner b { color: #ffd83a; }

.menu-items { flex: 1; display: flex; flex-direction: column; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 18px 4px 6px;
  color: #000;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.start-menu .menu-item { padding: 5px 20px 5px 6px; }
.menu-item svg { width: 24px; height: 24px; flex: none; }
.context-menu .menu-item { padding: 3px 24px 3px 20px; }

.menu-item:hover,
.menu-item:focus-visible { background: var(--select); color: #fff; outline: none; }

/* ---- Rosie, the desktop pet ---- */
.pet {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 90000;
  width: 72px;
  height: 52px;
  cursor: pointer;
  will-change: transform;
}

.pet svg { position: absolute; inset: 0; display: block; }
.pet .frame-b { visibility: hidden; }
.pet.step .frame-a { visibility: hidden; }
.pet.step .frame-b { visibility: visible; }
.pet.flip svg { transform: scaleX(-1); }

.pet-bubble {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 90001;
  max-width: 190px;
  padding: 6px 8px;
  background: #ffffe1;
  border: 1px solid #000;
  line-height: 1.35;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.pet-bubble[hidden] { display: none; }

.pet-bubble::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -8px;
  border: 8px solid transparent;
  border-bottom: 0;
  border-top-color: #000;
}

/* ---- Boot & shutdown screens ---- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: var(--clouds);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.35s ease;
}

.boot[hidden] { display: none; }
.boot.done { opacity: 0; pointer-events: none; }
.boot svg { width: 84px; height: 84px; }

.boot-title {
  font-family: 'Trebuchet MS', Tahoma, sans-serif;
  font-size: clamp(34px, 8vw, 64px);
  font-weight: bold;
  font-style: italic;
  text-shadow: 2px 2px 0 rgba(0, 0, 60, 0.45);
}

.boot-title sup { color: #ffd83a; font-size: 0.5em; margin-left: 4px; }

.boot-bar {
  width: min(320px, 70vw);
  height: 10px;
  margin-top: 26px;
  background: rgba(0, 0, 60, 0.35);
  overflow: hidden;
}

.boot-bar::before {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: repeating-linear-gradient(90deg, #ffd83a 0 10px, #e08a3c 10px 20px);
  animation: bootSlide 1.1s linear infinite;
}

@keyframes bootSlide {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}

.boot-note { font-size: 12px; opacity: 0.85; }

.shutdown {
  position: fixed;
  inset: 0;
  z-index: 200001;
  background: #000;
  color: #e08a3c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 20px;
  font-size: clamp(20px, 4vw, 32px);
  cursor: pointer;
}

.shutdown[hidden] { display: none; }
.shutdown small { color: #666; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .win.opening { animation: none; }
  .boot-bar::before { animation: none; width: 100%; }
}

/* Short phones: drop the sun so the wordmark still fits the gap */
@media (max-width: 700px) and (max-height: 720px) {
  .desktop-logo svg { display: none; }
}

/* ---- Phones: windows go full-screen, icons become a tap grid ---- */
@media (max-width: 700px) {
  body { font-size: 13px; }

  .icons {
    right: 8px;
    bottom: auto;
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    gap: 14px 4px;
  }

  .icon svg { width: 42px; height: 42px; }

  /* Full-screen windows leave nowhere to walk, so Rosie goes behind
     them instead of covering their text. */
  .pet, .pet-bubble { z-index: 5; }

  /* Phones: only the sticky note and Rosie's frame, side by side
     under the icon grid. */
  .widgets {
    top: auto;
    left: 12px;
    bottom: 70px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
  }

  .widget, .sticky { width: auto; flex: 1; min-width: 0; }
  .sticky { font-size: 12px; padding: 10px; }
  .widget.np, .widget.whats-new { display: none; }
  .frame-photo { height: 130px; }

  /* Smaller logo, centered in the band between the icon grid (ends
     ~260px down) and the widgets (bottom ~250px of the screen). */
  .desktop-logo { top: 262px; bottom: 250px; gap: 2px; }
  .desktop-logo svg { width: 64px; height: 64px; }
  .desktop-logo .wordmark { font-size: 38px; }
  .desktop-logo .tagline { font-size: 10px; letter-spacing: 0.15em; }

  .win {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .win-controls .wc.max { display: none; }
  .wc { width: 22px; height: 20px; }
  .win-title { height: 26px; }

  .task-btn { flex-basis: 110px; }
  .task-btn span { display: none; }
  .task-btn { flex: 0 0 36px; justify-content: center; }

  .tab-page { flex-direction: column; gap: 8px; }
  .tab-page .logo svg { width: 64px; height: 64px; }
}
