/* rickyaxel.com: a 1998 desktop. Windows are drawn with the classic
   four-line bevels (box-shadow), icons are pixel art drawn at whole-pixel
   scales (image-rendering: pixelated), and the videos and album windows
   hold pages styled like a 2006 video site. In every language every
   string is drawn whole in one pixel font (fonts.css, generated by
   tools/fontgen/build_fonts.py; the server picks the class): DotGothic16
   (.dot), GNU Unifont (.uni) or a Pixel Brahmic font (.brahmic), all at
   16 px; Pixelify Sans for large type. Right-to-left pages mirror the
   desktop, as Windows did in Arabic and Hebrew. */

:root {
  color-scheme: light;
  --desktop: #008080;
  --face: #c0c0c0;
  --light: #dfdfdf;
  --white: #fff;
  --shadow: #808080;
  --dark: #0a0a0a;
  --navy: #000080;
  --title: linear-gradient(90deg, #000080, #1084d0);
  --title-off: linear-gradient(90deg, #808080, #b5b5b5);
  --dot: "DotGothic16", "RA Unifont", Tahoma, "Segoe UI", sans-serif;
  --uni: "RA Unifont", Tahoma, "Segoe UI", sans-serif;
  --font: var(--dot);
  --font-title: "Pixelify Sans", var(--dot);
  --raised: inset -1px -1px var(--dark), inset 1px 1px var(--white), inset -2px -2px var(--shadow), inset 2px 2px var(--light);
  --pressed: inset -1px -1px var(--white), inset 1px 1px var(--dark), inset -2px -2px var(--light), inset 2px 2px var(--shadow);
  --frame: inset -1px -1px var(--dark), inset 1px 1px var(--light), inset -2px -2px var(--shadow), inset 2px 2px var(--white);
  --field: inset -1px -1px var(--white), inset 1px 1px var(--shadow), inset -2px -2px var(--light), inset 2px 2px var(--dark);
  --status: inset -1px -1px var(--white), inset 1px 1px var(--shadow);
  --taskbar: 40px;
}

[hidden] {
  display: none !important;
}

/* The page's pixel font, and the language menu's for each name. */
.dot {
  --font: var(--dot);
  font-family: var(--font);
}

.uni {
  --font: var(--uni);
  font-family: var(--font);
}

.brahmic {
  --font: var(--brahmic-face), var(--uni);
  font-family: var(--font);
  line-height: var(--brahmic-line);
}

.sys {
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font);
}

/* Brahmic scripts stack marks above and below: their lines are as tall as
   the script needs (fonts.css). */
body.brahmic :is(.title-bar-text, .project-text > span, .desktop-icon, .link-name, .task-button,
  .start-button, .start-menu a, .status-bar span, .button, .welcome p, .address-bar, .dialog-body,
  .menu-title, .language-choose) {
  line-height: var(--brahmic-line);
}

/* Translated large type is in Pixelify Sans only where it has every
   character (.large); names always are. */
body:not(.large) :is(.start-button, .dialog-body h1) {
  font-family: var(--font);
}

html {
  background: var(--desktop);
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--desktop);
  color: #000;
  font: 16px/1.45 var(--font);
  -webkit-text-size-adjust: 100%;
}

img.pixel,
.desktop-icon img,
.title-bar img,
.project img,
.link-art img,
.start-button img,
.task-button img,
.start-menu img,
.welcome-icon,
.yt-from img {
  image-rendering: pixelated;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 1px dotted #000;
  outline-offset: 1px;
}

/* ---- Desktop -------------------------------------------------------- */

.desktop {
  padding-bottom: var(--taskbar);
}

.desktop-icons {
  display: none;
}

@media (min-width: 1240px) {
  .desktop-icons {
    position: fixed;
    top: 16px;
    inset-inline-start: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 88px;
  }
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.desktop-icon span {
  padding: 0 2px;
}

.desktop-icon:hover span,
.desktop-icon:focus-visible span {
  background: var(--navy);
}

.desktop-icon:focus-visible {
  outline: none;
}

.desktop-icon:focus-visible span {
  outline: 1px dotted #fff;
}

.windows {
  display: grid;
  gap: 16px;
  max-width: 940px;
  margin: 0 auto;
  padding: 16px;
}

@media (min-width: 900px) {
  .windows {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
    padding-top: 24px;
  }

  #welcome,
  #videos,
  #album {
    grid-column: 1 / -1;
  }

  #projects {
    grid-row: 2;
  }

  #links {
    grid-row: 2;
    grid-column: 2;
  }

  #videos {
    grid-row: 3;
  }

  #album {
    grid-row: 4;
  }

  .window.maximized {
    grid-column: 1 / -1;
  }

  #links.maximized {
    grid-row: 5;
  }
}

