/* Chicago95: flat silver surfaces, navy selections, and two-pixel raised edges.
   Original icon artwork and attribution live in desktop/chicago95/. */
:root {
  --ink: #000;
  --muted: #565656;
  --paper: #fff;
  --chrome: #c0c0c0;
  --title: #000080;
  --desktop: #008080;
  --line: #808080;
  --light: #fff;
  --shadow: #808080;
  --font: Tahoma, "Liberation Sans", Arial, sans-serif;
  --mono: "Liberation Mono", "Courier New", monospace;
  --raised: inset 1px 1px #fff, inset -1px -1px #808080;
  --sunken: inset 1px 1px #808080, inset -1px -1px #fff;
  --cursor: url("../cursors/satanic.918fdbb2d1a8.cur") 14 0;
  color-scheme: light;
  font-size: 12px;
}
body {
  background: #000;
  cursor: var(--cursor), default;
}
button,
a,
summary {
  cursor: var(--cursor), pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 1px dotted currentColor;
  outline-offset: -3px;
}
::selection {
  background: #000080;
  color: #fff;
}
.pixel-icon {
  image-rendering: pixelated;
}

/* No monitor casing: the desktop and panel meet the viewport edges. */
.computer-case {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
}
.screen {
  border: 0;
  outline: 0;
}
.desktop-shortcuts {
  top: 14px;
  left: 8px;
  grid-auto-columns: 88px;
  grid-template-rows: repeat(7, 78px);
  gap: 2px 6px;
}
.desktop-shortcut {
  width: 88px;
  height: 76px;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 0;
}
.desktop-shortcut .pixel-icon {
  width: 32px;
  height: 32px;
  filter: none;
}
.desktop-shortcut > span {
  padding: 2px;
  font: 11px var(--font);
  color: #fff;
  text-shadow: 1px 1px #000;
}
.desktop-shortcut:hover {
  background: transparent;
  border-color: transparent;
}
.desktop-shortcut:focus-visible {
  background: transparent;
  outline: none;
}
.desktop-shortcut:focus-visible > span {
  background: #000080;
  outline: 1px dotted #fff;
  text-shadow: none;
}

/* Standard application chrome. The two freeform media skins keep their geometry. */
.app-window:not([data-freeform]) {
  background: #c0c0c0;
  padding: 3px;
  border: 1px solid #000;
  box-shadow: var(--raised);
}
.app-window:focus {
  outline: none;
}
.window-titlebar {
  height: 22px;
  flex-basis: 22px;
  padding: 2px 2px 2px 3px;
  gap: 4px;
  background: #808080;
  color: #c0c0c0;
  border: 0;
}
.app-window.is-active .window-titlebar {
  background: #000080;
  color: #fff;
}
.window-title {
  font: bold 11px var(--font);
  letter-spacing: 0;
}
.window-title-icon .pixel-icon {
  width: 16px;
  height: 16px;
}
.window-controls {
  gap: 2px;
}
.window-controls button {
  width: 17px;
  height: 16px;
  background: #c0c0c0;
  color: #000;
  border: 1px solid #000;
  box-shadow: var(--raised);
  font:
    bold 16px/1 Arial,
    sans-serif;
}
.window-controls button:hover {
  background: #c0c0c0;
}
.window-controls button:active {
  box-shadow: var(--sunken);
  transform: none;
}
.window-controls button:last-child {
  margin-left: 2px;
}
.maximize-symbol {
  border-color: #000;
}
.window-body {
  background: #c0c0c0;
}
.window-menu,
.app-toolbar {
  background: #c0c0c0;
  color: #000;
}
.window-status {
  padding: 4px 7px;
  color: #000;
  font: 11px var(--font);
  border: 0;
  box-shadow: var(--sunken);
}
.resize-handle {
  background: repeating-linear-gradient(
    135deg,
    transparent 0 2px,
    #808080 2px 3px,
    #fff 3px 4px
  );
}

