/* 1000.slug.social — shared layout (web1.0 / Win95 bevel, no curves, no gradients) */

* { box-sizing: border-box; border-radius: 0 !important; }

html, body { height: 100%; margin: 0; }

body {
  display: flex;
  flex-direction: column;
  font-family: ui-monospace, 'Courier New', Courier, monospace;
  background: #c0c0c0;
  color: #000;
  line-height: 1.4;
  font-size: 13px;
}

a { color: #0000ee; text-decoration: underline; }
a:visited { color: #551a8b; }
a:hover { background: #000; color: #fff; text-decoration: none; }

code {
  font-family: inherit;
  background: #fff;
  border: 1px solid #000;
  padding: 0 4px;
  font-size: 0.95em;
}

/* --- chrome --- */

.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  background: #000;
  color: #fff;
  border-bottom: 3px ridge #c0c0c0;
  font-size: 12px;
}

.brand { display: flex; align-items: baseline; gap: 0.6rem; }
.brand a.title {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.brand a.title:hover { background: transparent; color: #fff; text-decoration: underline; }
.brand .subtitle { color: #a0a0a0; font-size: 0.9em; white-space: nowrap; }

.stats {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding-left: 0.5rem;
  flex-wrap: nowrap;
}

.stat {
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 1px 8px;
  background: #c0c0c0;
  color: #000;
  border: 2px outset #c0c0c0;
}

.stat-num { font-weight: 700; }
.stat-label { font-size: 0.85em; }

.nav {
  color: #000;
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  padding: 1px 8px;
  text-decoration: none;
  font-size: 0.9em;
}

.nav:hover,
.nav.active {
  background: #c0c0c0;
  border-style: inset;
  color: #000;
  text-decoration: none;
}

.foot {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-top: 3px ridge #c0c0c0;
  background: #000;
  color: #a0a0a0;
  font-size: 0.85em;
  text-align: center;
}

/* --- home --- */

.page-home {
  min-height: 100svh;
  overflow-x: hidden;
}

.page-home .blurb {
  flex: 0 0 auto;
  margin: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 2px inset #c0c0c0;
  overflow-wrap: anywhere;
}

.page-home .blurb p { margin: 0.25rem 0; }
.page-home .blurb .api { color: #444; font-size: 0.9em; }

td.post-text {
  font-weight: 700;
  max-width: 28rem;
  word-break: break-word;
}

tr:target {
  background: #ffffcc;
}

tr:target td {
  background: #ffffcc;
}

.board-wrap {
  align-self: center;
  flex: 1 1 auto;
  width: auto;
  max-width: calc(100% - 20px);
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px 10px;
  padding: 10px;
  background: #808080;
  border: 3px outset #c0c0c0;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -2px -2px 0 #404040,
    4px 4px 0 #000;
}

.board {
  display: grid;
  grid-template-columns: repeat(25, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  aspect-ratio: 25 / 40;
  width: min(92vw, calc((100vh - 226px) * 25 / 40), 900px);
  width: min(92vw, calc((100svh - 226px) * 25 / 40), 900px);
  max-width: 100%;
  background: #031006;
  border: 4px inset #c0c0c0;
  padding: 5px;
  gap: 1px;
  box-shadow:
    inset 0 0 0 1px #000,
    inset 0 0 0 4px #071b0a,
    inset 0 0 18px #000;
}

.cell {
  container-type: size;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  font-family: inherit;
  color: #164b24;
  background: #020602;
  text-decoration: none;
  user-select: none;
  border: 0;
  outline: 0;
  box-shadow: inset 1px 1px 0 #08250d;
}

.cell .glyph {
  font-size: 78cqmin;
  line-height: 1;
  font-weight: 700;
}

.cell.empty .glyph { opacity: 0.75; }

.cell.filled {
  color: #00ff66;
  background: #041008;
  text-shadow: 0 0 4px #00ff66;
}

.cell:hover,
.cell.filled:hover {
  background: #ffff00;
  color: #000;
  text-decoration: none;
  text-shadow: none;
  box-shadow: inset 0 0 0 1px #000;
}

/* --- inner pages --- */

.content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.panel {
  background: #fff;
  border: 2px inset #c0c0c0;
  padding: 10px 12px;
  max-width: 1200px;
}

.panel h1 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.panel h2 {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.panel p { margin: 0.35rem 0; }

.panel .meta { color: #444; font-size: 0.9em; }

.panel .actions { margin: 0.5rem 0; }

.subnav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

table.data {
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 0.5rem;
  width: 100%;
}

table.data td,
table.data th {
  border: 1px solid #000;
  padding: 3px 8px;
  text-align: left;
  background: #fff;
}

table.data th {
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  font-weight: 700;
}

table.data.num td:not(:first-child),
table.data.num th:not(:first-child) {
  text-align: right;
}

.mono {
  font-family: inherit;
  font-size: 11px;
  word-break: break-all;
}

a.snapshot-link {
  color: #0000ee;
  text-decoration: underline;
  display: block;
}

a.snapshot-link:visited { color: #551a8b; }

a.snapshot-link:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.slot-char {
  display: inline-block;
  min-width: 2ch;
  padding: 2px 6px;
  background: #000;
  color: #00ff66;
  border: 2px inset #c0c0c0;
  font-weight: 700;
  text-align: center;
}

.empty { color: #444; font-style: italic; }
.cell.empty { color: #164b24; font-style: normal; }

@media (max-width: 720px) {
  body { font-size: 12px; }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 5px 6px;
  }
  .stats {
    margin-left: 0;
    padding-left: 0;
    flex-wrap: wrap;
    width: 100%;
  }
  .stat,
  .nav {
    padding-left: 6px;
    padding-right: 6px;
  }
  .brand .subtitle { display: none; }
  .page-home .blurb {
    margin: 6px;
    padding: 7px 8px;
  }
  .board-wrap {
    align-items: flex-start;
    margin: 0 6px 8px;
    max-width: calc(100% - 12px);
    padding: 6px;
    box-shadow:
      inset 1px 1px 0 #fff,
      inset -2px -2px 0 #404040,
      2px 2px 0 #000;
  }
  .board {
    width: min(92vw, calc((100vh - 250px) * 25 / 40));
    width: min(92vw, calc((100svh - 250px) * 25 / 40));
    min-width: 0;
    padding: 3px;
  }
  .cell .glyph { font-size: 72cqmin; }
}
