/* Billboard: a night highway printed as a photocopy. Three inks: night, mustard, cream. */
:root {
  --night: #0b0a08;
  --asphalt: #171512;
  --ink: #000000;
  --mustard: #e8b923;
  --mustard-dim: #a8861c;
  --cream: #ede4cc;
  --cream-dim: #b9b19c;
  --olive: #6f7b52;           /* the exit sign's face, from the sheet */
  --olive-deep: #55603d;
  --warm: #ffd98a;
  --display: "Big Shoulders Stencil Display", "Impact", "Arial Narrow", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --grain: url("art/grain.png");
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.4;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  cursor: url("art/cursor.png") 46 22, auto;
  overflow-x: hidden;
}
body::after {
  /* the photocopy grain over everything */
  content: "";
  position: fixed;
  inset: 0;
  background: var(--grain) repeat;
  background-size: 256px 256px;
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 50;
}
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--mustard); color: var(--ink); padding: 10px 14px; text-decoration: none; font-family: var(--cond); font-weight: 700;
}
.skip:focus { top: 16px; }
main { display: block; }

/* ---------- the road ---------- */
.road { position: relative; width: 100%; overflow: hidden; background: var(--night); }
.hero-pic { display: block; }
.hero { display: block; width: 100%; height: auto; }
.lockup {
  position: absolute; left: 4%; top: 6%; max-width: 46%;
  text-shadow: 0 0 24px rgba(0,0,0,.9);
}
.name {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 9.2vw, 168px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--mustard);
  text-transform: uppercase;
}
.ticker {
  margin: 0.15em 0 0;
  font-family: var(--cond); font-weight: 700;
  font-size: clamp(22px, 2.6vw, 44px);
  letter-spacing: 0.08em;
  color: var(--cream);
}
.premise-below { display: none; }
.premise {
  margin: 0.7em 0 0;
  font-size: clamp(16px, 1.25vw, 22px);
  max-width: 34ch;
  color: var(--cream);
}
.scroll-hint { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); opacity: .8; }
.scroll-hint img { display: block; width: 34px; height: auto; }

/* the board's screen, mapped in perspective by app.js */
.screen {
  position: absolute; left: 0; top: 0;
  transform-origin: 0 0;
  will-change: transform;
  color: var(--cream);
  overflow: hidden;
  background: #050505;
}
.screen-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 4% 5%;
  gap: 0.2em;
  animation: flicker 7s infinite steps(1);
}
.screen-face img.creative { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.screen-kicker { margin: 0; font-family: var(--cond); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mustard); font-size: calc(var(--sw) * 0.028); }
.screen-line { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 1.2; font-size: calc(var(--sw) * 0.13); color: var(--cream); overflow-wrap: anywhere; }
.screen-line.long { font-size: calc(var(--sw) * 0.085); }
.screen-sub { margin: 0; font-family: var(--cond); font-weight: 600; font-size: calc(var(--sw) * 0.034); color: var(--mustard); letter-spacing: .04em; }
.screen-sub span { font-variant-numeric: tabular-nums; }
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: .82; }
  94% { opacity: 1; }
  96% { opacity: .9; }
  97% { opacity: 1; }
}

/* traffic: only the lamps survive the screen blend, the way cars look at night */
.traffic { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; filter: brightness(1.15); }
.car { position: absolute; left: var(--vx); top: var(--vy); width: 26%; height: auto; transform: translate(-50%, -50%) scale(0); opacity: 0; }
.lane-away { animation: away 9s linear infinite; }
.lane-toward { animation: toward 8s linear infinite; width: 16%; }
.c1 { animation-delay: 0s; }
.c2 { animation-delay: -3s; }
.c3 { animation-delay: -6s; }
.c4 { animation-delay: -1.5s; }
.c5 { animation-delay: -5.5s; }
@keyframes away {
  0%   { transform: translate(calc(-50% + var(--ax0)), calc(-50% + var(--ay0))) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--ax1)), calc(-50% + var(--ay1))) scale(0.02); opacity: 0; }
}
@keyframes toward {
  0%   { transform: translate(calc(-50% + var(--bx0)), calc(-50% + var(--by0))) scale(0.02); opacity: 0; }
  10%  { opacity: .85; }
  88%  { opacity: .85; }
  100% { transform: translate(calc(-50% + var(--bx1)), calc(-50% + var(--by1))) scale(0.95); opacity: 0; }
}

