:root {
  color-scheme: light;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  --xp-blue: #075ad7;
  --xp-blue-deep: #003399;
  --xp-blue-bright: #2f7df5;
  --xp-green: #3b9b16;
  --xp-panel: #ece9d8;
  --xp-border-light: #ffffff;
  --xp-border-mid: #aca899;
  --xp-text: #151515;
  --taskbar-height: 46px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--xp-text);
  background: #2e84d4;
  font-size: 16px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #ffbf00;
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.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;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 5000;
  padding: 10px 14px;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.desktop {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background-color: #4a9cdb;
  background-image:
    linear-gradient(to bottom, rgba(1, 31, 91, 0.05), rgba(1, 31, 91, 0.04)),
    url("./assets/blue-hills.webp");
  background-size: cover;
  background-position: center;
  user-select: none;
}

.desktop::after {
  content: "";
  position: absolute;
  inset: 0 0 var(--taskbar-height);
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(0, 43, 92, 0.12);
}

.desktop-brand {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 43, 78, 0.65);
}

.desktop-brand__mark,
.start-orb,
.profile-avatar,
.about-logo,
.boot-logo {
  display: grid;
  place-items: center;
  color: #fff;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.45), transparent 42%),
    linear-gradient(145deg, #ffaf00 0 48%, #1476dc 49% 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset -1px -1px 1px rgba(0, 32, 116, 0.4), 0 1px 2px rgba(0, 44, 95, 0.35);
}

.desktop-brand__mark {
  width: 27px;
  height: 27px;
  border-radius: 6px;
}

.desktop-icons {
  position: absolute;
  top: 22px;
  left: 12px;
  z-index: 2;
  display: grid;
  grid-auto-rows: min-content;
  gap: 13px;
  width: 110px;
}

.desktop-icon {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 106px;
  min-height: 82px;
  padding: 4px 2px;
  color: #fff;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: default;
  text-shadow: 1px 1px 2px #00325f, -1px 0 1px rgba(0, 39, 78, 0.72);
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
  background: rgba(36, 96, 180, 0.32);
  border-color: rgba(190, 222, 255, 0.72);
}

.desktop-icon__label {
  max-width: 104px;
  font-size: 14px;
  line-height: 1.18;
  text-align: center;
}

.icon-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  filter: drop-shadow(1px 2px 1px rgba(0, 34, 65, 0.62));
}