/* A separate grip scales freeform artwork without adding a window frame. */
.app-window[data-freeform] .skin-resize-handle {
  right: 0;
  bottom: 0;
  width: 28px;
  height: 28px;
  clip-path: none;
  background: transparent;
  pointer-events: auto;
}
.skin-resize-handle::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 3px,
    #808080 3px 4px,
    #fff 4px 5px
  );
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.app-window[data-skin="headspace"] .skin-resize-handle {
  right: auto;
  left: calc(53% - 14px);
}
.app-window[data-freeform] .skin-resize-handle:focus-visible {
  outline: 1px dotted #fff;
  outline-offset: -2px;
}
.app-window.is-resizing .headspace-stage {
  transition: none;
}
.retro-button {
  padding: 6px 14px;
  min-height: 25px;
  border-color: #000;
  background: #c0c0c0;
  color: #000;
  box-shadow: var(--raised);
}
.retro-button:hover {
  background: #c0c0c0;
}
.retro-button:active {
  box-shadow: var(--sunken);
  transform: none;
}

/* Explorer: menu, navigation bar, editable path, directory tree and file pane. */
.window-body > .file-manager {
  flex: 1 1 0;
  min-height: 0;
}
.file-manager {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font: 12px var(--font);
}
.file-menubar {
  display: flex;
  gap: 1px;
  padding: 2px 0;
}
.file-menubar button {
  padding: 3px 8px;
  border: 0;
  background: transparent;
}
.file-menubar button:hover,
.file-menubar button[aria-pressed="true"] {
  background: #000080;
  color: #fff;
}
.file-toolbar {
  display: flex;
  gap: 2px;
  padding: 4px 3px;
  border-top: 1px solid #808080;
  box-shadow: inset 0 1px #fff;
}
.file-toolbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 51px;
  padding: 3px 6px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 11px;
}
.file-toolbar button:hover:not(:disabled) {
  border-color: #fff #808080 #808080 #fff;
}
.file-toolbar button:active:not(:disabled) {
  border-color: #808080 #fff #fff #808080;
}
.file-toolbar button > span {
  height: 24px;
  font:
    bold 26px/24px Arial,
    sans-serif;
  color: #000080;
}
.file-toolbar .pixel-icon {
  width: 24px;
  height: 24px;
}
.file-toolbar-separator {
  border-left: 1px solid #808080;
  border-right: 1px solid #fff;
  margin: 2px 5px;
}
.file-address {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 4px 5px;
}
.file-address label {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}
.file-address input {
  flex: 1;
  min-width: 0;
  height: 24px;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px #000;
  background: #fff;
  color: #000;
  padding: 3px 5px;
  font: 12px var(--font);
}
.file-address button {
  height: 24px;
  padding: 0 9px;
  border: 1px solid #000;
  background: #c0c0c0;
  box-shadow: var(--raised);
}
.file-panes {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 5px;
  padding: 0 1px 4px;
}
.file-sidebar,
.file-directory {
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px #000;
  background: #fff;
}
.file-sidebar {
  width: 166px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.file-sidebar-title {
  padding: 4px 6px;
  border-bottom: 1px solid #808080;
  background: #c0c0c0;
}
.file-sidebar nav {
  flex: 1;
  overflow: auto;
  padding: 4px 2px;
}
.file-sidebar button {
  display: flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  min-width: 100%;
  padding: 3px 5px 3px calc(5px + var(--depth) * 12px);
  border: 0;
  color: #000;
  background: #fff;
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
}
.file-sidebar .pixel-icon {
  width: 16px;
  height: 16px;
}
.file-sidebar [aria-current="location"] {
  color: #fff;
  background: #000080;
}

/* The entire disclosure scrolls with its folder, including its square border. */
.file-sidebar .directory-tree-row {
  gap: 4px;
  min-height: 25px;
  padding: 1px 5px 1px calc(2px + var(--depth) * 15px);
}
.tree-disclosure {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 22px;
  height: 23px;
  font: bold 13px var(--mono);
}
.tree-disclosure-icon {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  line-height: 1;
}
.tree-disclosure[data-tree-toggle]:hover {
  background: #80808040;
}
.file-directory {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 2px;
}
.file-entries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  align-content: start;
  gap: 8px 2px;
  padding: 10px 6px;
}
.file-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: #000;
  font: 11px var(--font);
}
.file-entry .pixel-icon {
  width: 32px;
  height: 32px;
}
.file-entry img {
  width: 64px;
  height: 54px;
  object-fit: contain;
}
.file-entry-name {
  padding: 1px 2px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.file-entry[aria-pressed="true"] .file-entry-name {
  background: #000080;
  color: #fff;
  outline: 1px dotted #fff;
  outline-offset: -1px;
}
.file-entry-type {
  display: none;
}
.file-empty {
  margin: 22px 12px;
  text-align: center;
  color: #565656;
  font-size: 12px;
}
.file-status {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 23px;
  padding: 1px 15px 1px 1px;
  font: 11px var(--font);
  background: #c0c0c0;
}
.file-status > span {
  padding: 3px 5px;
  box-shadow: var(--sunken);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-status > span:first-child {
  flex: 1;
}
.file-status > span:last-child {
  max-width: 65%;
}
.file-details .file-entries {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.file-details .file-entry {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 95px;
  text-align: left;
  padding: 2px 3px;
  min-height: 24px;
  gap: 3px;
}
.file-details .file-entry .pixel-icon,
.file-details .file-entry img {
  width: 16px;
  height: 16px;
}
.file-details .file-entry-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-details .file-entry-type {
  display: block;
  color: #565656;
}
.file-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 99px;
  position: sticky;
  top: -2px;
  background: #c0c0c0;
}
.file-detail-head span {
  padding: 3px 6px;
  box-shadow: var(--raised);
  border: 1px solid #808080;
  font-size: 11px;
}

/* Image and text viewers use the same window controls as Explorer. */
.file-source-toolbar {
  flex-shrink: 0;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--chrome);
  color: var(--ink);
}
.file-source-toolbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.window-body > .file-preview {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid #808080;
}
.file-preview pre {
  margin: 0;
  padding: 14px;
  font: 13px/1.6 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}
.file-image-stage {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #808080;
}
.file-image-stage img {
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
}
.file-image-stage [data-file-error] {
  margin: 0;
  max-width: 36ch;
  text-align: center;
  color: #fff;
  font: 12px/1.5 var(--font);
}
.file-image-stage:focus-visible {
  outline: 1px dotted #fff;
  outline-offset: -4px;
}
.image-toolbar {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 5px;
  padding: 4px;
  border-bottom: 1px solid #808080;
}
.image-toolbar .retro-button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
}
.image-toolbar .pixel-icon {
  width: 16px;
  height: 16px;
}
.image-toolbar output {
  margin-left: auto;
  white-space: nowrap;
  font: 11px var(--mono);
  padding: 4px;
}
.file-preview > p {
  padding: 12px;
}

