/* =================================================================
   koki26.online -- Windows 95 desktop
   The whole look comes from four bevel recipes (raised, sunken,
   raised-thin, sunken-thin) applied to otherwise plain boxes.
   ================================================================= */

:root {
  --face:       #c0c0c0;
  --face-light: #dfdfdf;
  --white:      #ffffff;
  --shadow:     #808080;
  --dark:       #0a0a0a;
  --desktop:    #008080;
  --title:      #000080;
  --title-2:    #1084d0;
  --title-off:  #808080;
  --hl:         #000080;
  --hl-text:    #ffffff;
  --text:       #000000;
  --disabled:   #808080;

  --font: "Segoe UI", Tahoma, "MS Sans Serif", Geneva, Verdana, sans-serif;
  --mono: "Lucida Console", "Courier New", monospace;

  /* Canonical Win95 bevels. */
  --raised: inset -1px -1px var(--dark), inset 1px 1px var(--white),
            inset -2px -2px var(--shadow), inset 2px 2px var(--face-light);
  --sunken: inset -1px -1px var(--white), inset 1px 1px var(--shadow),
            inset -2px -2px var(--face-light), inset 2px 2px var(--dark);
  --raised-thin: inset -1px -1px var(--shadow), inset 1px 1px var(--white);
  --sunken-thin: inset -1px -1px var(--white), inset 1px 1px var(--shadow);
}

/* The universal selector does not match pseudo-elements, so ::before
   and ::after must be named explicitly or their borders get added on
   top of the declared width instead of fitting inside it. */
*, *::before, *::after { box-sizing: border-box; }

/* Every icon is an <svg class="ico"><use href="#i-..."></svg>.
   Default 16px; the usage sites above override where they need to. */
.ico {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -3px;
  pointer-events: none;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font: 400 13.5px/1.5 var(--font);
  color: var(--text);
  background: var(--desktop);
  -webkit-font-smoothing: antialiased;
}

body.booting { cursor: wait; }

/* ---------- desktop ---------------------------------------------- */

#desktop {
  position: fixed;
  inset: 0 0 34px 0;
  background:
    radial-gradient(120% 90% at 50% 0%, #0a9d9d 0%, var(--desktop) 55%, #00605f 100%);
  overflow: hidden;
}

/* Faint dither so the flat teal does not look like a CSS accident. */
#desktop::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 2px);
  pointer-events: none;
}

#icons {
  position: absolute;
  top: 8px; left: 8px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 86px);
  gap: 2px 6px;
  max-height: calc(100% - 16px);
}

.icon {
  width: 84px;
  padding: 6px 2px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  color: #fff;
  cursor: default;
  border: 1px dotted transparent;
  user-select: none;
  background: none;
  font: inherit;
}

.icon .glyph {
  width: 32px;
  height: 32px;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, .5));
}

.icon .label {
  font-size: 12px;
  padding: 1px 3px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .7);
  word-break: break-word;
}