/* ---- Windows -------------------------------------------------------- */

.window {
  min-width: 0;
  padding: 3px;
  background: var(--face);
  box-shadow: var(--frame);
}

.title-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 2px 3px 2px 4px;
  background: var(--title);
  color: #fff;
}

.title-bar-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font: 700 16px/1.2 var(--font);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.title-bar-controls {
  display: flex;
  flex: none;
}

.title-bar-controls button {
  position: relative;
  width: 18px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--face);
  box-shadow: var(--raised);
  cursor: pointer;
}

.title-bar-controls button:active,
.title-bar-controls [aria-pressed="true"] {
  box-shadow: var(--pressed);
}

.title-bar-controls button + button {
  margin-left: 2px;
}

.title-bar-controls [data-action="maximize"] + [data-action="close"] {
  margin-left: 4px;
}

.title-bar-controls button::before {
  content: "";
  position: absolute;
}

[data-action="minimize"]::before {
  left: 5px;
  top: 10px;
  width: 6px;
  height: 2px;
  background: #000;
}

[data-action="maximize"]::before {
  left: 4px;
  top: 3px;
  width: 9px;
  height: 9px;
  box-sizing: border-box;
  border: 1px solid #000;
  border-top-width: 2px;
}

/* An 8 x 7 pixel cross, one shadow per pixel. */
[data-action="close"]::before {
  left: 5px;
  top: 4px;
  width: 1px;
  height: 1px;
  background: #000;
  box-shadow:
    1px 0 #000, 6px 0 #000, 7px 0 #000,
    1px 1px #000, 2px 1px #000, 5px 1px #000, 6px 1px #000,
    2px 2px #000, 3px 2px #000, 4px 2px #000, 5px 2px #000,
    3px 3px #000, 4px 3px #000,
    2px 4px #000, 3px 4px #000, 4px 4px #000, 5px 4px #000,
    1px 5px #000, 2px 5px #000, 5px 5px #000, 6px 5px #000,
    0 6px #000, 1px 6px #000, 6px 6px #000, 7px 6px #000;
}

.window-body {
  margin: 6px 4px 4px;
}

.pane {
  margin: 0;
  padding: 2px;
  list-style: none;
  background: #fff;
  box-shadow: var(--field);
}

.status-bar {
  display: flex;
  gap: 2px;
  margin: 4px 0 0;
  font-size: 14px;
}

.status-bar span {
  flex: 1;
  padding: 1px 6px;
  box-shadow: var(--status);
}

.button {
  display: inline-block;
  min-width: 75px;
  padding: 6px 18px;
  background: var(--face);
  box-shadow: var(--raised);
  color: #000;
  font: inherit;
  text-align: center;
  text-decoration: none;
}

.button:active {
  box-shadow: var(--pressed);
}

.button:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -5px;
}

/* ---- Welcome -------------------------------------------------------- */

.welcome {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 12px;
}

.welcome-icon {
  flex: none;
  width: 64px;
  height: 64px;
}

.welcome h1 {
  margin: 0 0 4px;
  font: 700 clamp(30px, 6vw, 44px)/1.05 var(--font-title);
  letter-spacing: 0.01em;
}

.welcome p {
  margin: 0;
}

.welcome-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 0 auto;
}

.welcome > div {
  flex: 1 1 220px;
  min-width: 0;
}

@media (max-width: 640px) {
  .welcome {
    flex-wrap: wrap;
    gap: 14px 16px;
  }

  .welcome-buttons {
    flex-basis: 100%;
    flex-wrap: nowrap;
    margin: 0;
  }

  .welcome-buttons .button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 6px;
  }
}

/* ---- Projects ------------------------------------------------------- */

.project {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 8px;
  color: #000;
  text-decoration: none;
}

.project img {
  width: 64px;
  height: 64px;
}

.project strong {
  display: block;
  font: 700 18px/1.2 var(--font-title);
}

.project-text > span {
  display: block;
  line-height: 1.35;
}

.project .address {
  margin-top: 2px;
  color: #555;
  font-size: 14px;
}