/* Classic panel, task buttons and launcher. */
.taskbar {
  height: 32px;
  flex-basis: 32px;
  padding: 3px;
  gap: 4px;
  background: #c0c0c0;
  border-top: 1px solid #fff;
  box-shadow: 0 -1px #c0c0c0;
}
.start-button,
.taskbar-app {
  height: 25px;
  background: #c0c0c0;
  color: #000;
  border: 1px solid #000;
  box-shadow: var(--raised);
  font-family: var(--font);
}
.start-button {
  padding: 1px 6px 1px 3px;
  gap: 4px;
  font-size: 12px;
}
.start-button .pixel-icon {
  width: 20px;
  height: 20px;
}
.start-button[aria-expanded="true"],
.taskbar-app[aria-pressed="true"] {
  color: #000;
  background: #ddd;
  box-shadow: var(--sunken);
}
.taskbar-app {
  width: 160px;
  flex-basis: 160px;
  padding: 2px 5px;
  gap: 4px;
}
.taskbar-app > span {
  font-size: 11px;
}
.taskbar-app .pixel-icon,
.show-desktop .pixel-icon {
  width: 16px;
  height: 16px;
}
.taskbar-divider {
  height: 23px;
  margin: 0 1px;
}
.system-tray {
  height: 25px;
  gap: 6px;
  padding-right: 6px;
  background: #c0c0c0;
}
.system-tray button {
  color: #000;
}
.system-tray time {
  font: 11px var(--font);
}
.start-menu {
  width: 425px;
  max-width: 100%;
  background: #c0c0c0;
  color: #000;
  border-color: #000;
  box-shadow: var(--raised);
  max-height: 100%;
  overflow: auto;
}
.start-menu-brand {
  background: #808080;
  color: #c0c0c0;
  font: bold 22px var(--font);
}
.start-menu-brand > span {
  color: #fff;
}
.start-menu-content {
  padding: 2px;
  min-width: 0;
}
.start-menu-content header {
  padding: 8px;
  border-bottom: 1px solid #808080;
}
.start-menu-content header span {
  margin-top: 3px;
  color: #333;
}
.start-menu-content > button {
  min-height: 39px;
  padding: 5px 8px;
}
.start-menu-content .pixel-icon {
  width: 32px;
  height: 32px;
}
.start-menu-content > button:hover,
.start-menu-content > button:focus-visible {
  background: #000080;
  color: #fff;
}
.menu-arrow {
  color: inherit;
}
.menu-divider {
  border-color: #808080;
  box-shadow: 0 1px #fff;
}

