:root {
  --desktop-pink: #bd8fb8;
  --desktop-pink-dark: #8c628a;
  --desktop-lavender: #d6c2dd;
  --win-gray: #d4d0c8;
  --win-gray-light: #ece9d8;
  --win-white: #ffffff;
  --win-shadow: #808080;
  --win-dark: #404040;
  --title-blue: #5a3f8f;
  --title-pink: #c75f98;
  --title-pink-light: #ee96bc;
  --field-bg: #ffffff;
  --text: #111111;
  --muted: #4b4b4b;
  --link: #000080;
  --success: #116611;
  --error: #8c1325;
  --star-pink: #f19ab4;
  --star-yellow: #f7cf75;
  --star-sage: #a8c88c;
  --star-purple: #bca9dc;
  --star-blue: #8cc8d5;
  --taskbar-height: 44px;
  --font-ui: "MS Sans Serif", Tahoma, Geneva, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 14px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  padding-bottom: calc(var(--taskbar-height) + env(safe-area-inset-bottom));
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  background: var(--desktop-pink);
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.desktop-wallpaper {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.22) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 38%, rgba(255,255,255,.18) 0 1px, transparent 2px),
    linear-gradient(135deg, rgba(255,255,255,.08) 25%, transparent 25%) 0 0 / 8px 8px,
    linear-gradient(315deg, rgba(66,36,74,.055) 25%, transparent 25%) 0 0 / 8px 8px,
    linear-gradient(145deg, #c895be 0%, #b982ae 42%, #9875a7 100%);
}

.desktop-wallpaper::before,
.desktop-wallpaper::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: .22;
}

.desktop-wallpaper::before {
  width: 430px;
  height: 170px;
  right: 4vw;
  top: 7vh;
  background: rgba(255, 236, 249, .68);
  box-shadow: -100px 54px 0 2px rgba(255, 236, 249, .42), 110px 68px 0 -14px rgba(255, 236, 249, .35);
}

.desktop-wallpaper::after {
  width: 500px;
  height: 210px;
  left: -90px;
  bottom: 13vh;
  background: rgba(216, 238, 244, .34);
  box-shadow: 165px -45px 0 -24px rgba(216, 238, 244, .26);
}

.desktop-shortcuts {
  position: fixed;
  z-index: 2;
  left: 14px;
  top: 16px;
  display: grid;
  gap: 17px;
  width: 84px;
}

.desktop-shortcut {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 80px;
  padding: 3px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.15;
  text-shadow: 1px 1px #3b2d45;
}

.desktop-shortcut:focus-visible,
.desktop-shortcut:hover {
  outline: 1px dotted #fff;
  background: rgba(36, 31, 91, .28);
}

.desktop-icon {
  position: relative;
  display: block;
  width: 38px;
  height: 35px;
  filter: drop-shadow(2px 2px 0 rgba(36, 28, 42, .4));
}

.icon-computer::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  width: 31px;
  height: 23px;
  border: 2px solid #242424;
  background: #d7d7d7;
  box-shadow: inset 2px 2px #fff, inset -2px -2px #777;
}

.icon-computer::after {
  content: "★";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 20px;
  height: 14px;
  display: grid;
  place-items: center;
  background: #5b438e;
  color: #ffd9e9;
  font-size: 10px;
}

.icon-computer i {
  position: absolute;
  left: 11px;
  bottom: 1px;
  width: 18px;
  height: 7px;
  border: 2px solid #333;
  background: #c0c0c0;
}

.icon-folder::before,
.large-folder-icon,
.folder-program-icon,
.task-folder,
.menu-folder {
  content: "";
  display: inline-block;
  position: relative;
  width: 34px;
  height: 24px;
  border: 1px solid #6c4d20;
  background: #f3cf5d;
  box-shadow: inset 2px 2px rgba(255,255,255,.48), inset -2px -2px rgba(138,93,25,.36);
}

.icon-folder::after,
.large-folder-icon::after,
.folder-program-icon::after,
.task-folder::after,
.menu-folder::after {
  content: "";
  position: absolute;
  left: 2px;
  top: -6px;
  width: 16px;
  height: 7px;
  border: 1px solid #6c4d20;
  border-bottom: 0;
  background: #f3cf5d;
}

.icon-folder i {
  display: none;
}