.icon-art--timer {
  width: 45px;
  height: 45px;
  color: #063265;
  font-weight: 700;
  background: radial-gradient(circle at 38% 32%, #fff 0 11%, #d7f0ff 12% 54%, #3b80d6 56% 65%, #103e94 67% 100%);
  border: 2px solid #dbeeff;
  border-radius: 50%;
}

.icon-art--timer::before {
  content: "";
  position: absolute;
  top: -5px;
  width: 15px;
  height: 7px;
  background: #f0cb59;
  border: 2px solid #725309;
  border-radius: 3px;
}

.icon-art--timer span {
  font-size: 13px;
}

.icon-art--notes {
  width: 40px;
  height: 47px;
  background: repeating-linear-gradient(to bottom, #fffbc4 0 8px, #b6cfea 9px 10px);
  border: 2px solid #fff;
  box-shadow: inset -3px 0 0 #e2d778, 2px 2px 0 #34578d;
  transform: rotate(-2deg);
}

.icon-art--notes::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6px;
  bottom: 0;
  width: 2px;
  background: #ec7777;
}

.icon-art--sound {
  width: 45px;
  height: 42px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 31px;
  background: linear-gradient(145deg, #ffbf46, #e46c00 62%, #b83300);
  border: 2px solid #ffe9a5;
  border-radius: 50% 50% 44% 44%;
}

.icon-art--pro {
  width: 46px;
  height: 46px;
  color: #fff8c2;
  font-size: 27px;
  background: radial-gradient(circle at 35% 28%, #ffed8b, #e99000 45%, #9a3b00 100%);
  border: 2px solid #fff0a1;
  border-radius: 12px;
}

.icon-art--computer {
  width: 47px;
  height: 38px;
  color: white;
  font-family: Georgia, serif;
  font-size: 22px;
  font-style: italic;
  background: linear-gradient(145deg, #49a3f5, #1451aa 70%);
  border: 4px solid #d6d5cc;
  border-radius: 3px;
  box-shadow: 0 5px 0 -1px #b7b6ad, 0 9px 0 -3px #deddd3;
}

.window {
  position: absolute;
  top: var(--window-y, 12vh);
  left: var(--window-x, 18vw);
  z-index: 10;
  overflow: hidden;
  color: #161616;
  background: var(--xp-panel);
  border: 3px solid var(--xp-blue);
  border-top-width: 2px;
  border-radius: 8px 8px 2px 2px;
  box-shadow: 4px 5px 16px rgba(0, 35, 82, 0.38);
  user-select: text;
}

.window.is-active {
  box-shadow: 5px 7px 22px rgba(0, 28, 76, 0.5);
}

.window.is-maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100% - var(--taskbar-height)) !important;
  border-radius: 0;
}

.window--focus {
  width: min(780px, calc(100vw - 180px));
  min-width: 620px;
}

.window--notes {
  width: min(640px, calc(100vw - 160px));
  height: min(560px, calc(100vh - 110px));
  min-width: 440px;
}

.window--sounds {
  width: min(570px, calc(100vw - 150px));
  min-width: 460px;
}

.window--upgrade {
  width: min(790px, calc(100vw - 160px));
  min-width: 650px;
}

.window--about {
  width: min(485px, calc(100vw - 150px));
  min-width: 430px;
}

.title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 3px 4px 3px 7px;
  color: #fff;
  background: linear-gradient(to bottom, #3a93ff 0%, #1266df 13%, #0754c9 55%, #0642a7 88%, #2072d8 100%);
  border-top: 1px solid #72b5ff;
  border-bottom: 1px solid #003b93;
  border-radius: 4px 4px 0 0;
  cursor: move;
  touch-action: none;
  user-select: none;
}

.window:not(.is-active) .title-bar {
  background: linear-gradient(to bottom, #8badcf, #718fb2 55%, #6b87a5);
}

.title-bar--gold {
  background: linear-gradient(to bottom, #f6b429, #d47c00 55%, #9f5000);
  border-color: #ffe389 #8a3f00 #8a3f00;
}

.title-bar__title {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 1px 1px 1px #00317e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-app-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  font-size: 10px;
  text-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.mini-app-icon--timer {
  color: #163a78;
  background: #e6f4ff;
  border-radius: 50%;
}

.mini-app-icon--notes {
  background: repeating-linear-gradient(to bottom, #fffac5 0 4px, #8fb6e1 5px 6px);
}

.mini-app-icon--sound {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 16px;
  background: #df7200;
  border-radius: 50%;
}

.mini-app-icon--pro {
  color: #fff8ad;
  font-size: 14px;
  background: #b65b00;
  border-radius: 5px;
}

.mini-app-icon--computer {
  color: #fff;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  background: #2879d2;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}

.window-control {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0 0 4px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(145deg, #72adff, #2269da 58%, #0c3da8);
  border: 1px solid #fff;
  border-radius: 4px;
  box-shadow: inset -1px -1px 1px rgba(0, 26, 97, 0.85);
  cursor: default;
}

.window-control:hover {
  filter: brightness(1.12);
}

.window-control:active {
  transform: translateY(1px);
}

.window-control--close {
  padding-bottom: 2px;
  font-size: 24px;
  background: linear-gradient(145deg, #ff9b7d, #d94f2c 50%, #a6240e);
}

.menu-strip {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 30px;
  padding: 2px 5px;
  background: var(--xp-panel);
  border-bottom: 1px solid #b9b5a6;
  box-shadow: inset 0 1px #fff;
}

.menu-strip button {
  padding: 3px 8px;
  font-size: 14px;
  background: transparent;
  border: 1px solid transparent;
  cursor: default;
}

.menu-strip button:hover {
  background: #d8e8ff;
  border-color: #7ca9dd;
}

.window-body {
  background: #f6f5ef;
}

.focus-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(235px, 0.75fr);
  min-height: 370px;
}

.focus-main {
  padding: 24px 27px 27px;
  background: linear-gradient(145deg, #fff 0 54%, #f0f4f9 100%);
  border-right: 1px solid #b9b5a6;
}

.focus-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: #e7e7df;
  border: 1px solid #c3c0b2;
  border-radius: 4px;
}

.focus-tab {
  padding: 7px 10px;
  font-size: 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
}

.focus-tab.is-selected {
  color: #fff;
  background: linear-gradient(#3983e8, #1454b8);
  border-color: #0c408d;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.45);
}

.timer-panel {
  display: grid;
  justify-items: center;
  padding-top: 29px;
}

.timer-kicker {
  margin: 0 0 4px;
  color: #536477;
  font-size: 14px;
}

.timer-display {
  color: #123d79;
  font-family: "Trebuchet MS", Tahoma, sans-serif;
  font-size: clamp(64px, 8vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -5px;
  text-shadow: 0 2px 0 #fff;
}

.progress-track {
  width: min(310px, 86%);
  height: 15px;
  margin: 24px 0 20px;
  padding: 2px;
  background: #fff;
  border: 1px solid #7d807a;
  box-shadow: inset 1px 1px 2px rgba(38, 45, 46, 0.22);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, #42ad20 0 9px, #2f8a17 10px 11px);
  transition: width 0.3s linear;
}

.timer-actions {
  display: flex;
  gap: 9px;
}

.xp-button {
  min-width: 94px;
  min-height: 34px;
  padding: 6px 15px;
  color: #161616;
  background: linear-gradient(#fff, #f5f2e7 43%, #ddd8c8 100%);
  border: 1px solid #61645e;
  border-radius: 3px;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #c5c0b1;
  cursor: pointer;
}

.xp-button:hover {
  box-shadow: 0 0 0 2px #ffb400, inset 1px 1px #fff, inset -1px -1px #c5c0b1;
}

.xp-button:active {
  background: #dedacc;
  box-shadow: inset 1px 1px 2px #8f8b80;
}

.xp-button--primary {
  min-width: 126px;
  font-weight: 700;
  box-shadow: 0 0 0 1px #1c5bb0, inset 1px 1px #fff, inset -1px -1px #b8b2a1;
}

.xp-button--buy {
  width: 100%;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(#5ebd33, #2f9213 55%, #1e7110);
  border-color: #175d0a;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.62), inset -1px -1px rgba(17, 70, 4, 0.55);
}

.session-panel {
  padding: 21px 19px;
  background: linear-gradient(#f7f4e9, #e9e4d3);
}

.session-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #2f3a44;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-pill {
  padding: 3px 7px;
  color: #276b14;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  background: #d8efca;
  border: 1px solid #92be79;
  border-radius: 10px;
}

.session-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 13px;
}

.session-count strong {
  color: #164d91;
  font-size: 38px;
  line-height: 1;
}

.session-count span {
  color: #58616b;
  font-size: 14px;
}

.session-dots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 13px 0 23px;
}

.session-dots span {
  height: 9px;
  background: #c5c2b5;
  border: 1px solid #9b988c;
  border-radius: 2px;
}

.session-dots span.is-complete {
  background: linear-gradient(#68be43, #33951a);
  border-color: #277710;
}

.current-task {
  padding-top: 17px;
  border-top: 1px solid #c8c3b2;
  box-shadow: inset 0 1px #fff;
}

.current-task label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}

.current-task input {
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  font-size: 15px;
  background: #fff;
  border: 1px solid #7e7b72;
  box-shadow: inset 1px 1px 2px rgba(56, 52, 45, 0.2);
}

.current-task p {
  margin: 5px 0 0;
  color: #6b6b64;
  font-size: 12px;
}

.sound-chip {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 39px;
  margin-top: 19px;
  padding: 7px 9px;
  font-size: 14px;
  text-align: left;
  background: #fff;
  border: 1px solid #a9a595;
  cursor: pointer;
}

.sound-chip > span:first-child {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 7px;
  color: #fff;
  background: #df7600;
  border-radius: 50%;
}

.sound-chip__state {
  margin-left: auto;
  color: #6f6f68;
  font-size: 12px;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 27px;
  padding: 3px 7px;
  color: #4e4d47;
  font-size: 12px;
  background: var(--xp-panel);
  border-top: 1px solid #fff;
  box-shadow: inset 0 1px #b9b5a6;
}

.status-bar span:last-child {
  padding-left: 8px;
  border-left: 1px solid #bbb7a8;
}

.notes-body {
  height: calc(100% - 91px);
  padding: 3px;
  background: var(--xp-panel);
}

.notes-body textarea {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  padding: 15px 16px;
  resize: none;
  color: #202020;
  font-family: "Lucida Console", Consolas, monospace;
  font-size: 16px;
  line-height: 1.55;
  background: #fffef8;
  border: 2px inset #d8d5c8;
  outline-offset: -3px;
}

.sounds-body {
  padding: 22px;
}

.sound-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #1855a4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sound-heading h2,
.upgrade-intro h2,
.about-body h2,
.checkout-dialog h2 {
  margin: 0;
  color: #173f74;
  font-size: 21px;
  line-height: 1.25;
}

.sound-master {
  padding: 6px 10px;
  color: #275387;
  font-size: 13px;
  background: #f1f6fc;
  border: 1px solid #91a9c4;
  border-radius: 3px;
  cursor: pointer;
}

.sound-list {
  display: grid;
  gap: 7px;
}

.sound-row {
  display: grid;
  grid-template-columns: 43px 1fr auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 58px;
  padding: 7px 10px;
  text-align: left;
  background: #fff;
  border: 1px solid #bdb8a8;
  box-shadow: inset 1px 1px #fff;
  cursor: pointer;
}

.sound-row:hover {
  background: #edf5ff;
  border-color: #7da7d7;
}

.sound-row.is-playing {
  background: #e9f5df;
  border-color: #67a34a;
}

.sound-row.is-locked {
  background: #f4f2e9;
}

.sound-row__icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: #fff;
  font-size: 20px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 7px;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.55);
}

.sound-row__icon--rain { background: linear-gradient(#6fbaf1, #2265b5); }
.sound-row__icon--cafe { background: linear-gradient(#d8994d, #8a4b13); }
.sound-row__icon--train { background: linear-gradient(#76808b, #2d3641); }
.sound-row__icon--dial { background: linear-gradient(#c68fe1, #704393); }

.sound-row strong,
.sound-row small {
  display: block;
}

.sound-row strong {
  font-size: 14px;
}

.sound-row small {
  margin-top: 3px;
  color: #696b6e;
  font-size: 12px;
}

.sound-row__action {
  min-width: 42px;
  color: #286098;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.volume-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #c7c3b4;
}

.volume-row label {
  font-size: 13px;
}

.volume-row input {
  min-width: 0;
}

.upgrade-body {
  padding: 25px 27px 20px;
  background:
    linear-gradient(145deg, rgba(255, 252, 229, 0.94), rgba(247, 243, 227, 0.98)),
    #f7f2e4;
}

.upgrade-intro {
  max-width: 640px;
  margin-bottom: 19px;
}

.eyebrow--gold {
  color: #9b5500;
}

.upgrade-intro h2 {
  color: #73420d;
  font-size: 27px;
}

.upgrade-intro p {
  margin: 8px 0 0;
  color: #5a554a;
  font-size: 15px;
  line-height: 1.48;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.price-card {
  position: relative;
  padding: 19px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #bdb5a0;
  box-shadow: inset 1px 1px #fff, 2px 2px 4px rgba(91, 70, 30, 0.1);
}

.price-card--featured {
  border: 2px solid #d78b13;
}

.price-card__badge {
  position: absolute;
  top: -12px;
  right: 13px;
  padding: 4px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: #b75f00;
  border: 1px solid #7f3b00;
  border-radius: 10px;
}

.price-card__name {
  margin: 0;
  color: #4d3d26;
  font-size: 14px;
  font-weight: 700;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 5px 0 12px;
}

.price strong {
  color: #6f3d07;
  font-size: 34px;
  line-height: 1;
}

.price span {
  color: #716b5f;
  font-size: 13px;
}

.price-card ul {
  min-height: 110px;
  margin: 0 0 15px;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  margin: 7px 0;
  padding-left: 20px;
  color: #4f4d46;
  font-size: 13px;
  line-height: 1.28;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #368016;
  font-weight: 700;
}

.price-card .xp-button {
  width: 100%;
}

.upgrade-note {
  margin: 13px 0 0;
  color: #726a5d;
  font-size: 12px;
  text-align: center;
}

.about-body {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 22px;
  padding: 26px;
  background: linear-gradient(135deg, #fff 0 62%, #e6eef7 100%);
}

.about-logo {
  width: 88px;
  height: 88px;
  color: #fff;
  font-size: 50px;
  border-radius: 18px;
}

.about-body h2 {
  font-size: 27px;
}

.about-version {
  margin: 1px 0 14px;
  color: #6c7480;
  font-size: 13px;
}

.about-body p {
  font-size: 14px;
  line-height: 1.45;
}

.about-body dl {
  margin: 17px 0 0;
  border-top: 1px solid #c6ccd3;
}

.about-body dl div {
  display: grid;
  grid-template-columns: 95px 1fr;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid #d8dde2;
}

.about-body dt {
  color: #5d6570;
}

.about-body dd {
  margin: 0;
  font-weight: 700;
}

.about-body .legal-note {
  margin: 15px 0 0;
  color: #717983;
  font-size: 11px;
}

.taskbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  height: var(--taskbar-height);
  color: #fff;
  background: linear-gradient(to bottom, #2f80ef 0%, #1764d4 14%, #1b58c7 49%, #164ab5 85%, #1d61cc 100%);
  border-top: 2px solid #63a7ff;
  box-shadow: 0 -2px 7px rgba(0, 47, 116, 0.28);
  user-select: none;
}

.start-button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 126px;
  padding: 0 17px 1px 10px;
  color: #fff;
  font-family: Tahoma, sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
  text-shadow: 1px 1px 2px #174f0e;
  background: linear-gradient(to bottom, #58b843, #369c25 45%, #2b851b 81%, #3d9a2d);
  border: 0;
  border-right: 2px solid #1c6413;
  border-radius: 0 18px 18px 0;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.5), inset -2px -2px 3px rgba(18, 83, 10, 0.6);
  cursor: pointer;
}

.start-button:hover,
.start-button[aria-expanded="true"] {
  filter: brightness(1.08);
}

.start-orb {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 18px;
}

.taskbar-divider {
  width: 7px;
  border-right: 1px solid rgba(0, 44, 139, 0.45);
}

.taskbar-apps {
  display: flex;
  flex: 1;
  gap: 3px;
  min-width: 0;
  padding: 4px 5px;
  overflow: hidden;
}

.task-button {
  display: flex;
  align-items: center;
  min-width: 70px;
  max-width: 190px;
  flex: 0 1 190px;
  gap: 6px;
  padding: 2px 10px;
  color: #fff;
  font-size: 13px;
  text-align: left;
  background: linear-gradient(#3d86e8, #2868c4);
  border: 1px solid #154a9a;
  border-radius: 3px;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.22);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-button.is-active {
  background: linear-gradient(#1d4f9e, #164187);
  box-shadow: inset 1px 1px 3px rgba(0, 27, 82, 0.75);
}

.task-button__icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #123b75;
  font-size: 9px;
  text-align: center;
  line-height: 16px;
  background: #e5f4ff;
  border: 1px solid #fff;
  border-radius: 3px;
}

.system-tray {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 125px;
  padding: 0 13px 0 10px;
  font-size: 13px;
  background: linear-gradient(#22a5ec, #1293da 55%, #0d7fc8);
  border-left: 1px solid #0c69a6;
  box-shadow: inset 1px 0 rgba(255, 255, 255, 0.32);
}

.system-tray button {
  width: 27px;
  height: 27px;
  padding: 0;
  color: #fff;
  font-size: 18px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.system-tray time {
  white-space: nowrap;
}

.start-menu {
  position: absolute;
  bottom: calc(var(--taskbar-height) - 1px);
  left: 0;
  z-index: 990;
  width: min(480px, calc(100vw - 10px));
  color: #1b1b1b;
  background: #fff;
  border: 3px solid #1856bd;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 5px -4px 16px rgba(0, 31, 83, 0.42);
  user-select: none;
}

.start-menu__profile {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 8px 11px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 1px 1px 1px #073581;
  background: linear-gradient(#3385ee, #155bc5);
  border-bottom: 2px solid #e5932d;
}

.profile-avatar {
  width: 53px;
  height: 53px;
  font-size: 30px;
  border: 2px solid #fff;
  border-radius: 7px;
}

.start-menu__content {
  display: grid;
  grid-template-columns: 58% 42%;
  min-height: 340px;
}

.start-menu__primary,
.start-menu__secondary {
  padding: 11px 7px;
}

.start-menu__secondary {
  background: #dbe8f8;
  border-left: 1px solid #b3c9e3;
}

.start-menu button {
  cursor: pointer;
}

.start-menu__primary button {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 55px;
  padding: 5px 7px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
}

.start-menu__primary button:hover,
.start-menu__secondary button:hover {
  color: #fff;
  background: #2e72d2;
  border-color: #174e9e;
}

.start-menu__primary strong,
.start-menu__primary small {
  display: block;
}

.start-menu__primary strong {
  font-size: 14px;
}

.start-menu__primary small {
  margin-top: 2px;
  color: #60666d;
  font-size: 11px;
}

.start-menu__primary button:hover small {
  color: #eaf2ff;
}

.start-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  font-weight: 700;
  border: 1px solid #8797a9;
  border-radius: 6px;
}

.start-icon--timer { color: #18437f; background: #e8f5ff; border-radius: 50%; }
.start-icon--notes { background: repeating-linear-gradient(to bottom, #fffbc4 0 6px, #a6c4e2 7px 8px); }
.start-icon--sound { font-family: Georgia, serif; font-size: 24px; background: #dc7100; border-radius: 50%; }
.start-icon--pro { color: #fff3a3; font-size: 21px; background: #ad5500; }

.start-menu hr {
  height: 1px;
  margin: 7px 8px;
  background: #c4c0b2;
  border: 0;
}

.start-menu__secondary button {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  font-size: 13px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
}

.start-menu__footer {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  min-height: 52px;
  padding: 8px 11px;
  background: linear-gradient(#1b66cf, #1656b8);
}

.start-menu__footer button {
  padding: 4px 8px;
  color: #fff;
  font-size: 12px;
  background: transparent;
  border: 1px solid transparent;
}

.start-menu__footer button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.48);
}

.start-menu__footer span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 3px;
  color: #fff;
  background: #db6b21;
  border: 1px solid #fff;
  border-radius: 3px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: calc(var(--taskbar-height) + 15px);
  z-index: 3000;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px 12px 39px;
  color: #27251e;
  font-size: 13px;
  line-height: 1.35;
  background: #fff9c8;
  border: 1px solid #755f18;
  border-radius: 4px;
  box-shadow: 3px 4px 12px rgba(0, 26, 68, 0.35);
}

.toast::before {
  content: "i";
  position: absolute;
  top: 11px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 700;
  background: #1c69cc;
  border-radius: 50%;
}

.checkout-dialog {
  width: min(490px, calc(100vw - 24px));
  padding: 0;
  color: #1c1c1c;
  background: var(--xp-panel);
  border: 3px solid var(--xp-blue);
  border-radius: 8px 8px 2px 2px;
  box-shadow: 7px 10px 28px rgba(0, 20, 60, 0.58);
}

.checkout-dialog::backdrop {
  background: rgba(0, 27, 67, 0.38);
  backdrop-filter: blur(1.5px);
}

.checkout-dialog form {
  margin: 0;
}

.checkout-dialog .title-bar {
  cursor: default;
}

.checkout-dialog__body {
  padding: 25px;
  background: #fff;
}

.checkout-badge {
  display: grid;
  place-items: center;
  float: left;
  width: 48px;
  height: 48px;
  margin: 0 14px 6px 0;
  color: #fff3ad;
  font-size: 27px;
  background: linear-gradient(#ed9d25, #9c4b00);
  border: 2px solid #ffcf62;
  border-radius: 11px;
}

.checkout-dialog p {
  color: #5a5d61;
  font-size: 14px;
  line-height: 1.42;
}

.selection-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  clear: both;
  margin: 21px 0 10px;
  padding: 12px;
  background: #edf4fd;
  border: 1px solid #9ab6d7;
}

.selection-box span {
  color: #5f6c7b;
  font-size: 12px;
}

.selection-box strong {
  color: #204f84;
  font-size: 13px;
  text-align: right;
}

.checkout-dialog .checkout-small {
  color: #7a7b77;
  font-size: 11px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding-top: 13px;
  border-top: 1px solid #ddd9cc;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #fff;
  background: #050505;
}

.boot-logo {
  width: 82px;
  height: 82px;
  margin-bottom: 15px;
  font-size: 48px;
  border-radius: 17px;
}

.boot-screen p {
  margin: 0;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 32px;
  font-weight: 700;
}

.boot-loader {
  width: 184px;
  height: 19px;
  margin: 25px 0 17px;
  padding: 3px;
  border: 2px solid #d8d8d8;
  border-radius: 3px;
}

.boot-loader span {
  display: block;
  width: 34px;
  height: 100%;
  background: linear-gradient(90deg, #164592, #4c91ef, #164592);
  animation: loading 1.05s linear infinite;
}

.boot-screen small {
  color: #b6b6b6;
  font-size: 12px;
}

@keyframes loading {
  from { transform: translateX(0); }
  to { transform: translateX(140px); }
}

@media (max-width: 900px) {
  .desktop-icons {
    grid-template-columns: repeat(4, 86px);
    grid-auto-flow: column;
    width: auto;
    gap: 4px;
  }

  .desktop-icon {
    width: 84px;
  }

  .desktop-icon:nth-child(n + 5) {
    display: none;
  }

  .window--focus {
    left: 12vw;
    width: calc(100vw - 15vw);
    min-width: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --taskbar-height: 50px;
  }

  .desktop {
    min-height: 480px;
    background-position: 46% center;
  }

  .desktop-brand {
    display: none;
  }

  .desktop-icons {
    top: 9px;
    left: 3px;
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    grid-auto-flow: row;
    gap: 0;
    width: calc(100% - 6px);
  }

  .desktop-icon {
    width: 100%;
    min-height: 75px;
  }

  .icon-art {
    transform: scale(0.84);
  }

  .desktop-icon__label {
    font-size: 12px;
  }

  .window,
  .window--focus,
  .window--notes,
  .window--sounds,
  .window--upgrade,
  .window--about {
    top: 89px !important;
    right: 5px;
    bottom: calc(var(--taskbar-height) + 5px);
    left: 5px !important;
    width: auto;
    min-width: 0;
    height: auto;
    max-height: none;
  }

  .title-bar {
    height: 35px;
  }

  .title-bar__title {
    font-size: 14px;
  }

  .focus-workspace {
    display: block;
    min-height: 0;
    height: calc(100% - 92px);
    overflow-y: auto;
  }

  .focus-main {
    min-height: 305px;
    padding: 15px 13px 20px;
    border-right: 0;
    border-bottom: 1px solid #b9b5a6;
  }

  .timer-panel {
    padding-top: 16px;
  }

  .timer-display {
    font-size: clamp(60px, 20vw, 82px);
  }

  .progress-track {
    margin: 18px 0;
  }

  .session-panel {
    padding: 15px;
  }

  .session-count,
  .session-dots {
    display: none;
  }

  .current-task {
    padding-top: 13px;
    border-top: 0;
  }

  .sound-chip {
    margin-top: 10px;
  }

  .status-bar span:first-child {
    max-width: 66%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .window--notes .notes-body {
    height: calc(100% - 91px);
  }

  .notes-body textarea {
    min-height: 0;
  }

  .sounds-body,
  .upgrade-body,
  .about-body {
    height: calc(100% - 35px);
    overflow-y: auto;
  }

  .sounds-body {
    padding: 14px;
  }

  .sound-heading h2 {
    font-size: 18px;
  }

  .sound-row {
    min-height: 54px;
  }

  .upgrade-body {
    padding: 18px 15px;
  }

  .upgrade-intro h2 {
    font-size: 22px;
  }

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

  .price-card ul {
    min-height: 0;
  }

  .about-body {
    grid-template-columns: 70px 1fr;
    gap: 14px;
    padding: 18px 15px;
  }

  .about-logo {
    width: 64px;
    height: 64px;
    font-size: 37px;
  }

  .start-menu {
    width: calc(100vw - 4px);
  }

  .start-menu__content {
    min-height: 300px;
  }

  .taskbar-apps {
    padding-right: 1px;
  }

  .task-button {
    min-width: 45px;
    padding: 2px 6px;
  }

  .task-button span:last-child {
    display: none;
  }

  .system-tray {
    min-width: 92px;
    gap: 5px;
    padding: 0 7px;
  }

  .system-tray button {
    display: none;
  }
}

/* FreeCell */
.icon-art--freecell, .start-icon--freecell, .mini-app-icon--freecell { color: #111; background: linear-gradient(145deg, #fff, #d7d7d7); border: 2px solid #eee; font-family: Georgia, serif; text-shadow: none; }
.icon-art--freecell { color: #111; font-size: 32px; transform: rotate(-4deg); }
.window--freecell { width: min(900px, calc(100vw - 24px)); height: min(720px, calc(100svh - 70px)); }
.freecell-app { position: relative; box-sizing: border-box; width: 100%; height: calc(100% - 91px); padding: 13px 14px; color: #fff; background: radial-gradient(circle at 50% 15%, #15924a, #087333 55%, #075527); overflow: auto; }
.freecell-top { display: grid; grid-template-columns: minmax(255px, 1fr) 140px minmax(255px, 1fr); gap: 14px; align-items: start; }
.freecell-slots { display: grid; grid-template-columns: repeat(4, minmax(48px, 76px)); gap: 7px; }
#freecell-foundations { justify-content: end; }
.freecell-logo { align-self: center; color: #d9f7df; font: italic bold 18px Georgia, serif; text-align: center; text-shadow: 1px 2px #064d25; }
.freecell-logo small { display: block; margin-top: 3px; font: 8px Tahoma, sans-serif; letter-spacing: .18em; }
.freecell-slot, .freecell-column-empty { position: relative; aspect-ratio: 0.72; min-height: 70px; border: 2px solid rgba(215,255,224,.55); border-radius: 5px; background: rgba(0,60,27,.24); }
.foundation-slot { color: rgba(225,255,231,.55); }
.freecell-suit-watermark { position: absolute; inset: 0; display: grid; place-items: center; font: 38px Georgia, serif; pointer-events: none; }
.freecell-empty, .freecell-column-empty { width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.freecell-cascades { display: grid; grid-template-columns: repeat(8, minmax(48px, 1fr)); gap: 8px; margin-top: 18px; min-height: 410px; }
.freecell-cascade { position: relative; min-height: 395px; }
.freecell-column-empty { position: absolute; inset: 0 auto auto 0; height: auto; width: 100%; border: 2px solid rgba(215,255,224,.25); }
.freecell-card { position: absolute; top: calc(var(--card-index, 0) * 38px); left: 0; z-index: calc(var(--card-index, 0) + 1); width: 100%; aspect-ratio: .72; padding: 5px 5px 3px; color: #111; text-align: left; background: linear-gradient(145deg, #fff, #f3f1e8); border: 1px solid #555; border-radius: 5px; box-shadow: 1px 2px 3px rgba(0,0,0,.38); cursor: pointer; user-select: none; touch-action: manipulation; }
.freecell-slot .freecell-card { inset: -2px; width: calc(100% + 4px); }
.freecell-card.is-red { color: #c20e19; }
.freecell-card.is-selected { outline: 4px solid #ffd94a; outline-offset: -3px; filter: brightness(1.05); }
.freecell-card > span { display: grid; justify-items: center; font: bold 18px/1 Georgia, serif; }
.freecell-card > span small { margin-top: 2px; font-size: 17px; }
.freecell-card > strong { position: absolute; right: 8px; bottom: 7px; font: 30px/1 Georgia, serif; }
.freecell-message { position: sticky; bottom: 0; z-index: 50; min-height: 24px; margin: 8px -4px -7px; padding: 6px 8px; color: #143f22; font-size: 13px; background: rgba(239,250,232,.94); border: 1px solid #8aba8f; }

@media (max-width: 720px) {
  .window--freecell { width: auto; height: auto; }
  .freecell-app { height: calc(100% - 91px); padding: 8px 5px; overflow-x: hidden; }
  .freecell-top { grid-template-columns: 1fr 1fr; gap: 6px; }
  .freecell-logo { display: none; }
  .freecell-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .freecell-cascades { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; margin-top: 10px; min-height: 350px; }
  .freecell-card { top: calc(var(--card-index, 0) * 31px); padding: 4px 2px; }
  .freecell-card > span { font-size: 13px; }
  .freecell-card > span small { font-size: 13px; }
  .freecell-card > strong { right: 4px; bottom: 4px; font-size: 19px; }
  .freecell-cascade { min-height: 330px; }
}

@media (max-width: 480px) {
  .desktop-icon:nth-child(4) {
    display: grid;
  }

  .start-button {
    min-width: 86px;
    padding-right: 10px;
    font-size: 17px;
  }

  .start-orb {
    width: 25px;
    height: 25px;
  }

  .system-tray {
    min-width: 76px;
    font-size: 12px;
  }

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

  .focus-tab {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 13px;
  }

  .sound-heading {
    display: block;
  }

  .sound-master {
    margin-top: 8px;
  }

  .selection-box {
    display: block;
  }

  .selection-box strong {
    display: block;
    margin-top: 4px;
    text-align: left;
  }
}

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

/* Retro playground applications */
.desktop-icons {
  grid-template-rows: repeat(4, min-content);
  grid-auto-flow: column;
  grid-auto-columns: 106px;
  width: 220px;
}

.icon-art--mine {
  width: 45px;
  height: 45px;
  color: #ff4f35;
  font-size: 34px;
  line-height: 1;
  background: radial-gradient(circle at 38% 30%, #929292 0 8%, #4f4f4f 25%, #171717 67%, #000 100%);
  border: 2px solid #cfcfcf;
  border-radius: 50%;
}

.icon-art--mine::before,
.icon-art--mine::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 6px;
  background: #202020;
  border-radius: 3px;
}

.icon-art--mine::after { transform: rotate(90deg); }
.icon-art--mine span { position: relative; z-index: 1; }

.icon-art--cards {
  width: 39px;
  height: 49px;
  color: #c20000;
  font-family: Georgia, serif;
  font-size: 25px;
  background: #fff;
  border: 2px solid #efefef;
  border-radius: 4px;
  box-shadow: 5px -4px 0 -1px #f6f6f6, 7px -5px 0 #3158a3;
  transform: rotate(-4deg);
}

.icon-art--paint {
  width: 47px;
  height: 40px;
  color: #e82121;
  font-size: 22px;
  background: radial-gradient(circle at 25% 26%, #ef3737 0 7%, transparent 8%), radial-gradient(circle at 62% 22%, #f2d43f 0 7%, transparent 8%), radial-gradient(circle at 76% 58%, #2d86ea 0 7%, transparent 8%), radial-gradient(circle at 35% 72%, #3ebf43 0 7%, transparent 8%), #d7ad72;
  border: 2px solid #6d4823;
  border-radius: 50% 50% 43% 50%;
}

.icon-art--paint::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -7px;
  width: 7px;
  height: 39px;
  background: linear-gradient(to bottom, #eee 0 30%, #804518 31%);
  border: 1px solid #4e321d;
  transform: rotate(38deg);
}

.icon-art--calculator {
  width: 39px;
  height: 47px;
  color: #182b46;
  font-size: 10px;
  font-weight: 700;
  background: repeating-linear-gradient(90deg, #d7e1ec 0 8px, #778da6 9px 10px), repeating-linear-gradient(#d7e1ec 0 8px, #778da6 9px 10px);
  border: 3px solid #c4cbd2;
  border-radius: 4px;
  box-shadow: inset 0 11px #a8d0e9, inset 0 14px #526d80;
}

.mini-app-icon--mine { color: #ff5738; font-size: 17px; background: #252525; border-radius: 50%; }
.mini-app-icon--cards { color: #c90000; font-family: Georgia, serif; font-size: 15px; background: #fff; }
.mini-app-icon--paint { color: #d52222; background: #d8af74; border-radius: 50%; }
.mini-app-icon--calculator { color: #183764; background: #dbe9f4; }

.window--mine {
  width: 365px;
}

.mine-app {
  padding: 12px 13px 10px;
  background: var(--xp-panel);
}

.mine-shell {
  padding: 10px;
  background: #c0c0c0;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  border-right: 3px solid #737373;
  border-bottom: 3px solid #737373;
}

.mine-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 59px;
  margin-bottom: 10px;
  padding: 6px 8px;
  background: #bdbdbd;
  border-top: 3px solid #737373;
  border-left: 3px solid #737373;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
}

.led-display {
  min-width: 73px;
  padding: 3px 5px 1px;
  color: #ff1f16;
  font-family: "Lucida Console", Consolas, monospace;
  font-size: 29px;
  line-height: 1;
  letter-spacing: 2px;
  text-align: center;
  background: #130000;
  border: 2px inset #868686;
  text-shadow: 0 0 4px #ff1600;
}

.mine-face {
  width: 39px;
  height: 39px;
  padding: 0 0 2px;
  font-size: 26px;
  line-height: 1;
  background: #c0c0c0;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  border-right: 3px solid #737373;
  border-bottom: 3px solid #737373;
  cursor: pointer;
}

.mine-face:active {
  border-color: #737373 #fff #fff #737373;
}

.mine-board {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  width: 297px;
  height: 297px;
  background: #bdbdbd;
  border-top: 3px solid #737373;
  border-left: 3px solid #737373;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
}

.mine-cell {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  background: #c0c0c0;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  border-right: 3px solid #777;
  border-bottom: 3px solid #777;
  cursor: default;
}

.mine-cell.is-open {
  border: 1px solid #828282;
}

.mine-cell.is-mine { background: #ff2f27; }
.mine-cell.is-flagged::before { content: "⚑"; color: #e21818; font-size: 21px; text-shadow: 1px 1px #111; }
.mine-cell[data-near="1"] { color: #0000d0; }
.mine-cell[data-near="2"] { color: #087c08; }
.mine-cell[data-near="3"] { color: #d00000; }
.mine-cell[data-near="4"] { color: #000078; }
.mine-cell[data-near="5"], .mine-cell[data-near="6"], .mine-cell[data-near="7"], .mine-cell[data-near="8"] { color: #6f0000; }

.mine-help {
  margin: 8px 3px 0;
  color: #61615a;
  font-size: 12px;
  line-height: 1.35;
}

.status-link {
  padding: 0;
  color: #174c9b;
  font-size: 12px;
  text-decoration: underline;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.window--solitaire {
  width: min(920px, calc(100vw - 180px));
  min-width: 720px;
}

.menu-strip--green { background: #e9eadb; }

.solitaire-app {
  position: relative;
  min-height: 555px;
  padding: 20px 20px 35px;
  color: #fff;
  background: radial-gradient(circle at 50% 18%, #188743, #087038 58%, #075a30 100%);
  border-top: 1px solid #164e2c;
  overflow: auto;
}

.solitaire-toprow,
.tableau {
  display: grid;
  grid-template-columns: repeat(7, 74px);
  gap: clamp(18px, 3vw, 44px);
  min-width: 708px;
}

.solitaire-toprow { min-height: 105px; }
.solitaire-spacer { grid-column: span 1; }
.tableau { margin-top: 22px; }

.tableau-column {
  position: relative;
  min-height: 320px;
}

.card-slot,
.playing-card {
  width: 74px;
  height: 101px;
  border-radius: 7px;
}

.card-slot {
  position: relative;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.26);
  font-family: Georgia, serif;
  font-size: 45px;
  border: 2px solid rgba(212, 255, 226, 0.36);
}

.card-slot--stock.has-cards,
.playing-card.is-down {
  background: repeating-linear-gradient(45deg, #1b4fa4 0 5px, #fff 6px 7px, #bf2733 8px 13px, #fff 14px 15px);
  border: 3px solid #f4f4f4;
  box-shadow: 1px 2px 2px rgba(0, 41, 16, 0.5);
}

.card-slot--stock { cursor: pointer; }

.playing-card {
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 6px;
  color: #111;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1;
  text-align: left;
  background: #fff;
  border: 1px solid #6a6a6a;
  box-shadow: 1px 2px 3px rgba(0, 39, 15, 0.44);
  cursor: pointer;
}

.playing-card.is-red { color: #c51320; }
.playing-card.is-selected { outline: 4px solid #ffd524; outline-offset: 1px; }
.playing-card__corner { display: block; font-weight: 700; }
.playing-card__suit { display: block; margin-top: 3px; font-size: 21px; }
.playing-card__center { position: absolute; inset: 30px 0 auto; font-size: 33px; text-align: center; }

.solitaire-message {
  position: absolute;
  right: 17px;
  bottom: 9px;
  left: 17px;
  font-size: 12px;
  text-align: right;
  text-shadow: 1px 1px rgba(0, 43, 19, 0.7);
}

.window--paint {
  width: min(880px, calc(100vw - 170px));
  min-width: 690px;
}

.paint-app {
  display: grid;
  grid-template-columns: 68px 1fr;
  grid-template-rows: minmax(390px, 58vh) 57px;
  background: #c0c0c0;
}

.paint-tools {
  display: grid;
  grid-template-columns: repeat(2, 29px);
  align-content: start;
  gap: 3px;
  padding: 7px 4px;
  border-right: 1px solid #7f7f7f;
}

.paint-tool {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  font-size: 18px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  cursor: pointer;
}

.paint-tool.is-selected {
  background: #fff;
  border-color: #666 #fff #fff #666;
}

.brush-size {
  grid-column: 1 / -1;
  margin-top: 10px;
  font-size: 11px;
  text-align: center;
}

.brush-size input {
  width: 57px;
  margin-top: 6px;
}

.paint-canvas-wrap {
  padding: 9px;
  overflow: auto;
  background: #8b8b8b;
  border: 2px inset #ddd;
}

#paint-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 900px;
  background: #fff;
  box-shadow: 1px 1px 0 #323232;
  cursor: crosshair;
  touch-action: none;
}

.paint-palette {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-top: 2px solid #fff;
}

.paint-current {
  width: 47px;
  height: 39px;
  background: #000;
  border: 3px inset #ddd;
}

.paint-colors {
  display: grid;
  grid-template-columns: repeat(14, 20px);
  gap: 2px;
}

.paint-color {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 2px outset #eee;
  cursor: pointer;
}

.window--computer {
  width: min(760px, calc(100vw - 170px));
  min-width: 620px;
}

.explorer-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  background: var(--xp-panel);
  border-bottom: 1px solid #aaa696;
}

.explorer-toolbar > button {
  width: 34px;
  height: 30px;
  color: #287314;
  font-size: 25px;
  background: transparent;
  border: 1px solid transparent;
}

.explorer-address {
  display: grid;
  grid-template-columns: auto 1fr;
  flex: 1;
  gap: 7px;
  align-items: center;
  font-size: 12px;
}

.explorer-address > span {
  padding: 5px 8px;
  background: #fff;
  border: 1px inset #ddd;
}

.explorer-body {
  display: grid;
  grid-template-columns: 205px 1fr;
  min-height: 430px;
  background: #fff;
}

.explorer-sidebar {
  padding: 13px;
  background: linear-gradient(135deg, #7ba2e7, #667fca);
}

.task-pane {
  margin-bottom: 13px;
  padding: 0 10px 10px;
  background: #f6f8ff;
  border-radius: 5px;
  overflow: hidden;
}

.task-pane h2 {
  margin: 0 -10px 8px;
  padding: 7px 10px;
  color: #2157a5;
  font-size: 13px;
  background: linear-gradient(90deg, #fff, #cad9f5);
}

.task-pane button {
  display: block;
  width: 100%;
  padding: 3px 0;
  color: #124b9b;
  font-size: 12px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.task-pane p {
  margin: 6px 0;
  color: #4f5d72;
  font-size: 12px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
  gap: 20px 11px;
  padding: 28px 22px;
}

.program-grid button {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 96px;
  padding: 6px;
  font-size: 13px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.program-grid button:hover {
  background: #e7f0ff;
  border-color: #8db5e8;
}

.program-grid .icon-art { transform: scale(0.9); }

.window--calculator {
  width: 345px;
}

.calculator-app {
  padding: 13px;
  background: var(--xp-panel);
}

.calculator-display {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 47px;
  margin-bottom: 10px;
  padding: 6px 9px;
  font-family: "Lucida Console", Consolas, monospace;
  font-size: 22px;
  background: #fff;
  border: 2px inset #ddd;
  overflow: hidden;
}

.calculator-memory {
  display: grid;
  grid-template-columns: 44px repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 7px;
}

.calculator-memory > span {
  display: grid;
  place-items: center;
  color: #747474;
  border: 2px inset #ddd;
}

.calculator-memory button,
.calculator-grid button {
  min-height: 35px;
  color: #174784;
  background: linear-gradient(#fff, #ece8dc);
  border: 1px solid #6e6e6e;
  border-radius: 3px;
  cursor: pointer;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.calculator-grid button[data-kind="operator"] { color: #bf1c1c; }
.calculator-grid button:active { background: #d8d5ca; box-shadow: inset 1px 1px 2px #777; }

.media-visualizer {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 116px;
  margin: -6px -6px 19px;
  padding: 15px 18px 26px;
  background: radial-gradient(circle at 50% 20%, #083777, #001126 72%);
  border: 2px inset #7193b5;
  overflow: hidden;
}

.media-visualizer i {
  width: 17px;
  height: 18%;
  background: linear-gradient(#8dff5b, #26c7e9 55%, #1461e0);
  box-shadow: 0 0 7px #3bdaff;
}

.media-visualizer.is-playing i { animation: bars 0.75s ease-in-out infinite alternate; }
.media-visualizer.is-playing i:nth-child(2n) { animation-delay: -0.4s; }
.media-visualizer.is-playing i:nth-child(3n) { animation-delay: -0.2s; }

.media-visualizer span {
  position: absolute;
  right: 8px;
  bottom: 5px;
  color: #5fc9ff;
  font-family: "Lucida Console", monospace;
  font-size: 10px;
}

@keyframes bars { to { height: 82%; } }

.upgrade-body--single {
  text-align: center;
}

.upgrade-body--single h2 {
  margin: 3px 0 8px;
  color: #693d09;
  font-size: 31px;
}

.upgrade-hero-icon {
  display: grid;
  place-items: center;
  float: left;
  width: 76px;
  height: 76px;
  margin: 1px 18px 8px 0;
  color: #fff4ac;
  font-size: 42px;
  background: radial-gradient(circle at 35% 28%, #ffed8b, #e99000 45%, #9a3b00 100%);
  border: 2px solid #fff0a1;
  border-radius: 18px;
}

.upgrade-lead {
  margin: 0 auto 20px;
  color: #5d564a;
  font-size: 15px;
}

.single-offer {
  display: grid;
  grid-template-columns: 150px 1fr 190px;
  align-items: center;
  gap: 17px;
  clear: both;
  padding: 17px;
  text-align: left;
  background: #fff;
  border: 2px solid #cf8514;
  box-shadow: 2px 3px 7px rgba(103, 66, 13, 0.16);
}

.single-offer > div span,
.single-offer > div strong,
.single-offer > div small { display: block; }
.single-offer > div span { color: #51442e; font-size: 12px; font-weight: 700; }
.single-offer > div strong { color: #743f04; font-size: 42px; line-height: 1; }
.single-offer > div small { color: #777064; font-size: 11px; }
.single-offer ul { margin: 0; padding-left: 20px; color: #53514c; font-size: 13px; line-height: 1.55; }

.lifetime-terms {
  margin-top: 15px;
  padding: 11px 13px;
  color: #5f5a50;
  text-align: left;
  background: #ece7d8;
  border: 1px solid #bcb5a3;
}

.lifetime-terms strong { display: block; margin-bottom: 3px; color: #49443b; font-size: 12px; }
.lifetime-terms p { margin: 0; font-size: 11px; line-height: 1.4; }

.trial-meter {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 93px;
  padding: 0 8px;
  color: #fff;
  font-size: 11px;
  background: rgba(0, 43, 135, 0.28);
  border: 0;
  border-left: 1px solid rgba(0, 38, 118, 0.45);
  cursor: pointer;
}

.trial-meter strong {
  font-family: "Lucida Console", Consolas, monospace;
  font-size: 12px;
}

.trial-meter.is-low { color: #fff4a1; background: rgba(156, 61, 0, 0.45); }

.terms-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  clear: both;
  margin: 15px 0;
  padding: 10px;
  color: #4e5155;
  font-size: 12px;
  line-height: 1.42;
  background: #f2f0e7;
  border: 1px solid #c8c3b3;
}

.terms-check input { width: 16px; height: 16px; margin: 1px 0 0; }
.dialog-actions button:disabled { opacity: 0.55; cursor: not-allowed; }

.trial-dialog {
  width: min(520px, calc(100vw - 24px));
  padding: 0;
  background: #fff;
  border: 3px solid #0b58cc;
  border-radius: 9px 9px 3px 3px;
  box-shadow: 7px 10px 28px rgba(0, 20, 60, 0.58);
}

.trial-dialog::backdrop { background: rgba(0, 26, 68, 0.52); backdrop-filter: blur(2px); }

.trial-dialog__banner {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 22px;
  background: linear-gradient(135deg, #f7fbff, #dbeaff);
  border-bottom: 1px solid #acc4e1;
}

.trial-dialog__banner .about-logo { width: 65px; height: 65px; flex: 0 0 auto; font-size: 38px; border-radius: 13px; }
.trial-dialog__banner h2 { margin: 3px 0 0; color: #194e95; font-size: 25px; }
.trial-dialog__body { padding: 21px 24px 24px; text-align: center; }
.trial-dialog__body p { margin: 0 0 16px; color: #50565e; font-size: 14px; line-height: 1.48; }
.trial-dialog__body .xp-button { width: 100%; }
.trial-dialog__link { margin-top: 12px; color: #174e9d; font-size: 12px; text-decoration: underline; background: transparent; border: 0; cursor: pointer; }

.start-icon--mine { color: #ff5a3d; background: #222; border-radius: 50%; }
.start-icon--cards { color: #bd0d1b; font-family: Georgia, serif; font-size: 23px; background: #fff; }
.start-icon--paint { color: #e02323; background: #d6ad72; border-radius: 50%; }
.start-icon--computer { font-family: Georgia, serif; font-style: italic; background: #2879d2; }

@media (max-width: 900px) {
  .desktop-icons {
    grid-template-rows: none;
    grid-template-columns: repeat(4, 86px);
    grid-auto-flow: row;
    grid-auto-columns: auto;
    width: auto;
  }

  .desktop-icon:nth-child(n + 5) { display: none; }
  .window--mine { min-width: 365px; }
  .window--solitaire, .window--paint, .window--computer { min-width: 0; }
}

@media (max-width: 720px) {
  .window--mine { min-width: 0; }
  .mine-app { height: calc(100% - 91px); overflow: auto; }
  .mine-shell { width: 323px; margin: 0 auto; }
  .mine-help { text-align: center; }
  .solitaire-app { min-height: 0; height: calc(100% - 92px); }
  .window--solitaire .status-bar { position: absolute; right: 0; bottom: 0; left: 0; }
  .paint-app { height: calc(100% - 91px); grid-template-rows: minmax(250px, 1fr) 57px; }
  .paint-canvas-wrap { display: grid; align-items: start; }
  .paint-colors { grid-template-columns: repeat(7, 20px); }
  .explorer-body { grid-template-columns: 150px 1fr; min-height: 0; height: calc(100% - 100px); }
  .explorer-sidebar { padding: 7px; overflow-y: auto; }
  .program-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px 8px; overflow-y: auto; }
  .window--calculator { right: auto; left: 50% !important; width: min(345px, calc(100vw - 10px)); transform: translateX(-50%); }
  .window--calculator.is-maximized { transform: none; }
  .single-offer { grid-template-columns: 100px 1fr; }
  .single-offer .xp-button { grid-column: 1 / -1; }
  .trial-meter { min-width: 69px; padding: 0 4px; }
  .trial-meter span { display: none; }
}

@media (max-width: 480px) {
  .mine-shell { transform: scale(0.92); transform-origin: top center; margin-bottom: -25px; }
  .paint-app { grid-template-columns: 55px 1fr; }
  .paint-tools { grid-template-columns: repeat(2, 23px); padding: 5px 3px; }
  .paint-tool { width: 23px; height: 25px; font-size: 15px; }
  .paint-colors { grid-template-columns: repeat(6, 18px); }
  .paint-color { width: 18px; height: 18px; }
  .paint-current { width: 38px; }
  .explorer-sidebar { display: none; }
  .explorer-body { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: repeat(3, 1fr); }
  .single-offer { display: block; }
  .single-offer ul { margin: 10px 0 13px; }
  .upgrade-body--single h2 { font-size: 25px; }
  .upgrade-hero-icon { width: 58px; height: 58px; font-size: 31px; }
  .system-tray { display: none; }
}

/* Keep game controls usable across window sizes. */
.mine-flag-toggle { display: block; margin: 9px auto 0; font-size: 14px; }
#paint-download { font-size: 14px; padding: 3px 8px; color: #174c9b; white-space: nowrap; }
.mine-flag-toggle[aria-pressed="true"] { background: #d4e7ff; box-shadow: inset 1px 1px 2px #777; }
.preview-notice { margin: 14px 0 8px !important; color: #625d50; font-size: 13px !important; }
.trial-dialog__link, .terms-check, .lifetime-terms p, .checkout-dialog .checkout-small { font-size: 14px; line-height: 1.45; }
.empty-column { background: transparent; cursor: pointer; font-size: 24px; }
.playing-card { touch-action: none !important; }
.card-drag-ghost { position: fixed; z-index: 4000; pointer-events: none; opacity: 0.92; }
.solitaire-toprow, .tableau { grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 0; gap: 14px; }
.solitaire-app { --card-height: 101px; }
.card-slot, .playing-card { width: 100%; max-width: 86px; height: var(--card-height); }
.playing-card { user-select: none; touch-action: manipulation; }
.card-slot > .playing-card { width: calc(100% + 4px); height: var(--card-height); left: -2px; top: -2px !important; }
.solitaire-message { position: static; margin-top: 15px; text-align: left; font-size: 14px; }
.window--solitaire.is-maximized .solitaire-app { height: calc(100% - 91px); }
.window--paint.is-maximized .paint-app { height: calc(100% - 91px); grid-template-rows: minmax(0, 1fr) 57px; }
.paint-palette { overflow-x: auto; }
.paint-colors { flex-shrink: 0; }
.paint-current { flex-shrink: 0; }
.desktop { min-height: 0; }

@media (min-width: 721px) {
  .window { max-height: calc(100svh - 65px); }
  .window--mine .mine-app, .window--upgrade .upgrade-body, .window--sounds .sounds-body { max-height: calc(100svh - 160px); overflow: auto; }
}
@media (max-width: 720px) {
  .desktop-icons { width: calc(100% - 6px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .window--mine, .window--solitaire, .window--paint, .window--computer { width: auto; min-width: 0; }
  .window.is-maximized { top: 0 !important; left: 0 !important; right: 0; bottom: var(--taskbar-height); width: 100% !important; }
  .mine-app { padding: 8px; }
  .mine-shell { width: min(100%, 323px); transform: none; margin: 0 auto; padding: 7px; }
  .mine-board { width: 100%; height: auto; aspect-ratio: 1; grid-template-rows: repeat(9, 1fr); }
  .mine-cell { width: 100%; height: 100%; min-width: 0; min-height: 0; }
  .solitaire-app { --card-height: 80px; padding: 12px 8px; }
  .solitaire-toprow, .tableau { gap: 5px; }
  .solitaire-toprow { min-height: var(--card-height); }
  .playing-card { padding: 4px 3px; font-size: 15px; }
  .playing-card__suit { font-size: 17px; }
  .playing-card__center { font-size: 23px; top: 41px; }
  .tableau { margin-top: 14px; }
  .card-slot { font-size: 24px; }
  .paint-app { grid-template-rows: minmax(0, 1fr) 75px; }
  .paint-colors { grid-template-columns: repeat(14, 18px); }
  .paint-color { width: 18px; height: 24px; }
  .window--notes .notes-body { height: calc(100% - 94px); }
  .status-bar { font-size: 12px; }
}
@media (max-width: 380px) {
  .solitaire-app { --card-height: 72px; padding: 10px 5px; }
  .solitaire-toprow, .tableau { gap: 3px; }
  .playing-card__center { font-size: 20px; }
}

.icon-art--pinball, .start-icon--pinball, .mini-app-icon--pinball { color: #e4f7ff; background: radial-gradient(circle at 36% 28%, #6479d4, #182755 65%); border: 2px solid #70c7ee; border-radius: 11px; text-shadow: 1px 2px #254562; }
.icon-art--pinball { font-size: 32px; }
.window--pinball { width: 470px; max-height: calc(100svh - 65px); }
.pinball-app { background: #131e36; color: #ecf4ff; padding: 10px; }
.pinball-scoreboard { display: grid; grid-template-columns: 1fr 1fr 55px 90px 55px; gap: 9px; padding: 9px 12px; border: 2px inset #657b96; background: #050d18; }
.pinball-scoreboard span { display: block; font-size: 12px; color: #9ab8d2; letter-spacing: 0.08em; }
.pinball-scoreboard output { display: block; font: bold 23px/1.35 'Lucida Console', monospace; color: #a7eeff; text-shadow: 0 0 9px #237fa0; }
.pinball-scoreboard #pinball-rank { padding-top: 4px; font-size: 13px; color: #fff1a6; }
.pinball-scoreboard #pinball-multiplier { color: #ff9ee5; }
.pinball-mission { display: flex; align-items: center; justify-content: center; gap: 7px; height: 25px; color: #b5c7df; font-size: 10px; letter-spacing: .13em; background: #091326; border: 1px solid #536d91; border-top: 0; }
.pinball-mission i { width: 12px; height: 7px; background: #342246; border: 1px solid #95649f; border-radius: 2px; box-shadow: inset 0 0 3px #000; }
.pinball-mission i.is-lit { background: #ff7bd9; box-shadow: 0 0 9px #ff53d2, inset 0 0 3px #fff; }
.pinball-table-wrap { display: flex; justify-content: center; height: clamp(250px, calc(100svh - 340px), 575px); margin: 9px 0; border: 2px inset #7183a0; background: #060e20; overflow: hidden; }
#pinball-table { display: block; max-width: 100%; height: 100%; object-fit: contain; }
.pinball-controls { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 8px; }
.pinball-controls button { min-height: 41px; padding: 7px 4px; color: #183354; font-size: 14px; font-weight: bold; background: linear-gradient(#fff, #c5d5e6); border: 1px solid #8fa5bd; border-radius: 4px; touch-action: none; user-select: none; }
.pinball-controls #pinball-launch { background: linear-gradient(#ffeabc, #ddaa4c); border-color: #f4c866; color: #4c340d; }
.pinball-controls button:disabled { opacity: 0.65; }
.pinball-controls button.is-pressed { box-shadow: inset 1px 2px 5px #174473; background: #77b7ef; }
#pinball-status { min-height: 35px; margin: 9px 1px 0; color: #c2d4e8; font-size: 13px; line-height: 1.4; }
.desktop-icons { grid-template-rows: repeat(5, min-content); }
@media (max-width: 900px) { .desktop-icons { grid-template-rows: none; } }
@media (max-width: 720px) {
  .window--pinball { width: auto; max-height: none; }
  .pinball-app { height: calc(100% - 65px); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; padding: 7px; }
  .pinball-table-wrap { height: auto; min-height: 0; }
  .pinball-scoreboard output { font-size: 20px; }
  .pinball-scoreboard { grid-template-columns: 1fr 1fr 42px 65px 42px; gap: 4px; padding: 6px; }
  .pinball-scoreboard #pinball-rank { font-size: 10px; }
  .pinball-controls button { min-height: 44px; }
  #pinball-status { font-size: 12px; }
}

/* Complete classic Paint workspace. */
.window--paint { width: min(1080px, calc(100vw - 40px)); height: min(820px, calc(100svh - 70px)); min-width: 0; display: flex; flex-direction: column; }
.window--paint[hidden] { display: none; }
.window--paint > .title-bar, .window--paint > .status-bar { flex-shrink: 0; }
.paint-menubar { display: flex; gap: 2px; flex-shrink: 0; padding: 1px 4px; background: #ece9d8; border-bottom: 1px solid #b6b19d; }
.paint-menubar details { position: relative; }
.paint-menubar summary { list-style: none; cursor: pointer; padding: 4px 9px; font-size: 14px; }
.paint-menubar summary::-webkit-details-marker { display: none; }
.paint-menubar details[open] > summary, .paint-menubar summary:hover { background: #316ac5; color: white; }
.paint-menubar details > div { position: absolute; z-index: 100; min-width: 265px; top: 100%; left: 0; padding: 3px; background: #fff; border: 1px solid #898989; box-shadow: 3px 3px 4px #0005; max-height: 55svh; overflow-y: auto; }
.paint-menubar details:nth-last-child(-n+2) > div { left: auto; right: 0; }
.paint-menubar button { display: flex; justify-content: space-between; gap: 20px; width: 100%; padding: 6px 10px; color: #111; border: 0; background: #fff; cursor: pointer; font-size: 14px; text-align: left; }
.paint-menubar button:hover { background: #316ac5; color: #fff; }
.paint-menubar kbd { color: inherit; opacity: .65; font: inherit; }
.paint-menubar hr { margin: 3px; border: 0; border-top: 1px solid #ccc; }
.paint-quickbar, .paint-options, .paint-text-options { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex-shrink: 0; padding: 5px 7px; background: #ece9d8; border-bottom: 1px solid #aaa696; font-size: 14px; }
.paint-quickbar button, .paint-options button, .paint-text-options button, .paint-recovery button, .paint-dialog button { padding: 4px 9px; min-height: 29px; background: linear-gradient(#fff, #e8e5d8); border: 1px solid #7f9db9; border-radius: 3px; cursor: pointer; }
.window--paint button:disabled { opacity: .48; cursor: default; }
.paint-quickbar label, .paint-options label, .paint-text-options label { display: flex; align-items: center; gap: 5px; }
.paint-quickbar select, .paint-options select, .paint-text-options select { max-width: 150px; padding: 3px; min-height: 28px; background: #fff; border: 1px solid #7f9db9; }
.paint-options { gap: 12px; }
.paint-options #brush-size { width: 75px; }
.paint-text-options input[type=number] { width: 56px; }
.paint-text-options[hidden], .paint-recovery[hidden] { display: none; }
.paint-recovery { padding: 6px 10px; background: #fff6c6; font-size: 14px; border-bottom: 1px solid #ccb760; }
.paint-workspace { display: grid; grid-template-columns: 82px minmax(0, 1fr); flex: 1; min-height: 140px; background: #c0c0c0; }
.window--paint .paint-tools { grid-template-columns: repeat(2, 34px); gap: 4px; padding: 6px 5px; overflow-y: auto; }
.window--paint .paint-tool { width: 34px; height: 34px; color: #202a34; }
.paint-tool svg { width: 27px; height: 27px; }
.window--paint .paint-canvas-wrap { display: block; min-width: 0; min-height: 0; padding: 8px; overflow: auto; }
#paint-stage { position: relative; flex: none; box-shadow: 1px 1px 0 #333; }
.window--paint #paint-canvas, #paint-overlay { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; box-shadow: none; image-rendering: pixelated; }
#paint-overlay { z-index: 2; cursor: crosshair; touch-action: none; }
#paint-text { position: absolute; z-index: 3; min-width: 30px; resize: both; border: 1px dashed #222; outline: 1px solid white; padding: 0; line-height: 1.2; background: #fff9; white-space: pre; }
.window--paint .paint-palette { flex-shrink: 0; gap: 12px; padding: 5px 8px; background: #c0c0c0; min-height: 55px; overflow: auto; }
.paint-color-pair { display: flex; flex-shrink: 0; gap: 4px; align-items: center; font: 12px Tahoma,sans-serif; }
.paint-color-pair label { display: grid; justify-items: center; gap: 2px; }
.paint-color-pair input { width: 29px; height: 27px; padding: 0; border: 1px inset #fff; cursor: pointer; }
.paint-color-pair button { align-self: end; height: 27px; background: #dedbd0; border: 1px solid #777; cursor: pointer; }
.window--paint .paint-colors { grid-template-columns: repeat(14, 20px); gap: 2px; }
.window--paint .paint-color { width: 20px; height: 20px; }
.paint-palette-target { display: grid; font-size: 12px; gap: 3px; flex-shrink: 0; }
#paint-status { flex: 1; white-space: normal; }
#paint-autosave { max-width: 190px; white-space: normal; }
.window--paint .status-bar { display: flex; gap: 8px; font-size: 12px; min-height: 30px; }
.paint-dialog { width: min(470px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 20px; background: #ece9d8; border: 3px solid #1268d8; border-radius: 7px 7px 2px 2px; box-shadow: 5px 8px 30px #0007; }
.paint-dialog::backdrop { background: #001b4470; }
.paint-dialog h2 { font-size: 20px; margin: 0 0 16px; }
.paint-dialog label { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 14px; }
.paint-dialog input:not([type=checkbox]), .paint-dialog select { flex: 1; min-width: 0; padding: 6px; border: 1px solid #7f9db9; background: #fff; }
.paint-dialog p { font-size: 14px; line-height: 1.5; }
.paint-dialog-fields { display: flex; gap: 12px; }
.paint-dialog-fields label { flex: 1; display: grid; }
.paint-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.paint-dialog-actions button { min-width: 80px; }
#paint-print-image { display: none; }
@media (max-width: 720px) {
  .window--paint { width: auto; height: auto; }
  .paint-workspace { grid-template-columns: 74px minmax(0, 1fr); min-height: 140px; }
  .window--paint .paint-tools { grid-template-columns: repeat(2, 30px); padding: 5px 3px; gap: 4px; }
  .window--paint .paint-tool { width: 30px; height: 34px; }
  .paint-tool svg { width: 24px; height: 24px; }
  .paint-options { gap: 6px; font-size: 12px; padding: 4px; }
  .paint-options select { font-size: 12px; max-width: 122px; }
  .paint-options #brush-size { width: 56px; }
  .paint-quickbar { gap: 4px; padding: 3px 5px; }
  .paint-quickbar button { padding: 3px 5px; }
  .paint-quickbar label { font-size: 12px; }
  .paint-menubar summary { padding: 5px 8px; }
  .paint-menubar details > div { min-width: 220px; }
  .paint-menubar details:nth-child(3) > div { left: -70px; right: auto; }
  .window--paint .paint-palette { min-height: 52px; gap: 6px; padding: 3px; }
  .paint-palette-target { font-size: 12px; }
  #paint-autosave { display: none; }
  .window--paint .status-bar { min-height: 39px; padding: 4px 6px; }
}
@media print { body > *, #desktop { display: none !important; } #paint-print-image { display: block !important; max-width: 100%; height: auto; } }

.start-menu { max-height: calc(100svh - var(--taskbar-height) - 5px); overflow-y: auto; overscroll-behavior: contain; }
.show-desktop { flex: 0 0 35px; margin: 5px 2px; border: 1px solid #86b1ff; border-radius: 3px; color: #fff; background: linear-gradient(#72a8fa, #1550a9); cursor: pointer; font-size: 23px; }
#clock-open { border: 0; color: inherit; background: transparent; padding: 0 5px; cursor: pointer; }
.desktop[data-theme="silver"] .title-bar { background: linear-gradient(#f8f9ff, #b6bfd8 12%, #8490b2 75%, #c6cee6); color: #192848; text-shadow: none; }
.desktop[data-theme="silver"] .window { border-color: #8291b0; }
.desktop[data-theme="olive"] .title-bar { background: linear-gradient(#d2daa7, #8f9d58 15%, #617734 76%, #a8b779); }
.desktop[data-theme="olive"] .window { border-color: #687e3c; }
.desktop.reduce-motion *, .desktop.reduce-motion *::before, .desktop.reduce-motion *::after { animation: none !important; transition: none !important; }
.window--settings, .window--calendar { width: 400px; min-width: 0; }
.settings-body, .calendar-body { padding: 18px; background: #ece9d8; max-height: calc(100svh - 170px); overflow: auto; }
.settings-body > label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 15px 0; font-size: 14px; }
.settings-body select { max-width: 180px; padding: 5px; background: white; }
.settings-body p, .calendar-body p { color: #4e5055; line-height: 1.45; font-size: 13px; }
.settings-monitor { width: 200px; height: 130px; padding: 10px 10px 23px; margin: 0 auto 22px; border: 2px outset #eee; background: #d2cfbf; box-shadow: 0 7px 0 -2px #86867c; }
#settings-preview { display: flex; align-items: end; padding: 5px; height: 100%; color: #fff; font-size: 12px; border: 2px inset #555; }
#calendar-clock { text-align: center; font: 31px 'Lucida Console',monospace; color: #153f80; }
#calendar-zone { text-align: center; font-size: 12px; margin: 5px 0 15px; color: #555; }
.calendar-navigation { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.calendar-navigation button, #calendar-today { padding: 5px 9px; border: 1px solid #7f9db9; background: #fff; cursor: pointer; }
.calendar-week, #calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 3px; }
.calendar-week { margin: 15px 0 5px; color: #555; font-size: 12px; }
#calendar-days { margin-bottom: 12px; font-size: 14px; }
#calendar-days span { min-height: 32px; display: grid; place-items: center; }
#calendar-days .is-today { color: white; background: #245edb; border-radius: 50%; }
.notes-options, .notes-find { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px; background: #ece9d8; font-size: 14px; }
.notes-options label { display: flex; gap: 5px; align-items: center; }
.notes-find[hidden] { display: none; }
.notes-find input { min-width: 60px; flex: 1; width: 110px; padding: 5px; }
.notes-find button { padding: 5px; }
.window--notes { display: flex; flex-direction: column; height: min(620px, calc(100svh - 90px)); }
.window--notes[hidden] { display: none; }
.window--notes .notes-body { height: auto !important; min-height: 140px; flex: 1; display: flex; }
.window--notes .notes-body textarea { min-height: 0; height: 100%; flex: 1; }
.window--notes .menu-strip { flex-wrap: wrap; flex-shrink: 0; }
#notes-download { padding: 4px 8px; font-size: 14px; }
.local-media { margin: 12px 0; padding: 12px; border: 1px solid #b8c2ce; background: #e6eaf0; }
.local-media > label { display: block; font-size: 14px; margin-bottom: 8px; }
.local-media input { max-width: 100%; font-size: 13px; }
#media-filename { overflow-wrap: anywhere; font-size: 13px; color: #37465c; }
#media-local { display: block; width: 100%; margin-top: 8px; height: 40px; }
.window--paint .paint-tools { overflow-x: hidden; }
@media (max-width: 720px) {
  .window--settings, .window--calendar { width: auto; }
  .settings-body, .calendar-body { height: calc(100% - 32px); max-height: none; }
  .window--notes { height: auto; }
  .show-desktop { flex-basis: 28px; font-size: 20px; margin: 6px 0; }
}
.freecell-card > span { position: absolute; top: 4px; left: 5px; font-size: 17px; }
.freecell-card > span small { font-size: 15px; margin-top: 0; }
.freecell-cascade { min-height: max(330px, calc(var(--pile-count) * 38px + 110px)); }
.window--freecell .menu-strip, .window--solitaire .menu-strip { flex-wrap: wrap; }
@media(max-width:720px) {
  .freecell-card > span { top: 3px; left: 3px; font-size: 13px; }
  .freecell-card > span small { font-size: 13px; }
  .freecell-cascade { min-height: max(300px, calc(var(--pile-count) * 31px + 65px)); }
}
.window--mine { width: var(--mine-width, 365px); }
.mine-difficulty { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
.mine-difficulty select { padding: 4px; }
.mine-shell { width: max-content; max-width: 100%; }
.mine-board { --mine-cols: 9; --mine-rows: 9; grid-template-columns: repeat(var(--mine-cols), 1fr); grid-template-rows: repeat(var(--mine-rows), 1fr); width: calc(var(--mine-cols) * 28px); height: calc(var(--mine-rows) * 28px); }
.mine-cell.is-revealed-mine { background: #bdbdbd; }
.mine-cell.is-revealed-mine.is-mine { background: #ff4e4e; }
.mine-cell.is-wrong-flag { color: #bd1010; background: #e3b5b5; }
.window--freecell, .window--solitaire { display: flex; flex-direction: column; }
.window--freecell[hidden], .window--solitaire[hidden] { display: none; }
.window--freecell .title-bar, .window--solitaire .title-bar, .window--freecell .menu-strip, .window--solitaire .menu-strip, .window--freecell .status-bar, .window--solitaire .status-bar { flex-shrink: 0; }
.window--freecell .freecell-app { flex: 1; height: auto; min-height: 0; }
.window--solitaire .solitaire-app { flex: 1; overflow: auto; height: auto; min-height: 250px; }
@media(max-width:720px) {
 .window--mine { width: auto; }
 .mine-app { overflow: auto; }
 .mine-shell { max-width: none; }
 .mine-board { width: calc(var(--mine-cols) * 27px); height: calc(var(--mine-rows) * 27px); aspect-ratio: auto; }
 .window--solitaire .status-bar { position: static; }
}

.mine-cell { width: 100%; height: 100%; min-width: 0; min-height: 0; }

@media(max-width:720px) { .pinball-scoreboard span { font-size: 10px; letter-spacing: .02em; } .window--notes .menu-strip { flex-wrap: wrap; flex-shrink: 0; } }

/* Original Space Cadet, with the engine kept inside its own document. */
.window--pinball { width: min(850px, calc(100vw - 32px)); height: min(800px, calc(100svh - 65px)); display: flex; flex-direction: column; min-width: 0; }
.window--pinball[hidden] { display: none; }
.window--pinball .title-bar, .window--pinball .menu-strip { flex-shrink: 0; }
.window--pinball .menu-strip { flex-wrap: wrap; }
.cadet-app { display: flex; flex-direction: column; flex: 1; min-height: 0; background: #ece9d8; }
.cadet-player { position: relative; min-height: 220px; flex: 1; background: #000; margin: 3px; }
#pinball-frame { display: block; width: 100%; height: 100%; position: absolute; inset: 0; border: 0; background: #000; }
.cadet-cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 15px; background: #061122e8; color: #fff; text-align: center; padding: 20px; }
.cadet-cover[hidden] { display: none; }
.cadet-activate { display: none; position: absolute; inset: 0; background: #0003; color: #fff; border: 0; font: 14px Tahoma,sans-serif; cursor: pointer; }
.window--pinball:not(.is-active) .cadet-activate { display: block; }
.cadet-touch { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; padding: 4px 7px; flex-shrink: 0; }
.cadet-touch, .cadet-touch button, .cadet-touch button * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.cadet-touch button { min-height: 32px; padding: 5px 4px; background: linear-gradient(#fff,#dedbd0); border: 1px solid #7f9db9; border-radius: 3px; color: #123057; cursor: pointer; touch-action: none; user-select: none; font-size: 13px; }
.cadet-touch button:nth-child(-n+3) { font-weight: bold; min-height: 40px; }
.cadet-touch button.is-pressed { background: #b8d1fa; box-shadow: inset 1px 1px 3px #557; }
.window--pinball #pinball-status { min-height: 0; margin: 4px 8px; color: #333; font: 12px/1.4 Tahoma,sans-serif; }
.cadet-help { flex-shrink: 0; padding: 5px 8px; font: 12px/1.4 Tahoma,sans-serif; max-height: 140px; overflow: auto; border-top: 1px solid #c1beaf; }
.cadet-help summary { cursor: pointer; color: #214d88; }
.cadet-help p { margin: 6px 0; }
.cadet-help a { color: #164fad; }
@media(max-width:720px) { .window--pinball { width: auto; height: auto; } .cadet-player { min-height: 130px; } .cadet-touch button { min-height: 38px; } .cadet-help { max-height: 130px; } }