.icon:focus-visible { outline: none; border-color: #fff; }

.icon[aria-selected="true"] .glyph { filter: drop-shadow(1px 1px 0 rgba(0,0,0,.5)) saturate(.35) brightness(.72); }
.icon[aria-selected="true"] .label {
  background: var(--hl);
  color: var(--hl-text);
  text-shadow: none;
}

/* ---------- windows ---------------------------------------------- */

.window {
  position: absolute;
  min-width: 260px;
  min-height: 140px;
  background: var(--face);
  box-shadow: var(--raised), 2px 2px 6px rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
  padding: 3px;
}

.window[hidden] { display: none; }

.window.maximized {
  left: 0 !important; top: 0 !important;
  width: 100% !important; height: 100% !important;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 2px 3px 4px;
  background: linear-gradient(90deg, var(--title), var(--title-2));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: default;
  flex: 0 0 auto;
}

.window:not(.active) .titlebar {
  background: var(--title-off);
  color: #d4d0c8;
}

.titlebar .ticon { width: 14px; height: 14px; flex: 0 0 14px; }
.titlebar .ttext {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .01em;
}

.titlebar .tbtns { display: flex; gap: 2px; }

/* The glyphs are drawn, not typed. A text "_" or "x" sits on the
   font's baseline and never looks centred in a 16x14 button. */
.tbtn {
  position: relative;
  width: 17px;
  height: 15px;
  padding: 0;
  background: var(--face);
  box-shadow: var(--raised);
  border: 0;
  cursor: default;
  font-size: 0;
  flex: 0 0 auto;
}

/* The button is 17x15 but carries a 2px bevel on every side, so the
   visible face is only 13x11. All three glyphs therefore share one
   7px-wide optical box at left:5 -- that leaves an even 3px either
   side and 2px top and bottom, which is what actually reads centred.
   A 9px square filled the face edge to edge and looked shoved. */
.tbtn::before {
  content: "";
  position: absolute;
  left: 5px;
}

/* minimise: a bar sitting low, where a baseline would be */
.tbtn[data-act="min"]::before {
  top: 9px;
  width: 7px;
  height: 2px;
  background: #000;
}

/* maximise: a box with the doubled top edge of a title bar */
.tbtn[data-act="max"]::before {
  top: 4px;
  width: 7px;
  height: 7px;
  border: 1px solid #000;
  border-top-width: 2px;
}

/* close: an X from two diagonal bands, so it stays symmetric */
.tbtn[data-act="close"]::before {
  top: 4px;
  width: 7px;
  height: 7px;
  background:
    linear-gradient(45deg,  transparent 42%, #000 42%, #000 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, #000 42%, #000 58%, transparent 58%);
}

.tbtn:active { box-shadow: var(--sunken); }
.tbtn:active::before { margin: 1px 0 0 1px; }

/* ---------- menu + status bars ----------------------------------- */

.menubar {
  display: flex;
  gap: 2px;
  padding: 1px 2px;
  flex: 0 0 auto;
}

.menubar button {
  display: inline-block;
  background: none;
  border: 0;
  font: inherit;
  padding: 3px 7px;
  cursor: default;
  line-height: 1.3;
}

.menubar button:hover,
.menubar button[aria-expanded="true"] {
  background: var(--hl);
  color: var(--hl-text);
}

.menubar button u { text-decoration: underline; }

.statusbar {
  flex: 0 0 auto;
  display: flex;
  gap: 3px;
  padding: 2px;
  font-size: 12px;
}

.statusbar span {
  display: flex;
  align-items: center;
  padding: 3px 6px;
  box-shadow: var(--sunken-thin);
  color: #404040;
  min-height: 19px;
}

.statusbar span:first-child { flex: 1; }

/* ---------- window content -------------------------------------- */

.content {
  flex: 1 1 auto;
  background: var(--face);
  overflow: auto;
  padding: 10px 12px;
  box-shadow: var(--sunken-thin);
  margin: 1px;
}

.content.field {
  background: var(--white);
  box-shadow: var(--sunken);
  padding: 8px 10px;
}

.content.flush { padding: 0; }

.content h2 {
  font-size: 17px;
  margin: 0 0 2px;
}

.content h3 {
  font-size: 13px;
  margin: 14px 0 5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #000080;
}

.content h3:first-child { margin-top: 0; }

.content p { margin: 0 0 9px; }
.content p:last-child { margin-bottom: 0; }

.content a { color: #0000c0; }
.content a:visited { color: #551a8b; }

.muted { color: #404040; }

hr.sep {
  border: 0;
  height: 2px;
  box-shadow: var(--sunken-thin);
  margin: 12px 0;
}

/* grouped box, the Win95 fieldset */
fieldset.group {
  border: 0;
  box-shadow: var(--sunken-thin);
  margin: 0 0 12px;
  padding: 10px 12px 12px;
}

fieldset.group legend {
  padding: 0 4px;
  font-weight: 700;
}

/* ---------- buttons --------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 86px;
  justify-content: center;
  padding: 5px 12px;
  background: var(--face);
  box-shadow: var(--raised);
  border: 0;
  font: inherit;
  color: var(--text);
  text-decoration: none;
  cursor: default;
}

.btn:active:not(:disabled) { box-shadow: var(--sunken); padding: 6px 11px 4px 13px; }
.btn:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.btn:disabled { color: var(--disabled); text-shadow: 1px 1px 0 var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- about / hero ---------------------------------------- */

.hero {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.hero .portrait {
  flex: 0 0 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--face);
  box-shadow: var(--raised);
}
.hero .portrait .ico { width: 36px; height: 36px; }

.hero h2 { font-size: 19px; }

.tagline { color: #000080; font-weight: 700; margin: 0 0 8px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin: 0 0 4px;
}

.stat {
  background: var(--white);
  box-shadow: var(--sunken);
  padding: 8px 10px;
  text-align: center;
}

.stat b { display: block; font-size: 21px; line-height: 1.1; color: #000080; }
.stat span { font-size: 12px; color: #404040; }

/* ---------- settings dialog: tabs, listview, buttons ------------ */

.content.props {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 10px 8px;
}

.tabstrip {
  display: flex;
  gap: 2px;
  padding: 0 2px;
  position: relative;
  z-index: 1;
}

.tabstrip button {
  padding: 4px 11px 5px;
  background: var(--face);
  border: 0;
  font: inherit;
  cursor: default;
  box-shadow: inset 1px 1px var(--white), inset -1px 0 var(--dark),
              inset 0 1px var(--white), inset -2px 0 var(--shadow);
  margin-bottom: -2px;
}

/* The selected tab sits a pixel proud and merges into the page below. */
.tabstrip button[aria-selected="true"] {
  padding: 6px 13px 7px;
  margin: -2px -2px -2px -2px;
  font-weight: 700;
  z-index: 2;
  position: relative;
}

.tabpage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--face);
  box-shadow: var(--raised);
}

.tabpage .muted { margin: 0; font-size: 12px; }

.listview {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--sunken);
}

.lv-head {
  display: grid;
  grid-template-columns: 1fr 96px;
  flex: 0 0 auto;
}

.lv-head span {
  padding: 4px 7px;
  font-size: 12px;
  text-align: left;
  background: var(--face);
  box-shadow: var(--raised-thin);
}

.lv-body {
  flex: 1 1 auto;
  overflow: auto;
  list-style: none;
  margin: 0;
  padding: 1px;
}

.lv-body li {
  display: grid;
  grid-template-columns: 20px 1fr 96px;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
}

.lv-body li:hover { background: #e8e8e8; }

.lv-body .ico { width: 14px; height: 14px; }
.lv-body .usage { font-size: 12px; color: #404040; }
.lv-body li.core .usage { color: var(--title); font-weight: 700; }

.dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 10px;
  flex: 0 0 auto;
}

.dialog-buttons .btn { min-width: 74px; padding: 4px 10px; }

/* ---------- (legacy tree styles, still used nowhere) ------------- */

.tree { font-size: 12px; }

.tree details { margin: 0 0 1px; }

.tree summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  cursor: default;
  list-style: none;
}

.tree summary::-webkit-details-marker { display: none; }

.tree summary::before {
  content: "+";
  flex: 0 0 11px;
  height: 11px;
  font: 700 10px/10px var(--mono);
  text-align: center;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--shadow);
}

.tree details[open] > summary::before { content: "\2212"; }
.tree summary b { font-weight: 700; }
.tree summary .count { color: #404040; font-weight: 400; }

.tree ul {
  list-style: none;
  margin: 1px 0 6px;
  padding: 0 0 0 17px;
  border-left: 1px dotted var(--shadow);
}

.tree li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  margin-left: 4px;
}

.tree li .chip {
  margin-left: auto;
  font-size: 10px;
  padding: 1px 6px;
  box-shadow: var(--raised-thin);
  background: var(--face);
  color: #404040;
  white-space: nowrap;
}

.tree li .chip.core { color: #000080; font-weight: 700; }

/* ---------- projects (Explorer style) --------------------------- */

.explorer { display: flex; flex-direction: column; height: 100%; }

.addressbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px;
  flex: 0 0 auto;
}

.addressbar label { color: #404040; }

.addressbar .path {
  flex: 1;
  background: var(--white);
  box-shadow: var(--sunken);
  padding: 3px 6px;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filelist {
  flex: 1 1 auto;
  overflow: auto;
  background: var(--white);
  box-shadow: var(--sunken);
  margin: 1px 4px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 4px;
  align-content: start;
}

.file {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 8px;
  padding: 6px 8px;
  text-decoration: none;
  color: inherit;
  border: 1px dotted transparent;
  align-items: start;
}

.file:hover { border-color: var(--shadow); background: #f0f0f0; }
.file:focus-visible { outline: none; background: var(--hl); color: var(--hl-text); }
.file:focus-visible .meta, .file:focus-visible .desc { color: #c8d0ff; }

.file .fglyph { width: 26px; height: 26px; grid-row: span 2; }
.file .fname { font-weight: 700; word-break: break-word; }
.file .desc { font-size: 12px; color: #303030; grid-column: 2; }
.file .meta { font-size: 11px; color: #606060; grid-column: 2; margin-top: 2px; }

.loading-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  color: #404040;
}

/* chunky indeterminate progress, Win95 style */
.blocks { display: flex; gap: 2px; }
.blocks i {
  width: 9px; height: 13px;
  background: var(--title);
  animation: blink 1.4s linear infinite;
}
@keyframes blink { 0%, 100% { opacity: .18 } 50% { opacity: 1 } }

/* ---------- notepad --------------------------------------------- */

.notepad {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  background: var(--white);
  box-shadow: var(--sunken);
  margin: 1px;
  padding: 8px 10px;
  flex: 1 1 auto;
  overflow: auto;
}

/* ---------- guestbook / like ------------------------------------ */

.dialog-row { display: flex; gap: 14px; align-items: flex-start; }
.ico.big { width: 32px; height: 32px; flex: 0 0 32px; }

.counter {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--white);
  box-shadow: var(--sunken);
  padding: 6px 12px;
  font-family: var(--mono);
}

.counter b { font-size: 20px; }

.btn.liked { color: #000080; font-weight: 700; }
.btn.shake { animation: shake .4s; }
@keyframes shake {
  25% { transform: translateX(-3px) } 75% { transform: translateX(3px) }
}

/* ---------- taskbar --------------------------------------------- */

#taskbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 34px;
  background: var(--face);
  box-shadow: var(--raised-thin);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 3px;
  z-index: 9000;
}

#startbtn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px 0 6px;
  font-weight: 700;
  background: var(--face);
  box-shadow: var(--raised);
  border: 0;
  font-size: 13px;
  cursor: default;
  flex: 0 0 auto;
}

#startbtn:active,
#startbtn[aria-expanded="true"] { box-shadow: var(--sunken); padding: 1px 7px 0 6px; }
#startbtn .flag { width: 16px; height: 16px; }

.tdivider {
  width: 2px;
  height: 22px;
  box-shadow: var(--sunken-thin);
  flex: 0 0 auto;
}

#tasks {
  flex: 1 1 auto;
  display: flex;
  gap: 3px;
  overflow: hidden;
}

.task {
  flex: 0 1 170px;
  min-width: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  height: 26px;
  background: var(--face);
  box-shadow: var(--raised);
  border: 0;
  font: inherit;
  cursor: default;
  overflow: hidden;
}

.task span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task.current {
  box-shadow: var(--sunken);
  font-weight: 700;
  background-image:
    repeating-conic-gradient(var(--white) 0% 25%, var(--face) 0% 50%) ;
  background-size: 2px 2px;
}

#tray {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 8px;
  box-shadow: var(--sunken-thin);
  flex: 0 0 auto;
  font-size: 12px;
}

#tray button {
  background: none;
  border: 0;
  font: inherit;
  padding: 0;
  cursor: default;
  display: grid;
  place-items: center;
}
#tray button .ico { width: 15px; height: 15px; }

#clock { font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }

/* ---------- start menu ------------------------------------------ */

#startmenu {
  position: fixed;
  left: 3px;
  bottom: 35px;
  width: 248px;
  background: var(--face);
  box-shadow: var(--raised), 2px 2px 7px rgba(0, 0, 0, .4);
  padding: 3px;
  display: flex;
  z-index: 9500;
}

#startmenu[hidden] { display: none; }

#startmenu .spine {
  flex: 0 0 22px;
  background: linear-gradient(0deg, var(--title), var(--title-2));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: grid;
  place-items: center;
  padding: 7px 0;
}

#startmenu ul { list-style: none; margin: 0; padding: 0; flex: 1; }

#startmenu li > * {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  width: 100%;
  padding: 6px 9px;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  color: inherit;
  text-decoration: none;
  cursor: default;
}

