:root {
  --type: #f3faf6;
  --mist: #b7cdc4;
  --night: #071510;
  --slab: #10261c;
  --slab-2: #173628;
  --rule: #2f6b52;
  --goldleaf: #e4c56a;
  --violet: #0f8f62;
  --violet-2: #3dcc8e;
  --curve: 14px;
  --column: 1080px;
  --inset: 40px;
  --face: "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 16px/1.6 var(--face); color: var(--type); background: var(--night); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 14px; line-height: 1.25; font-weight: 700; overflow-wrap: break-word; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; margin-top: 16px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 6px; }
a:focus-visible, .tap:focus-visible, label:focus-visible { outline: 2px solid var(--goldleaf); outline-offset: 2px; }
.tap { cursor: pointer; }
.yard { display: flex; flex-direction: column; min-height: 100vh; max-width: 100%; }
main { flex: 1 1 auto; min-width: 0; width: 100%; }
.well { width: 100%; max-width: calc(var(--column) + var(--inset) * 2); margin: 0 auto; padding: 0 var(--inset) 36px; min-width: 0; }
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(61, 204, 142, 0); }
  50% { transform: scale(1.035); box-shadow: 0 0 22px rgba(61, 204, 142, .45); }
}
.act, .upbtn { animation: pulse 2.8s ease-in-out infinite; will-change: transform; }
.act:hover, .upbtn:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .act, .upbtn { animation: none; } }
.ridge { position: sticky; top: 0; z-index: 40; background: var(--slab); border-bottom: 1px solid var(--rule); }
.ridge__in { max-width: calc(var(--column) + var(--inset) * 2); margin: 0 auto; height: 66px; display: flex; align-items: center; gap: 16px; padding: 0 var(--inset); }
.sigil img { height: 44px; width: auto; }
.hatch-check { position: absolute; opacity: 0; pointer-events: none; }
.hatch-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--rule); border-radius: 10px; background: var(--slab-2); flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; cursor: pointer; }
.hatch-btn span { display: block; height: 2px; background: var(--type); }
.menu-row { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.menu-row li { margin: 0; }
.menu-row .tap { display: block; padding: 6px 10px; border: 0; border-left: 3px solid var(--goldleaf); border-radius: 0; background: transparent; font-size: 14px; font-weight: 700; }
.menu-row .tap:hover { background: var(--slab-2); }
.menu-actions { display: none; }
.ridge-actions { margin-left: auto; display: flex; gap: 8px; }
.inbtn, .upbtn, .act, .linebtn, .appbtn { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 700; }
.inbtn, .upbtn { height: 40px; padding: 0 16px; font-size: 14px; }
.inbtn { background: transparent; color: var(--goldleaf); border: 1px solid var(--goldleaf); }
.upbtn, .act { background: linear-gradient(180deg, var(--violet-2), var(--violet)); color: #fff; border: 0; }
.act { min-height: 52px; margin: 8px auto 0; padding: 10px 22px; max-width: 320px; width: 100%; }
.linebtn { min-height: 48px; margin: 8px auto 0; padding: 10px 22px; max-width: 320px; width: 100%; background: transparent; color: var(--type); border: 1px solid var(--goldleaf); }
.gate { text-align: center; padding: 24px 0 8px; }
.gate__art { display: block; margin: 0 auto 16px; border-radius: var(--curve); overflow: hidden; }
.gate__art img, .still img { width: 100%; }
.gate__copy { text-align: left; }
.still { margin: 8px 0 28px; }
.still img { border-radius: var(--curve); }
.board, .essay, .talk, .asks { margin: 0 0 32px; padding: 20px 20px 8px; background: var(--slab); border: 1px solid var(--rule); border-radius: var(--curve); min-width: 0; max-width: 100%; }
.board__name, .centered { text-align: center; }
.railbox { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.railbox table { width: 100%; min-width: 0; margin-bottom: 18px; }
table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
th, td { border: 1px solid var(--rule); padding: 10px 12px; text-align: center; font-size: 14px; }
th { background: var(--slab-2); }
td { background: #0c1c16; }
.slimcol { table-layout: fixed; width: 100%; min-width: 0; }
.slimcol th:first-child, .slimcol td:first-child { width: 22%; white-space: normal; }
.rack__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.rack__tab { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 10px; border: 1px solid var(--rule); background: var(--slab-2); color: var(--type); font-weight: 700; text-decoration: none; }
.rack__tab.lit, .rack__tab:hover { border-color: var(--goldleaf); }
.bay { display: none; }
.bay.lit { display: block; }
.rack__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.chip { display: block; color: inherit; }
.chip__art { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 360 / 472; background: #0c1c16; }
.chip__art img { width: 100%; height: 100%; object-fit: cover; }
.chip__name { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; }
.chip--mark .chip__art { aspect-ratio: 2 / 1; background: #1a3d2c; }
.chip--mark .chip__art img { object-fit: contain; padding: 8px; }
.chip--mark .chip__name { text-align: center; }
.balance { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.balance__box { padding: 16px; border-radius: 10px; background: var(--slab-2); border: 1px solid var(--rule); }
.balance__box ul { list-style: none; padding: 0; margin: 0; }
.balance__box li { padding-left: 16px; position: relative; }
.balance__yes li::before, .balance__no li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; }
.balance__yes li::before { background: #4cc98a; }
.balance__no li::before { background: #d9534f; }
.talk__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px; border-radius: 10px; background: var(--slab-2); }
.talk__num { font-size: 28px; font-weight: 700; }
.talk__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.blurb { padding: 14px; border-radius: 10px; background: var(--slab-2); border: 1px solid var(--rule); }
.blurb strong { display: block; }
.blurb small { color: var(--mist); }
.asks__item { padding: 14px 0; border-top: 1px solid var(--rule); }
.asks__item h3 { font-size: 18px; }
.when { margin: 0 0 20px; padding: 14px 16px; border-radius: var(--curve); border: 1px solid var(--rule); background: var(--slab); color: var(--mist); }
.dock { background: var(--slab); border-top: 1px solid var(--rule); }
.dock__row { display: flex; justify-content: space-between; gap: 28px; padding: 28px 0; }
.dock__row, .dock__fine { max-width: calc(var(--column) + var(--inset) * 2); margin-left: auto; margin-right: auto; padding-left: var(--inset); padding-right: var(--inset); }
.nets, .handset, .marks, .cashrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nets { margin: 12px 0; }
.nets .tap { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--goldleaf); background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.nets svg { width: 16px; height: 16px; fill: var(--type); }
.appbtn { height: 34px; padding: 0 12px; border: 1px solid var(--goldleaf); color: var(--goldleaf); font-size: 13px; }
.marks { margin-top: 28px; }
.marks img { height: 40px; width: auto; }
.plus18 { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #ff6b6b; color: #ff6b6b; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.cashrow { justify-content: center; padding: 16px var(--inset); border-top: 1px solid var(--rule); }
.cashrow img { height: 26px; width: auto; }
.linkcols { display: flex; gap: 40px; }
.linkcols ul { list-style: none; margin: 0; padding: 0; }
.dock__fine { border-top: 1px solid var(--rule); text-align: center; color: var(--mist); font-size: 12px; padding-bottom: 18px; padding-top: 16px; }
.board, .talk, .dock { content-visibility: auto; contain-intrinsic-size: auto 480px; }
@media (max-width: 1100px) { .rack__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) {
  .hatch-btn { display: flex; }
  .ridge-actions { order: 2; }
  .menu-wrap { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--slab); border-bottom: 1px solid var(--rule); padding: 12px var(--inset) 16px; }
  .hatch-check:checked ~ .menu-wrap { display: block; }
  .menu-row { flex-direction: column; }
  .menu-actions { display: flex; gap: 8px; margin-top: 12px; }
  .menu-actions .inbtn, .menu-actions .upbtn { flex: 1; }
  .balance, .talk__grid, .dock__row { grid-template-columns: 1fr; }
  .dock__row { flex-direction: column; }
  .rack__nav { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .rack__grid { grid-template-columns: repeat(3, 1fr); }
  .talk__bar { flex-direction: column; align-items: flex-start; }
  .railbox table { min-width: 640px; }
  .railbox th, .railbox td { white-space: nowrap; }
  th, td { font-size: 13px; padding: 8px; }
}
@media (max-width: 480px) {
  .rack__grid { grid-template-columns: repeat(2, 1fr); }
  .sigil img { height: 34px; }
  .inbtn, .upbtn { padding: 0 10px; font-size: 13px; }
}