.icon-document::before,
.menu-document {
  content: "";
  display: inline-block;
  position: relative;
  width: 27px;
  height: 34px;
  border: 1px solid #333;
  background:
    linear-gradient(#c85a91, #c85a91) 5px 7px / 15px 3px no-repeat,
    repeating-linear-gradient(0deg, transparent 0 4px, #818181 5px 6px) 5px 14px / 16px 14px no-repeat,
    #fff;
  box-shadow: 2px 2px #555;
}

.icon-document::after,
.menu-document::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 8px;
  height: 8px;
  border-left: 1px solid #333;
  border-bottom: 1px solid #333;
  background: #d9d9d9;
}

.icon-document i {
  display: none;
}

.desktop-workspace {
  width: min(1180px, calc(100% - 150px));
  margin: 28px auto 64px;
  display: grid;
  gap: 24px;
}

.win98-window {
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid var(--win-dark);
  border-bottom: 2px solid var(--win-dark);
  background: var(--win-gray);
  box-shadow: 2px 2px 0 #000, 9px 12px 24px rgba(42, 24, 47, .26);
}

.main-window {
  width: 100%;
}

.title-bar,
.mini-title-bar {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 3px;
  padding: 3px 4px 3px 6px;
  background: linear-gradient(90deg, var(--title-blue), var(--title-pink) 62%, var(--title-pink-light));
  color: #fff;
  font-weight: 700;
  letter-spacing: .01em;
}

.inactive-title-bar {
  background: linear-gradient(90deg, #777, #aaa);
}

.title-bar-text {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tiny-program-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,.7);
  background: #f2c765;
  color: #694266;
  font-size: 11px;
  box-shadow: inset 1px 1px #fff;
}

.folder-program-icon {
  width: 20px;
  height: 14px;
  transform: scale(.72);
  transform-origin: center;
}

.title-bar-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.title-bar-controls span,
.popup-close {
  width: 23px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  background: var(--win-gray);
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.popup-close {
  cursor: pointer;
}

.popup-close:active,
.win98-button:active,
.start-button[aria-expanded="true"] {
  border-top-color: #555;
  border-left-color: #555;
  border-right-color: #fff;
  border-bottom-color: #fff;
  padding-top: 1px;
  padding-left: 1px;
}

.menu-bar {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 1px 7px 3px;
  border-bottom: 1px solid #9d9d9d;
}

.menu-bar a {
  padding: 5px 8px;
  color: #111;
  text-decoration: none;
}

.menu-bar a:hover,
.menu-bar a:focus-visible {
  background: var(--title-blue);
  color: #fff;
  outline: 0;
}

.address-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 5px 7px 7px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #818181;
}

.toolbar-label {
  color: #333;
  font-size: 12px;
}

.address-field,
.win98-inset {
  border-top: 2px solid #707070;
  border-left: 2px solid #707070;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background: var(--field-bg);
  box-shadow: inset 1px 1px 0 #000;
}

.address-field {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.address-icon {
  color: #bd4f86;
}

.win98-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 13px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  border-radius: 0;
  background: var(--win-gray);
  color: #111;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 1px 1px 0 #000;
}

.win98-button:hover,
.win98-button:focus-visible {
  outline: 1px dotted #111;
  outline-offset: -5px;
}

.win98-button:disabled {
  color: #777;
  text-shadow: 1px 1px #fff;
  cursor: wait;
}

.compact-button {
  min-height: 28px;
  padding: 3px 12px;
}

.default-button {
  box-shadow: 0 0 0 1px #000, 1px 1px 0 #000;
}

.window-client {
  margin: 7px;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #777;
  border-bottom: 1px solid #777;
}

.main-client {
  background:
    linear-gradient(rgba(255, 245, 252, .92), rgba(239, 226, 242, .94)),
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(92, 65, 111, .06) 18px),
    #f3eaf3;
}