#startmenu li > *:hover { background: var(--hl); color: var(--hl-text); }
#startmenu li > *:disabled { color: var(--disabled); text-shadow: 1px 1px 0 var(--white); }
#startmenu li.divider { height: 2px; margin: 3px 2px; box-shadow: var(--sunken-thin); }
#startmenu .k { width: 17px; height: 17px; flex: 0 0 17px; }

/* ---------- boot sequence --------------------------------------- */

#boot {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
}

#boot[hidden] { display: none; }

#boot.fading { animation: bootout .45s ease forwards; }
@keyframes bootout { to { opacity: 0; visibility: hidden; } }

/* -- stage 1: POST text -- */

/* A real console starts at the top-left corner, not in the middle. */
#boot .bios {
  position: absolute;
  inset: 0;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: #c8c8c8;
  text-align: left;
}

#boot.stage2 .bios { display: none; }

/* Lines arrive one at a time, like a machine actually posting. */
#boot .bios .bl {
  opacity: 0;
  animation: postline .01s linear forwards;
}
#boot .bios .bl:nth-child(1) { animation-delay: .05s }
#boot .bios .bl:nth-child(2) { animation-delay: .25s }
#boot .bios .bl:nth-child(3) { animation-delay: .45s }
#boot .bios .bl:nth-child(4) { animation-delay: .62s }
#boot .bios .bl:nth-child(5) { animation-delay: .76s }
#boot .bios .bl:nth-child(6) { animation-delay: .86s }
#boot .bios .bl:nth-child(7) { animation-delay: .96s }
#boot .bios .bl:nth-child(8) { animation-delay: 1.12s }
@keyframes postline { to { opacity: 1 } }