.project:hover,
.project:focus-visible {
  background: var(--navy);
  color: #fff;
}

.project:hover .address,
.project:focus-visible .address {
  color: #c0c0ff;
}

.project:focus-visible {
  outline: 1px dotted #fff;
  outline-offset: -2px;
}

/* ---- Links ---------------------------------------------------------- */

.links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px 4px;
  padding: 12px 6px;
}

.link-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 2px;
  color: #000;
  text-align: center;
  text-decoration: none;
}

.link-art {
  position: relative;
  width: 64px;
  height: 64px;
}

.link-art img {
  display: block;
  width: 64px;
  height: 64px;
}

.link-art .shortcut-arrow {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
}

.link-name {
  padding: 0 3px;
  font-size: 15px;
  line-height: 1.25;
}

.link-handle {
  color: #555;
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.link-icon:hover .link-name,
.link-icon:focus-visible .link-name {
  background: var(--navy);
  color: #fff;
}

.link-icon:focus-visible {
  outline: none;
}

.link-icon:focus-visible .link-name {
  outline: 1px dotted #000;
  outline-offset: 1px;
}

/* ---- The videos window: a browser on a 2006 video page --------------- */

.address-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 15px;
}

.address-bar .field {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 3px 6px;
  background: #fff;
  box-shadow: var(--field);
  color: #000;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-page {
  padding: 14px;
  background: #fff;
  box-shadow: var(--field);
}

.yt {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  color: #000;
  font: 13px/1.35 Arial, Helvetica, sans-serif;
}

.window.maximized .yt {
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
}

@media (max-width: 760px) {
  .yt,
  .window.maximized .yt {
    grid-template-columns: minmax(0, 1fr);
  }
}

.yt a {
  color: #03c;
}

.yt-title {
  margin: 0 0 8px;
  font: bold 18px/1.25 Arial, Helvetica, sans-serif;
}

.yt-player {
  border: 1px solid #999;
  background: #000;
}

.yt-screen,
.yt-frame {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  background: #000;
}

.yt-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 54px;
  margin: -27px 0 0 -38px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
}

.yt-play::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 13px;
  border-left: 22px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}

.yt-screen:hover .yt-play,
.yt-screen:focus-visible .yt-play {
  border-color: #fff;
  background: #c00;
}

.yt-screen:focus-visible {
  outline: 2px solid #03c;
  outline-offset: 2px;
}

.yt-player.playing .yt-controls {
  display: none;
}

.yt-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 8px;
  border-top: 1px solid #888;
  background: linear-gradient(#f8f8f8, #d4d4d4 55%, #c2c2c2);
  color: #333;
  font: 11px/1 Arial, Helvetica, sans-serif;
}

.yt-btn {
  position: relative;
  flex: none;
  width: 14px;
  height: 12px;
}

.yt-btn-play::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  border-left: 10px solid #444;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.yt-track {
  position: relative;
  flex: 1;
  height: 6px;
  border: 1px solid #999;
  background: #eee;
}

.yt-knob {
  position: absolute;
  left: -2px;
  top: -4px;
  width: 6px;
  height: 12px;
  border: 1px solid #777;
  border-radius: 2px;
  background: linear-gradient(#fff, #ccc);
}

.yt-time {
  flex: none;
  white-space: nowrap;
}

.yt-btn-volume::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  width: 3px;
  height: 4px;
  background: #444;
}

.yt-btn-volume::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 0;
  border-right: 7px solid #444;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.yt-btn-full::before {
  content: "";
  position: absolute;
  inset: 1px 0;
  border: 2px solid #444;
}

.yt-watch {
  margin: 8px 0 0;
  font-size: 12px;
}

.yt-box {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #eee;
  font-size: 12px;
}

.yt-box p {
  margin: 0 0 6px;
}

.yt-box p:empty {
  display: none;
}