.hero-grid {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(315px, .82fr);
  align-items: stretch;
  gap: 20px;
  padding: clamp(16px, 3vw, 30px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.welcome-panel {
  padding: 7px 4px 0;
}

.system-label,
.toolbar-copy p {
  margin: 0 0 9px;
  color: #743d6f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 17px;
  color: #432348;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 5.2vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-shadow: 2px 2px 0 rgba(255,255,255,.76);
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 15px;
  color: #3b2e3c;
  font-size: clamp(15px, 1.65vw, 18px);
  line-height: 1.5;
}

.system-message {
  max-width: 690px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid #b7a5b5;
  background: #fffbea;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #9d8e93;
  line-height: 1.35;
}

.info-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #3b66b5;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 0 0 1px #17346c;
}

.win-form {
  margin-top: auto;
}

.win98-group-box {
  min-width: 0;
  margin: 0;
  padding: 18px 16px 15px;
  border: 2px groove #fff;
  background: var(--win-gray);
}

.win98-group-box legend {
  padding: 0 7px;
  font-weight: 700;
}

.field-row {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.field-row label,
.label-line {
  font-weight: 700;
}

.label-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.label-line span {
  color: #555;
  font-size: 12px;
  font-weight: 400;
}

.input-prefix-wrap {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-inline: 8px;
}

.input-prefix-wrap > span {
  color: #7c3c72;
  font-weight: 900;
}

input,
textarea {
  color: #111;
}

.input-prefix-wrap input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 5px 3px;
  border: 0;
  outline: 0;
  background: transparent;
}

textarea {
  width: 100%;
  min-height: 118px;
  display: block;
  resize: vertical;
  padding: 9px;
  outline: 0;
}

input:focus,
textarea:focus {
  outline: 1px dotted #222;
  outline-offset: -4px;
}

input::placeholder,
textarea::placeholder {
  color: #777;
}

textarea::placeholder {
  transition: opacity 150ms ease;
}

textarea.placeholder-changing::placeholder {
  opacity: 0;
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 230px);
  align-items: center;
  gap: 16px;
}

.form-hint {
  margin: 0;
  color: #4c4c4c;
  font-size: 12px;
  line-height: 1.35;
}

.submit-button {
  min-height: 42px;
}

.pixel-star {
  color: #b44d80;
  text-shadow: 1px 1px #fff;
}

.form-message {
  min-height: 18px;
  margin: 10px 0 0;
  text-align: right;
  font-weight: 700;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--error);
}

.bot-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.jar-program {
  min-width: 0;
  align-self: center;
  margin: 0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  background: var(--win-gray);
  box-shadow: 2px 2px 0 #000;
}

.mini-title-bar {
  min-height: 27px;
  font-size: 12px;
}

.jar-program-body {
  position: relative;
  min-height: 472px;
  margin: 5px;
  padding: 48px 18px 13px;
  overflow: hidden;
  border-top: 2px solid #666;
  border-left: 2px solid #666;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background:
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px) 0 0 / 16px 16px,
    #f7e8f4;
}

.paint-label {
  position: absolute;
  z-index: 3;
  left: 12px;
  top: 11px;
  display: flex;
  align-items: flex-start;
  color: #783d72;
  font-family: "Comic Sans MS", cursive;
  font-size: 18px;
  font-weight: 700;
  transform: rotate(-3deg);
}

.doodle-arrow {
  width: 76px;
  height: 46px;
  margin: 8px 0 0 5px;
  overflow: visible;
  fill: none;
  stroke: #783d72;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jar-stage {
  position: relative;
  width: min(100%, 295px);
  margin: 0 auto;
}

.star-jar-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(7px 8px 0 rgba(91, 61, 90, .14));
}

.jar-shadow {
  fill: rgba(61, 42, 60, .17);
}