/* ---------- the exit sign ---------- */
.exit { position: relative; width: min(560px, calc(100% - 32px)); margin: -12vw auto 0; z-index: 2; }
.exit-panel {
  background: var(--olive);
  border: 6px solid var(--cream);
  border-radius: 16px;
  box-shadow: 0 0 0 3px var(--ink), 0 18px 40px rgba(0,0,0,.6);
  padding: 14px 18px 18px;
  color: var(--cream);
}
.exit-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.exit-tab { font-family: var(--cond); font-weight: 700; font-size: 18px; letter-spacing: .12em; background: var(--cream); color: var(--olive-deep); padding: 3px 10px; border-radius: 6px; }
.exit-word { font-family: var(--cond); font-weight: 600; font-size: 22px; letter-spacing: .02em; }
.exit-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 12px; border-top: 2px solid rgba(237,228,204,.55); padding-top: 12px; }
.exit-label { font-family: var(--cond); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 15px; }
.mint { font-family: var(--cond); font-weight: 600; font-size: 18px; letter-spacing: .02em; overflow-wrap: anywhere; word-break: break-all; user-select: all; line-height: 1.25; }
.mint.empty { color: var(--cream-dim); font-style: normal; user-select: none; }
.exit-links { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.link {
  display: flex; align-items: center; gap: 12px; min-height: 52px;
  padding: 8px 14px; border-radius: 10px;
  background: var(--olive-deep); color: var(--cream); text-decoration: none;
  font-family: var(--cond); font-weight: 700; font-size: 21px; letter-spacing: .02em;
  border: 2px solid rgba(237,228,204,.35);
  transition: transform .08s ease;
}
.link img { width: 28px; height: 28px; object-fit: contain; }
.link-x img { width: 24px; height: 24px; margin: 0 2px; }
.link:hover { transform: translateY(-1px); }
.link:active { transform: translateY(1px) scale(.99); }
.link[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.exit-legs { display: block; width: 62%; height: auto; margin: -4px auto 0; }

/* ---------- the shoulder ---------- */
.shoulder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 40px;
  align-items: stretch;
  width: min(1240px, calc(100% - 32px));
  margin: 56px auto 0;
  padding-bottom: 80px;
}
.sign { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.sign-archive { grid-column: 1 / -1; }
.face {
  width: 100%; flex: 1 1 auto;
  background: var(--asphalt);
  border: 5px solid var(--cream);
  border-radius: 14px;
  box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 2px rgba(237,228,204,.12);
  padding: 22px 24px 26px;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
}
.legs { display: block; width: min(46%, 260px); height: auto; margin-top: -3px; flex: 0 0 auto; }
.face-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid rgba(237,228,204,.35); padding-bottom: 10px; }
.face h2 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 44px; line-height: 1.2; color: var(--mustard); letter-spacing: .01em; }
.week { margin: 0; font-family: var(--cond); font-weight: 600; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-dim); }
.big { margin: 4px 0 0; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 5vw, 72px); line-height: 1.2; color: var(--cream); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.under { margin: 0; font-family: var(--cond); font-weight: 600; font-size: 20px; color: var(--mustard); letter-spacing: .03em; }
.rows { margin: 4px 0 0; display: grid; gap: 6px; }
.rows div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(237,228,204,.2); padding-top: 6px; }
.rows dt { margin: 0; color: var(--cream-dim); }
.rows dd { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.fine { margin: 0; color: var(--cream-dim); font-size: 15px; }
.plain { color: var(--mustard); }

/* auction */
.leader { border: 2px dashed rgba(232,185,35,.55); border-radius: 10px; padding: 12px 14px; }
.leader-label { margin: 0; font-family: var(--cond); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; color: var(--mustard); }
.leader-amount { margin: 2px 0 0; font-family: var(--display); font-weight: 900; font-size: clamp(36px, 4vw, 56px); line-height: 1.2; color: var(--cream); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.leader-who { margin: 4px 0 0; font-family: var(--cond); font-weight: 600; font-size: 18px; color: var(--cream-dim); overflow-wrap: anywhere; }
.leader-text { margin: 4px 0 0; font-family: var(--cond); font-weight: 700; font-size: 22px; text-transform: uppercase; color: var(--mustard); overflow-wrap: anywhere; }
.leader-text:empty { display: none; }
.bids { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bids:empty { display: none; }
.bids li { display: grid; grid-template-columns: 2ch 1fr auto; gap: 10px; align-items: baseline; font-family: var(--cond); font-size: 18px; border-top: 1px solid rgba(237,228,204,.2); padding-top: 6px; }
.bids .n { color: var(--mustard); font-weight: 700; }
.bids .w { color: var(--cream-dim); overflow-wrap: anywhere; }
.bids .w small { display: block; color: var(--cream); text-transform: uppercase; font-weight: 600; font-size: 16px; }
.bids .a { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bidform, .voteform { display: grid; gap: 10px; margin-top: 4px; border-top: 2px solid rgba(237,228,204,.35); padding-top: 14px; }
.wallet-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wallet-who { font-family: var(--cond); font-weight: 600; font-size: 17px; color: var(--cream-dim); overflow-wrap: anywhere; min-width: 0; }
.field { display: grid; gap: 4px; }
.field span { font-family: var(--cond); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; color: var(--cream-dim); }
.field input, .field select {
  min-height: 48px; padding: 8px 12px; border-radius: 8px;
  background: var(--night); color: var(--cream); border: 2px solid rgba(237,228,204,.4);
  font-family: var(--cond); font-weight: 600; font-size: 20px; width: 100%; min-width: 0;
}
.field input::placeholder { color: rgba(237,228,204,.35); }
.key {
  min-height: 48px; padding: 8px 18px; border-radius: 8px;
  background: var(--cream); color: var(--ink); border: 0;
  font-family: var(--cond); font-weight: 700; font-size: 19px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 3px 0 var(--cream-dim);
  transition: transform .08s ease, box-shadow .08s ease;
}
.key:hover { transform: translateY(-1px); }
.key:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cream-dim); }
.key[disabled], .key[aria-disabled="true"] { opacity: .45; box-shadow: none; transform: none; cursor: not-allowed; }
.key-primary { background: var(--mustard); box-shadow: 0 3px 0 var(--mustard-dim); }
.key-primary:active { box-shadow: 0 1px 0 var(--mustard-dim); }
.key-wide { flex: 0 0 auto; }
.form-note { margin: 0; font-size: 15px; color: var(--cream-dim); }
.form-note.ok { color: var(--mustard); }
.form-note.bad { color: #ff9d7a; }

/* city */
.cities { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.cities li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-family: var(--cond); font-size: 19px; border-top: 1px solid rgba(237,228,204,.2); padding-top: 5px; }
.cities li.top { color: var(--mustard); font-weight: 700; }
.cities .v { font-variant-numeric: tabular-nums; font-weight: 700; }

/* how */
.steps { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; font-size: 17px; }
.steps li::marker { color: var(--mustard); font-family: var(--cond); font-weight: 700; }

/* archive: mini boards */
.boards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.boards:empty { display: none; }
.board-item { display: grid; gap: 8px; }
.mini { position: relative; width: 100%; }
.mini img.frame { display: block; width: 100%; height: auto; }
.mini .mini-screen { position: absolute; left: 19.5%; top: 11.5%; width: 65.5%; height: 47%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4% 4%; font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--cream); font-size: clamp(16px, 2vw, 26px); line-height: 1.2; overflow: hidden; overflow-wrap: anywhere; }
.mini .mini-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.board-meta { font-family: var(--cond); font-size: 17px; color: var(--cream-dim); }
.board-meta b { color: var(--cream); font-weight: 600; }
.board-meta a { color: var(--mustard); }
.board-photo { display: block; width: 100%; height: auto; border: 3px solid var(--cream); border-radius: 8px; }
.empty { margin: 0; font-family: var(--cond); font-size: 20px; color: var(--cream-dim); }
.empty[hidden] { display: none; }

/* modal */
.modal { border: 0; padding: 0; background: transparent; max-width: min(520px, calc(100% - 32px)); }
.modal::backdrop { background: rgba(0,0,0,.75); }
.modal-face { background: var(--asphalt); border: 5px solid var(--cream); border-radius: 14px; box-shadow: 0 0 0 3px var(--ink); padding: 22px 24px; color: var(--cream); display: grid; gap: 12px; }
.modal-face h2 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 36px; line-height: 1.2; color: var(--mustard); }
.modal-face p { margin: 0; overflow-wrap: anywhere; }
.modal-link a { color: var(--mustard); }

/* ---------- phones ---------- */
@media (max-width: 900px) {
  .shoulder { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .face h2 { font-size: 38px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .lockup { left: 16px; right: 16px; top: 2.2%; max-width: none; }
  .name { font-size: clamp(56px, 17vw, 80px); }
  .ticker { font-size: 20px; margin-top: .1em; }
  .lockup .premise { display: none; }
  .premise-below { display: block; margin: 0 0 18px; font-size: 17px; max-width: 32ch; color: var(--cream); }
  .exit { margin-top: 8px; width: calc(100% - 32px); }
  .exit-panel { padding: 12px 14px 14px; }
  .exit-row { grid-template-columns: 1fr auto; }
  .exit-label { grid-column: 1 / -1; }
  .mint { font-size: 16px; }
  .link { font-size: 19px; }
  .face { padding: 18px 16px 20px; }
  .big { font-size: 44px; }
  .leader-amount { font-size: 36px; }
  .bids li { grid-template-columns: 2ch 1fr; }
  .bids .a { grid-column: 2; }
  .legs { width: 46%; }
  .scroll-hint { display: none; }
}
@media (max-width: 340px) {
  .name { font-size: 60px; }
  .face h2 { font-size: 32px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .traffic { display: none; }
  .screen-face { animation: none; }
  .key, .link { transition: none; }
}
