/* Visual source: gsnv-shop.css and gsnv-paint/src/shared/theme.css. Same Luna chrome and pixel fonts. */
@font-face {
  font-family: "Pixel Tahoma";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/pixel-tahoma.woff2") format("woff2");
}
@font-face {
  font-family: "Pixel Tahoma";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/pixel-tahoma-bold.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --face: #ece9d8;
  --edge: #7f9db9;
  --ui: "Pixel Tahoma", Tahoma, Verdana, sans-serif;
  --paper: #fff;
  --link: #0033a0;
  --blue: #316ac5;
}
* {
  box-sizing: border-box;
}
html {
  cursor:
    url("/assets/gsnv-cursor-arrow.svg") 2 2,
    default;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--face);
  color: #000;
  font:
    16px/1.35 "Times New Roman",
    Times,
    serif;
}
a {
  color: var(--link);
  text-underline-offset: 1px;
  cursor:
    url("/assets/gsnv-cursor-hand.svg") 11 2,
    pointer;
}
a:visited {
  color: #59338b;
}
a:hover {
  text-decoration: underline;
}
h1 {
  font-size: 24px;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 17px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}
p {
  margin: 0 0 12px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 10px;
  color: #000 !important;
  border: 1px solid #003c74;
  border-radius: 3px;
  background: linear-gradient(#fff, #f3f3ef 45%, #e6e5dc 85%, #d6d0c5);
  box-shadow: inset 0 -1px 0 #c9c4b5;
  font: 11px/1.3 var(--ui);
  text-decoration: none;
  cursor: pointer;
}
button:hover,
.button:hover {
  box-shadow:
    inset 0 0 0 2px #ffe7a2,
    inset 0 -1px 0 #f8b330;
  text-decoration: none;
}
button:active,
.button:active {
  background: #e3e2da;
  box-shadow: inset 1px 1px 0 #b9b6a8;
}
button:disabled {
  color: #59584f !important;
  background: #f5f4ea;
  border-color: #9b998b;
  cursor: wait;
}
input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 0;
  color: #000;
  padding: 5px;
  min-width: 0;
}
input:not([type="checkbox"]),
select {
  min-height: 26px;
}
input,
textarea {
  cursor:
    url("/assets/gsnv-cursor-text.svg") 16 16,
    text;
}
input[type="checkbox"] {
  cursor: pointer;
}
textarea {
  resize: vertical;
  line-height: 1.35;
}
input[type="file"] {
  padding: 2px;
  max-width: 100%;
  font: 11px var(--ui);
}
:focus-visible {
  outline: 2px dotted #000;
  outline-offset: 2px;
}
::selection {
  background: #316ac5;
  color: #fff;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  left: 8px;
  top: -100px;
  z-index: 99;
  background: white;
  padding: 8px;
}
.skip:focus {
  top: 8px;
}
.titlebar {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  border-bottom: 1px solid #0831a8;
  background: linear-gradient(#2c80f7, #0a5ae6 18%, #0a5ae6 72%, #0848d4);
}
.brand,
.brand:visited {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font: 700 11px/1 var(--ui);
  text-shadow: 1px 1px 0 #0a1f7a;
  min-height: 28px;
  white-space: nowrap;
}
.brand img {
  image-rendering: pixelated;
}
.shortcuts {
  margin-left: auto;
  display: flex;
  gap: 3px;
  padding: 3px 0;
}
.shortcuts a,
.shortcuts a:visited {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 2px 7px;
  color: #fff;
  border: 1px solid #0c2f86;
  border-radius: 3px;
  background: linear-gradient(#5b9bfa, #3a81f3 12%, #1f5fd8 88%, #1a4fc0);
  box-shadow: inset 1px 1px 0 #8fbcff;
  font: 11px/1.2 var(--ui);
  text-decoration: none;
  text-shadow: 1px 1px 0 #0a1f7a;
}
.shortcuts a[aria-current] {
  background: #1e48aa;
  box-shadow: inset 1px 1px 2px #0a2470;
}
.shortcuts img {
  image-rendering: pixelated;
}
.titlebar :focus-visible {
  outline-color: #fff;
}
.menubar {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
  border-bottom: 1px solid #fff;
}
.menubar a {
  display: flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: #000;
  text-decoration: none;
  font: 11px/1.2 var(--ui);
}
.menubar a:hover {
  background: #316ac5;
  color: #fff;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 8px;
  border-top: 1px solid #d8d4c4;
  border-bottom: 1px solid #aca899;
  background: linear-gradient(#fbfbf9, #f1efe5 60%, #e5e2d3);
  font: 11px/1.4 var(--ui);
}
.window {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  width: calc(100% - 12px);
  max-width: 1320px;
  margin: 6px auto;
  flex: 1;
  border: 1px solid;
  border-color: #716f64 #fff #fff #716f64;
  background: #fff;
}
.sidebar {
  padding: 4px 8px 12px;
  background: linear-gradient(#7ba2e7, #6375d6);
  border-right: 1px solid #4a6ec4;
  font: 11px/1.45 var(--ui);
}
.sidebar-logo {
  display: block;
  width: 80px;
  margin: 8px auto 12px;
}
.sidebar-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.task + .task {
  margin-top: 12px;
}
.task h2 {
  font: 700 11px/1.4 var(--ui);
  color: #174999;
  margin: 0;
  padding: 4px 10px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #fff, #c6d3f7);
}
.task-body {
  padding: 5px 9px 7px;
  background: #d6dff7;
  border: 1px solid #fff;
  border-top: 0;
}
.task-body a {
  display: block;
  padding: 4px 0;
  overflow-wrap: anywhere;
}
.task-body a[aria-current="page"] {
  font-weight: 700;
  color: #000;
}
.task-body span {
  display: block;
}
main {
  min-width: 0;
  padding: 16px 18px 32px;
}
footer {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  padding: 3px 8px;
  border-top: 1px solid #fff;
  font: 11px/1.4 var(--ui);
}
footer > span {
  flex: 1;
  min-width: 0;
  border: 1px solid;
  border-color: #aca899 #fff #fff #aca899;
  padding: 2px 6px;
}
footer nav {
  white-space: nowrap;
}
.page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #aca899;
  margin-bottom: 16px;
  padding-bottom: 12px;
}
.page-title p {
  margin: 0;
}
.page-title h1 {
  margin: 0 0 4px;
}
.board-list {
  border-collapse: collapse;
  width: 100%;
  margin: 18px 0 24px;
}
.board-list th {
  text-align: left;
  background: #ece9d8;
  font: 700 11px/1.4 var(--ui);
  padding: 7px 10px;
  border: 1px solid #aca899;
}
.board-list td {
  padding: 14px 10px;
  border-bottom: 1px solid #c0c0c0;
}
.board-list td:first-child {
  width: 34%;
}
.board-list small {
  display: block;
  margin-top: 4px;
  font: 11px/1.4 var(--ui);
  color: #444;
}
.board-list .count {
  font: 11px/1.4 var(--ui);
  text-align: right;
  width: 64px;
}
.board-intro {
  max-width: 65ch;
}
.notice {
  padding: 10px 12px;
  border: 1px solid #aca899;
  background: #f6f5ee;
  max-width: 780px;
}
.notice p:last-child {
  margin: 0;
}
.empty {
  padding: 36px 12px;
  border-block: 1px solid #c0c0c0;
  margin-top: 20px;
  text-align: center;
}
.muted {
  color: #4d4d4d;
}
.tiny,
.meta {
  font: 11px/1.5 var(--ui);
}
.controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  padding: 8px 0;
  border-block: 1px solid #aca899;
  font: 11px/1.4 var(--ui);
}
.controls form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.controls input {
  width: 180px;
  font: 11px var(--ui);
}
.controls select {
  font: 11px var(--ui);
}
.view-links {
  display: flex;
  gap: 10px;
}
.view-links a[aria-current="page"] {
  color: #000;
  font-weight: 700;
  text-decoration: none;
}
.pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 20px 0;
  font: 11px var(--ui);
}
.pagination a,
.pagination span {
  padding: 5px 8px;
  border: 1px solid #aca899;
}
.pagination [aria-current] {
  background: #d6dff7;
  font-weight: 700;
}
.composer {
  width: min(610px, 100%);
  margin: 12px auto 20px;
  border: 1px solid #aca899;
  background: #ece9d8;
}
.composer > summary {
  padding: 7px 10px;
  font: 700 11px/1.5 var(--ui);
  cursor: pointer;
  background: linear-gradient(#fff, #e6e5dc);
  border-bottom: 1px solid #aca899;
}
.post-form {
  padding: 12px;
}
.field-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
}
.field-row > label {
  font: 700 11px/1.4 var(--ui);
  padding-top: 6px;
}
.field-row input,
.field-row textarea {
  width: 100%;
}
.field-row textarea {
  min-height: 100px;
}
.post-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 10px 88px;
  font: 11px var(--ui);
}
.post-options label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-end {
  margin-left: 88px;
}
.form-end small {
  display: block;
  margin: 8px 0 0;
  font: 11px/1.5 var(--ui);
}
.post-preview {
  margin: 8px 0 8px 88px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-preview img {
  max-width: 100px;
  max-height: 90px;
}
.error {
  color: #a40000;
  font:
    13px/1.4 Tahoma,
    Arial,
    sans-serif;
}
.error:empty {
  display: none;
}
.error-box {
  padding: 16px;
  border: 1px solid #a40000;
  background: #fff8f6;
}
.success {
  color: #245800;
}
.thread {
  padding: 16px 0 20px;
  border-bottom: 1px solid #aaa;
  display: flow-root;
}
.post {
  position: relative;
  display: flow-root;
  padding: 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
  scroll-margin-top: 12px;
}
.post:target {
  outline: 2px solid #316ac5;
  background: #fffbe8;
}
.post-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-bottom: 8px;
  font: 11px/1.6 var(--ui);
}
.post-header .subject {
  font-weight: 700;
  color: #000;
}
.post-name {
  color: #154b18;
  font-weight: 700;
}
.trip {
  color: #154b18;
}
.post-header time {
  color: #4d4d4d;
}
.text-button {
  border: 0;
  box-shadow: none !important;
  background: none !important;
  padding: 0 2px;
  min-height: 20px;
  display: inline;
  color: #0033a0 !important;
  text-decoration: underline;
}
.reply {
  background: #e8edf7;
  border: 1px solid #c2cde0;
  border-left: 3px solid #a8bce3;
  margin: 8px 0 0 24px;
  max-width: 900px;
}
.post-body {
  white-space: pre-wrap;
  font:
    16px/1.4 "Times New Roman",
    Times,
    serif;
  margin: 4px 0 10px;
  min-height: 22px;
}
.greentext {
  color: #4c6c16;
}
.quote {
  color: #a40000;
}
.media {
  float: left;
  margin: 0 16px 10px 0;
  max-width: 240px;
}
.media figcaption {
  font: 11px/1.5 var(--ui);
  margin-bottom: 4px;
  max-width: 220px;
  overflow-wrap: anywhere;
}
.image-toggle {
  display: block;
  border: 1px solid #7f9db9;
  border-radius: 0;
  background: #fff !important;
  box-shadow: none !important;
  padding: 3px;
  min-width: 100px;
  max-width: 100%;
}
.image-toggle img {
  display: block;
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
}
.image-toggle.expanded img {
  max-width: 100%;
  max-height: none;
}
.media:has(.expanded) {
  float: none;
  max-width: 100%;
  width: fit-content;
}
.image-toggle.spoiler {
  min-width: 140px;
  min-height: 100px;
  color: #444 !important;
}
.image-toggle.spoiler img {
  display: none;
}
.post-actions {
  font: 11px/1.6 var(--ui);
  display: flex;
  gap: 10px;
  clear: both;
}
.omitted {
  margin: 10px 0 0 8px;
  font: 11px/1.5 var(--ui);
  color: #555;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px 14px;
}
.catalog-item {
  min-width: 0;
  border-bottom: 1px solid #c0c0c0;
  padding-bottom: 12px;
  text-align: center;
  overflow-wrap: anywhere;
}
.catalog-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #7f9db9;
  padding: 5px;
  margin-bottom: 6px;
  background: #fff;
}
.catalog-image img {
  max-width: 100%;
  max-height: 148px;
}
.catalog-item h2 {
  font-size: 16px;
  margin: 7px 0;
}
.catalog-item p {
  font-size: 16px;
  white-space: pre-wrap;
  margin: 6px 0;
  max-height: 105px;
  overflow: hidden;
}
.backlinks {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font: 11px var(--ui);
  margin-top: 6px;
}
.prose {
  max-width: 760px;
}
.prose h2 {
  margin-top: 24px;
}
.prose li {
  margin: 8px 0;
}
.prose code {
  font-size: 14px;
}
.report-row {
  padding: 12px;
  border: 1px solid #aca899;
  margin: 12px 0;
}
.report-row .post {
  background: #f3f5fa;
  margin: 10px 0;
}
.moderator-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.token-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}
.token-form input {
  width: min(420px, 100%);
}
dialog {
  width: min(480px, calc(100% - 24px));
  padding: 0;
  border: 3px solid #0848d4;
  background: #ece9d8;
  color: #000;
}
dialog::backdrop {
  background: #0005;
}
dialog h2 {
  background: linear-gradient(#2c80f7, #0a5ae6);
  color: #fff;
  font: 700 11px var(--ui);
  padding: 10px;
  margin: 0 0 14px;
}
#dialog-body,
#dialog-error,
.dialog-actions {
  margin: 12px 16px;
}
#dialog-body label {
  display: block;
  margin-bottom: 6px;
}
#dialog-body input,
#dialog-body textarea {
  width: 100%;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
