:root {
  --bg: #0a0b0d;
  --ink: #f3efe6;
  --dim: #8d8a82;
  --line: #26282d;
  --line-2: #3a3d44;
  --yellow: #f5c518;
  --open: #3ecf8e;
  --limited: #f0c14b;
  --full: #ef5b5b;
  --closed: #6d6a64;
  --pad: clamp(1.1rem, 4vw, 2.8rem);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    linear-gradient(180deg, rgba(245, 197, 24, 0.045), transparent 22rem),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.012) 3px,
      rgba(255, 255, 255, 0.012) 4px
    ),
    var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
a { color: inherit; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: var(--pad); top: 0.6rem; z-index: 2; color: var(--yellow); }

.mast {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem var(--pad) 1.1rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  text-decoration: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--yellow);
}
.mast-right {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ink); }
.live i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--open);
  box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.7);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(62, 207, 142, 0); }
}

main { padding: 2rem var(--pad) 4.5rem; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 28rem) 1fr;
  gap: 1.5rem 3rem;
  margin: 0 0 2.4rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.intro h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 11ch;
}
.intro p {
  margin: 0.85rem 0 0;
  color: var(--dim);
  max-width: 34ch;
}
.legend {
  align-self: end;
  justify-self: end;
  display: flex;
  gap: 1.1rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.legend b { font-weight: 500; }
.legend .open { color: var(--open); }
.legend .limited { color: var(--limited); }
.legend .full { color: var(--full); }

.board { display: flex; flex-direction: column; }
.head, .row {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr) auto 4.4rem;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 0.15rem;
}
.head {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}
.row {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease, padding-left 0.15s ease;
}
.row:hover, .row:focus-visible {
  background: rgba(245, 197, 24, 0.05);
  padding-left: 0.45rem;
  outline: none;
}
.code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.city { color: var(--ink); }
.age {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--dim);
  text-align: right;
}
.pips { display: flex; gap: 0.32rem; justify-content: flex-end; }
.pip {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--closed);
}
.pip.open { background: var(--open); }
.pip.limited { background: var(--limited); }
.pip.full { background: var(--full); }