.jar-glass {
  fill: url(#glass-fill);
  stroke: #51515a;
  stroke-width: 4;
  stroke-linejoin: round;
}

.jar-highlight,
.jar-highlight-small {
  fill: none;
  stroke: rgba(255,255,255,.92);
  stroke-width: 7;
  stroke-linecap: round;
}

.jar-highlight-small {
  stroke-width: 4;
  opacity: .72;
}

.jar-neck {
  fill: rgba(255,255,255,.62);
  stroke: #51515a;
  stroke-width: 4;
}

.jar-lid {
  fill: #c0c0c0;
  stroke: #4a4a4a;
  stroke-width: 4;
}

.lid-line,
.jar-rim {
  fill: none;
  stroke: #777;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.paper-star {
  transform-origin: 0 0;
  transform: translate(var(--star-x), var(--star-y)) rotate(var(--star-rotate)) scale(var(--star-scale));
  filter: drop-shadow(1px 2px 0 rgba(53, 38, 53, .24));
}

.paper-star polygon {
  stroke: rgba(56, 45, 59, .58);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.star-fold {
  fill: none;
  stroke: rgba(62, 44, 61, .33);
  stroke-width: .9;
  stroke-linecap: round;
}

.paper-star.is-dropping {
  animation: star-drop 760ms steps(10, end) both;
}

@keyframes star-drop {
  0% {
    transform: translate(var(--star-x), -38px) rotate(calc(var(--star-rotate) - 110deg)) scale(.35);
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  85% {
    transform: translate(var(--star-x), calc(var(--star-y) + 6px)) rotate(calc(var(--star-rotate) + 10deg)) scale(var(--star-scale));
  }
  100% {
    transform: translate(var(--star-x), var(--star-y)) rotate(var(--star-rotate)) scale(var(--star-scale));
    opacity: 1;
  }
}

.jar-count {
  position: absolute;
  left: 50%;
  bottom: 53px;
  min-width: 138px;
  padding: 8px 10px;
  transform: translateX(-50%);
  text-align: center;
}

.jar-count strong,
.jar-count span {
  display: block;
}

.jar-count strong {
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1;
}

.jar-count span {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.jar-program figcaption {
  min-height: 36px;
  margin: -5px 6px 0;
  color: #333;
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
}

.mini-status-bar,
.window-status-bar {
  display: grid;
  gap: 3px;
  padding: 3px;
}

.mini-status-bar {
  grid-template-columns: 1fr auto;
}

.mini-status-bar span,
.status-pane {
  min-height: 24px;
  display: flex;
  align-items: center;
  padding: 3px 6px;
  border-top: 1px solid #777;
  border-left: 1px solid #777;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
}

.window-status-bar {
  grid-template-columns: minmax(100px, .6fr) minmax(160px, 1.3fr) minmax(125px, .7fr);
}

.community-window {
  scroll-margin-top: 12px;
}

.community-toolbar {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 13px 16px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #818181;
}

.toolbar-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.large-folder-icon {
  flex: 0 0 auto;
  width: 50px;
  height: 35px;
}

.toolbar-copy p {
  margin-bottom: 3px;
  font-size: 10px;
}

.toolbar-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3.7vw, 2.7rem);
  line-height: 1;
  letter-spacing: -.025em;
}

.feed-controls-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #888;
}

.segmented {
  display: flex;
  gap: 5px;
}

.segmented .active {
  border-top-color: #555;
  border-left-color: #555;
  border-right-color: #fff;
  border-bottom-color: #fff;
  background: #bbb7b0;
  padding-top: 6px;
  padding-left: 14px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.search-field input {
  min-height: 32px;
  width: min(250px, 30vw);
  padding: 5px 8px;
  outline: 0;
}

.feed-view {
  min-height: 340px;
  margin: 8px;
  padding: 14px;
  background: #fff;
}

.feed-status {
  margin: 0;
  padding: 18px 8px;
  color: #555;
}

.wins-feed {
  display: grid;
  gap: 28px;
}

.day-group {
  display: grid;
  gap: 10px;
}

.day-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px dotted #777;
}

.day-heading h3 {
  margin: 0;
  color: #4b2350;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.day-heading::after {
  content: "";
  flex: 1;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.user-win-card {
  position: relative;
  min-width: 0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #696969;
  border-bottom: 2px solid #696969;
  background: var(--win-gray);
  box-shadow: 1px 1px 0 #111;
}

.user-win-card::before {
  content: "NOTEPAD.EXE";
  display: block;
  min-height: 23px;
  padding: 4px 7px;
  overflow: hidden;
  background: linear-gradient(90deg, #6b4a9c, #d16a9b);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user-win-card[data-card-style="1"]::before {
  background: linear-gradient(90deg, #326c7d, #72a7ad);
}

.user-win-card[data-card-style="2"]::before {
  background: linear-gradient(90deg, #8d4d64, #d5838d);
}

.user-win-card[data-card-style="3"]::before {
  background: linear-gradient(90deg, #526d3e, #91a879);
}

.mini-tape {
  display: none;
}

.user-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px 6px;
}

.username {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #55105f;
  font-weight: 700;
}

.username > span:last-child {
  overflow-wrap: anywhere;
}

.buddy-dot,
.online-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 1px solid #284d1a;
  background: #67ad49;
  box-shadow: inset 1px 1px #a9e08f;
}

.win-count {
  flex: 0 0 auto;
  padding: 3px 5px;
  border-top: 1px solid #777;
  border-left: 1px solid #777;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  font-size: 10px;
  white-space: nowrap;
}

.win-list {
  list-style: none;
  margin: 0 7px 7px;
  padding: 9px;
  display: grid;
  gap: 8px;
  border-top: 2px solid #777;
  border-left: 2px solid #777;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background: #fffdf7;
  line-height: 1.4;
}

.win-list li {
  position: relative;
  padding-left: 19px;
  overflow-wrap: anywhere;
}

.win-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: #c04e83;
  font-size: 11px;
}

.empty-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 38px 18px;
  border: 1px dotted #666;
  background: #f7f7f7;
  text-align: center;
}

.empty-card span {
  color: #bd4f86;
  font-size: 23px;
}

.about-window {
  width: min(570px, 100%);
  justify-self: center;
}

.about-client {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.about-client p {
  margin: 6px 0 0;
  line-height: 1.4;
}

.about-star {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #684262;
  background: #f2c765;
  color: #a54676;
  font-size: 28px;
  box-shadow: inset 2px 2px #fff, inset -3px -3px #b47d31;
}

.retro-popup {
  position: fixed;
  z-index: 120;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(var(--taskbar-height) + 18px + env(safe-area-inset-bottom));
  width: min(370px, calc(100vw - 28px));
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.retro-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.retro-popup .title-bar {
  margin: 3px;
}

.retro-popup-body {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 20px 18px 11px;
}

.retro-popup-body p {
  margin: 0;
  line-height: 1.4;
}

.retro-star-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #6c4d20;
  background: #f2c765;
  color: #ad4777;
  font-size: 25px;
  box-shadow: inset 2px 2px #fff, inset -3px -3px #b68136;
}

.popup-actions {
  display: flex;
  justify-content: flex-end;
  padding: 3px 16px 15px;
}

.popup-actions .win98-button {
  min-width: 104px;
}

.taskbar {
  position: fixed;
  z-index: 100;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: calc(var(--taskbar-height) + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto minmax(135px, 235px) minmax(145px, 250px) minmax(110px, 1fr);
  align-items: center;
  gap: 4px;
  padding: 4px 5px calc(4px + env(safe-area-inset-bottom));
  border-top: 2px solid #fff;
  background: var(--win-gray);
  box-shadow: 0 -1px #666;
}

.start-button {
  min-height: 35px;
  padding: 3px 8px;
  font-size: 14px;
}

.start-logo {
  width: 22px;
  height: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  transform: skewY(-5deg);
}

.start-logo i:nth-child(1) { background: #db384a; }
.start-logo i:nth-child(2) { background: #4ca85e; }
.start-logo i:nth-child(3) { background: #4283cf; }
.start-logo i:nth-child(4) { background: #e6bf3d; }

.task-button {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  overflow: hidden;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.active-task {
  border-top-color: #555;
  border-left-color: #555;
  border-right-color: #fff;
  border-bottom-color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.055) 0 1px, transparent 1px 3px),
    #c3bfc0;
  font-weight: 700;
}

.task-folder {
  width: 19px;
  height: 14px;
  flex: 0 0 auto;
  transform: scale(.66);
}

.system-tray {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 5px 9px;
  justify-self: stretch;
}

.tray-star {
  color: #b64e82;
}

#taskbar-clock {
  white-space: nowrap;
  font-size: 12px;
}

.start-menu {
  position: fixed;
  z-index: 110;
  left: 4px;
  bottom: calc(var(--taskbar-height) + env(safe-area-inset-bottom));
  width: min(310px, calc(100vw - 8px));
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  box-shadow: 4px 4px 0 rgba(0,0,0,.35);
}

.start-menu-side {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 9px 2px;
  background: linear-gradient(#6f4c94, #be5c91);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.start-menu-links {
  padding: 5px;
}

.start-menu-links a,
.start-menu-links button {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: #111;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.start-menu-links a:hover,
.start-menu-links a:focus-visible,
.start-menu-links button:hover,
.start-menu-links button:focus-visible {
  background: var(--title-blue);
  color: #fff;
  outline: 0;
}

.start-menu-links a > span:first-child,
.start-menu-links button > span:first-child {
  display: grid;
  place-items: center;
  color: #b64f83;
  font-size: 24px;
}

.start-menu-links .menu-folder {
  width: 30px;
  height: 21px;
}

.start-menu-links .menu-document {
  width: 24px;
  height: 31px;
  justify-self: center;
}

.start-menu-links hr {
  border: 0;
  border-top: 1px solid #777;
  border-bottom: 1px solid #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1050px) {
  .desktop-shortcuts {
    display: none;
  }

  .desktop-workspace {
    width: min(100% - 28px, 1180px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .jar-program {
    width: min(100%, 430px);
    justify-self: center;
  }

  .hero-content {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --taskbar-height: 48px;
  }

  .desktop-workspace {
    width: calc(100% - 12px);
    margin: 7px auto 42px;
    gap: 12px;
  }

  .title-bar,
  .mini-title-bar {
    min-height: 34px;
  }

  .menu-bar {
    overflow-x: auto;
  }

  .address-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .toolbar-label {
    display: none;
  }

  .hero-grid {
    min-height: 0;
    padding: 14px 10px 17px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .system-message {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .win98-group-box {
    padding: 17px 11px 13px;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }

  .submit-button {
    width: 100%;
    min-height: 46px;
  }

  .form-message {
    text-align: left;
  }

  .jar-program-body {
    min-height: 440px;
  }

  .window-status-bar {
    grid-template-columns: 1fr 1fr;
  }

  .window-status-bar .status-pane:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .community-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-toolbar > .win98-button {
    align-self: stretch;
  }

  .feed-controls-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .search-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .search-field input {
    width: 100%;
  }

  .feed-view {
    margin: 6px;
    padding: 10px;
  }

  .user-grid {
    grid-template-columns: 1fr;
  }

  .taskbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .task-button:nth-of-type(2) {
    display: none;
  }

  .system-tray {
    justify-self: end;
  }

  .tray-star {
    display: none;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .desktop-workspace {
    width: calc(100% - 6px);
    margin-top: 3px;
  }

  .title-bar-controls span {
    width: 22px;
  }

  .menu-bar a {
    padding-inline: 7px;
  }

  .address-field {
    font-size: 10px;
  }

  .hero-grid {
    padding-inline: 7px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-copy {
    font-size: 14px;
  }

  .jar-program {
    width: 100%;
  }

  .jar-program-body {
    min-height: 410px;
    padding-inline: 7px;
  }

  .paint-label {
    font-size: 16px;
  }

  .jar-stage {
    width: min(100%, 268px);
  }

  .window-status-bar {
    grid-template-columns: 1fr;
  }

  .window-status-bar .status-pane:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }

  .toolbar-copy {
    align-items: flex-start;
  }

  .large-folder-icon {
    width: 39px;
    height: 29px;
  }

  .toolbar-copy h2 {
    font-size: 1.65rem;
  }

  .segmented .win98-button {
    padding-inline: 4px;
    font-size: 11px;
  }

  .search-field {
    grid-template-columns: 1fr;
  }

  .user-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-client {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 12px;
  }

  .about-star {
    width: 42px;
    height: 42px;
  }

  .retro-popup {
    left: 4px;
    right: 4px;
    bottom: calc(var(--taskbar-height) + 7px + env(safe-area-inset-bottom));
    width: auto;
  }

  .taskbar {
    padding-inline: 3px;
  }

  .start-button {
    padding-inline: 5px;
  }

  .task-button {
    padding-inline: 6px;
  }

  .system-tray {
    padding-inline: 6px;
  }

  #taskbar-clock {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------------------------------------------------------
   Desktop window manager
   --------------------------------------------------------- */
.desktop-shortcut {
  border: 0;
  background: transparent;
  font-family: var(--font-ui);
  cursor: default;
}

.desktop-shortcut.is-selected {
  outline: 1px dotted #fff;
  background: rgba(36, 31, 91, .38);
}

.icon-star-jar::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 24px;
  height: 25px;
  border: 2px solid #353535;
  border-radius: 3px 3px 8px 8px;
  background:
    radial-gradient(circle at 7px 16px, #f3a6b8 0 3px, transparent 3.5px),
    radial-gradient(circle at 15px 18px, #f6c27f 0 3px, transparent 3.5px),
    radial-gradient(circle at 11px 10px, #b8cfa8 0 3px, transparent 3.5px),
    rgba(235, 247, 249, .86);
  box-shadow: inset 2px 2px rgba(255,255,255,.75), inset -2px -2px rgba(94,86,104,.35);
}

.icon-star-jar::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 28px;
  height: 7px;
  border: 2px solid #353535;
  background: #d3a66c;
  box-shadow: inset 1px 1px #f8d7a1;
}

.desktop-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: start;
}

.main-window {
  grid-column: 1;
  grid-row: 1;
}

.jar-window {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  align-self: start;
}

.community-window,
.about-window {
  grid-column: 1 / -1;
}

.form-only-grid {
  min-height: 590px;
  grid-template-columns: minmax(0, 1fr);
}

.win98-window[data-window-id] {
  position: relative;
}

.win98-window.window-is-inactive > .title-bar,
.win98-window.window-is-inactive > .mini-title-bar {
  background: linear-gradient(90deg, #777, #aaa);
}

.title-bar,
.mini-title-bar {
  user-select: none;
}

.title-bar-controls button,
.window-control {
  width: 23px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  background: var(--win-gray);
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.title-bar-controls button:active,
.window-control:active {
  border-top-color: #555;
  border-left-color: #555;
  border-right-color: #fff;
  border-bottom-color: #fff;
  padding-top: 1px;
  padding-left: 1px;
}

.win98-window.is-maximized {
  position: fixed !important;
  inset: 7px 7px calc(var(--taskbar-height) + 7px + env(safe-area-inset-bottom)) 7px;
  width: auto !important;
  max-width: none !important;
  height: auto;
  margin: 0 !important;
  overflow: auto;
  grid-column: auto !important;
  grid-row: auto !important;
}

.win98-window.is-maximized .window-client,
.win98-window.is-maximized .feed-view {
  max-height: none;
}

.taskbar {
  grid-template-columns: auto minmax(105px, 1fr) minmax(105px, 1fr) minmax(115px, 1fr) auto;
}

.task-button {
  font: inherit;
  background: var(--win-gray);
  cursor: pointer;
}

.task-button.is-minimized {
  background: #c9c5be;
  font-weight: 400;
}

.task-star,
.task-jar,
.menu-star-jar,
.menu-about-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.task-star {
  width: 18px;
  height: 18px;
  border: 1px solid #6c4d20;
  background: #f2c765;
  color: #a84477;
  font-size: 11px;
  box-shadow: inset 1px 1px #fff;
}

.task-jar {
  width: 18px;
  height: 18px;
  border: 1px solid #343434;
  border-radius: 2px 2px 5px 5px;
  background: #effbfc;
  color: #c14e88;
  font-size: 10px;
}

.menu-star-jar,
.menu-about-icon {
  width: 30px;
  height: 30px;
  justify-self: center;
  border: 1px solid #444;
  background: #f2c765;
  color: #a84477 !important;
  box-shadow: inset 2px 2px #fff, inset -2px -2px #888;
}

.menu-star-jar {
  border-radius: 3px 3px 8px 8px;
  background: #e9f8fa;
}

@media (max-width: 1050px) {
  .desktop-shortcuts {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 8px 5px 1px;
  }

  .desktop-shortcut {
    flex: 0 0 76px;
  }

  .desktop-workspace {
    width: min(100% - 28px, 1180px);
    margin-top: 10px;
    grid-template-columns: 1fr;
  }

  .main-window,
  .jar-window,
  .community-window,
  .about-window {
    grid-column: 1;
    grid-row: auto;
  }

  .jar-window {
    width: min(100%, 430px);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .desktop-shortcuts {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .desktop-shortcuts::-webkit-scrollbar {
    display: none;
  }

  .desktop-shortcut {
    flex-basis: 72px;
    font-size: 11px;
  }

  .taskbar {
    grid-template-columns: auto repeat(3, minmax(38px, 1fr)) auto;
  }

  .task-button {
    min-width: 0;
    justify-content: center;
    padding-inline: 4px;
  }

  .task-button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .task-button:nth-of-type(2) {
    display: flex;
  }

  .form-only-grid {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .desktop-shortcuts {
    padding-top: 5px;
  }

  .desktop-shortcut {
    flex-basis: 66px;
  }

  .title-bar-controls button,
  .window-control {
    width: 22px;
  }

  .win98-window.is-maximized {
    inset: 3px 3px calc(var(--taskbar-height) + 3px + env(safe-area-inset-bottom)) 3px;
  }
}
