/* ============================================================
   LONGCAT ($LONG) — Windows XP / 2006 imageboard edition
   The site is the cat. The cat is a real JPEG. As intended.
   ============================================================ */

:root {
  --desk: #3a6ea5;               /* XP desktop teal-blue */
  --win-face: #ece9d8;           /* XP dialog face */
  --win-line: #0831d9;
  --grn: #008a00;
  --lime: #c6ff2e;
  --up: #008000;
  --down: #cc0000;
  --tt-bg: #ffffe1;              /* XP tooltip yellow */
  --s: 1;                        /* cat scale */
  --rail-right: clamp(4px, 2.5vw, 48px);
  --rail-w: 340px;
  --moonW: 440px;
  --taskbar-h: 34px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  font-family: Tahoma, "Segoe UI", Verdana, sans-serif;
  font-size: 13px;
  color: #111;
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(180deg,
      rgba(58, 110, 165, 0) 0%,
      rgba(58, 110, 165, 0.9) 26%,
      #2c5684 40%,
      #16304d 55%,
      #0a1626 70%,
      #04070f 85%, #01020a 100%),
    #3a6ea5;
}
/* bliss wallpaper (the community one, with longcats) at the top of the journey */
body::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 120vh;
  background: url("assets/bliss.jpg") top center / cover no-repeat;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.mono { font-family: "Courier New", Courier, monospace; }
.impact { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; letter-spacing: 0.5px; }
.grn { color: var(--grn); }
::selection { background: #316ac5; color: #fff; }

/* ============ top marquee banner ============ */
.banner {
  position: relative; z-index: 5; display: block;
  background: #ffff9e; color: #b00000; font-weight: bold;
  font-family: "Comic Sans MS", Tahoma, sans-serif; font-size: 13px;
  padding: 5px 0;
  border-bottom: 3px solid;
  border-image: repeating-linear-gradient(45deg, #111 0 12px, #ffd400 12px 24px) 3;
}

.blink { animation: blink 1.06s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ============ desktop / windows ============ */
.desk {
  position: relative; z-index: 2;
  max-width: 780px;
  margin-left: max(14px, calc((100vw - 780px - (var(--rail-w) * var(--s)) - var(--rail-right) - 40px) / 2));
  padding: 34px 0 140px;
  display: flex; flex-direction: column; gap: 46px;
}

.win {
  background: var(--win-face);
  border: 1px solid var(--win-line);
  border-radius: 8px 8px 3px 3px;
  box-shadow: 2px 4px 14px rgba(0, 0, 20, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  overflow: hidden;
}
.win:nth-child(even) { transform: translateX(14px); }

.titlebar {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 6px 5px 8px;
  background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #0148e2 88%, #013dc8 93%, #0335bd 100%);
  color: #fff; font-weight: bold; font-size: 13px;
  text-shadow: 1px 1px 1px rgba(0, 0, 30, 0.6);
  border-bottom: 1px solid #0831d9;
}
.titlebar.dark { background: linear-gradient(180deg, #585858, #2a2a2a 90%); }
.titlebar.sm { padding: 2px 4px 3px 7px; font-size: 11.5px; }
.t-ico {
  width: 17px; height: 17px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #0053ee; border-radius: 3px; font-size: 11px; font-weight: bold; overflow: hidden;
}
.t-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-btns { display: flex; gap: 2px; }
.tb {
  width: 21px; height: 21px; border-radius: 3px; font-size: 11px; font-weight: bold;
  display: inline-flex; align-items: center; justify-content: center; font-style: normal;
  background: linear-gradient(180deg, #3d95ff, #1263e0 45%, #0d55c8);
  border: 1px solid #fff; color: #fff; cursor: default;
}
.tb.close { background: linear-gradient(180deg, #ff9a8a, #e0492c 45%, #c63a1e); }
.tb:active { filter: brightness(0.85); }

.menubar {
  background: var(--win-face); padding: 3px 8px; font-size: 12px; color: #222;
  border-bottom: 1px solid #d4d0c8;
}
.addressbar {
  background: var(--win-face); border-bottom: 1px solid #d4d0c8;
  padding: 3px 8px; font-size: 12px; color: #444;
}
.addressbar .addr { background: #fff; border: 1px inset #999; padding: 1px 6px; display: inline-block; min-width: 60%; }

.win-body { background: #fff; padding: 18px 22px 20px; }
.win-body p { line-height: 1.55; margin-bottom: 10px; }
.win-body a { color: #0000ee; }
.win-body a:visited { color: #551a8b; }

.tiny-center {
  text-align: center; font-size: 11px; color: #666;
  font-family: "Comic Sans MS", Tahoma, sans-serif; margin-top: 14px;
}

/* ============ hero ============ */
.ie-body { text-align: center; }
.ie-body h1 {
  font-size: clamp(40px, 7vw, 76px); line-height: 0.98; margin: 16px 0 14px; color: #111;
  -webkit-text-stroke: 2px #fff; text-shadow: 3px 3px 0 #999;
  word-break: break-all;
}
.hero-sub { font-size: 14.5px; }
.hero-sub b { color: #000; }
.hero-cols { display: flex; gap: 16px; justify-content: center; align-items: stretch; flex-wrap: wrap; margin: 18px 0 6px; text-align: left; }

.stock-box, .ca-box {
  border: 2px groove #d4d0c8; background: var(--win-face); padding: 10px 14px; min-width: 230px;
}
.polaroid {
  background: #fdfdf8; padding: 10px 10px 8px; border: 1px solid #bbb;
  box-shadow: 3px 4px 10px rgba(0, 0, 30, 0.35); transform: rotate(2.2deg);
  width: 172px; flex: none; align-self: center;
}
.polaroid img { width: 100%; display: block; border: 1px solid #ddd; }
.polaroid figcaption {
  font-family: "Comic Sans MS", Tahoma, sans-serif; font-size: 10px; color: #444;
  text-align: center; padding-top: 6px; line-height: 1.35;
}
.sb-head { font-size: 11px; color: #555; border-bottom: 1px solid #d4d0c8; padding-bottom: 4px; margin-bottom: 8px !important; }
.sb-price { font-size: 32px; font-weight: bold; margin-bottom: 2px !important; }
.sb-change { font-size: 12px; font-weight: bold; }
.sb-change.up { color: var(--up); } .sb-change.down { color: var(--down); }
.sb-note { font-size: 10.5px; color: #777; margin-top: 8px !important; }
.ca-input {
  width: 100%; padding: 4px 6px; font-size: 12px; border: 1px inset #999; background: #fff; margin-bottom: 8px;
}
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* XP buttons */
.xp-btn {
  display: inline-block; cursor: pointer; text-decoration: none !important; text-align: center;
  font-family: Tahoma, sans-serif; font-size: 12.5px; color: #111 !important;
  padding: 5px 16px; border-radius: 3px;
  background: linear-gradient(180deg, #fff, #ece9d8 45%, #dcd8c8);
  border: 1px solid #003c74;
  box-shadow: inset 1px 1px 0 #fff;
}
.xp-btn:hover { background: linear-gradient(180deg, #fff9e0, #f3ecc3 45%, #e8dfa8); border-color: #e5a000; }
.xp-btn:active { background: #dcd8c8; box-shadow: inset 1px 1px 2px #999; }
.xp-btn.primary { border: 2px solid #003c74; font-weight: bold; background: linear-gradient(180deg, #eaffd0, #b8f07c 45%, #7ed321); }
.xp-btn.primary:hover { background: linear-gradient(180deg, #f4ffe2, #ccff8f 45%, #90e62e); }
.xp-btn.big { font-size: 15px; padding: 9px 26px; }
.xp-btn.tiny { font-size: 11px; padding: 2px 8px; }

/* ============ notepad ============ */
.notepad { background: #fff; padding: 10px 14px; overflow-x: auto; }
.notepad pre { font-family: "Courier New", monospace; font-size: 12.5px; line-height: 1.5; white-space: pre; }

/* ============ longness ============ */
.odo { border: 2px groove #d4d0c8; background: var(--win-face); padding: 14px 18px; margin: 12px 0; }
.odo-label { font-size: 10.5px; color: #555; letter-spacing: 2px; }
.odo-value { font-size: clamp(30px, 4.6vw, 46px); font-weight: bold; color: var(--grn); margin: 2px 0; }
.odo-sub { font-size: 12px; color: #333; margin-bottom: 8px !important; }
.xp-progress {
  height: 18px; border: 1px inset #999; background: #fff; padding: 2px; overflow: hidden;
}
.xp-progress.slim { height: 13px; }
.xp-progress > div {
  height: 100%; width: 0%;
  background: repeating-linear-gradient(90deg, #2bd12b 0 9px, #7ff07f 9px 12px, transparent 12px 15px);
  transition: width 0.15s linear;
}
.xp-hr { border: none; border-top: 1px solid #d4d0c8; margin: 16px 0; }

.trainer { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.mini-cat { display: flex; flex-direction: column; align-items: center; user-select: none; flex: none; }
.mini-head { width: 190px; display: block; }
.mini-neck {
  width: 40.7%; margin-left: 46.5%; height: 0; margin-top: -4px;
  background: url("assets/rail-slice.png?v=3") center / 100% 100% no-repeat;
  transition: height 0.55s cubic-bezier(0.2, 2.2, 0.35, 0.75);
}
.mini-neck.holding { transition: none; }
.trainer-ui { flex: 1; min-width: 230px; }
.impact.sm { font-size: 22px; margin-bottom: 6px; }
.trainer-read { font-size: 15px; color: var(--grn); font-weight: bold; margin-top: 10px !important; }
#stretchBtn { touch-action: none; user-select: none; }

/* ============ excel ============ */
.xls-body { padding: 0; overflow-x: auto; }
.xls { border-collapse: collapse; width: 100%; font-size: 12.5px; background: #fff; }
.xls th {
  background: linear-gradient(180deg, #f6f6f6, #dcdcdc); border: 1px solid #b5b5b5;
  font-weight: normal; color: #333; padding: 3px 10px; text-align: center; font-size: 11.5px;
}
.xls td { border: 1px solid #d0d0d0; padding: 6px 10px; vertical-align: top; }
.xls td:first-of-type { font-weight: bold; white-space: nowrap; background: #fbfbf4; }
.xls .mono { font-size: 12px; }
.grn-cell { color: var(--grn); font-weight: bold; }

/* ============ steps ============ */
.steps { margin: 4px 0 16px 22px; }
.steps li { margin-bottom: 12px; line-height: 1.55; }

/* ============ explorer / memes ============ */
.explorer { background: #fff; }
.meme-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px;
}
.meme-card { text-align: center; padding: 8px 4px 6px; border: 1px solid transparent; cursor: pointer; }
.meme-card:hover { border: 1px dotted #316ac5; background: #e8f0fb; }
.meme-card img {
  max-width: 100%; height: 120px; object-fit: contain; display: block; margin: 0 auto;
  image-rendering: auto;
}
.meme-card figcaption {
  font-size: 11px; color: #222; margin-top: 6px; word-break: break-all;
  font-family: Tahoma, sans-serif;
}
.meme-card:hover figcaption { background: #316ac5; color: #fff; }

/* ============ longimage shrine ============ */
.warn-strip {
  background: #000; color: #fff; font-family: "Courier New", monospace; font-weight: bold;
  text-align: center; padding: 6px; font-size: 13px;
}
.longimage-box {
  height: 430px; overflow-y: scroll; border: 2px inset #999; background: #000;
  text-align: center; margin: 10px 0 6px;
}
.longimage-box img { width: min(300px, 90%); height: auto; }

/* ============ cmd ============ */
.cmd { background: #000; color: #c9c9c9; padding: 12px 14px 16px; }
.cmd pre { font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; }
.cmd .cursor { animation: blink 1.06s steps(2, start) infinite; color: #fff; }
.cmd-btn { margin-top: 10px; }
.cmd-status { color: #39ff5a; font-size: 12.5px; margin-top: 8px; }

/* ============ faq ============ */
.faq-item { border: 1px solid #d4d0c8; margin-bottom: 8px; background: #fdfdf6; }
.faq-item summary {
  cursor: pointer; padding: 9px 12px; font-weight: bold; font-size: 13px;
  background: linear-gradient(180deg, #fff, #ece9d8); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "[+] "; color: var(--grn); font-family: "Courier New", monospace; }
.faq-item[open] summary::before { content: "[-] "; }
.faq-item p { padding: 10px 14px; line-height: 1.6; }

/* ============ footer / moon ============ */
#moon { position: relative; z-index: 2; padding: 120px 0 110px; overflow: hidden; min-height: 540px; color: #dfe6ee; }
.starfield { position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 20%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 34% 64%, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 56% 12%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 70% 46%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.7px 1.7px at 86% 24%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 22% 84%, rgba(255,255,255,0.75), transparent),
    radial-gradient(1.4px 1.4px at 48% 38%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.1px 1.1px at 92% 72%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.8px 1.8px at 64% 88%, #fff, transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.5; } to { opacity: 1; } }
.moon-dome {
  position: absolute; bottom: 0; width: var(--moonW); height: calc(var(--moonW) * 0.4); z-index: 3;
  right: calc(var(--rail-right) + var(--rail-w) * var(--s) * 0.3125 - var(--moonW) / 2);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    radial-gradient(circle at 24% 30%, rgba(0,0,0,0.22) 0 24px, transparent 25px),
    radial-gradient(circle at 58% 55%, rgba(0,0,0,0.18) 0 17px, transparent 18px),
    radial-gradient(circle at 78% 28%, rgba(0,0,0,0.2) 0 12px, transparent 13px),
    radial-gradient(circle at 42% 74%, rgba(0,0,0,0.15) 0 20px, transparent 21px),
    linear-gradient(180deg, #d9dde3 0%, #aab0ba 55%, #7d8490 100%);
  box-shadow: 0 0 70px rgba(217, 221, 227, 0.3);
}
.moon-flag { position: absolute; width: 110px; top: -96px; left: 16%; }
.foot-in { position: relative; z-index: 2; max-width: 560px; margin-left: max(20px, calc((100vw - 780px - (var(--rail-w) * var(--s)) - var(--rail-right) - 40px) / 2)); }
.foot-in .impact { font-size: clamp(26px, 4vw, 42px); color: #fff; margin-bottom: 12px; }
.foot-in p { line-height: 1.6; margin-bottom: 10px; }
.foot-in .btn-row { margin: 18px 0; }
.memorial b { color: #fff; }
.disclaimer { color: #8b97a5; font-size: 11.5px; max-width: 470px; }
.hint { color: rgba(198, 255, 46, 0.5); font-size: 11px; margin-top: 20px; }
.copyright { color: #6c7684; font-size: 10.5px; margin-top: 6px; }

/* ============ THE CAT RAIL (the real Longcat, endless) ============ */
#catRail {
  position: absolute; top: 118px; bottom: 130px; right: var(--rail-right);
  width: calc(var(--rail-w) * var(--s)); z-index: 1;
  filter: drop-shadow(3px 6px 10px rgba(0, 0, 20, 0.45));
  pointer-events: none;
}
.rail-head {
  position: relative; width: 100%; display: block; z-index: 2;
  /* fade the ragged dark bottom edge of the cutout into the tube below */
  -webkit-mask-image: linear-gradient(180deg, #000 94%, transparent 98.5%);
  mask-image: linear-gradient(180deg, #000 94%, transparent 98.5%);
}
.rail-hat { position: absolute; top: calc(var(--rail-w) * var(--s) * -0.015); left: 43%; width: 33%; z-index: 3; }
/* slice opaque core x 18..218 of 230 must land on fur x 278..476 of 560 -> left 46.5%, width 40.7% */
.rail-body {
  position: absolute; z-index: 1;
  /* start under still-opaque fur, above the masked bottom edge (head aspect 610/560) */
  top: calc(var(--rail-w) * var(--s) * 1.0);
  bottom: 0; left: 46.5%; width: 40.7%;
  background: url("assets/rail-slice.png?v=3") center / 100% 100% no-repeat;
}
body.boost #catRail { animation: boostPulse 0.9s ease; }
@keyframes boostPulse { 30% { transform: scaleX(1.06); filter: drop-shadow(0 0 30px rgba(198, 255, 46, 0.9)); } }

html.tacgnol .rail-head, html.tacgnol .rail-body, html.tacgnol .mini-head, html.tacgnol .mini-neck { filter: invert(1) hue-rotate(180deg); }
html.tacgnol .veil { opacity: 1; }
.veil {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0;
  transition: opacity 0.8s ease;
  background: radial-gradient(ellipse at 50% 40%, rgba(20, 0, 0, 0.25) 0%, rgba(25, 0, 8, 0.6) 80%);
  mix-blend-mode: multiply;
}

/* XP tooltip landmarks along the cat */
.chips { position: absolute; inset: 0; }
.chip {
  position: absolute; right: 56%; transform: translateY(-50%);
  white-space: nowrap;
  background: var(--tt-bg); color: #000; border: 1px solid #000;
  font-family: Tahoma, sans-serif; font-size: 11px; padding: 3px 7px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  opacity: 0; transition: opacity 0.5s ease;
}
.chip .chip-alt { color: var(--grn); font-weight: bold; }
.chip.on { opacity: 1; }
.chip.moon-chip { background: #000; color: var(--lime); border-color: var(--lime); font-weight: bold; }

/* ============ ruler.exe HUD ============ */
.mini-win {
  position: fixed; left: 12px; bottom: calc(var(--taskbar-h) + 12px); z-index: 60; width: 205px;
  background: var(--win-face); border: 1px solid var(--win-line); border-radius: 6px 6px 3px 3px;
  box-shadow: 2px 3px 10px rgba(0, 0, 20, 0.5); overflow: hidden;
}
.mini-body { padding: 8px 10px 10px; }
.hud-pct { font-size: 22px; font-weight: bold; color: var(--grn); margin-bottom: 4px; }
.hud-alt { font-size: 11px; color: #222; margin-top: 6px; }
.hud-mark { font-size: 10.5px; color: #555; margin-top: 2px; }
.hud-boost { font-size: 10.5px; color: #b00; margin-top: 2px; }
#toHead { margin-top: 8px; width: 100%; }

/* ============ XP dialog ============ */
#dlgWrap {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 30, 0.25);
}
.xp-dialog {
  width: min(400px, 92vw); background: var(--win-face);
  border: 1px solid var(--win-line); border-radius: 8px 8px 3px 3px;
  box-shadow: 4px 6px 22px rgba(0, 0, 20, 0.6); overflow: hidden;
}
.dlg-body { display: flex; gap: 14px; padding: 18px 16px; align-items: center; background: var(--win-face); }
.dlg-ico { font-size: 30px; flex: none; }
.dlg-body p { font-size: 12.5px; line-height: 1.5; }
.dlg-btns { display: flex; justify-content: center; gap: 10px; padding: 0 0 14px; background: var(--win-face); }

/* image viewer reuses dialog */
.xp-dialog.viewer { width: min(760px, 94vw); }
.xp-dialog.viewer .dlg-body { justify-content: center; background: #4a4a4a; padding: 10px; }
.xp-dialog.viewer img { max-width: 100%; max-height: 72vh; display: block; }

/* ============ taskbar ============ */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--taskbar-h); z-index: 100;
  display: flex; align-items: stretch;
  background: linear-gradient(180deg, #2f71e0 0%, #2663cf 4%, #1e55bd 50%, #1946a4 96%, #123a8f 100%);
  border-top: 1px solid #4a8ef0;
}
#startBtn {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  font-family: Tahoma, sans-serif; font-size: 15px; font-weight: bold; font-style: italic;
  color: #fff; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, #4ecb4e 0%, #2f9e2f 45%, #1e8a1e 90%);
  border: none; border-radius: 0 12px 12px 0; padding: 0 20px 0 12px; margin-right: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 2px 0 6px rgba(0, 0, 20, 0.4);
}
#startBtn:hover { filter: brightness(1.1); }
.start-logo { font-size: 15px; }
.task-tabs { display: flex; align-items: center; gap: 4px; overflow-x: auto; flex: 1; padding: 0 4px; }
.task-tab {
  flex: none; color: #fff; text-decoration: none; font-size: 11.5px; padding: 4px 12px;
  background: linear-gradient(180deg, #3c7ce8, #2a5fc4); border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25); text-shadow: 1px 1px 1px rgba(0, 0, 30, 0.5);
  white-space: nowrap;
}
.task-tab:hover { background: linear-gradient(180deg, #5490f2, #3a6fd4); }
.tray {
  display: flex; align-items: center; gap: 12px; padding: 0 12px 0 14px;
  background: linear-gradient(180deg, #1290e9 0%, #0b77cf 50%, #0a66b6 100%);
  border-left: 1px solid #4a8ef0; color: #fff; font-size: 11.5px;
}
.tray .up { color: #9dffa0; font-weight: bold; }
.tray .down { color: #ff9d9d; font-weight: bold; }

/* ============ start menu ============ */
#startMenu {
  position: fixed; left: 4px; bottom: calc(var(--taskbar-h) + 4px); z-index: 110;
  width: min(380px, 94vw);
  background: var(--win-face); border: 1px solid var(--win-line); border-radius: 8px 8px 3px 3px;
  box-shadow: 4px 6px 22px rgba(0, 0, 20, 0.6); overflow: hidden;
}
.sm-head {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: linear-gradient(180deg, #0997ff, #0053ee 60%, #013dc8); color: #fff; font-weight: bold; font-size: 14px;
}
.sm-head img { width: 34px; height: 34px; object-fit: cover; border: 2px solid #fff; border-radius: 4px; }
.sm-cols { display: flex; }
.sm-left { flex: 1.2; background: #fff; padding: 8px 0; display: flex; flex-direction: column; }
.sm-right { flex: 1; background: #d3e5fa; padding: 8px 0; display: flex; flex-direction: column; border-left: 1px solid #96b8e0; }
.sm-left a, .sm-right a {
  padding: 7px 14px; text-decoration: none; color: #111; font-size: 12.5px; line-height: 1.3;
}
.sm-left a small { color: #666; font-size: 10.5px; }
.sm-left a:hover, .sm-right a:hover { background: #316ac5; color: #fff; }
.sm-left a:hover small { color: #cfe0ff; }
.sm-foot { padding: 6px 10px; text-align: right; background: linear-gradient(180deg, #0997ff, #0053ee 60%, #013dc8); }

/* ============ toast ============ */
#toast {
  position: fixed; bottom: calc(var(--taskbar-h) + 14px); left: 50%; transform: translate(-50%, 90px);
  z-index: 130; background: var(--tt-bg); color: #000; border: 1px solid #000;
  font-size: 12.5px; padding: 9px 18px; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  opacity: 0; pointer-events: none; transition: transform 0.3s ease, opacity 0.25s;
  max-width: min(88vw, 540px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.confetti { position: fixed; width: 8px; height: 8px; z-index: 140; pointer-events: none; background: var(--lime); animation: conf 1s ease-out forwards; }
.confetti.fur { background: #fff; border-radius: 50%; }
@keyframes conf { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

/* ============ responsive ============ */
@media (max-width: 1360px) { :root { --s: 0.8; } }
@media (max-width: 1120px) { :root { --s: 0.62; } }
@media (max-width: 900px) {
  :root { --s: 0.48; --rail-right: 2px; --moonW: 300px; }
  .desk { margin-inline: 10px; max-width: none; padding-right: 0; }
  .win:nth-child(even) { transform: none; }
  .foot-in { margin-left: 14px; padding-right: 14px; }
  .task-tabs { display: none; }
}
@media (max-width: 620px) {
  :root { --s: 0.36; }
  .chip { display: none; }
  .chip.moon-chip { display: block; }
  .mini-win { width: 170px; }
  .hero-cols { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