.yt-from {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.yt-from img {
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid #999;
}

.yt-subscribe {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 9px;
  border: 1px solid #d79f00;
  border-radius: 3px;
  background: linear-gradient(#fff6b5, #ffd31a);
  color: #000 !important;
  font-weight: bold;
  text-decoration: none;
}

.yt-subscribe:hover {
  background: linear-gradient(#fffbd9, #ffdc4a);
}

.yt-share {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  margin-top: 6px;
  font-weight: bold;
}

.yt-share input {
  min-width: 0;
  padding: 2px 3px;
  border: 1px solid #999;
  background: #fff;
  color: #333;
  font: 11px Arial, Helvetica, sans-serif;
}

.yt-more h4 {
  margin: 0 0 8px;
  color: #333;
  font-size: 13px;
}

.yt-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yt-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #666 !important;
  font-size: 11px;
  text-decoration: none;
}

.yt-item img {
  display: block;
  width: 120px;
  height: 90px;
  box-sizing: border-box;
  border: 1px solid #999;
  padding: 1px;
  background: #fff;
  object-fit: cover;
}

.yt-item-text > span {
  display: block;
}

.yt-item-title {
  margin-bottom: 3px;
  color: #03c;
  font-size: 12px;
  font-weight: bold;
}

.yt-item:hover .yt-item-title {
  text-decoration: underline;
}

.yt-item[aria-current="true"] {
  border-color: #e6cf5c;
  background: #ffc;
}

/* ---- The album window: its video as on the videos page, then the
   streaming services' players under an etched line, side by side where
   they fit (as asmr.education's home page lays them out) -------------- */

.album-music {
  /* Apple Music's player cuts off its buttons below 450 px; Spotify's
     fits any height. */
  --album-player: 450px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--shadow);
  box-shadow: inset 0 1px var(--white);
}

/* Windows' etched line between the players: across them when they are
   stacked, between them when they are side by side. */
.etch {
  border-top: 1px solid var(--shadow);
  border-bottom: 1px solid var(--white);
}

@media (min-width: 761px) {
  /* The album's video leads the window, as on asmr.education: at the size
     the videos window plays at maximized. */
  #album .yt {
    grid-template-columns: minmax(0, 640px) minmax(200px, 1fr);
  }

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

  .etch {
    border: 0;
    border-left: 1px solid var(--shadow);
    border-right: 1px solid var(--white);
  }
}

/* A sunken pane holding a player; until it loads (and without the
   script) a shortcut to the album on that service. */
.album-pane {
  position: relative;
  display: grid;
  place-items: center;
  height: calc(var(--album-player) + 4px);
  background: #fff;
  box-shadow: var(--field);
}

.album-link {
  width: 160px;
}

.album-embed {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(100% - 4px);
  height: var(--album-player);
  border: 0;
}

/* ---- Taskbar and Start menu ---------------------------------------- */

.taskbar {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: var(--taskbar);
  box-sizing: border-box;
  padding: 4px 3px 3px;
  background: var(--face);
  box-shadow: inset 0 1px var(--light), inset 0 2px var(--white);
}

.start-button,
.task-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px 0 6px;
  border: 0;
  border-radius: 0;
  background: var(--face);
  box-shadow: var(--raised);
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.start-button {
  flex: none;
  font: 700 17px/1 var(--font-title);
}

.start-button img {
  width: 16px;
  height: 16px;
}

body:has(.start-menu:popover-open) .start-button,
.start-button:active {
  box-shadow: var(--pressed);
}

.task-buttons {
  display: flex;
  flex: 1;
  gap: 3px;
  min-width: 0;
  padding-left: 4px;
  border-left: 1px solid var(--shadow);
  box-shadow: inset 1px 0 var(--white);
}

.task-button {
  flex: 0 1 150px;
  min-width: 0;
  font-size: 14px;
}

.task-button span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.task-button.open {
  box-shadow: var(--pressed);
  background: repeating-conic-gradient(var(--white) 0 25%, var(--face) 0 50%) 0 0 / 2px 2px;
}

@media (max-width: 560px) {
  .task-button span {
    display: none;
  }

  .task-button {
    flex: none;
    padding: 0 6px;
  }
}

.tray {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 0 8px;
  box-shadow: var(--status);
  font-size: 14px;
  white-space: nowrap;
}

/* The language indicator, like Windows' language bar: the button opens
   the menu where popovers work; elsewhere the link goes to /language. */
.tray-lang {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: #000;
  font: 14px var(--dot);
  text-decoration: none;
  cursor: pointer;
}

.tray-lang img {
  image-rendering: pixelated;
}

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

@supports selector(:popover-open) {
  .tray-lang-link {
    display: none;
  }

  .tray-lang-button {
    display: flex;
  }
}

body:has(.language-menu:popover-open) .tray-lang-button {
  box-shadow: var(--pressed);
}

.menu {
  position: fixed;
  inset: auto;
  bottom: calc(var(--taskbar) - 2px);
  margin: 0;
  padding: 3px;
  border: 0;
  background: var(--face);
  box-shadow: var(--frame);
  color: #000;
}

