/* zhuzhbox classic — the 2000s-era skin for old.zhuzhbox.fun */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f2f2f2;
  --rule: #c0c0c0;
  --rule-2: #808080;
  --dim: #555555;
  --fg: #111111;
  --hi: #000080;

  --cell: 1.1rem;
  --half: 0.55rem;

  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;

  --sans: Verdana, Geneva, Arial, Helvetica, sans-serif;
  --display: Georgia, "Times New Roman", Times, serif;
  --mono: "Courier New", Courier, monospace;

  --t-fast: 0ms;
  --t-med: 0ms;
  --ease: linear;
}

body {
  background: #e9e9e9;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
  -webkit-font-smoothing: auto;
}

body::before,
#ambientCanvas,
.scroll-bar,
.bar-foot,
.caret {
  display: none !important;
}

.js-reveal [data-words] [data-w],
.js-reveal [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: bold;
  letter-spacing: 0;
  color: #000080;
}

p { max-width: 78ch; }
ul, ol { max-width: 78ch; }
li::marker { color: #666; }

a {
  color: #0000ee;
  text-decoration: underline;
  border-bottom: 0;
  transition: none;
}
a:visited { color: #551a8b; }
a:hover { color: #cc0000; border-bottom: 0; }

:focus-visible { outline: 1px dotted #000; outline-offset: 1px; }
::selection { background: #000080; color: #fff; }

::-webkit-scrollbar { width: 15px; height: 15px; }
::-webkit-scrollbar-track { background: #e9e9e9; }
::-webkit-scrollbar-thumb { background: #b0b0b0; border: 2px solid #e9e9e9; }

.old-banner {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 14px;
  background: #000080;
  color: #fff;
  border-bottom: 1px solid #000;
  font-size: 11px;
}
.old-banner a { color: #ffff66; }
.old-banner a:visited { color: #ffff99; }
.old-banner a:hover { color: #fff; }

.bar {
  position: static;
  background: #f4f4f4;
  border-bottom: 1px solid #808080;
  border-top: 3px solid #000080;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.bar-top { position: static; }
.bar-inner {
  max-width: 1100px;
  height: auto;
  min-height: 46px;
  padding: 7px 10px;
  gap: 12px;
  flex-wrap: wrap;
}

.mark { color: #000080; gap: 6px; }
.mark:hover { border: 0; }
.old-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: -1px;
  color: #000080;
  text-shadow: 1px 1px 0 #c0c0c0;
}
.old-logo-tag {
  align-self: flex-end;
  margin-bottom: 3px;
  padding: 1px 4px;
  background: #cc3300;
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tabs {
  flex: 1 1 auto;
  gap: 0;
  border-left: 1px solid #b0b0b0;
  border-right: 1px solid #b0b0b0;
}
.tab {
  padding: 3px 10px;
  border: 0;
  border-right: 1px solid #c0c0c0;
  border-radius: 0;
  background: transparent;
  color: #0000ee;
  font-size: 11px;
  text-decoration: underline;
}
.tab:last-child { border-right: 0; }
.tab:hover { background: #e0e0e0; color: #cc0000; border: 0; border-right: 1px solid #c0c0c0; }
.tab[aria-current="page"] {
  background: #000080;
  color: #fff;
  text-decoration: none;
}

.bar-right { gap: 8px; }
.old-modern-link {
  color: #0000ee;
  font-size: 11px;
  white-space: nowrap;
}
.old-modern-link:visited { color: #551a8b; }
.old-modern-link:hover { color: #cc0000; }

.nav-menu-panel {
  background: #fff;
  border: 1px solid #000;
  border-radius: 0;
  box-shadow: 2px 2px 0 #666;
}
.nav-menu-panel .tab {
  border-right: 0;
  border-bottom: 1px solid #ccc;
  padding: 5px 8px;
  color: #0000ee;
  background: #fff;
  text-align: left;
}
.nav-menu-panel .tab:last-child { border-bottom: 0; }
.nav-menu-panel .tab[aria-current="page"] { background: #000080; color: #fff; }

.stage {
  max-width: 1100px;
  padding: 14px 10px 26px;
}

.head {
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid #b0b0b0;
}
.head .label {
  display: inline;
  margin-bottom: 0;
  color: #666;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.head h1 {
  margin: 2px 0 4px;
  font-size: 26px;
  line-height: 1.15;
  color: #000080;
}
.head p { margin: 0; color: #333; max-width: 90ch; }

.thesis {
  margin: 0 0 12px;
  max-width: none;
  color: #000080;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0;
}

.portal { gap: 10px; }
.portal-side { gap: 10px; }

.pane {
  padding: 0 10px 10px;
  background: #fff;
  border: 1px solid #808080;
  border-radius: 0;
  box-shadow: 1px 1px 0 #d0d0d0;
}
.pane > .pane-t {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  max-width: none;
  display: flex;
  margin: 0 -10px 8px;
  padding: 3px 8px;
  background: #d8d8d8;
  border-bottom: 1px solid #808080;
  color: #000;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pane > .pane-t .t-meta {
  color: #555;
  font-weight: normal;
  letter-spacing: 0;
  text-transform: none;
}
.pane-action {
  color: #0000ee;
  font-size: 10px;
  letter-spacing: 0;
  text-decoration: underline;
}
.pane-action:hover { color: #cc0000; }
.pane-fill { background: #f7f7f7; }

.label {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #555;
}
.note { font-size: 11px; color: #555; }
.dim { color: #555; }
.hot { color: #cc3300; }
.num { font-family: var(--mono); }
.mono-url { font-family: var(--mono); color: #000080; }

.btn {
  padding: 2px 9px;
  background: linear-gradient(#ffffff, #dcdcdc);
  border: 1px solid #777;
  border-radius: 0;
  color: #000;
  font-family: var(--sans);
  font-size: 11px;
  text-decoration: none;
}
.btn:hover:not(:disabled) {
  background: #fff;
  border-color: #000;
  color: #000;
  transform: none;
}
.btn:disabled { opacity: 0.5; }
a.btn { border-bottom: 1px solid #777; }
a.btn:hover { border-color: #000; }
.btn-go {
  background: #d4e4ff;
  border-color: #000080;
  color: #000080;
  font-weight: bold;
}
.btn-go:hover:not(:disabled) {
  background: #b8d0ff;
  border-color: #000080;
  color: #000080;
}
.btn-sm { padding: 1px 6px; font-size: 10px; }
.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: #0000ee;
  text-decoration: underline;
}
.btn-quiet:hover:not(:disabled) {
  background: transparent;
  border-color: transparent;
  color: #cc0000;
}
.btn-x {
  background: #ffe0e0;
  border-color: #990000;
  color: #800000;
}
.btn-x:hover:not(:disabled) {
  background: #ffcccc;
  border-color: #800000;
  color: #800000;
}

.input, .textarea, .select {
  padding: 3px 5px;
  background: #fff;
  border: 1px solid #7f9db9;
  border-radius: 0;
  color: #000;
  font-family: var(--sans);
  font-size: 12px;
  box-shadow: inset 1px 1px 0 #e5e5e5;
  transition: none;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: #000080;
  outline: 1px dotted #000;
}
.input::placeholder, .textarea::placeholder { color: #888; }
.input[readonly] { color: #000; background: #f4f4f4; }

.field > .label {
  margin-bottom: 2px;
  color: #333;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.seg {
  border: 1px solid #777;
  border-radius: 0;
  overflow: hidden;
}
.seg button {
  padding: 2px 10px;
  background: #eee;
  color: #000;
  font-size: 10px;
}
.seg button + button { border-left: 1px solid #777; }
.seg button:hover { color: #000080; }
.seg button[aria-pressed="true"] { background: #000080; color: #fff; }

.dz {
  padding: 26px 12px;
  background: #fbfbfb;
  border: 2px dashed #999;
  border-radius: 0;
  color: #000;
  transition: none;
}
.dz:hover { background: #f0f4ff; border-color: #000080; }
.dz.hot { background: #ffffcc; border-color: #cc3300; }
.dz-line {
  margin-bottom: 4px;
  color: #000080;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0;
}
.dz-sub { color: #444; font-size: 11px; }

kbd {
  padding: 0 3px;
  background: #f0f0f0;
  border: 1px solid #808080;
  border-radius: 0;
  box-shadow: 1px 1px 0 #999;
  color: #000;
  font-family: var(--mono);
  font-size: 10px;
}

.veil { background: rgba(255, 255, 255, 0.88); }
.veil-box {
  padding: 10px 24px;
  background: #ffffcc;
  border: 2px dashed #000080;
  border-radius: 0;
  color: #000080;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: bold;
}

.mode-row { margin-top: 10px; }

.q-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dotted #b0b0b0;
}
.qi {
  padding: 4px 0;
  border-top: 1px dotted #b0b0b0;
  font-size: 11px;
}
.qi-name { color: #000; }
.qi-right { color: #666; font-family: var(--mono); font-size: 10px; }
.qi-drop { color: #cc0000; }
.qi[data-state="done"] .qi-name { color: #006600; }

.log {
  min-height: calc(var(--cell) * 9);
  padding: 6px 8px;
  background: #fff;
  border: 1px inset #999;
  border-radius: 0;
  color: #000;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
}
.log-line { grid-template-columns: 6ch 8ch minmax(0, 1fr); gap: 6px; }
.log-line .t { color: #777; }
.log-line .v { color: #555; }
.log-line .m { color: #000; }
.log-line[data-cmd] .v { color: #000080; }
.log-line[data-cmd] .m { color: #000; }
.log-line[data-kind="ok"] .v { color: #006600; }
.log-line[data-kind="err"] .v { background: #cc0000; color: #fff; border-radius: 0; }
.log-line[data-kind="err"] .m { color: #800000; }
.log-empty { color: #666; }
.log-prompt { color: #555; font-family: var(--mono); font-size: 11px; }
.log-prompt-glyph { color: #999; }

.sent > li + li { margin-top: 10px; padding-top: 10px; border-top: 1px dotted #b0b0b0; }
.sent-name { color: #000; }
.link-row { margin: 5px 0; }
.link-row .input { border-right: 1px solid #7f9db9; border-radius: 0; }
.link-row .btn { border-radius: 0; }
.sent-meta { font-size: 11px; color: #555; }
.sent-meta dt { font-size: 10px; letter-spacing: 0; text-transform: none; color: #666; }
.sent-meta dd { color: #000; font-family: var(--mono); }
.secret code { color: #000080; }

.kv { font-size: 11px; }
.kv dt {
  color: #666;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}
.kv dd { color: #000; }

.meter {
  height: 10px;
  background: #fff;
  border: 1px inset #999;
  border-radius: 0;
}
.meter::before { background: #000080; }
.meter-hot::before { background: #cc3300; }

.code {
  padding: 8px 10px;
  background: #fffff0;
  border: 1px solid #c0c0c0;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 12px;
}
.code .c { color: #666; }
.code .k { color: #006600; }
.code-copy {
  background: #e8e8e8;
  border-color: #777;
  font-family: var(--sans);
}
code.tick {
  padding: 0 4px;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 0;
  color: #000;
  font-family: var(--mono);
}

.table { font-size: 11px; }
.table th, .table td {
  padding: 4px 8px 4px 0;
  border-bottom: 1px dotted #b0b0b0;
}
.table th {
  color: #333;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0;
  text-transform: none;
}
.table td { font-family: var(--mono); }

.toasts { gap: 6px; }
.toast {
  padding: 4px 10px;
  background: #ffffcc;
  border: 2px solid #000;
  border-radius: 0;
  color: #000;
  box-shadow: 3px 3px 0 #666;
  font-size: 11px;
}
.toast-bad {
  background: #ffcccc;
  border-color: #800000;
  color: #800000;
}

.modal-root {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.modal {
  background: #e9e9e9;
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: 4px 4px 0 #555;
}
.modal-head {
  padding: 3px 8px;
  background: #000080;
  border-bottom: 1px solid #000;
}
.modal-head .label {
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0;
  text-transform: none;
}
.modal-head .btn {
  background: #d8d8d8;
  border-color: #000;
  color: #000;
}
.modal-body { padding: 12px 10px; }

.subtabs { gap: 0; margin-bottom: 12px; }
.subtab {
  padding: 2px 9px;
  background: #e0e0e0;
  border: 1px solid #777;
  border-radius: 0;
  color: #000;
  font-size: 10px;
}
.subtab[aria-selected="true"] {
  background: #000080;
  border-color: #000080;
  color: #fff;
}

.theme-list {
  border: 1px solid #777;
  border-radius: 0;
}
.theme-list li + li { border-top: 1px solid #ccc; }
.theme-opt {
  padding: 7px 9px;
  color: #000;
  font-size: 11px;
}
.theme-opt:hover { background: #e8e8e8; }
.theme-opt[aria-pressed="true"] { background: #000080; color: #fff; }
.theme-mark { opacity: 0.6; }
.theme-opt[aria-pressed="true"] .theme-mark { opacity: 1; }

.figs {
  gap: 0;
  background: transparent;
  border: 1px solid #808080;
  border-radius: 0;
}
.fig {
  padding: 12px;
  background: #f5f5f5;
  border-right: 1px solid #ccc;
}
.fig:last-child { border-right: 0; }
.fig:hover { background: #f5f5f5; }
.fig-n {
  color: #000080;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  letter-spacing: 0;
}
.fig-n small { color: #555; }
.bars { gap: 2px; border-bottom: 1px solid #808080; }
.bar-col i { background: #000080; border-radius: 0; }
.bar-col:hover i { background: #cc3300; }
.bars-axis { color: #666; font-family: var(--mono); font-size: 10px; }

.api-grid { gap: 16px; }
.api-index { font-size: 11px; }
.api-index a { padding: 1px 0; color: #0000ee; text-decoration: underline; }
.api-index a:hover { color: #cc0000; }
.api-index .label { color: #666; margin-bottom: 4px; }
.ep + .ep { margin-top: 14px; }
.ep-sig { margin-bottom: 6px; }
.verb {
  padding: 0 4px;
  background: #e8e8e8;
  border: 1px solid #777;
  border-radius: 0;
  color: #000;
  font-family: var(--mono);
  font-size: 10px;
}
.ep-path { color: #000080; font-family: var(--mono); font-size: 12px; }

.qa h3 {
  margin-bottom: 3px;
  color: #000080;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}
.qa + .qa { margin-top: 10px; padding-top: 10px; border-top: 1px dotted #b0b0b0; }
.qa p { margin-bottom: 4px; }
.ladder-step { font-size: 11px; }
.ladder-size { color: #000; }
.ladder-days { color: #000080; }

.foot {
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px dashed #999;
  color: #666;
  font-size: 10px;
}
.foot a { color: #0000ee; border-bottom: 0; }
.foot a:hover { color: #cc0000; }

.old-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px 20px;
  color: #555;
  font-size: 10px;
  text-align: center;
}
.old-footer p { margin: 2px 0; max-width: none; }
.old-footer a { color: #0000ee; }
.old-footer-small { color: #777; }

.skip {
  background: #000080;
  color: #fff;
  border-radius: 0;
}

.sr { border: 0; }

@media (max-width: 720px) {
  body { font-size: 12px; }
  .old-banner { justify-content: center; text-align: center; }
  .bar-inner { gap: 8px; min-height: 0; }
  .old-logo { font-size: 24px; }
  .old-modern-link { display: none; }
  .stage { padding: 10px 8px 20px; }
  .pane { padding-left: 8px; padding-right: 8px; }
  .pane > .pane-t { margin-left: -8px; margin-right: -8px; }
  .head h1 { font-size: 22px; }
  .thesis { font-size: 20px; }
}
