/* Radically Impartial: XP-era desktop (original design, inspired by early-2000s desktops) */
:root {
  --pink: #f0249b;
  --pink-dark: #a3125f;
  --cyan: #22cfe8;
  --cyan-dark: #0b8ea3;
  --yellow: #f7e24a;
  --ink: #111;
  --paper: #fff;
  --win-face: #ece9d8;
  --title-1: #0a5fd8;
  --title-2: #3b8cf5;
  --title-3: #0047c4;
  --task-1: #2a62d9;
  --task-2: #3f8cf3;
  --start-1: #3c9a32;
  --start-2: #57c049;
  --ui: Tahoma, Verdana, "Segoe UI", system-ui, sans-serif;
  --display: "Bangers", "Impact", sans-serif;
  --taskbar-h: 42px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--ui);
  font-size: 13px;
  color: var(--ink);
  background: var(--cyan);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: #0645ad; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Boot screen ---------- */
#boot {
  position: fixed; inset: 0; z-index: 9999;
  background: #000; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  text-align: center; padding: 24px 16px;
  transition: opacity .6s ease;
}
#boot.fade { opacity: 0; pointer-events: none; }
#boot .power {
  width: 112px; height: 112px; border-radius: 50%;
  border: 4px solid #333; background: radial-gradient(circle at 35% 30%, #4a4a4a, #111 70%);
  color: var(--cyan); font-size: 52px; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 0 0 6px #1b1b1b, 0 0 30px rgba(34,207,232,.35);
  transition: transform .15s, box-shadow .15s;
}
#boot .power:hover { transform: scale(1.05); box-shadow: 0 0 0 6px #1b1b1b, 0 0 45px rgba(34,207,232,.7); }
#boot .power:focus-visible { outline: 3px solid var(--yellow); outline-offset: 6px; }
#boot .hint { font-family: var(--ui); letter-spacing: .25em; text-transform: uppercase; font-size: 12px; color: #aaa; }
#boot .stage { display: none; flex-direction: column; align-items: center; gap: 18px; width: min(360px, 90vw); }
#boot.on .power, #boot.on .hint { display: none; }
#boot.on .stage { display: flex; }
#boot .stage img { width: 150px; height: 150px; animation: pop .7s cubic-bezier(.2,1.6,.4,1) both; }
#boot .brand { font-family: var(--display); font-size: 34px; letter-spacing: .04em; color: var(--pink); line-height: 1; }
#boot .brand small { display: block; font-size: 16px; color: var(--cyan); letter-spacing: .12em; margin-top: 4px; }
#boot .bar { width: 100%; height: 22px; border: 2px solid #888; border-radius: 4px; padding: 2px; background: #000; overflow: hidden; }
#boot .bar span {
  display: block; height: 100%; width: 0%;
  background: repeating-linear-gradient(90deg, var(--pink) 0 14px, transparent 14px 18px);
  transition: width .2s linear;
}
#boot .msg { font-size: 13px; color: #ccc; min-height: 1.2em; }
#boot .skip { position: absolute; right: 16px; bottom: 16px; background: none; border: 1px solid #444; color: #999; border-radius: 4px; padding: 6px 12px; cursor: pointer; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Desktop ---------- */
#desktop {
  position: fixed; inset: 0 0 var(--taskbar-h) 0;
  background-color: var(--cyan);
  background-image:
    radial-gradient(rgba(0,0,0,.16) 1.3px, transparent 1.6px),
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.35), transparent 60%);
  background-size: 11px 11px, 100% 100%;
  overflow: hidden;
}
#desktop::before { /* logo wallpaper */
  content: ""; position: absolute; left: 50%; top: 46%;
  width: min(78vh, 70vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: url("/assets/brand/logo.png") center / contain no-repeat;
  opacity: .28; pointer-events: none;
}
.icons {
  position: absolute; left: 10px; top: 10px; bottom: 96px; /* leaves room for the Games folder */
  display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; gap: 6px 4px;
}
.icon {
  width: 84px; padding: 6px 2px; border: 1px dashed transparent; border-radius: 4px;
  background: none; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #fff; text-shadow: 1px 1px 2px #000, 0 0 3px #000; font-size: 12px; line-height: 1.2; text-decoration: none;
}
.icon:hover { background: rgba(255,255,255,.18); }
.icon:focus-visible, .icon.sel { background: rgba(10,95,216,.45); border-color: #fff; outline: none; }
.icon .glyph {
  width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center;
  font-size: 26px; text-shadow: none; border: 2px solid #fff;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.18), inset 0 6px 0 rgba(255,255,255,.35), 2px 3px 0 rgba(0,0,0,.35);
}
.icon .glyph img { width: 40px; height: 40px; }
.g-ig { background: linear-gradient(135deg, #feda75, #d62976 55%, #4f5bd5); color: #fff; }
.g-fb { background: #1877f2; color: #fff; font-family: Georgia, serif; font-weight: bold; font-size: 30px; }
.g-folder { background: linear-gradient(#ffe07a, #f2b531); }
.g-film { background: linear-gradient(#333, #000); color: #fff; }
.g-txt { background: linear-gradient(#fff, #dcdcdc); }
.g-reel { background: linear-gradient(var(--pink), var(--pink-dark)); color: #fff; }
.g-bin { background: linear-gradient(#cfe9ff, #8bbbe8); }
.g-mail { background: linear-gradient(var(--yellow), #e0b800); }

.heads { position: absolute; right: 12px; top: 10px; display: flex; gap: 8px; }
.head {
  background: none; border: 1px dashed transparent; border-radius: 6px; cursor: pointer; padding: 4px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: 82px;
  color: #fff; text-shadow: 1px 1px 2px #000, 0 0 3px #000; font-size: 12px;
}
.head:hover { background: rgba(255,255,255,.18); }
.head:focus-visible { background: rgba(10,95,216,.45); border-color: #fff; outline: none; }
.head .face {
  width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff;
  display: grid; place-items: center; text-shadow: none;
  font-family: var(--display); font-size: 26px; color: var(--ink);
  box-shadow: 2px 3px 0 rgba(0,0,0,.35); position: relative;
}
.head .face .need {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 999px;
  font-family: var(--ui); font-size: 8px; font-weight: bold; padding: 1px 5px; white-space: nowrap; color: var(--ink);
}

/* ---------- Gadget (contact widget) ---------- */
.gadget {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 410px; max-height: calc(100% - 20px);
  display: flex; flex-direction: column;
  border-radius: 22px; padding: 7px;
  background: linear-gradient(160deg, #fff 0%, #ffd1ec 30%, var(--pink) 100%);
  border: 2px solid var(--pink-dark);
  box-shadow: 0 0 0 3px rgba(255,255,255,.6), 6px 10px 0 rgba(0,0,0,.25);
  z-index: 5;
}
.gadget-top { display: flex; align-items: center; gap: 8px; padding: 2px 8px 8px; }
.gadget-top img { width: 40px; height: 40px; filter: drop-shadow(1px 2px 0 rgba(0,0,0,.3)); }
.gadget-top .gname { font-weight: bold; font-size: 12px; color: var(--pink-dark); line-height: 1.15; }
.gadget-top .gname b { display: block; font-family: var(--display); font-weight: normal; font-size: 22px; color: #fff; letter-spacing: .03em; text-shadow: 2px 2px 0 var(--pink-dark), -1px -1px 0 var(--pink-dark), 1px -1px 0 var(--pink-dark), -1px 1px 0 var(--pink-dark); }
.gadget-top .gx { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--pink-dark); background: radial-gradient(circle at 35% 30%, #fff, #ffc2e3); color: var(--pink-dark); font-size: 11px; display: grid; place-items: center; cursor: help; }
.gadget-body { background: #fffbea; border: 2px solid #c9a227; border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; background: linear-gradient(#fff4b8, #f7e24a); border-bottom: 2px solid #c9a227; }
.tabs button {
  flex: 1; border: 0; background: none; padding: 9px 6px; cursor: pointer; font-weight: bold; font-size: 12px; color: #6b5300;
  border-right: 1px solid #e0c34a;
}
.tabs button:last-child { border-right: 0; }
.tabs button[aria-selected="true"] { background: #fffbea; color: var(--pink-dark); box-shadow: inset 0 3px 0 var(--pink); }
.panel { padding: 12px 14px 14px; overflow-y: auto; min-height: 0; }
.panel[hidden] { display: none; }
.panel h2 { margin: 0 0 2px; font-family: var(--display); font-weight: normal; font-size: 26px; color: var(--pink); letter-spacing: .02em; line-height: 1.05; }
.panel .lede { margin: 0 0 10px; color: #5a4a10; font-size: 12px; }
.row { display: flex; gap: 8px; }
.row > .field { flex: 1; min-width: 0; }
.field { margin-bottom: 8px; }
.field label { display: block; font-weight: bold; font-size: 11.5px; margin-bottom: 3px; color: #3b2f00; }
.field .opt { font-weight: normal; color: #8a7a3a; font-style: italic; }
.field .req { color: var(--pink); }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid #9a8a4a; border-radius: 6px; background: #fff; padding: 6px 8px; font-size: 13px;
  box-shadow: inset 1px 2px 0 rgba(0,0,0,.06);
}
.field textarea { min-height: 64px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: var(--cyan-dark); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #d11; background: #fff4f4; }
.field .err { color: #c00; font-size: 11px; margin-top: 2px; display: none; }
.field.bad .err { display: block; }
.hp { position: absolute; left: -9999px; }
.send {
  width: 100%; margin-top: 4px; padding: 10px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--pink-dark); color: #fff; font-family: var(--display); font-size: 22px; letter-spacing: .05em;
  background: linear-gradient(#ff6fc0, var(--pink) 55%, #d4127f);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 3px 0 var(--pink-dark);
  text-shadow: 1px 1px 0 var(--pink-dark);
}
.send:hover { filter: brightness(1.07); }
.send:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 1px 0 var(--pink-dark); }
.send:disabled { filter: grayscale(.5); cursor: progress; }
.small { font-size: 11px; color: #7a6a2a; margin: 8px 0 0; text-align: center; }
.progress { display: none; margin-top: 8px; }
.progress.on { display: block; }
.progress .track { height: 18px; border: 1.5px solid #7a7a7a; border-radius: 3px; background: #fff; padding: 2px; }
.progress .fill { height: 100%; width: 0; background: repeating-linear-gradient(90deg, #3fbd2f 0 9px, transparent 9px 11px); transition: width .25s linear; }
.progress p { margin: 4px 0 0; font-size: 11px; color: #555; text-align: center; }
.book-frame { width: 100%; height: 360px; border: 1.5px solid #9a8a4a; border-radius: 8px; background: #fff; }
.book-open { display: inline-block; margin-top: 8px; }
.how { display: flex; gap: 8px; margin: 0 0 10px; }
.how div { flex: 1; border: 1.5px solid #c9a227; border-radius: 10px; background: #fff; padding: 8px; font-size: 12px; }
.how b { display: block; color: var(--pink-dark); }

/* ---------- Windows ---------- */
.win {
  position: absolute; min-width: 280px; max-width: calc(100vw - 16px);
  background: var(--win-face);
  border: 3px solid var(--title-3); border-top: 0; border-radius: 9px 9px 4px 4px;
  box-shadow: 4px 8px 22px rgba(0,0,0,.4);
  display: flex; flex-direction: column; z-index: 10;
}
.win.inactive .titlebar { filter: saturate(.45) brightness(1.12); }
.win.min { display: none; }
.titlebar {
  height: 32px; padding: 0 4px 0 8px; display: flex; align-items: center; gap: 6px;
  border-radius: 8px 8px 0 0; cursor: move; user-select: none; touch-action: none;
  background: linear-gradient(var(--title-2) 0%, var(--title-1) 12%, var(--title-1) 50%, var(--title-3) 92%, var(--title-1) 100%);
  color: #fff; font-weight: bold; font-size: 13px; text-shadow: 1px 1px 0 #00267a;
  margin: 0 -3px;
}
.titlebar img { width: 18px; height: 18px; }
.titlebar .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb { width: 23px; height: 23px; border-radius: 4px; border: 1.5px solid #fff; cursor: pointer; color: #fff; font-weight: bold; font-size: 13px; line-height: 1; display: grid; place-items: center; padding: 0;
  background: linear-gradient(#5b9cff, #2a62d9); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.tb.close { background: linear-gradient(#f0866b, #d6421c); }
.tb:hover { filter: brightness(1.15); }
.win .content { background: #fff; margin: 0 0 3px; border-top: 1px solid #7a96df; overflow: auto; flex: 1; min-height: 0; }
.menubar { display: flex; gap: 14px; padding: 3px 8px; font-size: 12px; background: var(--win-face); border-bottom: 1px solid #c9c5b2; color: #333; }
.pad { padding: 16px 18px 18px; }

/* window content blocks */
.prof { display: flex; gap: 18px; align-items: flex-start; }
.prof .pic { flex: 0 0 170px; }
.prof > div:last-child { min-width: 0; flex: 1; }
.ph {
  border: 2.5px dashed var(--ink); background: repeating-linear-gradient(45deg, #fff7b0 0 10px, #fff1a0 10px 20px);
  border-radius: 10px; display: grid; place-items: center; text-align: center; padding: 10px;
  font-weight: bold; font-size: 12px; color: var(--ink); min-height: 120px;
}
.ph span { display: block; font-size: 26px; }
.prof h2, .doc h2 { margin: 0; font-family: var(--display); font-weight: normal; font-size: 34px; color: var(--pink); letter-spacing: .02em; line-height: 1; }
.role { margin: 4px 0 10px; font-weight: bold; color: var(--cyan-dark); text-transform: uppercase; font-size: 11.5px; letter-spacing: .08em; }
.doc p, .prof p { line-height: 1.55; margin: 0 0 10px; font-size: 13.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; padding: 0; list-style: none; }
.chips li { background: #eaf9fc; border: 1.5px solid var(--cyan-dark); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; }
.award { background: #fff8d6; border: 2px solid #e0b800; border-radius: 8px; padding: 7px 10px; margin: 8px 0; font-size: 12.5px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.xbtn {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); cursor: pointer;
  border: 1.5px solid #003c74; border-radius: 4px; padding: 5px 12px; font-size: 12px;
  background: linear-gradient(#fff, #ece9d8 85%, #d6d0b8); box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}
.xbtn:hover { box-shadow: inset 0 0 0 2px #f8b636; }
h3.sec { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #555; margin: 14px 0 6px; border-bottom: 1px solid #ddd; padding-bottom: 3px; }
.video { position: relative; aspect-ratio: 16/9; background: #000; border: 2px solid #333; border-radius: 4px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-bar { display: flex; align-items: center; gap: 8px; background: linear-gradient(#5a5a5a, #2b2b2b); color: #ddd; font-size: 11px; padding: 5px 8px; border-radius: 0 0 6px 6px; }
.player-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--start-2); display: inline-block; }
table.cred { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.cred th { text-align: left; width: 38%; color: #555; font-weight: bold; padding: 4px 8px 4px 0; vertical-align: top; }
table.cred td { padding: 4px 0; }
table.cred tr + tr th, table.cred tr + tr td { border-top: 1px dotted #ccc; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; padding: 14px; }
.files .icon { color: var(--ink); text-shadow: none; width: auto; }
.files .icon:hover { background: #e6efff; }
.statusbar { font-size: 11px; color: #444; padding: 3px 8px; border-top: 1px solid #c9c5b2; background: var(--win-face); }
.svc { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 10px 0; }
.svc div { border: 2px solid var(--ink); border-radius: 10px; padding: 10px; background: #fff; box-shadow: 3px 3px 0 var(--cyan); }
.svc b { display: block; font-family: var(--display); font-weight: normal; font-size: 20px; color: var(--pink); letter-spacing: .02em; }
.svc div p { font-size: 12px; margin: 4px 0 0; line-height: 1.4; }
.callout { background: var(--yellow); border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; font-weight: bold; margin: 10px 0; }

/* alert dialog */
.dlg-body { display: flex; gap: 14px; padding: 18px; align-items: flex-start; line-height: 1.45; }
.dlg-body img { width: 54px; height: 54px; }
.dialog .actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 16px 14px; background: #fff; }

/* ---------- Taskbar ---------- */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--taskbar-h); z-index: 1000;
  display: flex; align-items: stretch;
  background: linear-gradient(#3168d5 0%, #4993e6 6%, var(--task-1) 14%, var(--task-1) 85%, #1941a5 100%);
  border-top: 1px solid #0c3daa;
}
#start {
  display: flex; align-items: center; gap: 6px; padding: 0 22px 0 10px; border: 0; cursor: pointer;
  border-radius: 0 14px 14px 0; color: #fff; font-style: italic; font-weight: bold; font-size: 19px;
  text-shadow: 1px 1px 2px #1a4d14;
  background: linear-gradient(var(--start-2) 0%, var(--start-1) 30%, var(--start-1) 75%, #2a7a22 100%);
  box-shadow: inset -2px 0 4px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.4);
}
#start img { width: 26px; height: 26px; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.4)); }
#start[aria-expanded="true"] { filter: brightness(.88); }
#tasks { flex: 1; display: flex; gap: 4px; padding: 5px 8px; overflow: hidden; min-width: 0; }
.task {
  flex: 0 1 170px; min-width: 40px; display: flex; align-items: center; gap: 6px; padding: 0 8px;
  border: 1px solid #1b47b8; border-radius: 4px; cursor: pointer; color: #fff; font-size: 12px; text-align: left;
  background: linear-gradient(#5c97f5, #3a7bea); box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.task img { width: 16px; height: 16px; flex: 0 0 auto; }
.task.active { background: linear-gradient(#1e4fc2, #2b62d6); box-shadow: inset 1px 2px 3px rgba(0,0,0,.35); }
#tray {
  display: flex; align-items: center; gap: 10px; padding: 0 12px; color: #fff; font-size: 12px;
  background: linear-gradient(#1290e8, #0f7fd8 50%, #0c6cc4); border-left: 1px solid #0b4a9c;
  box-shadow: inset 1px 0 0 rgba(255,255,255,.25);
}
#tray button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 16px; padding: 2px; }

/* start menu */
#startmenu {
  position: fixed; left: 0; bottom: var(--taskbar-h); z-index: 1001; width: 340px; max-width: 100vw;
  border: 2px solid var(--title-3); border-radius: 8px 8px 0 0; overflow: hidden; background: #fff;
  box-shadow: 4px -4px 18px rgba(0,0,0,.35);
}
#startmenu[hidden] { display: none; }
.sm-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #fff; font-weight: bold; font-size: 15px;
  background: linear-gradient(#1868ce, #0e60cb 50%, #3a86e6); text-shadow: 1px 1px 1px #0a2a6a; }
.sm-head img { width: 44px; height: 44px; border: 2px solid #fff; border-radius: 6px; background: var(--cyan); }
.sm-cols { display: flex; }
.sm-col { flex: 1; padding: 6px; }
.sm-col + .sm-col { background: #d3e5fa; border-left: 1px solid #95bdee; }
.sm-col button, .sm-col a {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 6px; border-radius: 3px; font-size: 12px; color: var(--ink); text-decoration: none;
}
.sm-col button:hover, .sm-col a:hover, .sm-col button:focus-visible, .sm-col a:focus-visible { background: #316ac5; color: #fff; outline: none; }
.sm-col .ico { width: 26px; text-align: center; font-size: 18px; }
.sm-foot { display: flex; justify-content: flex-end; gap: 6px; padding: 6px 10px; background: linear-gradient(#3a86e6, #1868ce); }
.sm-foot button { color: #fff; background: none; border: 0; cursor: pointer; font-size: 12px; padding: 4px 8px; border-radius: 3px; }
.sm-foot button:hover { background: rgba(255,255,255,.2); }

/* ---------- Mobile: phone home-screen layout ---------- */
@media (max-width: 760px) {
  .win.dialog { height: auto !important; top: 30% !important; left: 8px !important; width: calc(100vw - 16px) !important; border-radius: 9px 9px 4px 4px; }
  body { overflow: auto; }
  #desktop { position: relative; inset: auto; min-height: calc(100vh - var(--taskbar-h)); padding: 14px 16px calc(var(--taskbar-h) + 18px); overflow: visible; }
  #desktop::before { position: fixed; top: 40%; width: 92vw; }
  .heads { position: static; justify-content: center; margin-bottom: 14px; }
  .gadget { position: relative; left: auto; top: auto; transform: none; width: 100%; max-height: none; margin: 0 auto 16px; }
  .panel { overflow: visible; }
  .icons { position: static; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; }
  .icon { width: auto; }
  .win { position: fixed !important; left: 0 !important; top: 0 !important; width: 100vw !important; height: calc(100% - var(--taskbar-h)) !important; max-width: none; border-radius: 0; z-index: 900; }
  .titlebar { border-radius: 0; cursor: default; }
  .tb.max, .tb.minb { display: none; }
  .task { flex-basis: 110px; }
  #start { padding: 0 14px 0 8px; font-size: 17px; }
  #tray .clock { display: none; }
}
@media (max-width: 380px) { .icons { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* meeting section */
.meet { border: 2px dashed #c9a227; border-radius: 12px; padding: 8px 10px 4px; margin: 4px 0 10px; background: #fff7d1; }
.meet legend { font-weight: bold; font-size: 12.5px; color: var(--pink-dark); padding: 0 4px; }
.choices { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.choices label { flex: 1 1 0; min-width: 0; cursor: pointer; }
.choices input { position: absolute; opacity: 0; }
.choices span { display: block; text-align: center; padding: 7px 6px; border: 1.5px solid #9a8a4a; border-radius: 999px; background: #fff; font-size: 12px; font-weight: bold; }
.choices input:checked + span { background: var(--cyan); border-color: var(--cyan-dark); color: #003b45; box-shadow: inset 0 2px 0 rgba(0,0,0,.12); }
.choices input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.when[hidden] { display: none; }
.note { font-size: 11px; color: #6b5a1a; margin: 0 0 6px; line-height: 1.4; }
.meet.flash { animation: flash 1.2s ease 2; }
@keyframes flash { 50% { background: #c9f4fb; border-color: var(--cyan-dark); } }

/* About app next to the founder heads */
.about-app .face { overflow: hidden; padding: 0; }
.about-app .face img { width: 100%; height: 100%; object-fit: cover; }
.about-app { margin-right: 6px; padding-right: 12px; border-right: 2px dotted rgba(255,255,255,.7); border-radius: 6px 0 0 6px; }
@media (max-width: 380px) { .heads { gap: 2px; } .head { width: 70px; } .head .face { width: 54px; height: 54px; } .about-app { margin-right: 2px; padding-right: 6px; } }

.choices span { white-space: nowrap; }
@media (max-width: 400px) { .choices { gap: 4px; } .choices span { padding: 7px 2px; font-size: 11px; } }

/* brand glyph icons */
.g-ig svg.ig { width: 30px; height: 30px; color: #fff; }
.ig-ico svg { width: 18px; height: 18px; vertical-align: -3px; }
.xbtn svg.ig { width: 15px; height: 15px; }
.choices svg.cam { width: 16px; height: 16px; vertical-align: -3px; }
.other { margin-top: 6px; }
.other[hidden] { display: none; }
.other.bad input { border-color: #d11; background: #fff4f4; }
.other .err { color: #c00; font-size: 11px; margin-top: 2px; display: none; }
.other.bad .err { display: block; }

/* stretchy selection box */
#desktop { touch-action: auto; }
.marquee {
  --t: 0;
  position: absolute; z-index: 6; pointer-events: none;
  border: 1.5px dashed rgb(calc(10 + 230 * var(--t)) calc(95 - 60 * var(--t)) calc(216 - 60 * var(--t)));
  background: rgba(10, 95, 216, calc(.16 + .14 * var(--t)));
  box-shadow: 0 0 calc(18px * var(--t)) rgba(240, 36, 155, calc(.6 * var(--t))), inset 0 0 0 1px rgba(255,255,255,.35);
  border-radius: calc(2px + 10px * var(--t));
}
.marquee.pop { animation: mpop .18s ease-out forwards; }
@keyframes mpop { to { opacity: 0; transform: scale(1.8); } }
.head.sel { background: rgba(10,95,216,.45); border-color: #fff; }

.choices svg.skype { width: 17px; height: 17px; vertical-align: -4px; }
.g-about { background: var(--cyan); padding: 0; overflow: hidden; }
.g-about img { width: 46px !important; height: 46px !important; }

/* photo album (stacked polaroids) */
.album { float: right; position: relative; width: 200px; height: 300px; margin: 2px 0 14px 18px; }
.polaroid { --r: 2deg; --x: 0px; --y: 0px; position: absolute; inset: 0 auto auto 0; width: 190px; margin: 0; padding: 8px 8px 6px; background: #fff; border: 1px solid #ddd;
  box-shadow: 3px 4px 0 rgba(0,0,0,.18), 0 2px 10px rgba(0,0,0,.15); transform: translate(var(--x), var(--y)) rotate(var(--r)); }
.polaroid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid figcaption { font-family: var(--display); font-size: 17px; letter-spacing: .03em; color: var(--pink); text-align: center; margin-top: 4px; line-height: 1.1; }
.polaroid.drop { animation: drop .55s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes drop { from { opacity: 0; transform: translate(calc(var(--x) + 40px), calc(var(--y) - 90px)) rotate(calc(var(--r) + 18deg)) scale(1.25); } }
@media (max-width: 520px) { .album { float: none; margin: 6px auto 22px; } }

/* founder headshots */
.head .face.photo { overflow: hidden; padding: 0; }
.head .face.photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(var(--z, 1)); transform-origin: var(--o, 50% 50%); }
.prof .headshot { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--cyan); background: #eee; }

.g-yt { background: #ff0000; }
.g-yt svg.yt rect { fill: none; }
.g-yt svg.yt { width: 46px; height: 46px; }
.sm-col svg.yt { width: 20px; height: 20px; vertical-align: -5px; }

/* secret logo story */
.secret { position: relative; }
.secret .stamp { position: absolute; right: 14px; top: 10px; transform: rotate(12deg); border: 3px solid #d11; color: #d11; font-family: var(--display); font-size: 22px; letter-spacing: .08em; padding: 2px 10px; border-radius: 6px; opacity: .8; }
.secret .found { background: #111; color: var(--yellow); font-weight: bold; padding: 6px 10px; border-radius: 6px; display: inline-block; margin-bottom: 12px; }
.equation { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 16px; text-align: center; }
.equation div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: bold; font-size: 12px; }
.equation span { font-size: 46px; line-height: 1; }
.equation img { width: 70px; height: 70px; animation: wiggle 2.4s ease-in-out infinite; }
.equation b { font-family: var(--display); font-size: 34px; color: var(--pink); }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.06); } }
.small-print { font-size: 11px !important; color: #888; font-style: italic; }

.polaroid.still { position: relative; float: right; inset: auto; width: 170px; margin: 0 0 10px 16px; --r: 3deg; }
@media (max-width: 520px) { .polaroid.still { float: none; margin: 8px auto 16px; } }
.secret .callout { overflow: hidden; }
.secret .small-print { clear: both; }

/* keep the faded wallpaper logo BEHIND everything (on phones it was painting over the icon grid) */
#desktop::before { z-index: 0; }
@media (max-width: 760px) { .icons, .heads { position: relative; z-index: 1; } }

/* founder windows: name + bio beside the photo when the window is wide enough, underneath when it isn't */
.win .content { container-type: inline-size; }
@container (max-width: 480px) {
  .prof { flex-direction: column; align-items: stretch; }
  .prof .pic { flex-basis: auto; width: min(220px, 70%); margin: 0 auto 4px; }
}

/* taskbar: each button shows its window's own desktop icon */
.task .tico { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 4px; border: 1px solid rgba(255,255,255,.85); display: grid; place-items: center; overflow: hidden; font-size: 12px; line-height: 1; text-shadow: none; box-shadow: none; }
.task .tico.round { border-radius: 50%; }
.task .tico img, .task .tico svg { width: 100% !important; height: 100% !important; object-fit: cover; }
.task .tico.g-film img { width: 85% !important; height: 85% !important; }
.task .tico.g-fb { font-size: 14px; }
.task .tlabel { overflow: hidden; text-overflow: ellipsis; }

/* "Under construction" placeholders with caution tape */
.ph.uc { position: relative; overflow: hidden; background: repeating-linear-gradient(45deg, #fff7b0 0 10px, #fff1a0 10px 20px); }
.ph.uc .tape { position: absolute; left: -20%; width: 140%; height: 26px; pointer-events: none;
  background: repeating-linear-gradient(-45deg, #f7d117 0 18px, #111 18px 36px); box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.ph.uc .tape::after { content: "CAUTION · UNDER CONSTRUCTION · CAUTION · UNDER CONSTRUCTION · CAUTION"; position: absolute; inset: 0; display: grid; place-items: center;
  font: bold 10px/1 var(--ui); letter-spacing: .14em; color: #111; white-space: nowrap; background: rgba(247,209,23,.0); text-shadow: 0 0 3px #f7d117, 0 0 3px #f7d117; }
.ph.uc .t1 { top: 30%; transform: rotate(-12deg); }
.ph.uc .t2 { top: 58%; transform: rotate(9deg); }
.ph.uc .uc-sign { position: relative; z-index: 1; background: #fff; border: 2.5px solid #111; border-radius: 6px; padding: 6px 12px; font-family: var(--display); font-size: 18px; letter-spacing: .05em; color: #111; box-shadow: 3px 3px 0 #111; }
.ph.uc .uc-sign span { display: inline; font-size: 18px; margin-right: 6px; }
.uc-chip { display: inline-block; padding: 1px 7px; border: 1.5px solid #111; border-radius: 4px; font-size: 10.5px; font-weight: bold; color: #111; white-space: nowrap;
  background: repeating-linear-gradient(-45deg, #f7d117 0 7px, #ffe86b 7px 14px); text-shadow: 0 0 2px #fff7b0; }

/* window resize handles (desktop only) */
.win .rz { position: absolute; z-index: 3; }
.win .rz-n  { top: -4px; left: 10px; right: 10px; height: 8px; cursor: ns-resize; }
.win .rz-s  { bottom: -4px; left: 10px; right: 10px; height: 8px; cursor: ns-resize; }
.win .rz-e  { right: -4px; top: 10px; bottom: 10px; width: 8px; cursor: ew-resize; }
.win .rz-w  { left: -4px; top: 10px; bottom: 10px; width: 8px; cursor: ew-resize; }
.win .rz-ne { top: -4px; right: -4px; width: 14px; height: 14px; cursor: nesw-resize; }
.win .rz-sw { bottom: -4px; left: -4px; width: 14px; height: 14px; cursor: nesw-resize; }
.win .rz-nw { top: -4px; left: -4px; width: 14px; height: 14px; cursor: nwse-resize; }
.win .rz-se { bottom: -4px; right: -4px; width: 16px; height: 16px; cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 0 45%, #9a9580 45% 52%, transparent 52% 62%, #9a9580 62% 69%, transparent 69% 79%, #9a9580 79% 86%, transparent 86%);
  right: 1px; bottom: 1px; }
body.resizing, body.resizing * { user-select: none !important; }
body.resizing iframe { pointer-events: none; }
@media (max-width: 760px) { .win .rz { display: none; } }

.pronouns { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-family: var(--ui); font-size: 11px; font-weight: bold; letter-spacing: .02em; color: var(--ink); }

/* "seen" icons go grey */
.icon.seen .glyph, .head.seen .face { opacity: .82; transition: filter .3s, opacity .3s; }   /* opened already: just a little see-through, keeps its colour */
.icon.seen, .head.seen { color: rgba(255,255,255,.75); }
.files .icon.seen { color: #888; }
.sm-col .seen { color: #888; }
.sm-col .seen .ico { opacity: .82; }
.icon.seen:hover .glyph, .head.seen:hover .face { opacity: 1; }

/* confetti for the achievement */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2000; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--drift), 110vh) rotate(var(--spin)); } }

/* custom hand cursors (mouse/trackpad only; phones and tablets keep their normal touch behaviour) */
@media (hover: hover) and (pointer: fine) {
  html, body, #desktop, .win, .gadget { cursor: url("/assets/cursors/hand.svg") 7 4, auto; }
  a, button, label, select, [data-open], [data-focus], [data-close], .icon, .head, .xbtn, .tb, .task, #start, .choices span,
  .titlebar img, .gadget-top img, .sm-head img, .dlg-body img, .polaroid, .sm-col a, .sm-col button, [role="tab"] {
    cursor: url("/assets/cursors/point.svg") 10 1, pointer;
  }
  .titlebar { cursor: url("/assets/cursors/hand.svg") 7 4, move; }
  a:active, button:active, .icon:active, .head:active, .xbtn:active, label:active { cursor: url("/assets/cursors/fist.svg") 16 14, pointer; }
  input:not([type="radio"]):not([type="checkbox"]), textarea { cursor: text; }
  body.grabbing, body.grabbing * { cursor: url("/assets/cursors/fist.svg") 16 14, grabbing !important; }
}

/* Games folder docked bottom-left */
.games-dock { position: absolute; left: 10px; bottom: 10px; }
@media (max-width: 760px) { .games-dock { position: relative; z-index: 1; left: auto; bottom: auto; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; } }
@media (max-width: 380px) { .games-dock { grid-template-columns: repeat(3, 1fr); } }

/* Reel Snake */
.snake { padding: 10px; background: #0b1730; color: #fff; min-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.snake-hud { width: 100%; max-width: 400px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.snake-hud .s-title { font-family: var(--display); font-size: 22px; letter-spacing: .06em; color: var(--yellow); text-shadow: 2px 2px 0 var(--pink); }
.snake-stage { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1; }
.snake-stage canvas { width: 100%; height: 100%; display: block; border: 3px solid var(--cyan); border-radius: 6px; image-rendering: pixelated; outline: none; }
.snake-overlay { position: absolute; inset: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 18px; background: rgba(11,23,48,.82); border-radius: 4px; }
.snake-overlay[hidden] { display: none; }
.snake-overlay b { font-family: var(--display); font-weight: normal; font-size: 34px; letter-spacing: .05em; color: var(--pink); }
.snake-overlay p { margin: 0; font-size: 13px; line-height: 1.5; }
.snake-overlay p b { font-family: inherit; font-size: inherit; color: var(--yellow); }
.snake-overlay .s-keys { font-size: 11px; color: #9fb3d9; }
.snake-pad { display: none; flex-direction: column; align-items: center; gap: 4px; }
.snake-pad > div { display: flex; gap: 4px; }
.snake-pad .xbtn { width: 54px; height: 44px; justify-content: center; font-size: 16px; }
@media (hover: none), (max-width: 760px) { .snake-pad { display: flex; } }

/* taskbar: windows-seen counter + clickable clock */
#tray .seen-meter { font-size: 12px; padding: 3px 8px; border-radius: 10px; background: rgba(0,0,0,.18); box-shadow: inset 0 1px 2px rgba(0,0,0,.3); white-space: nowrap; }
#tray .seen-meter b { color: var(--yellow); }
#tray .seen-meter.done b { color: #9dff8a; }
#tray .seen-meter .sm-short { display: none; }
#tray .seen-meter.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.25); background: rgba(247,226,74,.45); } }
#tray .clock { font-size: 12px; padding: 2px 4px; border-radius: 3px; }
#tray .clock:hover { background: rgba(255,255,255,.15); }
@media (max-width: 760px) {
  #tray .seen-meter .sm-full { display: none; }
  #tray .seen-meter .sm-short { display: inline; }
}
/* availability calendar window */
.cal-frame { width: 100%; height: 400px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; }
.cal .links { margin-top: 10px; }

/* Services folder apps + service windows */
.svc-apps { padding: 6px 14px; }
.svc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.svc-head .glyph { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-size: 30px; border: 2px solid var(--ink); flex: 0 0 auto; }
.svc-head h2 { margin: 0; }
.svc-head .role { margin: 2px 0 0; }

/* Classic web links everywhere text points somewhere: blue + underlined, purple once visited.
   (Buttons, icons and taskbar items keep their own look.) */
.win .content a:not(.xbtn):not(.icon), .gadget a:not(.xbtn), .dlg-body a:not(.xbtn), .polaroid a {
  color: #0000ee; text-decoration: underline; text-underline-offset: 2px;
}
.win .content a:not(.xbtn):not(.icon):visited, .dlg-body a:not(.xbtn):visited { color: #551a8b; }
.win .content a:not(.xbtn):not(.icon):hover, .dlg-body a:not(.xbtn):hover { color: #e00; }
.win .content a[data-open]:visited { color: #0000ee; }  /* in-site links don't turn purple */

/* "Apps opened" counter: not clickable, with a one-time speech bubble */
#tray .seen-meter { position: relative; cursor: default !important; user-select: none; }
.meter-tip { position: absolute; right: -6px; bottom: calc(100% + 12px); width: 210px; padding: 9px 12px; white-space: normal;
  background: #ffffe1; color: #111; border: 1.5px solid #111; border-radius: 10px; font-size: 12px; font-weight: bold; line-height: 1.35;
  box-shadow: 3px 3px 0 rgba(0,0,0,.25); animation: tipin .35s cubic-bezier(.2,1.5,.4,1) both; z-index: 5; text-align: left; }
.meter-tip::after { content: ""; position: absolute; right: 26px; bottom: -9px; width: 14px; height: 14px; background: #ffffe1;
  border-right: 1.5px solid #111; border-bottom: 1.5px solid #111; transform: rotate(45deg); }
.meter-tip.out { animation: tipout .35s ease forwards; }
@keyframes tipin { from { opacity: 0; transform: translateY(8px) scale(.9); } }
@keyframes tipout { to { opacity: 0; transform: translateY(6px); } }

/* check-off cue that pops out of the "Apps opened" counter */
.check-pop { position: absolute; right: 4px; bottom: calc(100% + 10px); display: flex; align-items: center; gap: 6px; white-space: nowrap;
  background: #fff; color: #111; border: 2px solid #111; border-radius: 999px; padding: 4px 12px 4px 6px; box-shadow: 3px 3px 0 rgba(0,0,0,.25);
  font-size: 12px; pointer-events: none; animation: popup 2.2s cubic-bezier(.2,1.4,.4,1) forwards; z-index: 6; }
.check-pop svg { width: 22px; height: 22px; flex: 0 0 auto; }
.check-pop rect { fill: #fff; stroke: #111; stroke-width: 2.2; animation: boxfill .25s .35s ease forwards; }
.check-pop path { fill: none; stroke: #0a8f2a; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 20; stroke-dashoffset: 20; animation: tick .4s .2s ease-out forwards; }
.check-pop b { font-weight: bold; }
.check-pop i { position: absolute; right: -6px; top: -14px; font-style: normal; font-weight: bold; color: var(--pink); font-size: 14px;
  text-shadow: 1px 1px 0 #fff; animation: plusone 1.4s .3s ease-out forwards; opacity: 0; }
@keyframes tick { to { stroke-dashoffset: 0; } }
@keyframes boxfill { to { fill: #c8ffbf; } }
@keyframes popup {
  0% { opacity: 0; transform: translateY(14px) scale(.6); }
  15% { opacity: 1; transform: translateY(0) scale(1.05); }
  22% { transform: scale(1); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}
@keyframes plusone { 0% { opacity: 0; transform: translateY(6px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px); } }
@media (prefers-reduced-motion: reduce) { .check-pop { animation: none; } .check-pop path { stroke-dashoffset: 0; } }
#tray .seen-meter .check-pop b { color: #111; }

/* Radically Explorer (in-site browser) */
.win .content:has(.ie-bar) { display: flex; flex-direction: column; }
.ie-bar { display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: var(--win-face); border-bottom: 1px solid #c9c5b2; flex: 0 0 auto; }
.ie-nav { color: #999; letter-spacing: 4px; font-size: 13px; user-select: none; }
.ie-addr { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid #7f9db9; padding: 3px 8px;
  font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; }
.ie-globe { flex: 0 0 auto; }
.ie-bar .xbtn { flex: 0 0 auto; text-decoration: none; }
.ie-view { flex: 1; min-height: 0; background: #000; }
.ie-view iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; background: #fff; }
.ie-note { font-size: 12px; padding: 5px 10px; background: #fff8d6; border-top: 1px solid #e0c34a; flex: 0 0 auto; }
.ie-blocked { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 30px 24px; }
.ie-blocked .ie-big { font-size: 54px; }
.ie-blocked h2 { margin: 0; font-family: var(--display); font-weight: normal; font-size: 30px; color: var(--pink); letter-spacing: .02em; }
.ie-blocked p { max-width: 460px; margin: 0; line-height: 1.55; }
.ie-blocked .send { display: inline-block; width: auto; padding: 10px 24px; text-decoration: none; margin-top: 6px; }
@media (max-width: 760px) { .ie-nav { display: none; } .ie-view iframe { min-height: 0; } }

/* ---- build 2 ---- */
/* selection box now positioned with transform (smoother) */
.marquee { left: 0 !important; top: 0 !important; will-change: transform, width, height; }

/* bigger close buttons + no date/time overlap on phones */
@media (max-width: 760px) {
  .tb.close { width: 38px; height: 34px; font-size: 18px; }
  .titlebar { height: 42px; }
  .when .row { flex-direction: column; gap: 0; }
  .field input[type="date"] { min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; min-height: 36px; }
}
.album { cursor: pointer; }

/* rising checklist out of the "Apps opened" counter */
.checklist { position: absolute; right: -8px; bottom: calc(100% + 8px); width: 230px; padding: 10px 12px 8px; text-align: left;
  background: #fffef2; color: #111; border: 2px solid #111; border-radius: 10px 10px 4px 4px; box-shadow: 4px -2px 0 rgba(0,0,0,.25);
  transform: translateY(130%) scale(.85); transform-origin: 85% 100%; opacity: 0; pointer-events: none; z-index: 6;
  transition: transform .45s cubic-bezier(.3,.7,.4,1), opacity .35s ease; white-space: normal; }
.checklist.rise { transform: translateY(0) scale(1); opacity: 1; transition: transform .5s cubic-bezier(.2,1.4,.4,1), opacity .2s ease; }
.checklist .cl-head { display: block; font-size: 13px; color: var(--pink-dark); margin-bottom: 2px; }
#tray .seen-meter .checklist .cl-head { color: var(--pink-dark); }
.checklist .cl-count { position: absolute; right: 10px; top: 10px; font-size: 11px; font-weight: bold; color: #555; }
.checklist ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; font-size: 11.5px; }
.checklist li { display: flex; align-items: center; gap: 5px; color: #999; }
.checklist li.on { color: #111; }
.checklist li svg { width: 15px; height: 15px; flex: 0 0 auto; }
.checklist li rect { fill: #fff; stroke: #888; stroke-width: 2.2; }
.checklist li.on rect { fill: #c8ffbf; stroke: #111; }
.checklist li path { fill: none; stroke: #0a8f2a; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; }
.checklist li.on path { stroke-dashoffset: 0; }
.checklist li.new { animation: newrow 1.2s .2s ease both; border-radius: 4px; }
.checklist li.new path { stroke-dashoffset: 20; animation: tick .4s .3s ease-out forwards; }
.checklist li.new rect { animation: boxfill .25s .45s ease forwards; fill: #fff; }
.checklist li.bonus { grid-column: 1 / -1; color: #a36d00; font-weight: bold; }
@keyframes newrow { 0% { background: transparent; } 30% { background: #fff07a; transform: scale(1.08); } 100% { background: #c8ffbf; } }
@media (max-width: 760px) { .checklist { right: -40px; } }

/* Instagram app */
.ig-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.ig-head .glyph { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; border: 2px solid var(--ink); flex: 0 0 auto; }
.ig-head .glyph svg { width: 30px; height: 30px; color: #fff; }
.ig-head h2 { margin: 0; } .ig-head .role { margin: 2px 0 0; }
.ig-head .xbtn { margin-left: auto; text-decoration: none; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ig-post { border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: #fff; }
.ig-post iframe { display: block; width: 100%; height: 560px; border: 0; }

/* "?app=" share links: pill to get back to the full desktop */
.solo-pill { position: fixed; left: 50%; bottom: calc(var(--taskbar-h) + 12px); transform: translateX(-50%); z-index: 1500;
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--yellow); font-weight: bold; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.marquee.pop { animation: mfade .18s ease-out forwards; }
@keyframes mfade { to { opacity: 0; } }
.checklist .cl-head { padding-right: 44px; }
.bts-ig { max-width: 420px; margin: 0 auto; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: #fff; }
.bts-ig iframe { display: block; width: 100%; height: 620px; border: 0; }

/* Behind-the-scenes video carousel (HANDS) */
.bts-carousel { position: relative; overflow: hidden; border: 2px solid #333; border-radius: 6px; background: #000; }
.bts-track { display: flex; transition: transform .35s ease; }
.bts-slide { flex: 0 0 100%; margin: 0; min-width: 0; }
.bts-slide iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; background: #000; }
.bts-slide figcaption { background: #111; color: #eee; font-size: 11px; padding: 6px 8px; }
.bts-prev, .bts-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.55); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 2px; }
.bts-prev { left: 8px; }
.bts-next { right: 8px; }
.bts-prev:hover, .bts-next:hover { background: rgba(0,0,0,.8); }
.bts-dots { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.bts-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); }
.bts-dots span.on { background: #fff; }

/* Documents group (.txt files) in the bottom-right corner */
.docs-dock { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 4px; align-items: flex-end; z-index: 1; }
.docs-label { display: none; }
@media (max-width: 760px) {
  .docs-dock { position: relative; right: auto; bottom: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px;
    margin-top: 18px; padding-top: 14px; border-top: 2px dashed rgba(255,255,255,.75); }
  .docs-label { display: block; grid-column: 1 / -1; color: #fff; font-weight: bold; font-size: 13px; letter-spacing: .06em;
    text-transform: uppercase; text-shadow: 1px 1px 2px #000; margin-bottom: -2px; }
}
@media (max-width: 380px) { .docs-dock { grid-template-columns: repeat(3, 1fr); } }

/* "Apps opened" is clickable again: it opens your checklist */
#tray .seen-meter { cursor: pointer !important; }
#tray .seen-meter:hover { background: rgba(255,255,255,.18); }
#tray .seen-meter:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.checklist.pinned { pointer-events: auto; }
@media (hover: hover) and (pointer: fine) { #tray .seen-meter { cursor: url("/assets/cursors/point.svg") 10 1, pointer !important; } }

/* draggable icons */
.icon img, .head img { -webkit-user-drag: none; user-select: none; }
.icon, .head { user-select: none; -webkit-user-select: none; }
.icon.dragging, .head.dragging { opacity: .75; filter: drop-shadow(3px 5px 0 rgba(0,0,0,.35)); z-index: 7; position: relative; }
.icon.sel .glyph, .head.sel .face { outline: 2px dotted #fff; outline-offset: 2px; }
@media (max-width: 760px) { .icon, .head { translate: none !important; } }   /* phones keep the tidy grid */
@media (min-width: 761px) { .icons .icon, .docs-dock .icon, .heads .head { position: relative; z-index: 6; } }

/* Buy us a coffee */
.g-coffee { background: linear-gradient(#ffe866, #ffdd00); }
.coffee { text-align: center; }
.coffee-cup { font-size: 56px; line-height: 1; animation: steam 2.4s ease-in-out infinite; }
@keyframes steam { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-2px); } }
.coffee h2 { margin: 6px 0 4px; }
.coffee-btn { display: inline-block; margin: 8px 0 10px; padding: 11px 22px; border-radius: 12px; border: 2px solid var(--ink);
  background: #ffdd00; color: #111 !important; text-decoration: none !important; font-weight: bold; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.coffee-btn:hover { filter: brightness(1.05); }
.coffee-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.coffee-note { font-size: 11.5px !important; color: #666; max-width: 320px; margin: 0 auto !important; }
@media (prefers-reduced-motion: reduce) { .coffee-cup { animation: none; } }

/* Buy us a coffee lives in the middle of the right edge */
.coffee-dock { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 1; }
.coffee-dock .glyph { animation: coffeewiggle 4s ease-in-out infinite; }
@keyframes coffeewiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-8deg); } 94% { transform: rotate(8deg); } 97% { transform: rotate(-4deg); } }
@media (max-width: 760px) {
  .coffee-dock { position: relative; right: auto; top: auto; transform: none; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) { .coffee-dock .glyph { animation: none; } }
@media (min-width: 761px) { .dock .icon { position: relative; z-index: 6; } }

/* ---- icon groups: socials top-left, our work bottom-left ---- */
.group-label { display: none; }
@media (min-width: 761px) {
  .icons.icons-social, .icons.icons-work { bottom: auto; top: auto; flex-direction: row; flex-wrap: wrap; width: 184px; gap: 6px 8px; }
  .icons.icons-social { top: 10px; align-content: flex-start; }
  .icons.icons-work { bottom: 10px; align-content: flex-end; flex-wrap: wrap; }
}
/* squeezed (short) screens: drop to the stacked phone-style layout so the two groups never collide */
@media (min-width: 761px) and (max-height: 560px) {
  body { overflow: auto; }
  #desktop { position: relative; inset: auto; min-height: calc(100vh - var(--taskbar-h)); padding: 14px 16px calc(var(--taskbar-h) + 18px); overflow: visible; }
  .heads, .gadget, .icons, .dock { position: relative !important; inset: auto !important; transform: none !important; }
  .heads { justify-content: center; margin-bottom: 14px; }
  .gadget { margin: 0 auto 16px; max-height: none; }
  .icons, .dock { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); width: auto !important; margin-top: 14px; }
}
/* phones (and squeezed screens): each group gets a heading + divider, in this order: socials, work, coffee, documents */
@media (max-width: 760px), (max-height: 560px) {
  .group-label { display: block; grid-column: 1 / -1; color: #fff; font-weight: bold; font-size: 13px; letter-spacing: .06em;
    text-transform: uppercase; text-shadow: 1px 1px 2px #000; margin-bottom: -2px; }
  .icons.icons-work, .coffee-dock, .docs-dock { margin-top: 18px; padding-top: 14px; border-top: 2px dashed rgba(255,255,255,.75); }
}

/* drag & drop feels alive: lift + tilt while carried, squash-and-bounce on landing */
.icon.dragging .glyph, .head.dragging .face { transform: rotate(var(--tilt, 0deg)) scale(1.12); transition: transform .08s ease-out; }
.icon.dragging, .head.dragging { opacity: .92; }
.icon.landed .glyph, .head.landed .face { animation: land .55s cubic-bezier(.3,1.6,.5,1) both; animation-delay: inherit; }
@keyframes land {
  0% { transform: scale(1.12) translateY(-6px); }
  30% { transform: scale(1.18, .82) translateY(3px); }
  55% { transform: scale(.94, 1.08) translateY(-3px); }
  80% { transform: scale(1.03, .97); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .icon.dragging .glyph, .head.dragging .face { transform: none; } .icon.landed .glyph, .head.landed .face { animation: none; } }

/* service picker in the contact gadget */
.svc-native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.svc-picker { position: relative; }
.svc-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1.5px solid #9a8a4a; border-radius: 8px;
  background: #fff; cursor: pointer; text-align: left; font-size: 13px; box-shadow: inset 1px 2px 0 rgba(0,0,0,.06); }
.svc-btn:focus-visible { outline: 2px solid var(--cyan); border-color: var(--cyan-dark); }
.svc-picker .glyph { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-size: 18px; flex: 0 0 auto;
  border: 2px solid #111; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15), inset 0 4px 0 rgba(255,255,255,.35); }
.svc-btn .svc-current { flex: 1; font-weight: bold; color: #555; }
.svc-picker.chosen .svc-current { color: #111; }
.svc-caret { color: #777; transition: transform .2s; }
.svc-picker.open .svc-caret { transform: rotate(180deg); }
.svc-tray { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; padding: 8px; border: 1.5px solid #9a8a4a; border-radius: 10px;
  background: #fff7d1; animation: trayin .18s ease-out; }
.svc-tray[hidden] { display: none; }
@keyframes trayin { from { opacity: 0; transform: translateY(-4px); } }
.svc-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 4px; border: 1.5px solid transparent; border-radius: 8px;
  background: none; cursor: pointer; font-size: 11.5px; font-weight: bold; color: #333; text-align: center; line-height: 1.15; }
.svc-opt:hover, .svc-opt:focus-visible { background: #fff; border-color: #c9a227; outline: none; }
.svc-opt[aria-selected="true"] { background: var(--cyan); border-color: var(--cyan-dark); color: #003b45; }
.svc-opt .glyph { width: 40px; height: 40px; font-size: 21px; }
.svc-field.bad .svc-btn { border-color: #d11; background: #fff4f4; }
@media (max-width: 380px) { .svc-tray { grid-template-columns: repeat(2, 1fr); } }

/* window title bars show the app's own icon (same as its desktop + taskbar icon) */
.titlebar .tb-ico { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 4px; border: 1px solid rgba(255,255,255,.9); display: grid; place-items: center;
  overflow: hidden; font-size: 12px; line-height: 1; text-shadow: none; box-shadow: none; }
.titlebar .tb-ico.round { border-radius: 50%; }
.titlebar .tb-ico img, .titlebar .tb-ico svg { width: 100% !important; height: 100% !important; object-fit: cover; }
.titlebar .tb-ico.g-fb { font-size: 14px; }

/* RAD-OS name on the boot screen */
#boot .brand .os-name { display: block; font-size: 64px; line-height: .95; letter-spacing: .06em; color: #fff;
  text-shadow: 3px 3px 0 var(--pink), 6px 6px 0 var(--cyan); }
#boot .brand small { margin-top: 10px; font-size: 15px; color: var(--yellow); letter-spacing: .1em; }

/* RAD-OS in the Start menu header */
.sm-title { display: flex; flex-direction: column; line-height: 1.05; }
.sm-title b { font-family: var(--display); font-weight: normal; font-size: 26px; letter-spacing: .06em; text-shadow: 2px 2px 0 var(--pink); }
.sm-title small { font-size: 11px; font-weight: normal; opacity: .9; }

/* ---- Taskbar in the logo's colours: hot-pink bar, yellow "hand" Start button, cyan tray ---- */
#taskbar {
  background: linear-gradient(#ff7cc6 0%, #ff4fb0 7%, #f0249b 16%, #e01a8d 82%, #a3125f 100%);
  border-top: 2px solid #1e2350;
}
#start {
  color: #1e2350; text-shadow: 1px 1px 0 rgba(255,255,255,.6);
  background: linear-gradient(#fff3a0 0%, #f7e24a 28%, #f2d21e 75%, #c9a800 100%);
  box-shadow: inset -2px 0 4px rgba(30,35,80,.35), inset 0 1px 0 rgba(255,255,255,.7);
  border-right: 2px solid #1e2350;
}
#start img { filter: drop-shadow(1px 1px 0 rgba(30,35,80,.5)); }
.task { border-color: #a3125f; background: linear-gradient(#ff8fcc, #f64aa8); color: #fff; text-shadow: 1px 1px 0 #a3125f; }
.task.active { background: linear-gradient(#b81470, #d61f88); box-shadow: inset 1px 2px 3px rgba(0,0,0,.35); }
#tray {
  background: linear-gradient(#7ae6f4, #22cfe8 45%, #12b3cc); border-left: 2px solid #1e2350;
  color: #1e2350; box-shadow: inset 1px 0 0 rgba(255,255,255,.45);
}
#tray button { color: #1e2350; }
#tray .seen-meter { background: rgba(255,255,255,.35); color: #1e2350; box-shadow: inset 0 1px 2px rgba(30,35,80,.25); }
#tray .seen-meter b { color: #a3125f; }
#tray .seen-meter.done b { color: #0a7a2a; }
#tray .clock:hover, #tray .seen-meter:hover { background: rgba(255,255,255,.5); }
/* Start menu to match */
.sm-head { background: linear-gradient(#f0249b, #d61f88 55%, #ff4fb0); text-shadow: 1px 1px 1px #5c0a36; }
.sm-head img { background: var(--cyan); }
.sm-col + .sm-col { background: #e3f9fc; border-left-color: #9fe6f0; }
.sm-col button:hover, .sm-col a:hover, .sm-col button:focus-visible, .sm-col a:focus-visible { background: var(--pink); color: #fff; }
.sm-foot { background: linear-gradient(#ff4fb0, #d61f88); }
#startmenu { border-color: #1e2350; }

/* ---- contact gadget takes on the chosen service's icon colours ---- */
.gadget.retheme { animation: rethemepop .45s cubic-bezier(.2,1.5,.4,1); }
@keyframes rethemepop { 40% { transform: translate(-50%, -50%) scale(1.025); } }
@media (max-width: 760px) { @keyframes rethemepop { 40% { transform: scale(1.02); } } }
.gadget .send { transition: filter .2s; }

/* 📣 Brand & commercial: yellow, like its icon */
.gadget[data-theme="brand"] { background: linear-gradient(160deg, #fff 0%, #fff4a8 30%, #f2c230 100%); border-color: #8a6d00; }
.gadget[data-theme="brand"] .gadget-top .gname { color: #6b5300; }
.gadget[data-theme="brand"] .gadget-top .gname b { text-shadow: 2px 2px 0 #8a6d00, -1px -1px 0 #8a6d00, 1px -1px 0 #8a6d00, -1px 1px 0 #8a6d00; }
.gadget[data-theme="brand"] .panel h2 { color: #a67c00; }
.gadget[data-theme="brand"] .send { background: linear-gradient(#fff3a0, #f7e24a 55%, #e0b800); border-color: #6b5300; color: #2b2100; text-shadow: none; box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 3px 0 #6b5300; }

/* 🎤 Events: black, like its icon */
.gadget[data-theme="event"] { background: linear-gradient(160deg, #5a5a5a 0%, #2b2b2b 35%, #0d0d0d 100%); border-color: #000; box-shadow: 0 0 0 3px rgba(255,255,255,.5), 6px 10px 0 rgba(0,0,0,.35); }
.gadget[data-theme="event"] .gadget-top .gname { color: #ddd; }
.gadget[data-theme="event"] .gadget-top .gname b { text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.gadget[data-theme="event"] .panel h2 { color: #111; }
.gadget[data-theme="event"] .send { background: linear-gradient(#555, #222 55%, #000); border-color: #000; color: #fff; text-shadow: none; box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 3px 0 #000; }

/* 💍 Weddings: white + silver, like its icon */
.gadget[data-theme="wedding"] { background: linear-gradient(160deg, #fff 0%, #f3f3f3 35%, #c9c9c9 100%); border-color: #8a8a8a; }
.gadget[data-theme="wedding"] .gadget-top .gname { color: #555; }
.gadget[data-theme="wedding"] .gadget-top .gname b { color: #fff; text-shadow: 2px 2px 0 #8a8a8a, -1px -1px 0 #8a8a8a, 1px -1px 0 #8a8a8a, -1px 1px 0 #8a8a8a; }
.gadget[data-theme="wedding"] .panel h2 { color: #8a7a5a; }
.gadget[data-theme="wedding"] .send { background: linear-gradient(#fff, #ececec 55%, #cfcfcf); border-color: #777; color: #333; text-shadow: none; box-shadow: inset 0 2px 0 #fff, 0 3px 0 #777; }

/* 📸 Photography: the purple-pink-orange gradient of its icon */
.gadget[data-theme="photo"] { background: linear-gradient(160deg, #feda75 0%, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5 100%); border-color: #4b1a6b; }
.gadget[data-theme="photo"] .gadget-top .gname { color: #fff; }
.gadget[data-theme="photo"] .gadget-top .gname b { text-shadow: 2px 2px 0 #4b1a6b, -1px -1px 0 #4b1a6b, 1px -1px 0 #4b1a6b, -1px 1px 0 #4b1a6b; }
.gadget[data-theme="photo"] .panel h2 { color: #962fbf; }
.gadget[data-theme="photo"] .send { background: linear-gradient(90deg, #fa7e1e, #d62976, #962fbf); border-color: #4b1a6b; box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 3px 0 #4b1a6b; }

/* 🎸 Music videos: hot pink, like its icon (a deeper version of the default) */
.gadget[data-theme="music"] { background: linear-gradient(160deg, #ffd1ec 0%, #f0249b 45%, #a3125f 100%); border-color: #5c0a36; }
.gadget[data-theme="music"] .gadget-top .gname { color: #fff; }

/* founders' Instagram posts at the bottom of their windows */
.founder-ig { padding-top: 0 !important; }
.founder-ig .ig-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.founder-ig .ig-post iframe { height: 500px; }

/* "See this service" button beside the service dropdown */
.svc-picker { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: stretch; }
.svc-picker .svc-tray { grid-column: 1 / -1; }
.svc-view { white-space: nowrap; font-size: 11.5px; padding: 4px 10px; justify-content: center; }
.svc-view[hidden] { display: none; }
@media (max-width: 420px) { .svc-picker { grid-template-columns: 1fr; } }

/* demo videos inside the service apps */
.svc-demos { grid-template-columns: repeat(auto-fill, minmax(280px, 340px)); justify-content: center; }
.svc-demos .ig-post { margin: 0; }
.svc-demos .ig-post iframe { height: 560px; }
.svc-demos figcaption { font-size: 12px; font-weight: bold; text-align: center; padding: 6px 8px; background: #fff8d6; border-top: 1px solid #e0c34a; }

/* YouTube demos span the full width above the Instagram ones */
.svc-demos .yt-demo { grid-column: 1 / -1; width: 100%; }
.svc-demos .yt-demo .video { border: 0; border-radius: 0; }
.svc-demos .yt-demo .player-bar { border-radius: 0; }

/* films.exe: the gadget turns into a red cinema curtain */
.gadget[data-theme="film"] { background: linear-gradient(160deg, #e0605a 0%, #a3161b 35%, #4d0507 100%); border-color: #2a0203; }
.gadget[data-theme="film"] .gadget-top .gname { color: #ffe08a; }
.gadget[data-theme="film"] .gadget-top .gname b { color: #ffe08a; text-shadow: 2px 2px 0 #2a0203, -1px -1px 0 #2a0203, 1px -1px 0 #2a0203, -1px 1px 0 #2a0203; }
.gadget[data-theme="film"] .panel h2 { color: #8a0f13; }
.gadget[data-theme="film"] .send { background: linear-gradient(#ffe9a3, #f2c14e 55%, #c99212); border-color: #4d0507; color: #2a0203; text-shadow: none; box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 3px 0 #4d0507; }
/* photography.exe: Jayk's Instagram posts in a tighter grid */
#win-svc-photo .svc-demos figcaption, .svc-photo-ig figcaption { font-weight: normal; }

/* websites embedded right inside a service app */
.svc-demos .site-demo { overflow: hidden; }
.svc-demos .site-demo iframe { width: 200%; height: 1040px; border: 0; background: #fff; display: block; transform: scale(.5); transform-origin: top left; }

/* highlighted videos sit in the middle of the left edge; folders stay bottom-left */
@media (min-width: 761px) {
  .icons.icons-videos { top: 50%; bottom: auto; transform: translateY(-50%); flex-direction: row; flex-wrap: wrap; width: 184px; gap: 6px 8px; }
}
@media (max-width: 760px), (max-height: 560px) {
  .icons.icons-videos { margin-top: 18px; padding-top: 14px; border-top: 2px dashed rgba(255,255,255,.75); }
}

/* ---- Easter egg: gravity ---- */
.phys { will-change: transform; z-index: 7 !important; }
.gadget.phys { z-index: 6 !important; }
.phys-layer { position: fixed; inset: 0; bottom: var(--taskbar-h); z-index: 950; background: transparent; touch-action: none; }
.phys-reset { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1600;
  font: bold 14px/1 var(--ui, Tahoma, sans-serif); padding: 9px 18px; border-radius: 999px; border: 2px solid var(--ink, #1e2350);
  background: linear-gradient(#fff6a8, #ffd93b 55%, #f2b705); color: #1e2350; box-shadow: 0 3px 0 #1e2350, 0 6px 14px rgba(0,0,0,.25);
  animation: physin .5s cubic-bezier(.2,1.6,.4,1) both; }
.phys-reset:hover { filter: brightness(1.06); }
.phys-reset:active { transform: translateX(-50%) translateY(2px); box-shadow: 0 1px 0 #1e2350; }
.phys-reset.going { animation: physout .35s ease-in .2s forwards; }
@keyframes physin { from { transform: translate(-50%, -80px) scale(.6); } to { transform: translateX(-50%); } }
@keyframes physout { to { transform: translate(-50%, -80px) scale(.6); opacity: 0; } }

.phys-marquee { position: fixed !important; z-index: 960 !important; }
.phys.sel .glyph, .phys.sel .face { outline: 2px dotted #fff; outline-offset: 2px; }

.win.phys-win { transform-origin: 50% 50%; z-index: 8 !important; box-shadow: 4px 8px 18px rgba(0,0,0,.35); }

/* Games folder: right edge, under the founder faces */
@media (min-width: 761px) { .games-dock { left: auto; right: 10px; bottom: auto; top: 118px; z-index: 1; } }
@media (max-width: 760px), (max-height: 560px) {
  .games-dock { margin-top: 18px; padding-top: 14px; border-top: 2px dashed rgba(255,255,255,.75); }
}

/* ---- service bar: every service in one row; picking one floods the gadget with its colour ---- */
.svc-picker { display: block !important; }
.svc-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 5px; border: 1.5px solid #9a8a4a; border-radius: 10px; background: rgba(255,255,255,.75); }
.svc-row .svc-opt { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 1px 4px; min-width: 0;
  border: 1.5px solid transparent; border-radius: 8px; background: none; font: inherit; font-size: 10px; font-weight: bold; color: #333; cursor: pointer;
  transition: filter .3s, opacity .3s, transform .2s, background .2s; }
.svc-row .svc-opt .glyph { width: 34px; height: 34px; font-size: 18px; border-radius: 8px; }
.svc-row .svc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.svc-row .svc-opt:hover, .svc-row .svc-opt:focus-visible { background: #fff; border-color: #c9a227; outline: none; transform: translateY(-2px); }
.svc-row.chosen .svc-opt[aria-checked="false"] { filter: grayscale(1); opacity: .45; }
.svc-row.chosen .svc-opt[aria-checked="false"]:hover, .svc-row.chosen .svc-opt[aria-checked="false"]:focus-visible { filter: grayscale(.2); opacity: .9; }
.svc-row .svc-opt[aria-checked="true"] { background: #fff; border-color: var(--ink, #1e2350); box-shadow: 0 2px 0 var(--ink, #1e2350); transform: translateY(-2px); }
.svc-opt.boing .glyph { animation: svcboing .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes svcboing { 0% { transform: scale(.7) rotate(-10deg); } 60% { transform: scale(1.18) rotate(5deg); } 100% { transform: none; } }
.svc-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; min-height: 26px; font-size: 12px; color: #555; }
.svc-picker.chosen .svc-current { color: #111; }
.svc-field.bad .svc-row { border-color: #d11; background: #fff4f4; }
.gadget .svc-splash { position: absolute; inset: 0; border-radius: inherit; z-index: 60; pointer-events: none; display: grid; place-items: center; clip-path: circle(0px at 50% 50%); }
.svc-splash-in { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-family: var(--display, inherit); font-size: 26px; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.svc-splash-ico { font-size: 74px; line-height: 1; filter: drop-shadow(0 6px 0 rgba(0,0,0,.2)); }
@media (max-width: 380px) { .svc-row { gap: 2px; padding: 4px; } .svc-row .svc-opt .glyph { width: 30px; height: 30px; font-size: 16px; } .svc-row .svc-opt { font-size: 9px; } }
.svc-row .svc-opt { font-size: 9.5px; letter-spacing: -.01em; }
.svc-row .svc-name { overflow: visible; text-overflow: clip; }

/* ---- Tic-Tac-Bot ---- */
/* Tic-Tac-Bot (v1): bare bones, white on black, an ASCII robot that types its lines out */
.ttt { padding: 14px; background: #000; color: #fff; min-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: "VT323", ui-monospace, Menlo, Consolas, monospace; }
.ttt-hud { width: 100%; max-width: 330px; display: flex; justify-content: space-between; align-items: center; font-size: 16px; letter-spacing: .04em; }
.ttt-hud b { color: #fff; font-size: 19px; }
.ttt-title { font-size: 23px; letter-spacing: .14em; }
.ttt-talk { width: 100%; max-width: 330px; display: flex; align-items: center; gap: 10px; min-height: 70px; }
.ttt-bot { flex: 0 0 auto; width: 88px; height: 70px; margin: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid #fff; font: 14px/1.2 ui-monospace, Menlo, Consolas, monospace; white-space: pre; }
.ttt-bot[data-mood="think"] { animation: tttthink .6s ease-in-out infinite alternate; }
.ttt-bot[data-mood="gloat"] { animation: tttgloat .5s ease-in-out 3; }
.ttt-bot[data-mood="mad"] { animation: tttmad .08s linear 8; }
.ttt-bot[data-mood="bored"] { opacity: .55; }
@keyframes tttthink { to { transform: rotate(6deg) translateY(-3px); } }
@keyframes tttgloat { 50% { transform: scale(1.18); } }
@keyframes tttmad { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .ttt-bot { animation: none !important; } }
.ttt-bubble { flex: 1; margin: 0; border: 1px solid #fff; padding: 8px 10px; font-size: 16px; line-height: 1.3; min-height: 44px; display: flex; align-items: center; }
.ttt-prompt { opacity: .6; }
@keyframes tttpop { from { transform: scale(.85); opacity: .4; } }
.ttt-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; width: 100%; max-width: 280px; aspect-ratio: 1; background: #fff; padding: 2px; }
.ttt-cell { border: 0; background: #000; color: #fff; font: 44px/1 ui-monospace, Menlo, Consolas, monospace; display: grid; place-items: center; cursor: pointer; }
.ttt-cell:not(:disabled):hover { background: #222; }
.ttt-cell.x, .ttt-cell.o { animation: tttpop .2s ease-out; }
.ttt-cell.won { background: #fff; color: #000; }
.ttt-cell:disabled { cursor: default; }
.ttt-foot { width: 100%; max-width: 330px; display: flex; justify-content: space-between; align-items: center; font-size: 15px; min-height: 30px; }
.ttt-foot b { color: #fff; }
.ttt-reset { background: none; border: 0; color: #fff; opacity: .65; font-size: 14px; text-decoration: underline; cursor: pointer; }
.ttt-reset:hover { opacity: 1; }
.ttt-again[hidden] { display: none; }
.ttt .xbtn { font: 16px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .03em; color: #fff; background: #000; padding: 5px 16px;
  border-radius: 0; border: 1px solid #fff; box-shadow: none; text-shadow: none; }
.ttt .xbtn:hover { background: #fff; color: #000; }

/* service bar, calmer: colour seeps in behind the form, faint ripple, gentle grey-out */
.gadget > .svc-splash { z-index: 0; }
.gadget > *:not(.svc-splash):not(.svc-ripple) { position: relative; z-index: 1; }
.svc-splash-in { display: none; }
.gadget .svc-ripple { position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 2px solid; pointer-events: none; z-index: 4; }
.svc-row.chosen .svc-opt[aria-checked="false"] { filter: grayscale(.8); opacity: .62; }
.svc-row.chosen .svc-opt[aria-checked="false"]:hover, .svc-row.chosen .svc-opt[aria-checked="false"]:focus-visible { filter: none; opacity: 1; }
.svc-row .svc-opt { transition: filter .6s ease, opacity .6s ease, transform .2s, background .2s; }

/* small "this opens in a new tab" window for sites that can't be embedded */
.ie-mini { display: flex; flex-direction: column; gap: 12px; }
.ie-mini-top { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.ie-mini-ico { font-size: 28px; line-height: 1; }
.ie-mini-url { margin-top: 6px; padding: 4px 8px; background: #fff; border: 1px solid #b9b5a2; border-radius: 4px; font: 12px/1.3 ui-monospace, Menlo, monospace; color: #0645ad;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 290px; }
.ie-mini-btns { display: flex; justify-content: flex-end; gap: 8px; }

/* old-colour copies that wipe away to reveal the new theme colours */
.wipe-ghost { -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 60%); mask-image: linear-gradient(90deg, transparent 40%, #000 60%);
  -webkit-mask-size: 250% 100%; mask-size: 250% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 100% 0; mask-position: 100% 0; }

/* "More info" shakes after you pick a service; picked service hints it can be clicked again */
.svc-view.shake { animation: viewshake .7s cubic-bezier(.36,.07,.19,.97); }
@keyframes viewshake { 10%, 90% { transform: translateX(-1px) rotate(-1deg); } 20%, 80% { transform: translateX(3px) rotate(2deg); } 30%, 50%, 70% { transform: translateX(-4px) rotate(-3deg); } 40%, 60% { transform: translateX(4px) rotate(3deg); } }
.svc-row .svc-opt[aria-checked="true"] { cursor: pointer; }

/* smoother theme changes: frame + button borders and shadows fade instead of snapping; wipe copies are composited */
.gadget { transition: border-color .6s ease, box-shadow .6s ease; }
.gadget .send { transition: filter .2s, border-color .6s ease, box-shadow .6s ease; }
.wipe-ghost { -webkit-mask-image: none !important; mask-image: none !important; will-change: clip-path, opacity; }

/* gravity mode: icons keep their colour (no "already opened" grey) */
.icon.phys.seen .glyph, .head.phys.seen .face { filter: none; opacity: 1; }
.icon.phys.seen, .head.phys.seen { color: #fff; }
/* hinged Start menu / checklist panels in gravity mode */
#startmenu.hinged[hidden] { display: block; }
.checklist.hinged { opacity: 1; pointer-events: auto; }
.hinged { will-change: transform; box-shadow: 3px 3px 0 rgba(0,0,0,.25), 0 10px 24px rgba(0,0,0,.25); }

/* ---- Scene Stacker ---- */

/* ---- retro typing: pixel-terminal text, chunky block cursor, a little press on every key ---- */
.field input:not([type="checkbox"]):not([type="radio"]):not([type="date"]), .field textarea, .other input {
  font-family: "VT323", ui-monospace, "Courier New", monospace; font-size: 19px; line-height: 1.1; letter-spacing: .02em; color: #1e2350;
  caret-color: var(--pink); caret-shape: block; padding-top: 4px; padding-bottom: 4px;
}
.field input::placeholder, .field textarea::placeholder, .other input::placeholder { font-family: "VT323", ui-monospace, monospace; font-size: 18px; color: #a8a08a; }
.field input:focus, .field textarea:focus, .other input:focus {
  background: #fffef2 repeating-linear-gradient(0deg, rgba(30,35,80,.035) 0 1px, transparent 1px 3px);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,.12), 0 0 0 3px rgba(34,207,232,.25);
}
.keyhit { animation: keyhit .09s ease-out; }
@keyframes keyhit { 40% { transform: translateY(1px); box-shadow: inset 2px 3px 0 rgba(0,0,0,.18), 0 0 0 3px rgba(240,36,155,.25); } }
@media (prefers-reduced-motion: reduce) { .keyhit { animation: none; } }

/* logo page: a celebratory "you found it" stamp instead of TOP SECRET */
.secret .stamp { border-color: #17a34a; color: #17a34a; font-size: 17px; transform: rotate(8deg); max-width: 170px; text-align: center; line-height: 1.05; padding: 4px 10px; background: rgba(255,255,255,.7); }
/* sticky note stuck to the bottom-left corner of the logo window */
.sticky-note { position: absolute; left: 14px; bottom: 14px; z-index: 5; width: 150px; padding: 18px 12px 14px; transform: rotate(-5deg);
  background: linear-gradient(#fff59a, #ffe95a); color: #222; font-family: "Permanent Marker", "Comic Sans MS", cursive; font-size: 15px; line-height: 1.25; text-align: center;
  box-shadow: 2px 4px 8px rgba(0,0,0,.25), inset 0 -10px 14px rgba(0,0,0,.04); border-radius: 2px 2px 14px 2px; transition: transform .2s; }
.sticky-note::before { content: ""; position: absolute; left: 50%; top: -9px; width: 64px; height: 20px; transform: translateX(-50%) rotate(3deg);
  background: rgba(255,255,255,.55); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.sticky-note:hover { transform: rotate(-2deg) scale(1.04); }
@media (max-width: 760px) { .sticky-note { width: 128px; font-size: 13px; left: 10px; bottom: 10px; } }

/* every app found: nothing is greyed out any more (until Start → Restart) */
body.all-found .icon.seen .glyph, body.all-found .head.seen .face, body.all-found .sm-col .seen .ico { filter: none; opacity: 1; transition: filter .9s ease, opacity .9s ease; }
body.all-found .icon.seen, body.all-found .head.seen { color: #fff; }
body.all-found .files .icon.seen { color: var(--ink); }
body.all-found .sm-col .seen { color: inherit; }

.sticky-note { position: fixed; left: 18px; bottom: calc(var(--taskbar-h) + 18px); z-index: 1500; animation: notein .45s cubic-bezier(.2,1.5,.4,1) backwards; }
@keyframes notein { from { transform: translateY(40px) rotate(-14deg); opacity: 0; } }

/* the sticky note is a button: click it and it peels off and drops away */
button.sticky-note { border: 0; cursor: pointer; }
.sticky-note.fall { animation: notefall 1.1s cubic-bezier(.5,0,.75,0) forwards; pointer-events: none; }
@keyframes notefall {
  0% { transform: rotate(-5deg); }
  18% { transform: rotate(6deg) translate(4px, -6px); }
  32% { transform: rotate(-2deg) translate(-2px, 6px); }
  100% { transform: rotate(38deg) translate(80px, 110vh); }
}
/* Mr. Gravity's scribble on the wall, hidden until the note falls */
.wall-scribble { position: fixed; left: 14px; bottom: calc(var(--taskbar-h) + 20px); z-index: 1499; width: 180px; transform: rotate(-4deg);
  font-family: "Rock Salt", "Permanent Marker", cursive; font-size: 14px; line-height: 1.45; color: #1e2350; text-shadow: 0 0 1px rgba(30,35,80,.4), 1px 1px 0 rgba(255,255,255,.35);
  opacity: 0; transition: opacity .5s ease .25s; pointer-events: none; }
.wall-scribble span { display: block; margin-top: 4px; text-align: right; font-size: 12px; transform: rotate(3deg); }
.wall-scribble.shown { opacity: .92; }
@media (max-width: 760px) { .wall-scribble { width: 150px; font-size: 12px; left: 10px; } }
@media (prefers-reduced-motion: reduce) { .sticky-note.fall { animation-duration: .01s; } }
.wall-scribble { padding: 16px 18px; background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.8) 0%, rgba(255,255,255,.6) 48%, rgba(255,255,255,0) 74%); left: 4px; bottom: calc(var(--taskbar-h) + 6px); }

/* the Mr.gravity note lives at the bottom-left of the logo page, just past the photo (overrides the old screen-pinned version) */
.note-spot { clear: both; position: relative; width: 190px; height: 150px; margin: 18px 0 6px 6px; }
.note-spot .sticky-note { position: absolute; left: 14px; top: 12px; bottom: auto; z-index: 2; animation: none; }
.note-spot .sticky-note.fall { animation: notefall 1.1s cubic-bezier(.5,0,.75,0) forwards; }
.note-spot .sticky-note.fall { --fall: 420px; }
@keyframes notefall {
  0% { transform: rotate(-5deg); }
  18% { transform: rotate(6deg) translate(4px, -6px); }
  32% { transform: rotate(-2deg) translate(-2px, 6px); }
  100% { transform: rotate(38deg) translate(60px, 420px); opacity: 0; }
}
.note-spot .wall-scribble { position: absolute; left: 0; top: 0; bottom: auto; z-index: 1; width: 170px; padding: 14px 16px; color: #1e2350;
  background: none; text-shadow: none; transform: rotate(-4deg); }
.secret { overflow: hidden; }

/* the Mr.gravity note jitters now and then, begging to be clicked */
.note-spot .sticky-note:not(.fall) { animation: notejitter 2.6s ease-in-out infinite; }
.note-spot .sticky-note:not(.fall):hover { animation: none; transform: rotate(-2deg) scale(1.05); }
@keyframes notejitter {
  0%, 70%, 100% { transform: rotate(-5deg); }
  74% { transform: rotate(-2.5deg) translateX(1px); }
  78% { transform: rotate(-7deg) translateX(-1px); }
  82% { transform: rotate(-3.5deg) translateY(-1px); }
  86% { transform: rotate(-6deg); }
  90% { transform: rotate(-4.5deg); }
}
@media (prefers-reduced-motion: reduce) { .note-spot .sticky-note:not(.fall) { animation: none; } }

/* Restart confirm: the Restart button looks a little dangerous */
.restart-go { background: linear-gradient(#ff8a8a, #e23b3b) !important; color: #fff !important; border-color: #8a1414 !important; }

/* gravity mode: a window's taskbar tab shakes and shrinks away with it (1s jitter, then collapse, same timing as the window) */
.task.task-dying { overflow: hidden; pointer-events: none; min-width: 0; animation: taskdie 1.34s linear forwards; }
@keyframes taskdie {
  0% { transform: none; max-width: var(--tw); }
  10% { transform: translate(-1px, 0) rotate(-1deg); }
  20% { transform: translate(1px, -1px) rotate(1deg); }
  30% { transform: translate(-2px, 1px) rotate(-1.5deg); }
  40% { transform: translate(2px, 0) rotate(2deg); }
  50% { transform: translate(-3px, -1px) rotate(-2.5deg); }
  58% { transform: translate(3px, 1px) rotate(3deg); }
  66% { transform: translate(-4px, 0) rotate(-3deg); }
  74.6% { transform: translate(3px, -1px) rotate(3deg) scale(1.04); opacity: 1; max-width: var(--tw); padding: 0 8px; margin: 0; }
  100% { transform: rotate(-30deg) scale(0); opacity: 0; max-width: 0; padding: 0; margin: 0; border-width: 0; }
}

/* ---- Noah takes over: remote-control bar, his cursor, and a shield that eats the real mouse ---- */
.takeover-shield { position: fixed; inset: 0; z-index: 4000; cursor: none; background: transparent; }
.takeover-bar { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 4002; display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 0 0 10px 10px; background: linear-gradient(#ffef8a, #f7d417); color: #1e2350; font-size: 13px;
  border: 2px solid #1e2350; border-top: 0; box-shadow: 0 4px 12px rgba(0,0,0,.3); animation: tobar .35s cubic-bezier(.2,1.5,.4,1) both; }
.takeover-bar img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid #1e2350; }
.takeover-bar.bye { animation: tobarout .35s ease-in forwards; }
@keyframes tobar { from { transform: translate(-50%, -100%); } }
@keyframes tobarout { to { transform: translate(-50%, -110%); } }
.takeover-cursor { position: fixed; left: 0; top: 0; z-index: 4003; pointer-events: none; will-change: transform; }
.takeover-cursor img { width: 26px; height: 26px; display: block; margin: -2px 0 0 -8px; transition: transform .08s; filter: drop-shadow(1px 2px 0 rgba(0,0,0,.35)); }
.takeover-cursor span { position: absolute; left: 16px; top: 20px; padding: 2px 7px; border-radius: 6px; background: var(--pink); color: #fff; font-size: 11px; font-weight: bold; white-space: nowrap; box-shadow: 1px 2px 0 rgba(0,0,0,.25); }
.takeover-cursor.down img { transform: scale(.82) translateY(2px); }
.takeover-cursor.bye { opacity: 0; transition: opacity .4s; }

/* RAD-OS version tag in the Start menu header */
.sm-title .os-ver { font-family: var(--ui); font-size: 12px; letter-spacing: 0; text-shadow: none; vertical-align: middle; margin-left: 4px; padding: 1px 6px; border-radius: 8px; background: rgba(255,255,255,.22); }
/* Noah takeover: XP-style notification balloon above the clock */
.takeover-toast { position: fixed; right: 12px; bottom: calc(var(--taskbar-h) + 12px); z-index: 4002; display: flex; align-items: center; gap: 10px; max-width: 290px;
  padding: 10px 14px 10px 10px; background: #fffef2; color: #1e2350; border: 2px solid #1e2350; border-radius: 10px; font-size: 13px; line-height: 1.35;
  box-shadow: 3px 4px 0 rgba(0,0,0,.25); animation: toastin .45s cubic-bezier(.2,1.5,.4,1) .25s both; }
.takeover-toast::after { content: ""; position: absolute; right: 40px; bottom: -11px; border: 10px solid transparent; border-top-color: #1e2350; border-bottom: 0; }
.takeover-toast img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; border: 2px solid #1e2350; flex: 0 0 auto; }
.takeover-toast b { display: block; color: #d11; font-size: 12px; letter-spacing: .03em; }
.takeover-toast.bye { animation: toastout .35s ease-in forwards; }
@keyframes toastin { from { transform: translateY(30px) scale(.9); opacity: 0; } }
@keyframes toastout { to { transform: translateY(20px); opacity: 0; } }

/* checklist: secrets section shows how many exist (unfound ones are ⭐ ???) */
.checklist li.sec-head { grid-column: 1 / -1; margin-top: 6px; padding-top: 5px; border-top: 1px dashed #bbb; color: #a3125f; font-weight: bold; font-size: 11px; }
.checklist li.bonus:not(.on) { color: #aaa; }

/* our_gear.txt */
.gear ul { margin: 4px 0 8px; padding-left: 20px; line-height: 1.6; }

/* Noah's cursor when he misses his own face */
.takeover-cursor.huh img { animation: huh .38s ease-in-out; }
@keyframes huh { 20% { transform: rotate(-14deg); } 45% { transform: rotate(12deg); } 70% { transform: rotate(-6deg); } }
/* in gravity mode the form's boxes still take clicks and typing */
.gadget.phys input:focus, .gadget.phys textarea:focus { outline: 3px solid var(--pink); }

/* gravity mode: pop-up dialogs (Message sent!, Restart?…) sit above the physics layer so they can be clicked */
body.gravity-on .win.dialog { z-index: 3000 !important; }

/* ---- select-all easter egg ---- */
.egg-shield { position: fixed; inset: 0; z-index: 3500; cursor: default; }
.egg-video { position: fixed; inset: 0; width: 100vw; height: calc(100vh - var(--taskbar-h)); object-fit: contain; z-index: 3600; pointer-events: none; background: transparent; transition: opacity .4s; }
.egg-video.bye { opacity: 0; }
.egg-placeholder { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px; background: rgba(30,35,80,.85); color: #fff; font-size: 14px; }
.egg-bubble { position: fixed; z-index: 3700; transform: translate(-50%, -100%); padding: 10px 16px; border-radius: 14px; background: #fff; color: #1e2350; border: 2px solid #1e2350;
  font-weight: bold; font-size: 15px; white-space: nowrap; box-shadow: 3px 4px 0 rgba(0,0,0,.25); animation: tttpop .35s cubic-bezier(.2,1.6,.4,1); }
.egg-bubble::after { content: ""; position: absolute; left: 50%; bottom: -12px; margin-left: -8px; border: 10px solid transparent; border-top-color: #1e2350; border-bottom: 0; }
.egg-bubble.bye { opacity: 0; transition: opacity .35s; }

/* Reset desktop / Skip cutscene: see-through and greyed out until you hover */
.phys-reset { background: rgba(255,255,255,.28) !important; color: rgba(30,35,80,.55) !important; border-color: rgba(30,35,80,.3) !important;
  box-shadow: none !important; backdrop-filter: blur(2px); transition: background .2s, color .2s, opacity .2s; }
.phys-reset:hover, .phys-reset:focus-visible { background: rgba(255,255,255,.7) !important; color: #1e2350 !important; }
.egg-skip { z-index: 3800; }

/* hold-Space-to-skip: a fill bar inside the see-through button */
.egg-skip { overflow: hidden; pointer-events: none; padding: 9px 18px; }
.egg-skip .egg-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(240,36,155,.45); }
.egg-skip .egg-label { position: relative; }
.egg-skip kbd { font: inherit; font-size: 11px; padding: 0 5px; border: 1px solid currentColor; border-radius: 4px; }
.egg-skip.holding, .egg-skip.done { background: rgba(255,255,255,.7) !important; color: #1e2350 !important; }

.egg-bubble { transform: none; }
.egg-bubble::after { left: 26px; margin-left: 0; }

/* the mouse character's text box */
.egg-mouse { z-index: 3750; }
.egg-say { position: fixed; z-index: 3760; max-width: 280px; padding: 8px 12px; border-radius: 4px 12px 12px 12px; background: #fffef2; color: #1e2350;
  border: 2px solid #1e2350; font: 15px/1.3 "VT323", ui-monospace, monospace; box-shadow: 3px 3px 0 rgba(0,0,0,.25); animation: tttpop .3s cubic-bezier(.2,1.6,.4,1); }
.egg-say.bye { opacity: 0; transition: opacity .3s; }

.egg-say .egg-caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--pink); animation: caretblink .8s steps(1) infinite; }
@keyframes caretblink { 50% { opacity: 0; } }

/* Noah's video sits inside the desktop: above the wallpaper and the form, below the icons */
#desktop > .egg-video { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; }

.egg-skip { pointer-events: auto; cursor: pointer; }

/* ---- wallpapers ---- */
body[data-wall="hills"] #desktop {
  background-color: #22cfe8;
  background-image: linear-gradient(170deg, rgba(34,207,232,.55) 0%, rgba(34,207,232,.25) 35%, rgba(240,36,155,.22) 62%, rgba(247,226,74,.2) 100%), url("/assets/brand/wallpaper-hills.jpg");
  background-size: cover, cover; background-position: center, center bottom; background-blend-mode: soft-light, normal;
}
body[data-wall="hills"] #desktop::before { left: auto; right: 2.5%; top: 3%; transform: none; width: min(26vh, 20vw); opacity: .4; }
.wall-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.wall-opt { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 8px; border: 2px solid transparent; border-radius: 10px; background: #fff; cursor: pointer; font-weight: bold; }
.wall-opt.on { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(240,36,155,.2); }
.wall-thumb { width: 100%; aspect-ratio: 16 / 10; border-radius: 6px; border: 1px solid #ccc; background-size: cover; background-position: center; }
.wall-thumb-classic { background: #22cfe8 url("/assets/brand/logo.png") center / 45% no-repeat; }
.wall-thumb-hills { background-image: linear-gradient(170deg, rgba(34,207,232,.55), rgba(240,36,155,.22) 62%, rgba(247,226,74,.2)), url("/assets/brand/wallpaper-hills.jpg"); background-blend-mode: soft-light, normal; background-size: cover; }

/* phones: no recycle bin; desktop-only secrets are labelled in the checklist */
@media (max-width: 760px) { [data-open="bin"] { display: none !important; } }
.checklist .desk-only { font-size: 9.5px; color: #a3125f; border: 1px solid #f0249b; border-radius: 6px; padding: 0 4px; margin-left: 3px; white-space: nowrap; }

/* ---- client pages + the "Our clients" desktop group (left side, under Highlighted videos) ---- */
@media (min-width: 761px) {
  .icons.icons-videos { top: 30%; }
  .icons.icons-clients { top: 56%; bottom: auto; transform: translateY(-50%); flex-direction: row; flex-wrap: wrap; width: 184px; gap: 6px 8px; }
}
@media (max-width: 760px), (max-height: 560px) {
  .icons.icons-clients { margin-top: 18px; padding-top: 14px; border-top: 2px dashed rgba(255,255,255,.75); }
}
.client-sub { margin: 14px 0 2px; font-size: 14px; color: var(--pink-dark, #a3125f); }
.client-note { font-size: 12.5px; margin: 0 0 8px; color: #555; }
.client-reels { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.client-reels .ig-post iframe { height: 520px; }
.client-reels figcaption { font-size: 12px; font-weight: bold; text-align: center; padding: 6px 8px; background: #fff8d6; border-top: 1px solid #e0c34a; }

.client-video { position: relative; width: min(100%, 340px); aspect-ratio: 9 / 16; margin: 8px auto 12px; border: 3px solid #1e2350; border-radius: 10px; overflow: hidden; background: #000; }
.client-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Braze Vol. VIII cover feature */
.cover-feature { width: min(100%, 340px); margin: 4px auto 14px; border: 3px solid #1e2350; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 4px 4px 0 rgba(0,0,0,.15); }
.cover-feature img { display: block; width: 100%; height: auto; }
.cover-feature figcaption { padding: 8px 10px; font-size: 13px; text-align: center; background: #fff8d6; border-top: 2px solid #1e2350; }
.client-quote { margin: 6px 0 10px; padding: 10px 14px; border-left: 4px solid var(--pink); background: #fff8d6; font-size: 15px; font-style: italic; }
.client-quote cite { display: block; margin-top: 4px; font-size: 12px; font-style: normal; color: #555; }

/* Little pop-up clips: the unicycle video and the Bubsy picture (v0.21.0) */
.clip-pop { position: fixed !important; left: 50% !important; top: 46% !important; width: min(340px, 86vw) !important; height: auto !important;
  transform: translate(-50%, -50%); z-index: 3000; cursor: pointer; animation: clipin .28s cubic-bezier(.2,1.5,.4,1) backwards; border-radius: 9px 9px 4px 4px !important; }
.clip-pop .titlebar { cursor: pointer; }
.clip-pop .clip-body { background: #000; margin: 0 0 3px; line-height: 0; }
.clip-pop video, .clip-pop img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; }
.clip-pop.out { animation: clipout .25s ease-in forwards; }
@keyframes clipin { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } }
@keyframes clipout { to { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }
/* the unicycle fun fact looks like plain text (a hidden surprise); only the pointer gives it away */
.win .content a.unicycle-link.unicycle-link.unicycle-link, .win .content a.unicycle-link.unicycle-link.unicycle-link:visited, .win .content a.unicycle-link.unicycle-link.unicycle-link:hover {   /* (beats the blue-link rule) */ color: inherit; text-decoration: none; cursor: pointer; }

/* Client & coffee logos: fill the icon and get clipped to its rounded corners (nothing pokes out past the curve) */
.glyph:has(> .cimg), .tico:has(> .cimg) { overflow: hidden; padding: 0; }
.glyph > .cimg, .tico > .cimg { width: 100% !important; height: 100% !important; object-fit: cover; display: block; border-radius: inherit; }
.icon .glyph:has(> .cimg) { border-radius: 10px; }
.icon .glyph:has(> .cimg) { background: #fff; box-shadow: 2px 3px 0 rgba(0,0,0,.35); }
.icon .glyph.g-film:has(> .cimg) { background: #000; }   /* the Braze logo is see-through */

/* Bug fix: YouTube players inside folders/service apps (Advertisements, music_videos.exe…) were forced 560px tall by the
   Instagram-post rule, so only a black slice of the player showed. A YouTube player always fills its 16:9 box. */
.ig-post .video iframe, .svc-demos .ig-post .video iframe, .founder-ig .ig-post .video iframe, .client-reels .ig-post .video iframe { height: 100%; }

/* Bug fix (phones): the checklist's title and its "x/11 · ⭐ x/10" count sat on top of each other, and the list ran off the
   right edge of the screen. The count now gets its own line under the title, and on phones the list spans the screen. */
.checklist .cl-head { padding-right: 0; }
.checklist .cl-count { position: static; display: block; margin: 0 0 2px; }
@media (max-width: 760px) {
  #tray .seen-meter { position: static; }
  .checklist { position: fixed; left: 8px; right: 8px; width: auto; bottom: calc(var(--taskbar-h) + 8px); max-height: calc(100dvh - var(--taskbar-h) - 24px); overflow-y: auto; }
}

/* "Ideal date or deadline": a date picker + a "No deadline" tick box */
.dl-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dl-row input[type="date"] { flex: 1 1 160px; min-width: 0; }
.dl-row input[type="date"]:disabled { opacity: .45; }
.dl-row .nodl { display: inline-flex; align-items: center; gap: 5px; font-weight: normal; white-space: nowrap; margin: 0; cursor: pointer; }
.dl-row .nodl input { width: auto; margin: 0; }

/* Recycle Bin quips: speech bubble + the icon waddling back home */
.bin-quip { position: fixed; z-index: 2500; transform: translate(-50%, calc(-100% - 8px)); max-width: 220px; padding: 7px 11px; pointer-events: none;
  background: #fff; color: #111; border: 2px solid #111; border-radius: 12px; font: bold 12px/1.3 Tahoma, Verdana, sans-serif; text-align: center;
  box-shadow: 3px 3px 0 rgba(0,0,0,.3); animation: quipin .3s cubic-bezier(.2,1.5,.4,1) backwards; }
.bin-quip::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 12px; height: 12px; margin-left: -6px; background: #fff;
  border-right: 2px solid #111; border-bottom: 2px solid #111; transform: rotate(45deg); }
.bin-quip.out { opacity: 0; transition: opacity .35s; }
@keyframes quipin { from { opacity: 0; transform: translate(-50%, calc(-100% + 4px)) scale(.7); } }
.icon.bin-walk .glyph, .head.bin-walk .face { animation: waddle .28s ease-in-out infinite alternate; }
@keyframes waddle { from { transform: rotate(-8deg) translateY(0); } to { transform: rotate(8deg) translateY(-3px); } }
.icon.bin-gulp .glyph { animation: gulp .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes gulp { 40% { transform: scale(1.25) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .icon.bin-walk .glyph, .head.bin-walk .face, .icon.bin-gulp .glyph { animation: none; } }

/* The checklist slides straight up from behind the taskbar (no zoom/fade): it moves up while the part that is still
   "behind" the taskbar stays clipped, so it looks like it's coming out from under it. */
.checklist { --slide: calc(100% + 14px); transform: translateY(var(--slide)); clip-path: inset(-20px -20px var(--slide) -20px); opacity: 1;
  transition: transform .42s cubic-bezier(.3,.7,.4,1), clip-path .42s cubic-bezier(.3,.7,.4,1), visibility 0s linear .42s; visibility: hidden; }
.checklist.rise { transform: translateY(0); clip-path: inset(-20px -20px 0 -20px); visibility: visible;
  transition: transform .5s cubic-bezier(.2,1.15,.4,1), clip-path .5s cubic-bezier(.2,1.15,.4,1), visibility 0s; }
.checklist.hinged { clip-path: none !important; visibility: visible !important; }
@media (prefers-reduced-motion: reduce) { .checklist, .checklist.rise { transition: visibility 0s; } }
.icon.bin-turn .glyph, .head.bin-turn .face { animation: binturn .35s ease; }
@keyframes binturn { 40% { transform: scale(1.12) rotate(-4deg); } }

/* ---- Scene Stacker: Windows XP Minesweeper look (v0.23.0) ---- */
.stacker { --face: #c0c0c0; --hi: #fff; --lo: #808080; padding: 8px; background: var(--face); color: #111; min-height: 100%;
  display: flex; flex-direction: column; gap: 8px; font-family: Tahoma, Verdana, sans-serif; }
.stacker .d-top, .stacker .d-main { border: 3px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); padding: 6px; }
.d-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.d-name { font: bold 13px/1 Tahoma, sans-serif; letter-spacing: .12em; text-align: center; color: #000080; }
.d-led { display: flex; flex-direction: column; align-items: center; }
.d-led small { font-size: 8.5px; letter-spacing: .1em; color: #333; }
.d-led b, .d-box b { font: 26px/1 "VT323", ui-monospace, monospace; color: #ff1a1a; background: #000; padding: 1px 6px; border: 2px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); min-width: 62px; text-align: right; letter-spacing: .06em; }
.d-main { display: grid; grid-template-columns: 112px 1fr; gap: 8px; align-items: start; }
.d-side { display: flex; flex-direction: column; gap: 6px; }
.d-box { display: flex; flex-direction: column; gap: 3px; background: var(--face); border: 2px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi); padding: 4px 5px; }
.d-box small { font-size: 9px; font-weight: bold; letter-spacing: .08em; color: #333; }
.d-box b { font-size: 22px; min-width: 0; }
.d-next { width: 80px; height: 64px; align-self: center; border: 2px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); }
.d-ach { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.d-ach span { color: #777; filter: grayscale(1); opacity: .7; }
.d-ach span.got { color: #111; filter: none; opacity: 1; }
.d-gear { font: bold 11px Tahoma, sans-serif; padding: 5px 4px; background: var(--face); cursor: pointer; border: 2px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi); }
.d-gear:active { border-color: var(--lo) var(--hi) var(--hi) var(--lo); }
.d-say { min-height: 34px; font: bold 13px/1.15 Tahoma, sans-serif; color: #000080; text-align: center; }
.d-say.pop { animation: tttpop .35s cubic-bezier(.2,1.6,.4,1); }
.d-stage { position: relative; justify-self: center; width: 100%; max-width: 264px; }
.d-board { width: 100%; aspect-ratio: 1 / 2; display: block; border: 3px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); outline: none; image-rendering: pixelated; }
.d-overlay, .d-keys-panel { position: absolute; inset: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 12px;
  background: rgba(192,192,192,.94); color: #111; }
.d-overlay[hidden], .d-keys-panel[hidden] { display: none; }
.d-overlay .d-head, .d-keys-panel .d-head { font: bold 17px Tahoma, sans-serif; letter-spacing: .08em; color: #000080; }
.d-overlay p, .d-keys-panel p { margin: 0; font-size: 12px; line-height: 1.45; }
.d-overlay p b { color: #c00000; }
.d-keys { font-size: 10.5px !important; color: #333; }
.d-keys-list { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.d-keyrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; }
.d-keybtn { font: bold 12px Tahoma, sans-serif; min-width: 92px; padding: 4px 6px; background: var(--face); cursor: pointer; border: 2px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi); }
.d-keybtn.wait { background: #ffffe1; animation: keyblink .8s steps(2) infinite; }
@keyframes keyblink { 50% { background: #fff; } }
.d-keys-foot { display: flex; gap: 8px; margin-top: 4px; }
.d-toast { position: absolute; left: 50%; top: 14px; transform: translate(-50%, -10px); display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; white-space: nowrap;
  background: #ffffe1; border: 2px solid #111; border-radius: 6px; box-shadow: 3px 3px 0 rgba(0,0,0,.35); opacity: 0; pointer-events: none; z-index: 3; }
.d-toast span { font-size: 22px; } .d-toast small { display: block; font-size: 10px; color: #555; } .d-toast b { font-size: 13px; }
.d-toast.show { animation: achpop 3s ease forwards; }
@keyframes achpop { 0% { opacity: 0; transform: translate(-50%, -14px) scale(.8); } 10% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 15% { transform: translate(-50%, 0) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -6px); } }
/* phone / touch controls: big, even buttons that fill the width */
.d-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.d-pad button { height: 54px; font-size: 22px; font-weight: bold; color: #111; background: var(--face); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  border: 3px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi); border-radius: 0; }
.d-pad button:active { border-color: var(--lo) var(--hi) var(--hi) var(--lo); background: #b5b5b5; }
.d-pad button.wide { grid-column: span 2; font-size: 16px; letter-spacing: .1em; }
@media (hover: hover) and (min-width: 761px) { .d-pad { display: none; } }
@media (max-width: 760px) {
  .stacker { padding: 6px; }
  .d-main { grid-template-columns: 88px 1fr; }
  .d-stage { max-width: none; }
  .d-led b { font-size: 22px; min-width: 52px; }
  .d-pad button { height: 64px; font-size: 26px; }
}
.d-ach b { font: bold 12px Tahoma, sans-serif; color: inherit; background: none; border: 0; padding: 0; min-width: 0; letter-spacing: 0; }
@media (max-width: 760px) {
  .stacker { padding-bottom: 70px; }                              /* room for the "Explore the rest of the site" pill */
  .d-stage { max-width: min(100%, calc((100dvh - 360px) / 2)); }   /* board shrinks so the buttons always fit */
  .d-pad button { height: 60px; }
}
/* Scene Stacker's own buttons (Action! / Back to set / Roll again / Reset / Done) match its grey raised buttons */
.stacker .xbtn { font: bold 13px Tahoma, Verdana, sans-serif; color: #111; background: var(--face); padding: 7px 18px; border-radius: 0; box-shadow: none; text-shadow: none;
  border: 3px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi); cursor: pointer; }
.stacker .xbtn:hover { background: #cfcfcf; filter: none; }
.stacker .xbtn:active { border-color: var(--lo) var(--hi) var(--hi) var(--lo); background: #b5b5b5; }
.stacker .xbtn:focus-visible { outline: 1px dotted #000; outline-offset: -6px; }

/* ---- Global leaderboards (Reel Snake + Scene Stacker) ---- */
.snake-overlay, .d-overlay { overflow-y: auto; justify-content: safe center; }
.lb { width: 100%; max-width: 230px; margin-top: 4px; text-align: left; font-family: Tahoma, Verdana, sans-serif; }
.lb-head { font: bold 12px Tahoma, sans-serif; letter-spacing: .08em; text-align: center; margin-bottom: 4px; }
.lb-form { display: flex; gap: 4px; }
.lb-name { flex: 1; min-width: 0; font: 12px Tahoma, sans-serif; padding: 4px 6px; border: 2px solid; border-color: #808080 #fff #fff #808080; background: #fff; color: #111; }
.lb-form .xbtn { padding: 4px 8px !important; font-size: 11px !important; white-space: nowrap; }
.lb-note { display: block; font-size: 10px; margin: 3px 0 5px; opacity: .8; text-align: center; }
.lb-note.ok { font-weight: bold; opacity: 1; }
.lb-list { list-style: none; margin: 0; padding: 0; font-size: 11.5px; }
.lb-list li { display: flex; gap: 6px; padding: 2px 4px; border-bottom: 1px dotted rgba(127,127,127,.5); }
.lb-list li.me { font-weight: bold; background: rgba(247,226,74,.35); }
.lb-rank { width: 16px; text-align: right; opacity: .7; }
.lb-who { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pts { font-variant-numeric: tabular-nums; font-weight: bold; }
.lb-empty { font-size: 11px !important; text-align: center; opacity: .75; margin: 2px 0 !important; }
/* Reel Snake's overlay is dark, Scene Stacker's is XP grey */
.snake-overlay .lb { color: #fff; } .snake-overlay .lb-head { color: var(--yellow); } .snake-overlay .lb-list li.me { background: rgba(247,226,74,.25); }
.d-overlay .lb { color: #111; } .d-overlay .lb-head { color: #000080; }
.d-hold { width: 80px; height: 64px; align-self: center; border: 2px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); }
.d-msg:empty { display: none; }
.d-pad button.txt { font-size: 15px; letter-spacing: .08em; }

/* ---- Sticky Notes (v0.25.0): unlocked after opening every app ---- */
.g-note { background: linear-gradient(#fff3a3, #ffe066); }
.stickywin h2 { margin: 0 0 4px; }
.stickywin p { font-size: 12.5px; color: var(--muted, #666); margin: 0 0 12px; }
.sn-colors { display: flex; gap: 12px; }
.sn-color { width: 46px; height: 46px; border-radius: 6px 6px 10px 10px; border: 0; cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.2), inset 0 10px 14px rgba(255,255,255,.35); transition: transform .12s ease; }
.sn-color:hover { transform: translateY(-2px) scale(1.06); }
.sn-color:active { transform: translateY(0) scale(.97); }
.sn-yellow { background: linear-gradient(#fff6b8, #ffe066); }
.sn-pink { background: linear-gradient(#ffd6ec, #ff9fd1); }
.sn-cyan { background: linear-gradient(#d4f6f8, #7fe0e6); }

.unote { position: absolute; width: 168px; min-height: 130px; padding: 20px 12px 12px; border-radius: 2px 2px 6px 6px;
  box-shadow: 3px 6px 10px rgba(0,0,0,.3); display: flex; flex-direction: column; z-index: 55;
  transform: rotate(var(--rot, -2deg)) rotate(var(--tilt, 0deg)); transform-origin: 50% 0;
  transition: box-shadow .18s ease; }
.unote-yellow { background: linear-gradient(170deg, #fffbe0, #fff3a3 60%, #ffe88a); --rot: -2.5deg; }
.unote-pink { background: linear-gradient(170deg, #ffeef8, #ffd6ec 60%, #ffc0e3); --rot: 2deg; }
.unote-cyan { background: linear-gradient(170deg, #eafdfe, #d4f6f8 60%, #b9eef1); --rot: -1.5deg; }
.unote-tape { position: absolute; left: 50%; top: -9px; width: 66px; height: 22px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.08); box-shadow: 0 1px 2px rgba(0,0,0,.12);
  cursor: grab; touch-action: none; }
.unote.dragging .unote-tape { cursor: grabbing; }
.unote-x { position: absolute; right: 4px; top: 2px; width: 20px; height: 20px; border: 0; background: none; cursor: pointer;
  color: rgba(0,0,0,.4); font-size: 15px; line-height: 1; border-radius: 50%; }
.unote-x:hover { background: rgba(0,0,0,.08); color: rgba(0,0,0,.65); }
.unote-text { flex: 1; width: 100%; resize: none; border: 0; background: none; outline: none;
  font: 13px/1.4 "Permanent Marker", "Rock Salt", cursive, var(--ui); color: #3a2f00; padding: 2px; min-height: 86px; }
.unote-yellow .unote-text { color: #4a3b00; } .unote-pink .unote-text { color: #6e1b45; } .unote-cyan .unote-text { color: #0a4e52; }
/* "a lightness about them": while carried the note lifts, lightens and the shadow softens & drifts away; on drop a quick settle */
.unote.dragging { box-shadow: 5px 14px 20px rgba(0,0,0,.22); opacity: .94; z-index: 900 !important; transition: none; }
.unote.dragging .unote-text { pointer-events: none; }
.unote.landed { animation: unoteland .26s cubic-bezier(.3,1.6,.4,1); }
@keyframes unoteland { 0% { transform: rotate(var(--rot,0deg)) scale(1.04) translateY(-4px); } 100% { transform: rotate(var(--rot,0deg)) scale(1) translateY(0); } }
.unote-new { animation: unotein .3s cubic-bezier(.2,1.5,.4,1) backwards; }
@keyframes unotein { from { transform: rotate(var(--rot,0deg)) scale(.5); opacity: 0; } }
.unote-gone { animation: unoteout .18s ease-in forwards; pointer-events: none; }
@keyframes unoteout { to { transform: rotate(var(--rot,0deg)) scale(.7) translateY(10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .unote.landed, .unote-new, .unote-gone { animation: none; } }
@media (max-width: 760px) { .unote { width: 136px; min-height: 112px; } .unote-text { min-height: 68px; font-size: 12px; } }

/* Recycle Bin quips now type themselves out, with a blinking caret while they go */
.bin-quip .bin-caret { display: inline-block; width: 6px; height: 12px; margin-left: 1px; vertical-align: -1px; background: #111; animation: caretblink .8s steps(1) infinite; }

/* Facebook "sitting in" the Recycle Bin: a little draggable exhibit */
.bin-fb-row { display: flex; align-items: center; gap: 10px; }
.bin-fb { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 62px; flex: 0 0 auto;
  background: none; border: 0; color: inherit; font-size: 11px; cursor: grab; touch-action: none;
  transform: rotate(var(--tilt, 0deg)); }
.bin-fb .glyph { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; font-size: 19px;
  box-shadow: 2px 3px 0 rgba(0,0,0,.25); }
.bin-fb.dragging { cursor: grabbing; }
.bin-fb.popping { transition: translate .38s ease-in, opacity .38s ease-in; opacity: 0; }
.bin-fb-note { margin: 0; font-size: 11.5px; font-style: italic; opacity: .85; flex: 1; }

/* Scene Stacker's permanent leaderboard box: looks like the other sidebar boxes, always 10 slots */
.d-lb-box { gap: 4px; }
.d-lb-list { list-style: none; margin: 0; padding: 0; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; max-height: 150px; overflow-y: auto; }
.d-lb-list li { display: flex; gap: 5px; }
.d-lb-list .lb-rank { width: 14px; text-align: right; opacity: .6; flex: none; }
.d-lb-list .lb-who { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-lb-list .lb-pts { flex: none; font-weight: bold; }

/* XP-style calendar (opens from the clock, bottom right) */
.xpcal { font: 12px/1.3 Tahoma, "Segoe UI", sans-serif; color: #000; background: #ece9d8; padding: 8px; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.xc-top { display: flex; gap: 6px; }
.xc-month { flex: 1; font: inherit; border: 1px solid #7f9db9; background: #fff; padding: 2px; }
.xc-year { width: 64px; font: inherit; border: 1px solid #7f9db9; background: #fff; padding: 2px 3px; }
.xc-grid { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #7f9db9; table-layout: fixed; }
.xc-grid th { background: #fff; border-bottom: 1px solid #aca899; font-weight: normal; padding: 3px 0; color: #000; }
.xc-grid td { text-align: center; padding: 4px 0; height: 20px; cursor: default; }
.xc-grid td.has { background: #316ac5; color: #fff; font-weight: bold; cursor: pointer; }
.xc-grid td.today { outline: 1px solid #c00; outline-offset: -2px; }
.xc-list { flex: 1; min-height: 40px; background: #fff; border: 1px solid #7f9db9; padding: 4px; overflow: auto; }
.xc-ev { padding: 2px 3px; cursor: pointer; }
.xc-ev:hover { background: #316ac5; color: #fff; }
.xc-none { color: #666; }
.xc-foot { display: flex; justify-content: space-between; align-items: center; }
.xc-today { font: inherit; border: 1px solid #003c74; border-radius: 3px; background: linear-gradient(#fff, #ece9d8); padding: 2px 10px; cursor: pointer; }
.xc-pop { position: absolute; z-index: 9999; width: 250px; background: #ffffe1; border: 1px solid #000; box-shadow: 3px 3px 0 rgba(0,0,0,.3); padding: 5px; font: 12px Tahoma, sans-serif; color: #000; pointer-events: none; }
.xc-pop img, .xc-pop video { display: block; width: 100%; height: auto; margin-bottom: 4px; background: #000; }
.ttt-foot { flex-wrap: wrap; gap: 4px 10px; }
.checklist li.hot { background: #c8ffbf; border-radius: 4px; }
.icon.trashed { display: none !important; }
.bin-fb-row[hidden] { display: none; }
.xc-nav { font: 10px Tahoma, sans-serif; width: 24px; border: 1px solid #003c74; border-radius: 3px; background: linear-gradient(#fff, #ece9d8); cursor: pointer; padding: 0; }
.xc-nav:active { background: #d8d5c4; }
/* Tic-Tac-Bot: nothing may change size while the bot types or a square is pressed (the board must stay put) */
.ttt-talk { height: 96px; min-height: 96px; flex: none; }
.ttt-bubble { height: 84px; min-height: 84px; overflow: hidden; box-sizing: border-box; align-items: flex-start; font-size: 15px; }
.ttt-board { flex: none; }
.ttt-cell, .ttt-cell:active, .ttt-cell:focus { transform: none; outline: none; }
.ttt-cell { -webkit-tap-highlight-color: transparent; user-select: none; }
.ttt-cell.x, .ttt-cell.o { animation: none; }
.ttt-foot { min-height: 52px; align-content: flex-start; flex: none; }
/* Sticky Notes stays hidden until it is unlocked (the icon rules use display:flex, which would override [hidden]) */
[data-open="stickynotes"][hidden] { display: none !important; }
@media (max-width: 760px) { [data-open="stickynotes"], .unote { display: none !important; } }
.logo-timelapse { margin: 12px auto; max-width: 340px; text-align: center; }
.logo-timelapse video { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 8px; background: #000; }
.logo-timelapse figcaption { font-size: 12px; margin-top: 4px; }
/* sticky_notes.exe: just four colour swatches; click one = new note */
.stickywin { display: flex; align-items: center; justify-content: center; height: 100%; box-sizing: border-box; }
.sn-colors { gap: 16px; justify-content: center; }
.sn-color { width: 52px; height: 52px; }
.sn-green { background: linear-gradient(#e4fbd6, #a8e88a); }
.unote-green { background: linear-gradient(170deg, #f1fdea, #dcf7cc 60%, #c3efaa); --rot: 1.5deg; }
.unote-green .unote-text { color: #24520f; }
.unote .unote-text, .unote .unote-text.keyhit { animation: none !important; transform: none !important; }
.unote { cursor: grab; touch-action: none; user-select: none; }
.unote .unote-text { cursor: text; }
.unote.dragging, .unote.dragging * { cursor: grabbing !important; }
.unote.dragging { transition: none !important; will-change: left, top, transform; }
/* every desktop app is on the checklist now: wider, 3 columns, never taller than the screen */
.checklist { width: 360px; max-height: calc(100vh - 70px); overflow-y: auto; }
.checklist ul { grid-template-columns: repeat(3, 1fr); gap: 3px 6px; font-size: 11px; }
@media (max-width: 760px) { .checklist { width: min(340px, calc(100vw - 16px)); } .checklist ul { grid-template-columns: 1fr 1fr; } }
/* timelapse sits up beside the Noah & Carmen polaroid, right under the "Designed by" note */
.secret .logo-timelapse { float: left; width: min(300px, calc(100% - 200px)); max-width: none; margin: 10px 0 10px 0; }
@media (max-width: 520px) { .secret .logo-timelapse { float: none; width: auto; max-width: 320px; margin: 10px auto; } }
/* Sticky Notes: its own spot just above the Recycle Bin (bottom-right) */
.sticky-dock { position: absolute; right: 102px; top: 118px; z-index: 1; }   /* just left of Games */
/* the icon shown inside the "Achievement unlocked" window before it floats to the desktop */
.ach-sticky { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; margin-top: 10px; font-size: 12px; font-weight: bold; }
.ach-sticky .glyph { width: 48px; height: 48px; display: grid; place-items: center; font-size: 26px; border-radius: 10px; animation: achbob 1s ease-in-out infinite alternate; }
@keyframes achbob { to { transform: translateY(-4px); } }
.sticky-fly { display: grid; place-items: center; font-size: 26px; border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,.25); }
/* a binned Facebook keeps its empty spot, so the icons around it (Contact etc.) stay put */
.icon.trashed { display: flex !important; visibility: hidden !important; pointer-events: none !important; }
/* every square is exactly 1/3 of the board, whatever is in it (an X/O used to make its row taller) */
.ttt-board { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
.ttt-cell { min-width: 0; min-height: 0; overflow: hidden; padding: 0; line-height: 1; }

/* no loading intro on phones or squished/short windows (desktop.js skips it too) */
@media (max-width: 760px), (max-height: 560px) { #boot { display: none !important; } }

/* Phones (portrait): no open-window tabs, no "Apps opened" counter/checklist and no easter eggs; just the site */
@media (max-width: 760px) {
  #tasks, #seen-meter, #checklist, .meter-tip { display: none !important; }
  .unicycle-link { pointer-events: none; }
}

/* Scene Stacker touch buttons: one matching set of solid black icons */
.d-pad button { display: grid; place-items: center; }
.d-pad .dp-ico { width: 26px; height: 26px; fill: #111; pointer-events: none; }
.d-pad button.txt { font-size: 17px; font-weight: 900; color: #111; letter-spacing: .08em; }

/* ---- Reel Snake, prettier (same navy / cyan / pink / yellow look) ---- */
.snake { background: radial-gradient(120% 80% at 50% 0%, #1b3170 0%, #0b1730 55%, #060d20 100%); gap: 10px; padding: 12px; }
.snake-hud { max-width: 400px; }
.snake-hud .s-title { font-size: 24px; text-shadow: 2px 2px 0 var(--pink), 0 0 14px rgba(247,226,74,.35); }
.snake-hud .s-chip { background: rgba(255,255,255,.08); border: 1px solid rgba(34,207,232,.45); border-radius: 999px; padding: 3px 10px; font-size: 12px; letter-spacing: .04em; color: #cfe4ff; }
.snake-hud .s-chip b { color: var(--yellow); font-size: 14px; margin-left: 2px; }
.snake-stage canvas { border: 3px solid var(--cyan); border-radius: 10px; box-shadow: 0 0 0 3px #0b1730, 0 0 0 5px var(--pink), 0 10px 26px rgba(0,0,0,.45), 0 0 26px rgba(34,207,232,.25); }
.snake-overlay { inset: 3px; border-radius: 8px; background: rgba(7,15,36,.72); backdrop-filter: blur(1.5px); }
.snake-intro { background: rgba(7,15,36,.35); }
.snake-overlay .xbtn.s-go { font-family: var(--display); font-size: 22px; letter-spacing: .06em; padding: 10px 30px; color: #0b1730; background: linear-gradient(#fff07a, var(--yellow)); border: 3px solid #0b1730; border-radius: 14px; box-shadow: 0 5px 0 var(--pink), 0 10px 22px rgba(0,0,0,.4); }
.snake-overlay .xbtn.s-go:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pink), 0 6px 14px rgba(0,0,0,.4); }
.snake-start { font-size: 28px !important; padding: 14px 44px !important; }
/* big touch arrows: a proper d-pad */
.snake-pad { display: none; width: 100%; max-width: 400px; display: none; grid-template-columns: repeat(3, 1fr); grid-template-areas: ". up ." "left . right" ". down ."; gap: 8px; margin-top: 2px; }
.snake-pad .s-up { grid-area: up; } .snake-pad .s-left { grid-area: left; } .snake-pad .s-down { grid-area: down; } .snake-pad .s-right { grid-area: right; }
.snake-pad .s-key { height: 78px; display: grid; place-items: center; padding: 0; border: 2px solid rgba(34,207,232,.7); border-radius: 16px; background: linear-gradient(#1d3474, #10204a); box-shadow: 0 4px 0 #050b1c; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.snake-pad .s-key svg { width: 34px; height: 34px; fill: #fff; filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); pointer-events: none; }
.snake-pad .s-key.hit, .snake-pad .s-key:active { transform: translateY(3px); box-shadow: 0 1px 0 #050b1c; background: linear-gradient(#27449a, #15295e); }
@media (hover: none), (max-width: 760px) { .snake-pad { display: grid; } }
/* phones and squished windows: the sound (mute) button sits in the far right corner of the taskbar */
@media (max-width: 760px), (max-height: 560px) { #tray { margin-left: auto; } #tray #sound { order: 99; } }

/* ---- Donations in the "Buy us a coffee" window ---- */
.donate { text-align: center; }
.donate .don-pick, .donate .don-pay, .donate .don-thanks { margin: 10px auto 0; max-width: 380px; text-align: left; }
.don-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.don-amounts button { font: bold 18px var(--ui, Tahoma, sans-serif); padding: 12px 0; border-radius: 12px; border: 2px solid var(--ink, #111); background: #fff; color: var(--ink, #111); cursor: pointer; box-shadow: 0 3px 0 var(--ink, #111); transition: transform .08s; }
.don-amounts button:hover { background: #fff8d6; }
.don-amounts button.on { background: var(--yellow); box-shadow: 0 3px 0 var(--pink-dark, #a3125f); border-color: var(--pink-dark, #a3125f); }
.don-amounts button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink, #111); }
.don-custom, .don-note { display: block; font-size: 13px; font-weight: bold; margin: 0 0 10px; }
.don-note .opt { font-weight: normal; font-style: italic; color: #777; }
.don-dollar { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 18px; }
.don-custom input, .don-note input { width: 100%; box-sizing: border-box; font: 16px var(--ui, Tahoma, sans-serif); padding: 9px 10px; border: 2px solid #b9a978; border-radius: 10px; background: #fffdf3; margin-top: 4px; }
.don-dollar input { margin-top: 0; }
.don-go { display: block; width: 100%; margin-top: 6px; font: 22px var(--display); letter-spacing: .04em; padding: 12px; border-radius: 14px; border: 3px solid var(--ink, #111); background: linear-gradient(#ff5cb8, var(--pink, #f0249b)); color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,.35); cursor: pointer; box-shadow: 0 4px 0 var(--ink, #111); }
.don-go:disabled { opacity: .55; cursor: default; }
.don-go:not(:disabled):active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink, #111); }
.don-msg { min-height: 1.2em; margin: 8px 0 0; font-size: 13px; color: #b0123a; font-weight: bold; }
.don-small { margin: 4px 0 0; font-size: 11.5px; color: #777; text-align: center; }
.don-back { background: none; border: 0; padding: 0 0 8px; color: #0645ad; text-decoration: underline; cursor: pointer; font-size: 13px; }
.don-checkout { min-height: 200px; border-radius: 10px; overflow: hidden; }
.don-thanks { text-align: center; }
.don-thanks h3 { font-family: var(--display); color: var(--pink); font-size: 26px; margin: 6px 0; }
.don-thanks .don-again { margin-top: 8px; padding: 8px 18px; border-radius: 10px; border: 2px solid #111; background: var(--yellow); cursor: pointer; font-weight: bold; }
.don-alt { margin: 16px 0 0; font-size: 12.5px; }
/* phones: nothing (like the colour ripple from the service icons) may make the page wider than the screen, or the phone zooms out */
@media (max-width: 760px) { html, body { overflow-x: clip; max-width: 100%; } .gadget { overflow-x: clip; } }

/* sticky notes stuck inside a window sit on top of its contents and travel with it */
.unote.in-win { z-index: 40 !important; }

/* sticky notes stuck to an icon turn around their middle (they spin with the icon in gravity mode) */
.unote.on-icon { transform-origin: 50% 50%; }
/* gravity mode: notes stuck to icons fly with them, above everything; loose notes (no physics) disappear until gravity ends */
body.gravity-on .unote.on-icon { z-index: 960 !important; pointer-events: none; }
body.gravity-on .unote:not(.on-icon) { visibility: hidden !important; pointer-events: none !important; }

/* ---- Our apps (Radboarder): right edge, under Buy us a coffee ---- */
.apps-dock { position: absolute; right: 10px; top: calc(50% + 62px); z-index: 1; }
@media (max-width: 760px) {
  .apps-dock { position: relative; right: auto; top: auto; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; }
}
@media (max-width: 380px) { .apps-dock { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px), (max-height: 560px) {
  .apps-dock { margin-top: 18px; padding-top: 14px; border-top: 2px dashed rgba(255,255,255,.75); }
}
/* the Radboarder icon is already a rounded app icon: show it as is (no white tile behind it) */
.icon .glyph.g-app:has(> .cimg) { background: none; border-color: transparent; box-shadow: none; overflow: visible; }
.icon .glyph.g-app > .cimg { filter: drop-shadow(2px 3px 0 rgba(0,0,0,.35)); }
.tico.g-app { background: none; }

/* Radboarder window: radboarder.com scrolls inside its iframe, so the window's own content box doesn't scroll */
.win .content:has(> .rb-host) { overflow: hidden; background: #f8f9fa; }
@media (prefers-color-scheme: dark) { .win .content:has(> .rb-host) { background: #1f1f1f; } }
.rb-host { height: 100%; display: flex; flex-direction: column; }
.rb-frame { display: block; width: 100%; flex: 1; min-height: 0; border: 0; background: transparent; }
/* bar always at the top of the Radboarder window: shows the page and opens it in a new browser tab */
.rb-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 10px; background: #ece9d8; border-bottom: 1px solid #aca899; font: 12px Tahoma, Verdana, sans-serif; color: #222; }
.rb-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fff; border: 1px solid #7f9db9; padding: 2px 6px; }
.rb-open { flex: none; padding: 3px 10px; background: linear-gradient(#fff, #e3e3db); border: 1px solid #003c74; border-radius: 3px; color: #000 !important; text-decoration: none !important; font-weight: bold; white-space: nowrap; }
.rb-open:hover { background: linear-gradient(#fff8e0, #fbe0a0); }
/* small caption under a desktop icon's name (Radboarder: "our free storyboarding tool!") */
.icon .icon-sub { display: block; font-size: 10.5px; line-height: 1.15; opacity: .92; margin-top: -1px; }
