* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

body {
  font-family: Tahoma, Verdana, Geneva, sans-serif;
  font-size: 11px;
  color: #000;
  user-select: none;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
}

button, input, select, textarea { font-family: inherit; font-size: 11px; color: #000; }

button {
  background: #c0c0c0;
  border: none;
  padding: 3px 10px;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
}

button:active:not(:disabled) {
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px #0a0a0a,
    inset -2px -2px #dfdfdf,
    inset 2px 2px grey;
  padding: 4px 9px 2px 11px;
}

button:disabled, .menu-item.disabled {
  color: #808080;
  text-shadow: 1px 1px 0 #fff;
}

button:focus { outline: 1px dotted #000; outline-offset: -4px; }

[hidden] { display: none !important; }

input[type="text"], input:not([type]), textarea, select {
  background: #fff;
  border: none;
  padding: 3px 4px;
  box-shadow:
    inset 1px 1px #0a0a0a,
    inset -1px -1px #fff,
    inset 2px 2px grey,
    inset -2px -2px #dfdfdf;
}

.selectable, .notepad, .ie-doc, .side-blurb, .cmd, input, textarea { user-select: text; }

/* desktop */

#shell { height: 100%; display: flex; flex-direction: column; }

#desktop {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #008080;
}

#desktop.wall-teal { background: #008080; }
#desktop.wall-navy { background: #000080; }
#desktop.wall-black { background: #000; }
#desktop.wall-clouds {
  background-color: #3a6ea5;
  background-image:
    radial-gradient(ellipse 180px 50px at 12% 38%, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(ellipse 240px 70px at 38% 28%, rgba(255,255,255,.8), transparent 72%),
    radial-gradient(ellipse 180px 56px at 68% 42%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(ellipse 200px 60px at 90% 22%, rgba(255,255,255,.75), transparent 70%),
    linear-gradient(#7eb6e0, #3a6ea5);
}
#desktop.wall-stone {
  background-color: #8d8d8d;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 1px, transparent 1px 4px);
}

.desk-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.28) 100%);
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  animation: twinkle 2.8s steps(2, end) infinite;
}

.stars span.big {
  width: 3px;
  height: 3px;
  background: #d6f4ff;
  box-shadow: 4px 0 0 #fff, -4px 0 0 #fff, 0 4px 0 #fff, 0 -4px 0 #fff;
}

.dicon {
  position: absolute;
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 1;
}

.dicon .glyph { width: 40px; height: 40px; transition: transform 80ms steps(2, end); }
.dicon .glyph svg { width: 40px; height: 40px; display: block; }
.dicon:hover .glyph { transform: translateY(-2px); }

.dicon .label {
  color: #fff;
  text-align: center;
  text-shadow: 1px 1px 0 #000, -1px 0 0 #000, 0 -1px 0 #000;
  line-height: 1.15;
  padding: 1px 3px;
  max-width: 88px;
}

.dicon.sel .label {
  background: #000080;
  text-shadow: none;
  outline: 1px dotted #fff;
}

.glyph svg { width: 100%; height: 100%; display: block; }

/* taskbar */

#taskbar {
  height: 30px;
  flex: none;
  background: #c0c0c0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 3px;
  box-shadow: inset 0 1px #fff;
  z-index: 6000;
}

#start-btn {
  font-weight: bold;
  padding: 2px 8px 2px 4px;
  display: inline-flex;
  align-items: center;
  height: 24px;
}

#start-btn.open {
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px #0a0a0a,
    inset -2px -2px #dfdfdf,
    inset 2px 2px grey;
}

.flag {
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-right: 5px;
  background: url("logo.svg") center / contain no-repeat;
  image-rendering: pixelated;
}

#tasks { display: flex; gap: 3px; flex: 1; min-width: 0; overflow: hidden; }

.task {
  max-width: 168px;
  min-width: 0;
  flex: 0 1 150px;
  text-align: left;
  height: 22px;
  padding: 2px 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.task.down {
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px #0a0a0a,
    inset -2px -2px #dfdfdf,
    inset 2px 2px grey;
  padding: 3px 5px 1px 7px;
}

#clock {
  margin-left: auto;
  min-width: 72px;
  text-align: center;
  padding: 3px 8px;
  box-shadow: inset 1px 1px #808080, inset -1px -1px #fff;
}

