:root {
  --charcoal: #141210;
  --ivory: #efe9dd;
  --lamp: #eddec0;
  --voice: "Newsreader", Georgia, serif;
  --ui: "Inter", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--charcoal);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}

/* ---------- The desktop: built to read as macOS at a glance ---------- */

#desktop {
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --glass: rgba(246, 246, 248, .62);
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #5b3bd6 url("assets/wallpaper-coast.jpg") center / cover no-repeat;
  user-select: none;
  color: #1d1d1f;
  font: 12px/1.35 var(--sf);
  letter-spacing: -.003em;
}
.quiet #desktop, .quiet #desktop * { animation-play-state: paused !important; }

/* Menu bar: no bar of its own in current macOS, just type and icons over the wallpaper */
#menubar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 21px;
  padding: 0 16px 0 20px;
  background: linear-gradient(rgba(0, 0, 0, .22), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  z-index: 40;
}
#menubar b { font-weight: 700; }
#menubar .status { margin-left: auto; display: flex; gap: 17px; align-items: center; }
#menubar .status span { font-variant-numeric: tabular-nums; }
#menubar svg { display: block; height: 13px; width: auto; color: #fff; }
#menubar .s-search { height: 14px; }
.s-bat { width: 27px !important; }

/* Desktop files */
#files { position: absolute; top: 44px; right: 14px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 92px); height: calc(100% - 150px); gap: 2px 8px; direction: rtl; }
.file { width: 82px; text-align: center; color: #fff; font-size: 11px; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); direction: ltr; }
.file i { display: block; width: 52px; height: 52px; margin: 0 auto 3px; }
.folder-art { border-radius: 5px 5px 7px 7px; background: linear-gradient(#7fd1ff, #2d9df0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 3px rgba(0, 0, 0, .3); margin-top: 10px !important; height: 40px !important; position: relative; }
.folder-art::before { content: ""; position: absolute; left: 0; top: -6px; width: 22px; height: 8px; border-radius: 4px 4px 0 0; background: #5bb9f6; }
.shot-art { background: linear-gradient(135deg, #e7ecf5, #aebbd2); border: 2px solid #fff; border-radius: 3px; height: 38px !important; margin-top: 12px !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }

/* Windows */
.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .96);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .22), inset 0 0 0 .5px rgba(255, 255, 255, .6), 0 28px 70px rgba(0, 0, 0, .42), 0 8px 20px rgba(0, 0, 0, .2);
}
.lights { display: flex; gap: 8px; flex: none; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.bar { flex: none; height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 16px; white-space: nowrap; overflow: hidden; }
.bar b { font-size: 13px; font-weight: 600; }
.bar small { color: #86868b; font-size: 11px; }
.split { flex: 1; min-height: 0; display: flex; }
/* The floating glass sidebar of current macOS */
.side { flex: none; margin: 7px 0 7px 7px; padding: 44px 8px 8px; background: rgba(232, 234, 240, .78); border-radius: 18px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), inset 0 0 0 .5px rgba(255, 255, 255, .7), 0 2px 10px rgba(0, 0, 0, .08); overflow: hidden; position: relative; }
.side .lights { position: absolute; left: 11px; top: 12px; }
.side h6 { margin: 8px 8px 3px; font-size: 10px; font-weight: 600; color: #86868b; }
.side div { padding: 5px 8px; border-radius: 9px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; justify-content: space-between; gap: 6px; }
.side .on { background: rgba(0, 0, 0, .08); font-weight: 500; }
.person { align-items: center; justify-content: flex-start !important; gap: 8px !important; padding: 6px 7px !important; }
.person img, .post img { flex: none; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #d1d1d6; }
.person span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.person span b { display: block; font-size: 12px; font-weight: 600; }
.person span small { font-size: 10.5px; color: #6e6e73; }
.side em { font-style: normal; color: #86868b; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.pane { flex: 1; min-height: 0; overflow: hidden; position: relative; padding: 10px 12px; }

/* Team chat */
.team { background: #fff; }
.team .split { background: #3f0e40; }
.team-side { flex: none; width: 178px; padding: 12px 6px 8px; color: #e8dde8; position: relative; overflow: hidden; background: #3f0e40; }
.team-side h5 { margin: 12px 8px 8px; color: #fff; font-size: 15px; font-weight: 800; }
.team-side h6 { margin: 10px 8px 3px; font-size: 11px; font-weight: 500; color: #bda7be; }
.team-side div:not(.lights) { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font-size: 13px; color: #cdbccd; white-space: nowrap; overflow: hidden; }
.team-side .lights { padding-left: 6px; }
.team-side .unread { color: #fff; font-weight: 700; }
.team-side .on { background: #1264a3; color: #fff; font-weight: 700; }
.team-side div i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #2bac76; }
.team-side s { margin-left: auto; padding: 0 6px; border-radius: 9px; background: #cd2553; color: #fff; font-size: 10px; font-weight: 700; text-decoration: none; }
.team .main { background: #fff; border-radius: 10px 0 0 0; margin-top: 6px; }
.team-head { flex: none; padding: 11px 14px; border-bottom: 1px solid #e6e6e6; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; }
.team-head small { margin-left: 8px; font-size: 11px; font-weight: 400; color: #616061; }
.team-input { flex: none; margin: 0 12px 11px; padding: 9px 11px; border: 1px solid #bbb; border-radius: 8px; color: #868686; font-size: 12.5px; }
.chat { display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 14px !important; }
.msg { display: flex; gap: 9px; margin-bottom: 9px; font-size: 13px; line-height: 1.32; animation: pop .2s ease-out; }
.msg img { flex: none; width: 34px; height: 34px; border-radius: 7px; object-fit: cover; background: #d1d1d6; }
.msg b { font-weight: 800; }
.msg small { font-size: 10.5px; color: #616061; }
.msg em { display: inline-block; margin-left: 8px; padding: 0 6px; border: 1px solid #1d9bd1; border-radius: 10px; background: #e8f5fa; color: #1264a3; font-size: 11px; font-style: normal; }
@keyframes pop { from { transform: translateY(5px); opacity: 0; } }

/* Dark social feed */
.social { background: #000; color: #e7e9ea; }
.social .bar { background: #000; border-bottom: .5px solid #2f3336; }
.social .bar b { color: #fff; }
.social .post { border-color: #2f3336; }
.social .post b { display: inline; color: #fff; }
.social .post small { color: #71767b; }
.social .post u { color: #71767b; text-decoration: none; font-size: 11px; }
.social .post img { width: 36px; height: 36px; }

/* Code editor */
.editor { background: #1e1e2e; color: #cdd6f4; font: 12px/1.6 ui-monospace, "SF Mono", Menlo, monospace; }
.editor .bar { background: #181825; }
.editor .bar small { color: #a6adc8; font-family: var(--sf); }
.editor tt { display: inline-block; width: 26px; color: #585b70; font: inherit; }
.editor em { font-style: normal; color: #cba6f7; }
.editor u { text-decoration: none; color: #89b4fa; }
.editor i { font-style: normal; color: #f38ba8; }
.editor q { quotes: none; color: #a6e3a1; }
.editor b { font-weight: 400; color: #fab387; }
.editor span { color: #6c7086; }

/* Music player */
.music { background: #181818; color: #fff; }
.tune { display: flex; gap: 12px; align-items: center; height: 100%; padding: 12px; }
.art { flex: none; width: 86px; height: 86px; border-radius: 8px; background: linear-gradient(135deg, #1ed760, #0b6b3a 55%, #111); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.tune-info { flex: 1; min-width: 0; }
.tune-info b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tune-info small { color: #b3b3b3; font-size: 11.5px; }
.tune-bar { margin-top: 12px; height: 4px; border-radius: 2px; background: #4d4d4d; overflow: hidden; }
.tune-bar i { display: block; height: 100%; background: #1ed760; transform-origin: left; animation: progress 40s linear infinite; }

/* Countdown window */
.alarm { background: #d92d27; color: #fff; }
.alarm .bar b { color: #fff; }

/* Mail */
.mail-list { flex: none; width: 46%; overflow: hidden; }
.mail-list div { padding: 7px 12px 8px 18px; border-bottom: .5px solid rgba(0, 0, 0, .08); position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #6e6e73; }
.mail-list b { display: block; color: #1d1d1f; font-weight: 600; }
.mail-list div::before { content: ""; position: absolute; left: 6px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: #0a84ff; }
.mail-list .on { margin: 0 6px; padding-left: 12px; border-radius: 10px; border: 0; background: #0a84ff; color: rgba(255, 255, 255, .85); }
.mail-list .on b { color: #fff; }
.mail-list .on::before { background: #fff; }
.mail-body { flex: 1; padding: 14px; min-width: 0; color: #424245; font-size: 12px; }
.mail-body h4 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: #1d1d1f; }

/* Browser */
.browser-bar { gap: 10px; }
.url { flex: 1; min-width: 40px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(0, 0, 0, .06); color: #424245; font-size: 12px; overflow: hidden; }
.tabs { flex: none; display: flex; gap: 4px; height: 34px; padding: 0 10px 6px; overflow: hidden; }
.tabs span { flex: 1 0 86px; padding: 6px 12px 0; border-radius: 14px; font-size: 11px; color: #424245; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs .on { background: rgba(0, 0, 0, .07); font-weight: 500; }
.player { position: relative; flex: 1; min-height: 0; background: #0f0f0f; overflow: hidden; color: #fff; }
.player .picture { position: absolute; inset: 0; background: url("assets/video-still.jpg") center / cover no-repeat, linear-gradient(135deg, #ff7a18, #af002d 55%, #319197); animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.14) translateX(-2%); } }
.player .controls { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .4); overflow: hidden; }
.player .controls i { display: block; height: 100%; background: #ff3b30; transform-origin: left; animation: progress 26s linear infinite; }
.player .caption { position: absolute; left: 12px; right: 12px; bottom: 22px; font-size: 14px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
@keyframes progress { from { transform: scaleX(0); } }

.darkweb { background: #202124; color: #e8eaed; }
.darkweb .url { background: rgba(255, 255, 255, .1); color: #e8eaed; }
.darkweb .tabs span { color: #bdc1c6; }
.darkweb .tabs .on { background: rgba(255, 255, 255, .14); color: #fff; }

/* Feed */
.scroller { animation: feed 30s linear infinite; }
@keyframes feed { to { transform: translateY(-50%); } }
.post { display: flex; gap: 9px; padding: 9px 12px; border-bottom: .5px solid rgba(0, 0, 0, .1); }
.post i { flex: none; width: 34px; height: 34px; border-radius: 50%; }
.post b { display: block; font-weight: 600; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5px; flex: 1; min-height: 0; background: rgba(0, 0, 0, .08); }
.cal div { background: #fff; padding: 3px 4px; overflow: hidden; font-size: 10px; color: #86868b; min-height: 0; }
.cal span { display: block; margin-top: 2px; padding: 1px 4px; border-radius: 3px; font-size: 9px; font-weight: 600; white-space: nowrap; overflow: hidden; background: rgba(10, 132, 255, .18); color: #0058b8; }
.cal span.r { background: rgba(255, 59, 48, .18); color: #c1271c; }
.cal span.g { background: rgba(52, 199, 89, .22); color: #1c7c3a; }
.cal .today { color: #ff3b30; font-weight: 700; }

/* Terminal */
.term { background: rgba(28, 28, 30, .96); color: #e8e8ea; font: 11px/1.45 ui-monospace, "SF Mono", Menlo, monospace; }
.term .pane { padding: 6px 10px; }
.term .bar { background: #2c2c2e; color: #c7c7cc; border-color: #000; }
.term em { font-style: normal; color: #ff6961; }
.term u { text-decoration: none; color: #6ee7a0; }

/* Countdown / stocks */
.big-count { display: grid; place-items: center; flex: 1; font-size: 40px; font-weight: 300; font-variant-numeric: tabular-nums; }
.quote { display: flex; justify-content: space-between; margin: 0 14px; padding: 7px 0; border-top: .5px solid rgba(0, 0, 0, .1); font-weight: 500; }
.quote s { text-decoration: none; padding: 1px 7px; border-radius: 5px; background: #34c759; color: #fff; font-variant-numeric: tabular-nums; }
.quote s.down { background: #ff3b30; }

/* System alert */
.alert { width: 260px; padding: 20px 18px 16px; text-align: center; background: rgba(250, 250, 252, .78); -webkit-backdrop-filter: blur(40px) saturate(1.6); backdrop-filter: blur(40px) saturate(1.6); border-radius: 22px; animation: spawn .26s cubic-bezier(.2, 1.3, .4, 1); }
.alert .app { width: 54px; height: 54px; margin: 0 auto 10px; }
.alert b { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; }
.alert p { margin: 0 0 13px; font-size: 11.5px; color: #424245; }
.alert button { display: block; width: 100%; height: 30px; margin-top: 7px; border: 0; border-radius: 15px; background: rgba(0, 0, 0, .08); font: 500 12.5px var(--sf); color: #1d1d1f; }
.alert button:first-of-type { background: #0a84ff; color: #fff; }
@keyframes spawn { from { transform: scale(.82); opacity: 0; } }

/* App icons: original, drawn in the squircle-with-a-glyph style */
.app { position: relative; display: grid; place-items: center; border-radius: 23%; overflow: hidden; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .28), 0 1px 3px rgba(0, 0, 0, .3); color: #fff; }
.app svg { width: 60%; height: 60%; fill: currentColor; stroke: none; }
.a-chat { background: linear-gradient(#67e86f, #1cc53b); }
.a-mail { background: linear-gradient(#49b8ff, #0a6dff); }
.a-web { background: linear-gradient(#fff, #e7e9ee); color: #0a84ff; }
.a-music { background: linear-gradient(#ff6d84, #ff2d55); }
.a-photos { background: #fff; }
.a-photos::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: conic-gradient(#ff5f57, #ffbd2e, #28c840, #27c4f5, #5e5ce6, #ff4fa3, #ff5f57); }
.a-notes { background: linear-gradient(#ffe066 0 26%, #fffdf2 26%); color: #d9b440; }
.a-settings { background: linear-gradient(#a8a8ad, #6d6d73); }
.a-store { background: linear-gradient(#3fa9ff, #1467e8); }
.a-term { background: linear-gradient(#3a3a3c, #111); color: #e9e9ea; }
.a-video { background: linear-gradient(#3b3b40, #101013); }
.a-files { background: linear-gradient(90deg, #7fcbff 50%, #e9f6ff 50%); color: #1a5ea8; }
.a-bin { background: rgba(255, 255, 255, .34); color: #5a5a60; }
.a-news { background: linear-gradient(#ff5a5f, #e8142b); }
/* Current macOS style: a white tile, the month in small red capitals, the date large and light */
.a-cal { background: linear-gradient(#fff, #f1f1f3); display: block; text-align: center; container-type: inline-size; }
.a-cal small { display: block; margin-top: 9cqw; color: #f5372f; font-size: 17cqw; font-weight: 700; line-height: 1; letter-spacing: 0; }
.a-cal strong { display: block; margin-top: 1cqw; color: #1d1d1f; font-size: 56cqw; font-weight: 300; line-height: .98; letter-spacing: -.03em; }

/* Notifications */
#toasts { position: absolute; top: 40px; right: 12px; width: min(344px, calc(100vw - 24px)); z-index: 30; }
.toast {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
  padding: 11px 13px;
  background: rgba(245, 245, 248, .74);
  -webkit-backdrop-filter: blur(34px) saturate(1.7);
  backdrop-filter: blur(34px) saturate(1.7);
  border-radius: 22px;
  box-shadow: 0 0 0 .5px rgba(255, 255, 255, .45), 0 10px 30px rgba(0, 0, 0, .25);
  animation: toast .46s cubic-bezier(.2, 1.1, .3, 1);
}
.toast .app { flex: none; width: 38px; height: 38px; }
.toast div { flex: 1; min-width: 0; }
.toast b { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.toast b time { font-weight: 400; font-size: 11px; color: #6e6e73; }
.toast span { font-size: 12.5px; }
@keyframes toast { from { transform: translateX(115%); } }

/* Dock */
#dock {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 6px 7px 8px;
  max-width: calc(100vw - 12px);
  background: rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  backdrop-filter: blur(30px) saturate(1.6);
  border-radius: 26px;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .55), 0 10px 30px rgba(0, 0, 0, .22);
  z-index: 35;
}
#dock .cell { position: relative; flex: none; width: 54px; }
#dock .app { width: 54px; height: 54px; font-size: 54px; }
#dock .cell.bounce { animation: bounce 1.15s cubic-bezier(.3, 0, .4, 1) infinite; }
#dock .cell::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(0, 0, 0, .55); opacity: 0; }
#dock .cell.running::after { opacity: 1; }
#dock .sep { flex: none; align-self: stretch; width: 1px; margin: 4px 3px; background: rgba(0, 0, 0, .2); }
@keyframes bounce {
  0%, 55%, 100% { transform: translateY(0); }
  27% { transform: translateY(-26px); }
}
#dock s { position: absolute; top: -4px; right: -5px; min-width: 20px; padding: 1px 6px; background: #ff3b30; color: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); font-size: 12px; font-weight: 500; text-align: center; text-decoration: none; }

/* ---------- The calm window ---------- */

#backing { position: fixed; background: var(--charcoal); opacity: 0; z-index: 50; pointer-events: none; }

#hero {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  background: #25221e;
  color: var(--ivory);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 .5px rgba(255, 255, 255, .16);
  z-index: 51;
}
.focused #hero { box-shadow: 0 0 0 .5px rgba(255, 255, 255, .12); }

.titlebar { flex: none; position: relative; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; font: 600 13px -apple-system, BlinkMacSystemFont, "Inter", sans-serif; color: rgba(239, 233, 221, .7); }
.titlebar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14); }
.titlebar i:nth-child(2) { background: #febc2e; }
.titlebar i:nth-child(3) { background: #28c840; }
.titlebar span { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }

.hero-body { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 18px 28px 46px; text-align: center; overflow: auto; }
.hero-body img { margin-bottom: -10px; }

h1 { margin: 0; font: 500 44px/1.05 var(--voice); letter-spacing: -.01em; }

#keys { display: flex; gap: 10px; padding: 0; background: none; border: 0; cursor: pointer; color: inherit; }
#keys:focus-visible, #download:focus-visible, #pill:focus-visible { outline: 2px solid var(--lamp); outline-offset: 4px; }
kbd {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(239, 233, 221, .16);
  background: rgba(239, 233, 221, .07);
  font: 500 25px var(--ui);
  transition: transform .14s, background .14s, color .14s;
}
#keys:hover kbd { background: rgba(239, 233, 221, .13); }
kbd.lit { background: var(--ivory); color: var(--charcoal); transform: scale(.95); }

#line { margin: 0; min-height: 2.5em; max-width: 26em; font: 400 22px/1.25 var(--voice); color: rgba(239, 233, 221, .86); }

#download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--charcoal);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, background .15s;
}
#download:hover { background: #fff; transform: translateY(-1px); }
#download:active { transform: scale(.98); }

.site-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: -8px; font-size: 13px; }
.site-links a { color: rgba(239, 233, 221, .55); text-decoration: none; }
.site-links a:hover, .site-links a:focus-visible { color: var(--ivory); }
.site-links a:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
.focused .site-links { visibility: hidden; }

/* ---------- The walls ---------- */

#walls { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 60; visibility: hidden; }
.wall { position: absolute; left: 0; top: 0; background: var(--charcoal); will-change: transform; }
.edge { position: absolute; will-change: transform; }
.wall[data-side="left"] .edge { background: linear-gradient(90deg, var(--charcoal), rgba(20, 18, 16, .74) 20%, rgba(20, 18, 16, .42) 42%, rgba(20, 18, 16, .18) 64%, rgba(20, 18, 16, .05) 84%, rgba(20, 18, 16, 0)); }
.wall[data-side="right"] .edge { background: linear-gradient(270deg, var(--charcoal), rgba(20, 18, 16, .74) 20%, rgba(20, 18, 16, .42) 42%, rgba(20, 18, 16, .18) 64%, rgba(20, 18, 16, .05) 84%, rgba(20, 18, 16, 0)); }
.wall[data-side="top"] .edge { background: linear-gradient(180deg, var(--charcoal), rgba(20, 18, 16, .74) 20%, rgba(20, 18, 16, .42) 42%, rgba(20, 18, 16, .18) 64%, rgba(20, 18, 16, .05) 84%, rgba(20, 18, 16, 0)); }
.wall[data-side="bottom"] .edge { background: linear-gradient(0deg, var(--charcoal), rgba(20, 18, 16, .74) 20%, rgba(20, 18, 16, .42) 42%, rgba(20, 18, 16, .18) 64%, rgba(20, 18, 16, .05) 84%, rgba(20, 18, 16, 0)); }

/* ---------- The way out ---------- */

#pill {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px 11px 13px;
  border: 1px solid rgba(239, 233, 221, .12);
  border-radius: 999px;
  background: rgba(239, 233, 221, .07);
  color: rgba(239, 233, 221, .72);
  font: 500 14px var(--ui);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s;
  z-index: 70;
}
.focused #pill { opacity: 1; pointer-events: auto; }
#pill circle { fill: none; stroke-width: 2; stroke-linecap: round; }
#pill .track { stroke: rgba(239, 233, 221, .16); }
#ring { stroke: var(--lamp); stroke-dasharray: 56.55; stroke-dashoffset: 56.55; }

/* ---------- Smaller screens and calmer settings ---------- */

@media (max-width: 720px), (max-height: 660px) {
  .hero-body { gap: 18px; padding: 8px 18px 28px; }
  .hero-body img { width: 60px; height: 60px; }
  h1 { font-size: 34px; }
  kbd { width: 50px; height: 50px; font-size: 21px; border-radius: 12px; }
  #line { font-size: 19px; }
  #download { padding: 14px 28px; }
  #dock .cell, #dock .app { width: 36px; }
  #dock .app { height: 36px; font-size: 36px; }
  #menubar > span { display: none; }
  #dock .cell:nth-child(n+8):not(:last-child), #dock .sep { display: none; }
  #dock s { top: -5px; right: -3px; min-width: 16px; padding: 0 4px; font-size: 10px; }
  #files { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #desktop *, #desktop { animation: none !important; }
}