@media (max-width: 700px) {
  .window {
    grid-template-columns: 132px minmax(0, 1fr);
  }
  main {
    padding: 12px;
  }
  .sidebar {
    padding: 6px;
  }
  .controls form {
    margin-left: 0;
  }
  .media {
    max-width: 180px;
  }
  .image-toggle img {
    max-width: 160px;
    max-height: 160px;
  }
  .page-title {
    flex-wrap: wrap;
  }
}
@media (max-width: 520px) {
  .titlebar {
    flex-wrap: wrap;
    padding: 3px 6px;
  }
  .brand {
    flex: 1;
  }
  .shortcuts {
    margin: 0;
  }
  .shortcuts a {
    min-height: 32px;
  }
  .toolbar > span:last-child {
    display: none;
  }
  .menubar a {
    min-height: 36px;
  }
  .window {
    display: block;
    width: calc(100% - 8px);
    margin: 4px auto;
  }
  .sidebar {
    padding: 0;
    background: #d6dff7;
    border-right: 0;
    border-bottom: 1px solid #7f9db9;
  }
  .sidebar-logo,
  .sidebar > .task:not(:first-of-type),
  .sidebar h2 {
    display: none;
  }
  .sidebar .task-body {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 0;
    padding: 4px;
  }
  .sidebar .task-body a {
    padding: 10px 8px;
    min-height: 36px;
  }
  .field-row {
    grid-template-columns: 64px 1fr;
    gap: 6px;
  }
  .post-options,
  .form-end,
  .post-preview {
    margin-left: 70px;
  }
  .post-form {
    padding: 8px;
  }
  .post-form input:not([type="checkbox"]),
  .post-form textarea {
    font-size: 16px;
  }
  .post-options {
    line-height: 1.7;
  }
  .post-options label {
    min-height: 36px;
  }
  button,
  .button {
    min-height: 36px;
  }
  .text-button {
    min-height: 28px;
  }
  .controls input {
    width: 125px;
  }
  .controls select {
    max-width: 140px;
    min-height: 36px;
  }
  .reply {
    margin-left: 6px;
  }
  .post {
    padding: 7px;
  }
  .post-header {
    gap: 4px 6px;
  }
  .media {
    max-width: 135px;
    margin-right: 10px;
  }
  .image-toggle img {
    max-width: 120px;
    max-height: 150px;
  }
  .media figcaption {
    max-width: 130px;
  }
  .board-list th,
  .board-list td {
    padding: 10px 6px;
  }
  .board-list td:first-child {
    width: 36%;
  }
  .board-list td:nth-child(2) {
    font-size: 15px;
  }
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }
  .catalog-image {
    height: 135px;
  }
  .catalog-image img {
    max-height: 125px;
  }
  footer {
    flex-wrap: wrap;
  }
  footer nav {
    padding: 5px;
  }
  .post-body {
    font-size: 16px;
  }
  .composer {
    margin-top: 12px;
  }
  .composer > summary {
    min-height: 38px;
    padding: 10px;
  }
  .page-title h1 {
    font-size: 24px;
  }
}