/* start menu */

#start-menu {
  position: fixed;
  left: 2px;
  bottom: 32px;
  transform-origin: left bottom;
  animation: menuup 140ms steps(4, end);
  display: flex;
  background: #c0c0c0;
  z-index: 8000;
  padding: 2px;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
}

.start-banner {
  width: 23px;
  background: linear-gradient(#000080, #1084d0);
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 0;
}

.start-items { min-width: 196px; padding: 2px; display: flex; flex-direction: column; }

.menu-item {
  box-shadow: none;
  background: transparent;
  text-align: left;
  width: 100%;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

button.menu-item:active { padding: 5px 12px; box-shadow: none; }

.menu-item:hover:not(:disabled), .menu-item:focus:not(:disabled) {
  background: #000080;
  color: #fff;
  text-shadow: none;
  outline: none;
}

.menu-item .arrow { margin-left: auto; }

.mi { width: 16px; height: 16px; flex: none; }
.mi svg { width: 16px; height: 16px; display: block; }

.has-sub { position: relative; }

.submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: -2px;
  min-width: 180px;
  background: #c0c0c0;
  padding: 2px;
  z-index: 2;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
}

.has-sub:hover > .submenu, .has-sub.open > .submenu { display: block; }

.sep {
  height: 2px;
  margin: 3px 2px;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #fff;
}

.ctxmenu {
  position: fixed;
  z-index: 8500;
  min-width: 168px;
  background: #c0c0c0;
  padding: 2px;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
}

/* windows */

.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: #c0c0c0;
  padding: 3px;
  min-width: 220px;
  min-height: 120px;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #dfdfdf,
    inset -2px -2px grey,
    inset 2px 2px #fff;
}

.titlebar {
  background: #808080;
  color: #c0c0c0;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 2px 2px 2px 3px;
  flex: none;
  position: relative;
  overflow: hidden;
}

.window.active .titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
}

.window.active .titlebar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: sheen 3.6s linear infinite;
  pointer-events: none;
}

.t-ico, .t-name, .t-btns { position: relative; z-index: 1; }

.window.pop { animation: winpop 140ms steps(4, end); }
.window.bye { animation: winbye 130ms steps(3, end) forwards; pointer-events: none; }

.t-ico { width: 14px; height: 14px; flex: none; }
.t-ico svg { width: 14px; height: 14px; display: block; }

.t-name {
  flex: 1;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-top: 1px;
}

.t-btns { display: flex; gap: 2px; flex: none; }

