/* ============================================================
   Small Or Large . a forgotten Aqua desktop with two fries on it
   ============================================================ */

:root {
  --aqua: #2A7FD4;
  --bar: rgba(246, 248, 252, .92);
  --win: #ECECEC;
  --win-line: #8A8A8A;
  --title-a: #F6F6F6;
  --title-b: #C9C9C9;
  --ink: #1A1A1A;
  --dim: #5A5A5A;
  --blue: #3B7DE0;
  --font: -apple-system, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Geneva, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #0A3D80; color: var(--ink);
  font-family: var(--font); font-size: 13px;
  -webkit-font-smoothing: antialiased;
  cursor: default; user-select: none;
}
img { display: block; -webkit-user-drag: none; }
button { font-family: inherit; }

.screen {
  position: fixed; inset: 0; overflow: hidden;
  background: url("/assets/wallpaper.webp") center center / cover no-repeat, #0A3D80;
}

/* ------------------------------------------------------------ menu bar */
.menubar {
  position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 900;
  display: flex; align-items: center; gap: 18px; padding: 0 12px;
  background: linear-gradient(180deg, #FDFDFD, #E4E4E4);
  border-bottom: 1px solid #A9A9A9;
  font-size: 13px;
}
.apple {
  width: 15px; height: 16px; display: inline-block;
  background: radial-gradient(circle at 60% 34%, #6E6E6E, #303030);
  -webkit-mask: radial-gradient(circle at 50% 62%, #000 42%, transparent 43%) center/100% 100% no-repeat;
  mask: radial-gradient(circle at 50% 62%, #000 42%, transparent 43%) center/100% 100% no-repeat;
  border-radius: 46% 46% 42% 42%;
}
.mb-app { font-weight: 700; }
.mb { border: 0; background: none; padding: 2px 6px; border-radius: 3px; font: inherit; cursor: pointer; }
.mb-menu { position: relative; display: inline-flex; }
.mb-menu.is-on .mb { background: #3B6EA5; color: #fff; }
.mb-drop {
  display: none; position: absolute; top: 22px; left: 0; z-index: 1000;
  min-width: 196px; padding: 4px; flex-direction: column;
  background: #F6F6F6; border: 1px solid #9A9A9A; border-radius: 0 0 5px 5px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}
.mb-menu.is-on .mb-drop { display: flex; }
.mb-drop button {
  border: 0; background: none; text-align: left; cursor: pointer;
  padding: 5px 10px; border-radius: 3px; font: inherit; color: #1A1A1A; white-space: nowrap;
}
.mb-drop button:hover { background: #3B6EA5; color: #fff; }
.mb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.mb-link {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: #17457F; text-decoration: none;
}
.mb-link:hover { text-decoration: underline; }
.mb-clock { color: #222; }

/* --------------------------------------------------------------- icons */
.icons { position: absolute; inset: 34px 0 96px 0; pointer-events: none; }
/* two real columns, so removing a file never shuffles the rest */
.icol {
  position: absolute; top: 0; display: flex; flex-direction: column;
  gap: 14px; pointer-events: auto;
}
.icol-l { left: 14px; }
.icol-r { right: 14px; }
.icol-m { right: 128px; }
.ic {
  width: 104px; border: 0; background: none; padding: 6px 4px; cursor: default;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .75);
  font-size: 11.5px; line-height: 1.15; text-align: center;
  border-radius: 5px; word-break: break-word;
}
.ic:hover { background: rgba(255, 255, 255, .16); }
.ic:active, .ic.is-sel { background: rgba(40, 110, 200, .55); }
.ic-hd {
  background: linear-gradient(180deg, #E9EDF2, #A9B2BC);
  border: 1px solid #7A828C; border-radius: 4px;
  box-shadow: inset 0 6px 8px rgba(255, 255, 255, .7);
}
.ic-folder {
  background: linear-gradient(180deg, #9CD2F5, #4E9FD8);
  border: 1px solid #3A7BAA; border-radius: 4px 4px 5px 5px;
  box-shadow: inset 0 5px 7px rgba(255, 255, 255, .6);
}
.ic-img { width: 48px; height: 48px; display: block; object-fit: contain; }
.ic img.ic-img { max-width: 48px; max-height: 48px; }
.ic img.ic-img { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.ic-hd {
  background: linear-gradient(180deg, #E9EDF2, #A9B2BC);
  border: 1px solid #7A828C; border-radius: 4px;
  box-shadow: inset 0 6px 8px rgba(255, 255, 255, .7);
}
.ic-folder {
  background: linear-gradient(180deg, #9CD2F5, #4E9FD8);
  border: 1px solid #3A7BAA; border-radius: 4px 4px 5px 5px;
  box-shadow: inset 0 5px 7px rgba(255, 255, 255, .6);
}
/* --------------------------------------------------------------- fries */
.fry {
  position: absolute; z-index: 400; cursor: grab;
  filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .35));
  transition: width .5s cubic-bezier(.2, .8, .3, 1), transform .35s ease;
  touch-action: none;
}
.fry:active { cursor: grabbing; }
.fry-large { width: 300px; left: 30%; top: 42%; }
.fry-small { width: 150px; left: 58%; top: 56%; }
.fry.is-float { animation: bob 6s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(-8px); } to { transform: translateY(10px); } }

/* -------------------------------------------------------------- windows */
.winlayer { position: absolute; inset: 0; }
.window {
  position: absolute; min-width: 220px;
  background: var(--win);
  border: 1px solid #6F6F6F; border-radius: 8px 8px 6px 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .42), 0 2px 5px rgba(0, 0, 0, .3);
  overflow: hidden;
}
.win-title {
  height: 24px; display: flex; align-items: center; gap: 8px; padding: 0 9px;
  background: linear-gradient(180deg, var(--title-a), var(--title-b));
  border-bottom: 1px solid #9A9A9A; cursor: grab;
}
.window.is-front .win-title { background: linear-gradient(180deg, #FDFDFD, #BEBEBE); }
.lights { display: flex; gap: 6px; }
.lt { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .35); }
.lt-r { background: radial-gradient(circle at 35% 30%, #FF9A93, #E0483C); cursor: pointer; }
.lt-y { background: radial-gradient(circle at 35% 30%, #FFD98A, #E0A32B); }
.lt-g { background: radial-gradient(circle at 35% 30%, #B8EE8A, #48A82F); }
.window:not(.is-front) .lt { background: #C6C6C6; }
.win-name { flex: 1; text-align: center; font-size: 12.5px; font-weight: 700; color: #3A3A3A; margin-right: 46px; }
.win-toolbar {
  height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 9px;
  background: linear-gradient(180deg, #F1F1F1, #DCDCDC); border-bottom: 1px solid #B4B4B4;
}
.tb-btn {
  width: 26px; height: 18px; border: 1px solid #9A9A9A; border-radius: 4px;
  background: linear-gradient(180deg, #FDFDFD, #DADADA); font-size: 10px; color: #555;
  display: grid; place-items: center; cursor: default;
}
.tb-search {
  margin-left: auto; height: 18px; width: 130px; border-radius: 9px;
  border: 1px solid #A6A6A6; background: #fff;
}
.win-body { padding: 10px; }
.win-body img { max-width: 100%; height: auto; border: 1px solid #B9B9B9; }

/* finder grid */
.finder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px; background: #fff; }
.fi { border: 0; background: none; padding: 6px; border-radius: 5px; cursor: default; display: grid; justify-items: center; gap: 6px; }
.fi:hover { background: #EDF3FB; }
.fi span.t { font-size: 11.5px; color: #333; }
.fi .thumb {
  width: 86px; height: 86px; border: 1px solid #B9B9B9; background: #F4F4F4;
  display: grid; place-items: center; padding: 4px;
}
.fi .thumb img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border: 0;
}
.fi .thumb.doc { background: linear-gradient(180deg, #FFFFFF, #E6E6E6); font-size: 10px; font-weight: 700; color: #8A8A8A; }

/* text window */
.note { background: #fff; padding: 14px 16px; font: 13px/1.55 var(--font); color: #222; }
.note h4 { margin: 0 0 8px; font-size: 13px; }
.note p { margin: 0 0 9px; }

/* quicktime */
.qt { background: #000; display: grid; place-items: center; height: 210px; color: #9BB0C8; font-size: 12px; text-align: center; padding: 16px; }
.qt-bar { height: 30px; background: linear-gradient(180deg, #EDEDED, #CFCFCF); border-top: 1px solid #A9A9A9; display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 11px; color: #444; }
.qt-track { flex: 1; height: 6px; border-radius: 3px; background: #B7B7B7; }

/* dialog */
.dialog { width: 330px; }
.dlg { padding: 18px 20px 16px; text-align: center; background: #ECECEC; }
.dlg h3 { margin: 0 0 16px; font-size: 15px; }
.dlg-row { display: flex; gap: 10px; justify-content: center; }
.btn {
  min-width: 104px; height: 30px; padding: 0 16px; border-radius: 15px; cursor: pointer;
  border: 1px solid #8E8E8E; background: linear-gradient(180deg, #FFFFFF, #E2E2E2);
  font: 13px var(--font); color: #1A1A1A;
}
.btn:active { background: linear-gradient(180deg, #E2E2E2, #FFFFFF); }
.btn-def {
  border-color: #2C63B8; color: #fff;
  background: linear-gradient(180deg, #86B6F2, #2E6FCB);
  box-shadow: 0 0 0 3px rgba(90, 150, 230, .35);
}
.alert { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 18px 20px 16px; background: #ECECEC; }
.alert .bang {
  width: 46px; height: 46px; border-radius: 6px;
  background: linear-gradient(180deg, #FFDE6A, #E9AE12);
  border: 1px solid #B78A10; display: grid; place-items: center;
  font-size: 26px; font-weight: 700; color: #4A3400;
}
.alert h3 { margin: 0 0 6px; font-size: 14px; }
.alert p { margin: 0 0 14px; font-size: 12.5px; color: var(--dim); }
.alert .dlg-row { justify-content: flex-end; }

/* ---------------------------------------------------------------- dock */
.dock {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 800;
  display: flex; align-items: flex-end; gap: 10px; padding: 9px 14px 11px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .5);
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(190, 214, 240, .5));
  backdrop-filter: blur(7px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.dk { border: 0; background: none; padding: 0; cursor: default; }
/* the one icon with no supplied art: the finder face, drawn */
.dk-finder {
  width: 50px; height: 50px; border-radius: 11px;
  background: linear-gradient(180deg, #7FC2F0 50%, #2F79BE 50%);
  border: 1px solid rgba(0, 0, 0, .3);
  box-shadow: inset 0 8px 10px rgba(255, 255, 255, .5), 0 3px 6px rgba(0, 0, 0, .3);
}
.dk-i {
  width: 50px; height: 50px; display: block; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .4));
  transition: transform .16s ease;
}
.dk:hover .dk-i { transform: translateY(-8px) scale(1.14); }
.dk-sep { width: 1px; height: 44px; background: rgba(0, 0, 0, .22); margin: 0 4px; }
#trash.is-hot .dk-i { transform: translateY(-8px) scale(1.2); box-shadow: 0 0 0 3px rgba(255, 255, 255, .7); }

/* ---------------------------------------------------------------- boot */
.boot {
  position: fixed; inset: 0; z-index: 1000; background: #0A3D80;
  display: grid; place-items: center; gap: 14px; align-content: center;
  color: #fff; transition: opacity .5s ease;
}
.boot p { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.boot span { display: block; width: 180px; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .25); overflow: hidden; position: relative; }
.boot span::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, #9FD0FF, #FFFFFF);
  animation: boot 1.1s ease-in-out infinite;
}
@keyframes boot { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.boot.is-done { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .ic { width: 86px; font-size: 10.5px; }
  .ic-img { width: 40px; height: 40px; }
  .fry-large { width: 200px; left: 18%; }
  .fry-small { width: 104px; left: 62%; }
  .dock { gap: 6px; padding: 6px 9px; }
  .dk-i { width: 40px; height: 40px; }
  .mb-menu { display: none; }
  .finder { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .fry.is-float { animation: none; }
  .boot span::after { animation: none; }
}

/* ============================================================
   the supplied aqua controls, used as the real buttons
   ============================================================ */
.imgbtn {
  border: 0; background: none; padding: 0; cursor: default;
  display: inline-block; line-height: 0;
  transition: transform .08s ease, filter .12s ease;
}
.imgbtn img { height: 30px; width: auto; display: block; }
.imgbtn:hover { filter: brightness(1.05); }
.imgbtn:active { transform: translateY(1px); }
.dlg-row .imgbtn + .imgbtn { margin-left: 4px; }

/* window shade on the yellow light, the way panther did it */
.window.is-shaded > *:not(.win-title) { display: none; }

.fi .thumb img { image-rendering: auto; }
.qt video { width: 100%; height: auto; display: block; background: #000; }
.gifwrap { padding: 10px; background: #DDD; }
.gifwrap img { width: 100%; height: auto; border: 1px solid #B9B9B9; }

/* ============================================================
   desktop pictures. four of the owner's, switchable and remembered
   ============================================================ */
.prefs { padding: 14px 16px 16px; background: #ECECEC; }
.prefs-h { margin: 0 0 12px; font-size: 12.5px; color: #333; }
.walls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wall {
  border: 0; background: none; padding: 4px; cursor: default; border-radius: 6px;
  display: grid; justify-items: center; gap: 6px;
}
.wall img { width: 100%; height: auto; border: 1px solid #9A9A9A; display: block; }
.wall span { font-size: 11px; color: #333; }
.wall:hover { background: #DDE7F4; }
.wall.is-on { background: #3B7DE0; }
.wall.is-on span { color: #fff; }
.wall.is-on img { border-color: #12326B; box-shadow: 0 0 0 2px #fff; }

/* ============================================================
   quicktime playing an mp3, which is what quicktime looked like
   ============================================================ */
.qt-audio {
  height: 168px; display: grid; place-items: center; gap: 10px; align-content: center;
  background: linear-gradient(180deg, #2B2B2B, #0B0B0B);
}
.qt-badge { width: 54px; height: auto; opacity: .92; }
.qt-name { margin: 0; font-size: 12px; letter-spacing: .04em; color: #C9D4E4; }
.qt-play {
  width: 26px; height: 20px; border: 1px solid #9A9A9A; border-radius: 4px;
  background: linear-gradient(180deg, #FDFDFD, #DADADA);
  font-size: 10px; line-height: 1; color: #333; cursor: default;
}
.qt-play:active { background: linear-gradient(180deg, #DADADA, #FDFDFD); }
.qt-track { position: relative; overflow: hidden; cursor: default; }
.qt-track i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(180deg, #8FC0F5, #3B7DE0); border-radius: 3px;
}
.qt-time { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: #444; }