.start-menu {
  inset-inline-start: 2px;
}

.language-menu {
  inset-inline-end: 2px;
  width: min(380px, calc(100vw - 4px));
  max-height: min(75vh, 640px);
  overflow-y: auto;
}

.language-menu:popover-open {
  display: block;
}

.menu-title {
  margin: 0 0 2px;
  padding: 3px 6px;
  background: var(--title);
  color: #fff;
  font-weight: 700;
}

.langs {
  margin: 0;
  padding: 2px 0;
  list-style: none;
}

.langs a {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  padding: 4px 8px;
  padding-inline-start: 26px;
  color: #000;
  text-decoration: none;
}

.langs a:hover,
.langs a:focus-visible {
  background: var(--navy);
  color: #fff;
  outline: none;
}

.langs .english {
  color: #555;
  font-size: 14px;
}

.langs a:hover .english,
.langs a:focus-visible .english {
  color: #c0c0ff;
}

/* A 7 x 7 pixel check, as Windows' menus mark the chosen item. */
.langs a[aria-current="true"]::before {
  content: "";
  position: absolute;
  inset-inline-start: 9px;
  top: calc(50% - 3px);
  width: 1px;
  height: 1px;
  background: currentColor;
  box-shadow:
    6px 0 currentColor, 5px 1px currentColor, 6px 1px currentColor,
    4px 2px currentColor, 5px 2px currentColor, 0 3px currentColor, 3px 3px currentColor, 4px 3px currentColor,
    0 4px currentColor, 1px 4px currentColor, 2px 4px currentColor, 3px 4px currentColor,
    1px 5px currentColor, 2px 5px currentColor, 2px 6px currentColor;
}

.langs .separator,
.start-menu .separator {
  margin: 3px 2px;
  border-top: 1px solid var(--shadow);
  border-bottom: 1px solid var(--white);
}

.langs .pending,
.legend {
  color: #555;
}

.legend {
  margin: 4px 8px;
  font-size: 14px;
}

/* The language page: the same list, in columns. */
.language-page {
  width: min(760px, 100%);
}

.language-choose {
  margin: 4px 4px 8px;
}

.menu-pane {
  max-height: 60vh;
  overflow-y: auto;
}

.menu-pane .langs {
  columns: 2 300px;
}

.menu-pane .langs li {
  break-inside: avoid;
}

.dialog-buttons {
  margin: 10px 0 2px;
  text-align: center;
}

.start-menu:popover-open {
  display: flex;
}

.start-menu a .name {
  direction: ltr;
}

.start-banner {
  margin: 0;
  padding: 8px 5px;
  background: linear-gradient(0deg, #000080, #1084d0);
  color: var(--face);
  font: 700 22px/1 var(--font-title);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.start-banner b {
  color: #fff;
}

.start-menu ul {
  min-width: 220px;
  margin: 0;
  padding: 2px 0;
  list-style: none;
}

.start-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 6px;
  color: #000;
  text-decoration: none;
}

.start-menu a:hover,
.start-menu a:focus-visible {
  background: var(--navy);
  color: #fff;
  outline: none;
}

.start-menu img {
  width: 32px;
  height: 32px;
}


/* ---- Dialogs (the not-found page) ----------------------------------- */

.dialog-desktop {
  display: grid;
  place-items: center;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 16px;
}

.dialog {
  width: min(440px, 100%);
}

.dialog-body {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 12px 16px;
  padding: 12px 8px 6px;
}

.dialog-body h1 {
  margin: 0 0 4px;
  font: 700 20px/1.2 var(--font-title);
}

.dialog-body p {
  margin: 0;
}

.dialog-body .button {
  grid-column: 1 / -1;
  justify-self: center;
}

.error-icon {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f00;
  box-shadow: 1px 1px 0 #000;
}

.error-icon::before,
.error-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 14px;
  width: 18px;
  height: 4px;
  background: #fff;
  transform: rotate(45deg);
}

.error-icon::after {
  transform: rotate(-45deg);
}

@media (pointer: coarse) {
  .title-bar-controls button {
    width: 26px;
    height: 22px;
  }

  [data-action="minimize"]::before {
    left: 10px;
    top: 14px;
  }

  [data-action="maximize"]::before {
    left: 8px;
    top: 6px;
  }

  [data-action="close"]::before {
    left: 9px;
    top: 7px;
  }
}