button.title-btn {
  width: 16px;
  height: 14px;
  padding: 0;
  line-height: 12px;
  font-weight: bold;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.title-btn:active { padding: 0; }
button.title-btn.x { margin-left: 2px; }

.wbody {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.grip {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 0 30%, #c0c0c0 30% 100%);
  z-index: 3;
}

.grip::before {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  background:
    linear-gradient(#fff, #fff) 0 0 / 2px 2px no-repeat,
    linear-gradient(#808080, #808080) 3px 0 / 2px 2px no-repeat,
    linear-gradient(#fff, #fff) 0 3px / 2px 2px no-repeat,
    linear-gradient(#808080, #808080) 3px 3px / 2px 2px no-repeat,
    linear-gradient(#fff, #fff) 6px 3px / 2px 2px no-repeat,
    linear-gradient(#808080, #808080) 3px 6px / 2px 2px no-repeat,
    linear-gradient(#fff, #fff) 6px 6px / 2px 2px no-repeat,
    linear-gradient(#808080, #808080) 9px 6px / 2px 2px no-repeat,
    linear-gradient(#fff, #fff) 6px 9px / 2px 2px no-repeat,
    linear-gradient(#808080, #808080) 9px 9px / 2px 2px no-repeat;
}

/* explorer */

.explorer, .ie, .find, .run, .display, .welcome, .helpdoc, .props {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.menubar { display: flex; padding: 1px 0 0; flex: none; position: relative; z-index: 4; }
.menubar .top { position: relative; }
.menubar .top > .menu-item { width: auto; padding: 2px 7px; }
button.menubar .top > .menu-item:active, .menubar .top > .menu-item:active { padding: 2px 7px; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  background: #c0c0c0;
  padding: 2px;
  z-index: 6;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
}
.top.open > .dropdown { display: block; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 2px;
  flex: none;
  flex-wrap: wrap;
}

.toolbar .tool { padding: 2px 8px; height: 22px; }
button.tool:active { padding: 3px 7px 1px 9px; }

.addr {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px 3px;
  flex: none;
}

.addr-field, .ie-addr {
  flex: 1;
  background: #fff;
  padding: 2px 4px;
  min-height: 18px;
  box-shadow:
    inset 1px 1px #0a0a0a,
    inset -1px -1px #fff,
    inset 2px 2px grey,
    inset -2px -2px #dfdfdf;
}

.ie-addr { border: none; width: 100%; font: inherit; }

.ex-body { display: flex; flex: 1; min-height: 0; gap: 3px; }

.ex-side {
  width: 196px;
  flex: none;
  overflow: auto;
  background: #fff;
  padding: 8px;
  box-shadow:
    inset 1px 1px #0a0a0a,
    inset -1px -1px #fff,
    inset 2px 2px grey,
    inset -2px -2px #dfdfdf;
}

.side-title { font-weight: bold; font-size: 12px; margin-top: 6px; }
.side-sub { color: #444; margin-top: 1px; }
.side-blurb { margin-top: 8px; line-height: 1.35; }
.side-meta { margin-top: 8px; color: #333; }
.ex-side a { color: #000080; }

.ex-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.cols {
  display: grid;
  grid-template-columns: 22px minmax(90px, 1.1fr) 128px 96px minmax(80px, 1.3fr);
  gap: 2px;
  flex: none;
  margin-bottom: 2px;
  padding-right: 16px;
}

button.col {
  text-align: left;
  padding: 2px 4px;
  font-weight: normal;
  overflow: hidden;
  white-space: nowrap;
}
button.col:active { padding: 2px 4px; }
button.col.down {
  box-shadow:
    inset -1px -1px #fff,
    inset 1px 1px #0a0a0a,
    inset -2px -2px #dfdfdf,
    inset 2px 2px grey;
}

.list, .drives {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fff;
  outline: none;
  box-shadow:
    inset 1px 1px #0a0a0a,
    inset -1px -1px #fff,
    inset 2px 2px grey,
    inset -2px -2px #dfdfdf;
}

.row {
  display: grid;
  grid-template-columns: 22px minmax(90px, 1.1fr) 128px 96px minmax(80px, 1.3fr);
  align-items: center;
  height: 18px;
  padding-right: 2px;
}

.row span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row .mini { width: 16px; height: 16px; margin-left: 2px; }
.row.sel { background: #000080; color: #fff; }

.drives {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  padding: 12px;
}

button.drive {
  width: 86px;
  box-shadow: none;
  background: transparent;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
button.drive:active { padding: 4px; box-shadow: none; }
button.drive .glyph { width: 32px; height: 32px; }
button.drive.sel { background: #000080; color: #fff; }

.statusbar {
  display: flex;
  gap: 3px;
  margin-top: 2px;
  flex: none;
}
.statusbar span {
  box-shadow: inset 1px 1px #808080, inset -1px -1px #fff;
  padding: 2px 6px;
  min-height: 16px;
}
.statusbar span:first-child { flex: 1; }

.find-field { width: 140px; }

/* notepad, help, props, dialogs */

.notepad, .helpdoc {
  flex: 1;
  margin: 2px;
  background: #fff;
  overflow: auto;
  padding: 8px 10px;
  white-space: pre-wrap;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1.35;
  box-shadow:
    inset 1px 1px #0a0a0a,
    inset -1px -1px #fff;
}

.btnrow {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 4px 2px;
  flex: none;
}
.btnrow.center { justify-content: center; }

.welcome { padding: 12px 14px 8px; gap: 8px; }
.welcome h2 { font-size: 13px; margin: 0 0 4px; }
.welcome p { margin: 0 0 6px; line-height: 1.4; }
.welcome label { display: flex; gap: 6px; align-items: center; }
.welcome-links { display: flex; gap: 16px; align-items: center; }
.welcome-links a, .fine a, marquee a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #000080;
}
.welcome-links img, .fine img, marquee img {
  width: 28px;
  height: 28px;
  border: 1px solid #000;
  object-fit: cover;
}
.pinball { flex: 1; min-height: 0; display: flex; background: #c0c0c0; }
.pinball-frame { flex: 1; width: 100%; height: 100%; border: 0; background: #c0c0c0; }

.msgwrap { display: flex; gap: 12px; padding: 14px 12px 6px; align-items: flex-start; }
.msgwrap .glyph { width: 32px; height: 32px; flex: none; }
.msgtext { white-space: pre-wrap; line-height: 1.35; padding-top: 4px; }

.props { padding: 10px; gap: 6px; }
.props-head { display: flex; gap: 10px; align-items: center; }
.props-head .glyph { width: 32px; height: 32px; }
.props-name { font-weight: bold; }
.props dl { margin: 6px 0; display: grid; grid-template-columns: 72px 1fr; gap: 3px 8px; }
.props dt { color: #333; }
.props dd { margin: 0; }
.props .sunbox {
  background: #fff;
  padding: 6px;
  min-height: 64px;
  overflow: auto;
  line-height: 1.35;
  box-shadow: inset 1px 1px #808080, inset -1px -1px #fff;
}

.find {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 6px;
  overflow: hidden;
}
.find-row { display: flex; align-items: center; gap: 6px; }
.find-row label { width: 78px; }
.find-row input { flex: 1; }
.find .list { flex: 1; min-height: 0; overflow: auto; }

.run { padding: 10px; }
.run-row { display: flex; gap: 10px; align-items: flex-start; }
.run-row .glyph { width: 32px; height: 32px; flex: none; }
.run label { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.run input { flex: 1; width: 220px; }

.display { padding: 10px; gap: 8px; }
.display-row { display: flex; gap: 10px; }
.swatch { width: 120px; height: 78px; border: 1px solid #000; flex: none; }
.display select { width: 140px; height: 86px; }

/* command prompt */

.cmd {
  flex: 1;
  margin: 2px;
  background: #000;
  color: #c0c0c0;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.25;
  padding: 4px 6px;
  overflow: auto;
  -webkit-font-smoothing: auto;
}
.cmd-line { display: flex; }
.cmd input {
  background: transparent;
  color: #c0c0c0;
  box-shadow: none;
  flex: 1;
  font: inherit;
  padding: 0;
  outline: none;
  min-width: 0;
}
.cmd input:focus { outline: none; }

/* internet explorer page */

.ie { background: #c0c0c0; }
.ie-doc {
  flex: 1;
  margin: 0 2px;
  background: #fff;
  color: #000;
  overflow: auto;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  -webkit-font-smoothing: auto;
  box-shadow: inset 1px 1px #808080, inset -1px -1px #fff;
}
.ie-page { max-width: 640px; margin: 0 auto; padding: 8px 16px 32px; }
.ie-page h1 {
  font-family: "Times New Roman", Times, serif;
  font-size: 34px;
  color: #000080;
  text-align: center;
  margin: 8px 0 0;
  font-weight: bold;
}
.ie-page .tag {
  text-align: center;
  color: #444;
  margin: 0 0 8px;
}
.ie-page p { margin: 8px 0; }
.ie-page hr { border: none; border-top: 1px solid #808080; }
.ie-page a { color: #0000ee; }
.ie-page a:visited { color: #551a8b; }
.ie-page center, .ie-page .mid { text-align: center; }
.construction {
  height: 14px;
  background: repeating-linear-gradient(-45deg, #000 0 10px, #fc0 10px 20px);
  background-size: 28px 14px;
  margin: 8px 0;
  animation: crawl 0.7s linear infinite;
}

.rainbow {
  height: 4px;
  width: 72%;
  margin: 4px auto 6px;
  background: linear-gradient(90deg, #f00, #fa0, #ff0, #0c0, #0ff, #00f, #c0f, #f00);
  background-size: 200% 100%;
  animation: hue 3.2s linear infinite;
}
.counter {
  display: inline-block;
  background: #000;
  color: #3f3;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 2px;
  padding: 2px 6px;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  animation: glow 1.4s steps(2, end) infinite;
}
.blink, .colon { animation: blink 1.1s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ie-page table { border-collapse: collapse; margin: 8px auto; }
.ie-page td, .ie-page th {
  border: 1px solid #000;
  padding: 3px 8px;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
}
.book-form { margin: 8px 0; }
.book-form div { margin: 4px 0; }
.fine { font-size: 12px; color: #444; text-align: center; }
.links { columns: 2; }
.links a { display: block; margin: 2px 0; word-break: break-all; }
marquee { font-family: "Times New Roman", Times, serif; }

/* boot + shutdown */

#splash {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #c0c0c0;
  cursor: pointer;
}

.boot-card {
  width: 300px;
  background: #c0c0c0;
  color: #000;
  padding: 3px;
  cursor: default;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
}

.boot-bar-title {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-weight: bold;
  padding: 3px 6px;
}

.boot-logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 14px auto 2px;
  image-rendering: pixelated;
}

.site-logo {
  display: block;
  width: 64px;
  height: 64px;
  margin: 10px auto 2px;
  image-rendering: pixelated;
}

.boot-sub { padding: 8px 12px 8px; text-align: center; }

.boot-track {
  margin: 0 12px 14px;
  height: 20px;
  padding: 3px;
  background: #c0c0c0;
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff;
}

#boot-bar {
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, #000080 0 10px, #c0c0c0 10px 12px);
}

.boot-hint { margin-top: 18px; color: #808080; }

#shutdown {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.shut-line {
  color: #ff6a00;
  font-size: 22px;
  line-height: 1.35;
  animation: flicker 2.8s steps(1, end) infinite;
}

.boot-wait { display: inline-block; margin-top: 6px; color: #000080; }

#splash::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  left: 12%;
  top: 18%;
  background: #fff;
  box-shadow:
    80px 40px #fff, 180px 12px #9cf, 260px 90px #fff,
    40px 160px #fff, 320px 30px #fff, 140px 220px #9cf,
    400px 140px #fff, 70px 280px #fff, 240px 300px #fff,
    480px 60px #9cf, 520px 200px #fff, 30px 80px #fff;
  animation: twinkle 1.6s steps(2, end) infinite;
}

.shut-sub { color: #808080; margin-top: 18px; font-size: 12px; }

::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track { background: #c0c0c0; }
::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
}
::-webkit-scrollbar-button {
  background: #c0c0c0;
  height: 16px;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
}

@keyframes twinkle { 50% { opacity: 0; } }
@keyframes sheen { from { left: -48px; } to { left: 120%; } }
@keyframes winpop { from { transform: scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes winbye { to { transform: scale(0.94); opacity: 0; } }
@keyframes menuup { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes crawl { to { background-position: 28px 0; } }
@keyframes hue { to { background-position: 200% 0; } }
@keyframes glow { 50% { color: #b6ffb6; } }
@keyframes flicker { 0%, 90%, 100% { opacity: 1; } 92% { opacity: 0.35; } 95% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .blink, .colon, .stars span, .window.pop, .window.bye, #start-menu,
  .construction, .rainbow, .counter, .shut-line, #splash::before,
  .window.active .titlebar::after { animation: none; }
  .dicon .glyph { transition: none; }
}

@media (max-width: 720px) {
  .window:not(.dialog) {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  .window.dialog {
    left: 8px !important;
    width: calc(100% - 16px) !important;
    height: auto !important;
    min-height: 0;
  }
  .ex-body { flex-direction: column; }
  .ex-side { width: auto; max-height: 130px; }
  .cols, .row { grid-template-columns: 22px minmax(0, 1fr) 88px; }
  .c-grp, .c-cmt { display: none; }
  .links { columns: 1; }
  .grip { display: none; }
  #start-menu { max-width: calc(100% - 8px); }
  .submenu { left: 0; top: 100%; }
}
.side-ca { margin-top: 6px; font-size: 11px; color: #808080; font-family: "Courier New", monospace; word-break: break-all; }