#boot .ok { color: #58d858; }

#boot .cur {
  display: inline-block;
  width: 8px; height: 14px;
  background: #c8c8c8;
  margin-left: 4px;
  vertical-align: -2px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0 } }

/* -- stage 2: welcome splash -- */

/* Flat desktop colour, so handing over to the real desktop is seamless. */
#boot .splash {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: var(--desktop);
}

#boot.stage2 .splash { display: grid; }

/* The logon box: a plain dialog, the way 9x asked you to wait. */
#boot .logon {
  width: min(420px, calc(100% - 48px));
  background: var(--face);
  box-shadow: var(--raised), 3px 3px 12px rgba(0, 0, 0, .4);
  padding: 3px;
  animation: cardin .28s ease-out both;
}

@keyframes cardin {
  from { opacity: 0; transform: translateY(8px) }
  to   { opacity: 1; transform: none }
}

#boot .logon-bar {
  background: linear-gradient(90deg, var(--title), var(--title-2));
  color: #fff;
  font: 700 12px/1 var(--font);
  padding: 4px 5px;
}

#boot .logon-body { padding: 16px 16px 14px; }

#boot .logon-main {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

#boot .logon-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  image-rendering: pixelated;
}

#boot .logon-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #404040;
}

#boot .logon-name {
  margin: 2px 0 3px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--title);
}
#boot .logon-name span { color: #606060; font-weight: 400; }