/* Pinned launchers are independent of the running-window buttons. */
.panel-launchers {
  display: flex;
  flex: 0 0 auto;
  gap: 1px;
}
.panel-launchers button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 25px;
  padding: 3px;
  border: 0;
  color: #000;
  background: transparent;
}
.panel-launchers .pixel-icon {
  width: 20px;
  height: 20px;
}
.panel-launchers button:hover,
.panel-launchers button:focus-visible {
  box-shadow: var(--raised);
}
.panel-launchers button:active {
  box-shadow: var(--sunken);
}

/* A category column keeps filesystem places separate from installed programs. */
.launcher-browser {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 181px;
  margin-top: 4px;
}
.launcher-categories {
  border-right: 1px solid #808080;
  padding-right: 3px;
}
.launcher-browser button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 6px;
  gap: 6px;
  text-align: left;
  color: #000;
  background: transparent;
  border: 0;
  font: 11px var(--font);
}
.launcher-browser button > span:not(.menu-arrow) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.launcher-categories .pixel-icon {
  width: 20px;
  height: 20px;
}
.launcher-browser button:hover,
.launcher-browser button:focus-visible,
.launcher-categories [aria-selected="true"] {
  color: #fff;
  background: #000080;
}
.launcher-panels {
  padding-left: 4px;
  box-shadow: -1px 0 #fff;
}
.launcher-panels h2 {
  margin: 0;
  padding: 4px 6px;
  color: #444;
  font: bold 11px var(--font);
}
.toast {
  bottom: 44px;
  background: #ffffe1;
  color: #000;
  border: 1px solid #000;
  box-shadow: 2px 2px #0005;
  font: 12px var(--font);
}