.crumb {
  display: flex;
  gap: 0.55rem;
  margin: 0 0 1.6rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.crumb a { color: var(--yellow); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.place h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.place .sub {
  margin: 0.7rem 0 1.8rem;
  color: var(--dim);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lots { display: flex; flex-direction: column; }
.lot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem 1.4rem;
  align-items: center;
  padding: 1.15rem 0.1rem;
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.lot:last-child { border-bottom: 1px solid var(--line); }
.lot:hover, .lot:focus-visible {
  background: rgba(245, 197, 24, 0.05);
  outline: none;
}
.lot h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.spaces { margin: 0; color: var(--dim); font-size: 0.9rem; }
.pct {
  display: inline-flex;
  align-items: baseline;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.pct .unit {
  padding-left: 0.32em;
  font-size: 0.55em;
  letter-spacing: 0.04em;
  line-height: 1;
}

.status {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  min-width: 5.6rem;
  text-align: right;
}
.status.open { color: var(--open); }
.status.limited { color: var(--limited); }
.status.full { color: var(--full); }
.status.closed, .status.unknown { color: var(--closed); }

.sign {
  margin-top: 0.4rem;
  padding: 2.2rem 0 1.6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: end;
}
.sign .name {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.sign .readout {
  display: flex;
  align-items: baseline;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: clamp(4.4rem, 13vw, 8.2rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--open);
  font-variant-numeric: tabular-nums;
}
.sign .unit {
  padding-left: 0.32em;
  font-size: 0.28em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  line-height: 1;
  white-space: nowrap;
}
.sign-meta [data-age] {
  text-transform: none;
  letter-spacing: 0.02em;
}
.sign-meta {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  margin-top: 1.1rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.odds {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 16rem) auto;
  gap: 1rem 2rem;
  align-items: end;
}
.odds h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
}
.odds p { margin: 0.4rem 0 0; color: var(--dim); max-width: 28ch; }
.odds .pct { color: var(--yellow); font-size: clamp(3rem, 8vw, 5rem); }

.skel {
  height: 1.15rem;
  background: linear-gradient(90deg, #16181c, #22252b, #16181c);
  background-size: 200% 100%;
  animation: sheen 1.2s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }
.err {
  color: var(--full);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
}
.again {
  margin-left: 0.8rem;
  color: var(--yellow);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 760px) {
  .intro, .odds, .sign { grid-template-columns: 1fr; }
  .legend, .sign .readout { justify-self: start; }
  .head { display: none; }
  .row-wrap .row, .lot {
    grid-template-columns: 1fr auto;
    gap: 0.35rem 1rem;
  }
  .pips { grid-column: 1; justify-content: flex-start; }
  .age { grid-column: 2; grid-row: 1; }
  .lot .status { grid-column: 1; text-align: left; }
  .lot .pct { grid-column: 2; grid-row: 1 / span 3; }
}

.place .lead, .lead {
  margin: 1.1rem 0 0;
  max-width: 42rem;
  font-size: 1.12rem;
  line-height: 1.5;
  color: #d8d4cb;
}
.live-spaces {
  margin: 0.2rem 0 0;
  color: var(--dim);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 42rem;
}
.guide h2, .directory h2, .faq h2, .also h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.guide h3 {
  margin: 1.6rem 0 0.7rem;
  font-size: 1rem;
  font-weight: 500;
}
.prose {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #d8d4cb;
}
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

.choose {
  margin: 0;
  padding: 0;
  list-style: none;
}
.choose li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: #d8d4cb;
}
.choose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--yellow);
}

.facts {
  display: grid;
  gap: 0.85rem 2rem;
  margin: 1.6rem 0 0;
  padding: 0;
}
.facts div { margin: 0; }
.facts dt {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.facts dd {
  margin: 0.2rem 0 0;
  color: var(--ink);
}

.directory {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.9rem;
}
.card {
  display: block;
  padding: 1.1rem 1rem 1.15rem;
  text-decoration: none;
  border: 1px solid var(--line);
  min-height: 8.5rem;
}
.card:hover, .card:focus-visible {
  border-color: var(--line-2);
  background: rgba(245, 197, 24, 0.05);
  outline: none;
}
.card h3 {
  margin: 0 0 0.35rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}
.card p { margin: 0; color: #d8d4cb; line-height: 1.45; }
.card .where {
  margin-bottom: 0.45rem;
  color: var(--dim);
  font-size: 0.86rem;
}

.faq {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 42rem;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--yellow);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0.7rem 0 0;
  color: #d8d4cb;
  line-height: 1.55;
}

.also { margin: 3rem 0 0; }
.also p { display: flex; flex-wrap: wrap; gap: 0.85rem 1.2rem; }
.also a { color: var(--yellow); text-decoration: none; }
.also a:hover { text-decoration: underline; }

.foot {
  padding: 2rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.92rem;
}
.foot p { margin: 0 0 0.9rem; max-width: 42rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; }
.foot a { color: var(--yellow); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .fine {
  margin-top: 1.2rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.place-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.4rem 2rem;
  align-items: end;
}
.place-top .sub { margin-bottom: 0; }

.map-launch {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 8.6rem);
  width: 15.2rem;
  min-height: 5.4rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #101217;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.map-launch:hover, .map-launch:focus-visible {
  border-color: #5a4d1c;
  outline: none;
  background: #14171e;
}
.map-thumb {
  display: block;
  background:
    #f3efe6 center / cover no-repeat;
}
.map-launch-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.7rem 0.85rem;
}
.map-launch-copy strong {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}
.map-launch-copy em {
  margin-top: 0.28rem;
  font-style: normal;
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.3;
}

.row-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.row-wrap .row { border-bottom: 0; }
.map-chip, .map-text {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  background: none;
  border: 1px solid var(--line-2);
  padding: 0.38rem 0.62rem;
  cursor: pointer;
}
.map-chip:hover, .map-chip:focus-visible,
.map-text:hover, .map-text:focus-visible {
  border-color: var(--yellow);
  outline: none;
}
.map-chip { margin-right: 0.1rem; }
.map-text {
  border: 0;
  padding: 0;
  letter-spacing: 0.12em;
}

.map-modal {
  width: min(72rem, calc(100vw - 1.4rem));
  height: min(46rem, calc(100vh - 1.6rem));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-2);
  background: #0c0e12;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}
.map-modal::backdrop {
  background: rgba(4, 5, 7, 0.72);
}
.map-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}
.map-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.map-kicker {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.map-bar h2 {
  margin: 0.18rem 0 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.map-close {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line-2);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.map-close:hover, .map-close:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
  outline: none;
}
.map-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.map-tool {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line-2);
  min-width: 2rem;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
}
.map-tool:hover, .map-tool:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
  outline: none;
}
.map-stage {
  position: relative;
  min-height: 0;
  background: #ece7dc;
}
.map-pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.map-pane.is-drag { cursor: grabbing; }
.map-world {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform-origin: 0 0;
}
#map-image {
  display: block;
  max-width: 96%;
  max-height: 96%;
  width: auto;
  height: auto;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 10px 40px rgba(20, 16, 8, 0.12);
}
.map-attrib {
  margin: 0;
  padding: 0.45rem 1.15rem;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (max-width: 760px) {
  .place-top { grid-template-columns: 1fr; }
  .map-launch { width: 100%; }
  .row-wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .map-modal {
    width: calc(100vw - 0.7rem);
    height: calc(100vh - 0.7rem);
  }
  .map-bar { align-items: flex-start; }
  .map-bar-actions { flex-wrap: wrap; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .live i, .skel { animation: none; }
}