#boot .logon-user { margin: 0; font-size: 11px; color: #404040; }

#boot .splash-bar {
  height: 20px;
  background: var(--white);
  box-shadow: var(--sunken);
  padding: 3px;
  overflow: hidden;
}

#boot .splash-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg,
              var(--title) 0 11px, transparent 11px 13px);
  transition: width .25s linear;
}

#boot .splash-status {
  margin: 9px 0 0;
  font-size: 11px;
  color: #404040;
  min-height: 15px;
}

#boot .splash-skip {
  position: absolute;
  bottom: 22px;
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
  animation: fadein .6s 1.1s backwards;
}
@keyframes fadein { from { opacity: 0 } }

/* Windows ease in rather than appearing, which also hides the
   first-paint jump when a window is positioned. */
.window.opening { animation: winin .16s ease-out; }
@keyframes winin {
  from { opacity: .4; transform: scale(.97) }
  to   { opacity: 1; transform: none }
}

/* ---------- scrollbars ------------------------------------------ */

.content::-webkit-scrollbar,
.notepad::-webkit-scrollbar,
.filelist::-webkit-scrollbar { width: 16px; height: 16px; }

.content::-webkit-scrollbar-track,
.notepad::-webkit-scrollbar-track,
.filelist::-webkit-scrollbar-track {
  background: repeating-conic-gradient(var(--white) 0% 25%, var(--face) 0% 50%) 0 0 / 2px 2px;
}

.content::-webkit-scrollbar-thumb,
.notepad::-webkit-scrollbar-thumb,
.filelist::-webkit-scrollbar-thumb {
  background: var(--face);
  box-shadow: var(--raised);
}

/* Firefox has no bevel equivalent; grey is closer than the default. */
.content, .notepad, .filelist { scrollbar-color: var(--face) var(--face-light); }

/* ---------- small screens --------------------------------------- */
/* Dragging windows is pointless on a phone: stack them full-bleed
   and let the taskbar switch between them. */

@media (max-width: 760px), (max-height: 520px) {
  #icons {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(auto-fill, 78px);
    max-height: none;
    right: 8px;
  }
  .icon { width: 78px; }

  .window {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 2px;
  }
  .window .tbtn[data-act="max"] { display: none; }
  .content { padding: 10px; }
  .filelist { grid-template-columns: 1fr; }
  #startmenu { width: calc(100% - 6px); }
  .task { flex-basis: 44px; }
  .task span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition: none !important; }
  .blocks i, #boot .cur { opacity: 1 }
}

.file .meta .star { width: 11px; height: 11px; margin: 0 2px 0 7px; vertical-align: -1px; }
