body {
  margin: 0;
  min-height: 100vh;
  background: #008080;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
  padding: 24px 12px 48px;
}

#sw-shelf,
#sw-detail {
  max-width: 560px;
  margin: 0 auto;
  zoom: 1.5;
}

@media (max-width: 900px) {
  #sw-shelf,
  #sw-detail {
    zoom: 1;
  }
}
#sw-loading {
  color: #fff;
  text-align: center;
}

.sw-ico {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: text-bottom;
  image-rendering: pixelated;
}

.title-bar-text {
  display: flex;
  align-items: center;
}
.title-bar-text .sw-ico {
  margin-right: 5px;
}

.sw-ico-invert {
  filter: invert(1);
}

.sw-tblink {
  cursor: pointer;
}

.sw-dl {
  margin: 0;
}
.sw-dl legend {
  font-size: 11px;
}

.btn98-tile {
  flex-direction: column;
  gap: 5px;
  padding: 10px 14px;
  min-width: 96px;
}
.btn98-tile svg {
  width: 20px;
  height: 20px;
}
.btn98-tile .btn98-size {
  color: #555;
  font-size: 10px;
}
.btn98-tile:active {
  padding: 11px 13px 9px 15px;
}

.sw-dlrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
}
.sw-dlrow svg {
  width: 14px;
  height: 14px;
}
.sw-dlrow svg {
  margin: 0 2px;
}
.sw-dlrow .sw-dllabel {
  min-width: 110px;
}
.sw-dlrow .sw-dlsize {
  flex-grow: 1;
  color: #666;
}

.sw-card .status-bar {
  display: flex;
}
.sw-card .status-bar .status-bar-field {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sw-card {
  margin: 0 0 16px;
  width: 100%;
}

.sw-hr {
  border: none;
  border-top: 1px solid #005454;
  border-bottom: 1px solid #00a4a4;
  margin: 20px 2px;
}

.sw-soon {
  margin: 2px 0;
}

.sw-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sw-shotlink {
  flex: 0 0 auto;
  text-decoration: none;
}

.sw-shot {
  width: 180px;
  height: 112px;
  padding: 2px;
  background: #000;
  box-shadow: inset -1px -1px #ffffff, inset 1px 1px #808080, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
}
.sw-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sw-shot.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0;
  font-size: 11px;
  user-select: none;
}

.sw-text {
  min-width: 0;
  flex-grow: 1;
}

.sw-tag {
  margin: 2px 0 8px;
}

.sw-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn98 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 75px;
  padding: 5px 14px;
  font-family: inherit;
  font-size: 11px;
  color: #000;
  text-decoration: none;
  background: silver;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
}
.btn98:active {
  box-shadow: inset -1px -1px #ffffff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
  padding: 6px 13px 4px 15px;
}
.btn98:focus {
  outline: 1px dotted #000;
  outline-offset: -4px;
}

.sw-more {
  margin: 8px 0 0;
  font-size: 11px;
}
.sw-more a {
  color: #000080;
}

.sw-wait {
  color: #666;
  user-select: none;
}

.sw-soon {
  margin: 0;
}

.sw-frow {
  margin: 2px 0;
}
.sw-frow .sw-flabel {
  display: inline-block;
  width: 72px;
  color: #666;
}

.sw-readme {
  margin: 12px 0 0;
  min-width: 0;
}
.sw-readme legend {
  font-size: 11px;
}

.sw-readme-body {
  background: #fff;
  box-shadow: inset -1px -1px #ffffff, inset 1px 1px #808080, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
  padding: 10px 12px;
  max-height: 420px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.5;
}
.sw-readme-body h1, .sw-readme-body h2, .sw-readme-body h3 {
  font-size: 13px;
  margin: 10px 0 4px;
}
.sw-readme-body h1:first-child {
  margin-top: 0;
}
.sw-readme-body img {
  max-width: 100%;
  height: auto;
}
.sw-readme-body pre, .sw-readme-body code {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  background: #efefef;
}
.sw-readme-body pre {
  padding: 6px;
  overflow-x: auto;
}
.sw-readme-body table {
  border-collapse: collapse;
}
.sw-readme-body table td, .sw-readme-body table th {
  border: 1px solid #c0c0c0;
  padding: 2px 6px;
}
.sw-readme-body a {
  color: #000080;
}

.sw-bigshot {
  margin: 10px 0 0;
  padding: 2px;
  background: #000;
  box-shadow: inset -1px -1px #ffffff, inset 1px 1px #808080, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
}
.sw-bigshot img {
  display: block;
  width: 100%;
}

@media (max-width: 480px) {
  .sw-row {
    flex-direction: column;
  }
  .sw-shotlink,
  .sw-shot {
    width: 100%;
  }
  .sw-shot {
    box-sizing: border-box;
    height: 160px;
  }
}