/* Control Panel checkboxes, terminal and finite prank dialogs. */
.settings-content {
  padding: 18px;
}
.section-heading h2 {
  font: bold 17px var(--font);
}
.eyebrow {
  color: #565656;
  font: 10px var(--font);
  letter-spacing: 0;
}
.setting-row {
  gap: 10px;
  border-color: #808080;
  box-shadow: 0 1px #fff;
}
.skin-setting select {
  color: #000;
  background: #fff;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px #000;
  font: 11px var(--font);
}
.wallpaper-choices input {
  accent-color: #000080;
}
.wallpaper-choices input:checked + .wallpaper-swatch {
  border-color: #000080;
  outline-color: #808080;
}
.switch {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.switch > span {
  display: none;
}
.switch input {
  opacity: 1;
  appearance: none;
  background: #fff;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px #000;
}
.switch input:checked::after {
  content: "✓";
  display: block;
  font:
    bold 14px/14px Arial,
    sans-serif;
  text-align: center;
  color: #000;
}
.icon-credit {
  color: #565656;
  font: 10px/1.6 var(--font);
}
.terminal-content {
  background: #000;
  color: #c0c0c0;
  font-family: var(--mono);
}
.window-body > .terminal-content {
  flex: 1 1 0;
  min-height: 0;
}
.terminal-command,
.terminal-form label {
  color: #c0c0c0;
}
.terminal-form input {
  color: #fff;
  min-width: 0;
}
.prank-terminal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.prank-output {
  flex: 1;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prank-message {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 14px;
  background: #c0c0c0;
  color: #000;
}
.prank-message > .pixel-icon {
  width: 32px;
  height: 32px;
}
.prank-message p {
  margin: 0;
  font: bold clamp(11px, 1.1vw, 16px) var(--mono);
  overflow-wrap: anywhere;
  text-align: center;
}
.prank-popup-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.prank-popup-actions .retro-button {
  min-width: 75px;
}

/* Native-size scrollbars retain the checkerboard trough of the original theme. */
.file-manager ::-webkit-scrollbar,
.window-body::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}
.file-manager ::-webkit-scrollbar-track,
.window-body::-webkit-scrollbar-track {
  background: repeating-conic-gradient(#fff 0% 25%, #c0c0c0 0% 50%) 0 0 / 2px
    2px;
}
.file-manager ::-webkit-scrollbar-thumb,
.window-body::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border: 1px solid #808080;
  box-shadow: var(--raised);
}
.file-manager ::-webkit-scrollbar-corner {
  background: #c0c0c0;
}

@media (max-height: 600px) and (min-width: 701px) {
  .desktop-shortcuts {
    grid-template-rows: repeat(5, 76px);
  }
}
@media (max-width: 700px) {
  .desktop-shortcuts {
    left: 8px;
    right: 8px;
    top: 12px;
    grid-template-rows: none;
    grid-auto-columns: auto;
    gap: 12px 3px;
  }
  .desktop-shortcut {
    width: 100%;
    height: 78px;
  }
  .window-titlebar {
    height: 33px;
    flex-basis: 33px;
  }
  .window-controls button {
    width: 28px;
    height: 27px;
  }
  .file-sidebar {
    display: none;
  }
  .file-toolbar button {
    min-width: 46px;
  }
  .file-menubar button {
    padding: 7px 8px;
  }
  .file-address input,
  .file-address button {
    height: 30px;
  }
  .file-entries {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  }
  .file-status > span:last-child {
    display: none;
  }
  .taskbar {
    height: 40px;
    flex-basis: 40px;
  }
  .start-button,
  .taskbar-app,
  .system-tray {
    height: 32px;
  }
  .taskbar-app {
    min-width: 34px;
    flex-basis: 34px;
  }
  .system-tray {
    gap: 3px;
  }
  .system-tray button {
    display: none;
  }
  .panel-launchers button {
    width: 28px;
    height: 32px;
  }
  .start-menu-brand {
    display: none;
  }
  .launcher-browser {
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 193px;
  }
  .launcher-browser button {
    min-height: 44px;
  }
  .launcher-panels .pixel-icon {
    width: 24px;
    height: 24px;
  }
  .terminal-form {
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* Solid desktop backgrounds share their colors with the Control Panel swatches. */
body[data-wallpaper="black"],
.swatch-black {
  --wallpaper-color: #000000;
}
body[data-wallpaper="charcoal"],
.swatch-charcoal {
  --wallpaper-color: #262626;
}
body[data-wallpaper="teal"],
.swatch-teal {
  --wallpaper-color: #008080;
}
body[data-wallpaper="navy"],
.swatch-navy {
  --wallpaper-color: #000040;
}
body[data-wallpaper="burgundy"],
.swatch-burgundy {
  --wallpaper-color: #400020;
}
body[data-wallpaper="plum"],
.swatch-plum {
  --wallpaper-color: #302040;
}
body:not([data-wallpaper="classic"]) .wallpaper-art,
.wallpaper-swatch:not(.swatch-classic) {
  background: var(--wallpaper-color, #000);
}
.wallpaper-choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.wallpaper-swatch {
  height: 52px;
  margin-bottom: 5px;
}

/* Icons occupy the workspace independently; their order in keyboard navigation stays stable. */
.desktop-shortcuts.icons-positioned {
  inset: 0;
  display: block;
  pointer-events: none;
}
.desktop-shortcuts.icons-positioned .desktop-shortcut {
  position: absolute;
  width: var(--desktop-icon-width, 104px);
  height: 80px;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.desktop-shortcuts.icons-positioned .desktop-shortcut > span {
  max-width: 100%;
  white-space: normal;
  line-height: 1.2;
}
.desktop-shortcut.is-dragging {
  z-index: 2;
  opacity: 0.8;
  cursor: grabbing;
}
.desktop-shortcut.is-dragging > span {
  background: #000080;
}

/* Keep the music emoji visible on Linux installations without an emoji font. */
.music-emoji {
  display: inline-block;
  overflow: hidden;
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  font-size: 0;
  text-shadow: none;
  background: url("../icons/music-emoji.1d0c15c50445.svg") center / contain no-repeat;
}

/* The arcade keeps classic window chrome around a fixed-resolution cave. */
.layout-options {
  margin: 14px 0;
}
.layout-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
}
.helicopter-game {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  background: #c0c0c0;
  color: #000;
}
.flight-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px;
  flex-shrink: 0;
}
.flight-scores,
.flight-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.flight-scores > span {
  padding: 5px 7px;
  box-shadow: var(--sunken);
  font: 11px var(--font);
}
.flight-scores output {
  display: inline-block;
  min-width: 5ch;
  text-align: right;
  font: bold 12px var(--mono);
  font-variant-numeric: tabular-nums;
}
.flight-stage {
  display: flex;
  flex: 1 1 auto;
  min-height: 146px;
  margin: 0 5px;
  padding: 2px;
  box-shadow: var(--sunken);
  background: #050905;
}
.flight-screen {
  position: relative;
  flex: 1;
  min-width: 0;
}
.flight-screen canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: contain;
  image-rendering: pixelated;
  touch-action: none;
}
.flight-screen canvas:focus-visible {
  outline: 1px dotted #e6e5bb;
  outline-offset: -3px;
}
.flight-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #050905c9;
  color: #e6e5bb;
  text-align: center;
}
.flight-overlay h2 {
  margin: 0 0 8px;
  font: bold clamp(18px, 3vw, 28px) var(--mono);
  letter-spacing: 2px;
}
.flight-overlay p {
  max-width: 40ch;
  margin: 0 0 12px;
  font: 12px/1.4 var(--mono);
}
.flight-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 8px;
  padding: 8px;
}
.flight-controls p {
  margin: 0;
  font: 11px/1.7 var(--font);
}
.flight-controls kbd {
  font: bold 11px var(--mono);
}
.flight-thrust {
  min-height: 42px;
  flex-shrink: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.flight-thrust[aria-pressed="true"] {
  box-shadow: var(--sunken);
  background: #aaa;
}
.flight-status {
  flex-shrink: 0;
  margin: 0 3px 3px;
  padding: 4px 6px;
  box-shadow: var(--sunken);
  font: 11px/1.3 var(--font);
}
@media (max-width: 700px) {
  .flight-toolbar .retro-button {
    min-height: 32px;
  }
  .flight-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .flight-controls p {
    text-align: center;
  }
}

/* Local arcade cabinets use the same chrome as ordinary Chicago95 programs. */
.arcade-game {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  color: #000;
  background: #c0c0c0;
}
.arcade-toolbar,
.arcade-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 6px;
  padding: 6px;
}
.arcade-scores,
.arcade-actions,
.paddle-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.arcade-scores > span {
  padding: 5px 7px;
  box-shadow: var(--sunken);
  font: 11px var(--font);
}
.arcade-scores output {
  display: inline-block;
  min-width: 3ch;
  text-align: right;
  font: bold 13px var(--mono);
  font-variant-numeric: tabular-nums;
}
.arcade-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 160px;
  margin: 0 5px;
  box-shadow: var(--sunken);
  background: #081d24;
}
.snake-game .arcade-stage {
  background: #101a13;
}
.arcade-stage canvas {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: contain;
  image-rendering: pixelated;
  touch-action: none;
}
.arcade-stage canvas:focus-visible {
  outline: 1px dotted #c7d6a6;
  outline-offset: -3px;
}
.arcade-overlay {
  position: absolute;
  inset: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #081d24e8;
  color: #e5e6d2;
  text-align: center;
}
.snake-game .arcade-overlay {
  background: #17251ce8;
  color: #c7d6a6;
}
.arcade-overlay h2 {
  margin: 0 0 8px;
  font: bold clamp(18px, 3vw, 28px) var(--mono);
  letter-spacing: 2px;
}
.arcade-overlay p {
  max-width: 34ch;
  margin: 0 0 12px;
  font: 12px/1.4 var(--mono);
}
.arcade-controls p {
  margin: 0;
  font: 11px/1.6 var(--font);
}
.arcade-controls kbd {
  font: bold 11px var(--mono);
}
.arcade-controls button {
  min-width: 42px;
  min-height: 38px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.paddle-buttons [aria-pressed="true"] {
  box-shadow: var(--sunken);
  background: #aaa;
}
.snake-dpad {
  display: grid;
  grid-template-columns: repeat(3, 42px);
  gap: 3px;
}
.snake-dpad [data-direction="up"] {
  grid-column: 2;
}
.snake-dpad [data-direction="left"] {
  grid-column: 1;
}

/* SendTip$: navigation and status stay in view while payment content scrolls. */
.account-actions {
  margin-top: 18px;
}
.tip-panel {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: var(--ink);
}
.tip-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  scrollbar-gutter: stable;
}
.tip-navigation {
  flex-shrink: 0;
  padding: 6px 12px;
  border-bottom: 1px solid var(--shadow);
  box-shadow: 0 1px var(--light);
}
.tip-panel .tip-navigation .retro-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 10px;
}
.tip-navigation .pixel-icon {
  width: 16px;
  height: 16px;
}
.tip-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.tip-heading .pixel-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.tip-heading h3 {
  margin: 0 0 3px;
  font: bold 14px var(--font);
}
.tip-heading p {
  margin: 0;
  font-size: 12px;
}
.tip-panel fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--shadow);
  box-shadow: 1px 1px var(--light);
}
.tip-panel legend {
  padding: 0 5px;
}
.tip-panel label {
  display: block;
}
.tip-panel input,
.tip-panel select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  margin-top: 5px;
  padding: 6px 8px;
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: var(--sunken);
  background: var(--paper);
  color: var(--ink);
  font: 13px var(--font);
}
.tip-panel input {
  font-family: var(--mono);
}
.tip-presets {
  display: flex;
  gap: 6px;
}
.tip-presets button {
  flex: 1;
  min-width: 0;
  padding-inline: 4px;
}
.tip-fees {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}
.tip-payment {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.tip-qr {
  max-width: 100%;
  background: #fff;
}
.tip-qr canvas {
  display: block;
  width: 100%;
  height: auto;
}
.tip-transfer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  min-width: 0;
}
.tip-caption {
  font-size: 11px;
}
.tip-payee {
  font: 11px/1.4 var(--mono);
  overflow-wrap: anywhere;
  user-select: text;
}
.tip-transfer strong {
  margin-bottom: 5px;
  font: bold 18px var(--mono);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.tip-transfer a.retro-button {
  text-align: center;
  text-decoration: none;
}
.tip-details {
  margin-top: 12px;
  font-size: 11px;
}
.tip-details summary {
  width: fit-content;
  padding: 4px 2px;
}
.tip-details dl {
  margin: 6px 0 0;
  padding: 10px;
  box-shadow: var(--sunken);
  background: var(--paper);
}
.tip-details dt {
  margin-bottom: 4px;
}
.tip-details dd {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
  user-select: text;
  font: 11px/1.4 var(--mono);
}
.tip-details dd:last-child {
  margin-bottom: 0;
}
.tip-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin: 3px;
  padding: 5px 7px;
  box-shadow: var(--sunken);
}
.tip-status {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.tip-panel .retro-button {
  min-height: 32px;
  background: var(--chrome);
  color: var(--ink);
}
.horror-theme .tip-panel {
  --ink: #f0d9d7;
  --paper: #140b0f;
  --chrome: #29151c;
  --shadow: #6c2732;
  --light: #a45b69;
}
@container (max-width: 440px) {
  .tip-payment {
    grid-template-columns: minmax(0, 1fr);
  }
  .tip-qr {
    width: 264px;
    justify-self: center;
  }
  .tip-transfer {
    text-align: center;
  }
}
.arcade-status {
  flex-shrink: 0;
  margin: 0 3px 3px;
  padding: 4px 6px;
  box-shadow: var(--sunken);
  font: 11px/1.3 var(--font);
}
@media (max-width: 700px) {
  .arcade-toolbar .retro-button {
    min-height: 32px;
  }
  .arcade-controls {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}
