/* games.joemorrow.com/beta/ -- "The Back Bench" (added 2026-10-07, Jordan).
   The basement's workshop corner: pegboard wall, a work-light, a plank sign with hazard ends.
   Loads AFTER /style.css and only adds what the beta page needs; every color/font token comes
   from style.css (--ink, --paper, --gold, --red, --olive, --display, --body, --hand). Nothing
   here is loaded by the production arcade. */

@font-face { font-family: "Big Shoulders"; src: url("../fonts/BigShoulders-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --peg: #c9a877;          /* hardboard */
  --peg-dk: #a8865a;
  --caution: #f2c12e;
  --hazard-ink: #211c12;
  --tape-b: #efe2b8;       /* masking tape (the bench's own, a touch lighter than the front page's --tape) */
  /* theme tokens, light values (2026-11-10): what the bench used to hard-code */
  --peg-dot: rgba(42, 30, 16, .55);
  --wall-a: rgba(255, 240, 210, .18);  --wall-b: rgba(60, 38, 18, .12);
  --pool: rgba(255, 236, 176, .55);                                      /* the work-light pool */
  --plank-a: #ead2a0;  --plank-b: #dcbd83;
  --colon: #c4432c;  --bench-head: #2b1d12;  --bench-count: #7d1e10;
  --rules-bg: rgba(255, 250, 240, .7);
  --soon-a: #efe6cf;  --soon-b: #e4d8b9;
  --tomb-kicker: #8a2e1c;  --epitaph: #f3e6b4;  --build-btn: #f3e6b4;
}

/* Pegboard wall behind the shelf instead of the carpet grain. */
body.bench {
  background-color: var(--peg);
  background-image:
    radial-gradient(circle at 50% 50%, var(--peg-dot) 0 2.2px, transparent 2.8px),
    linear-gradient(180deg, var(--wall-a), var(--wall-b));
  background-size: 26px 26px, 100% 100%;
}

.top-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; white-space: nowrap; border-radius: 6px;
  font: 700 12px/1 var(--body); letter-spacing: .04em; color: #2b1d12; text-decoration: none;
  background: var(--gold); box-shadow: 0 2px 0 #7c5415;
}
.top-back:hover { background: #e6b54f; }
.top-back:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 3px; }

/* ---------- the sign: a plank screwed to the pegboard, hazard-striped ends ---------- */
.bench-sign {
  position: relative; padding: clamp(26px, 5vw, 46px) clamp(14px, 4vw, 40px) clamp(10px, 2vw, 18px);
  /* work-light pool spilling down the wall */
  background: radial-gradient(60% 120% at 50% -10%, var(--pool), transparent 70%);
}
.bench-lamp {
  position: absolute; left: 50%; top: 0; width: 120px; height: 16px; translate: -50% 0;
  background: #2b1d12; border-radius: 0 0 60px 60px; box-shadow: 0 6px 18px rgba(255, 214, 120, .65);
}
.bench-plank {
  position: relative; max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 54px 1fr 54px; align-items: stretch;
  border: 3px solid var(--line-fixed); border-radius: 8px; overflow: hidden;
  background:
    repeating-linear-gradient(178deg, transparent 0 13px, rgba(120, 78, 38, .14) 13px 14px),
    linear-gradient(180deg, var(--plank-a), var(--plank-b));
  box-shadow: 6px 8px 0 var(--shadow);
  transform: rotate(-.8deg);
  animation: bench-hang .6s cubic-bezier(.2, 1.35, .4, 1) .1s both;
}
.bench-hazard { background: repeating-linear-gradient(-45deg, var(--caution) 0 12px, var(--hazard-ink) 12px 24px); }
.bench-hazard:first-child { border-right: 3px solid var(--line-fixed); }
.bench-hazard:last-child { border-left: 3px solid var(--line-fixed); }
.bench-copy { padding: clamp(14px, 2.6vw, 22px) clamp(14px, 3vw, 28px); text-align: center; }
.bench-title {
  font: 700 clamp(30px, 6.4vw, 60px)/.95 "Big Shoulders", var(--display); letter-spacing: .02em; text-transform: uppercase;
  color: var(--hazard-ink);
}
.bench-title .cone { display: inline-block; transform: rotate(-8deg) translateY(-2px); margin-right: .12em; }
.bench-title .colon { color: var(--colon); }
.bench-hand { margin-top: 8px; font: clamp(19px, 2.6vw, 24px)/1.15 var(--hand); color: var(--olive-fixed); }
.bench-rules {
  list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px;
  font: 700 12px/1.3 var(--body); color: var(--ink-fixed);
}
.bench-rules li { padding: 3px 9px; border-radius: 4px; background: var(--rules-bg); border: 1px solid rgba(42, 38, 25, .3); }
.bench-screw { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #8d877a; box-shadow: inset 0 0 0 1px #4d473b; }
.bench-screw::after { content: ""; position: absolute; inset: 4px 1px; background: #4d473b; transform: rotate(35deg); }
.bench-screw.s1 { left: 64px; top: 9px; } .bench-screw.s2 { right: 64px; top: 9px; }
.bench-back { margin-top: 14px; text-align: center; }
.bench-back a { font: 700 14px/1.2 var(--body); color: var(--hazard-ink); text-underline-offset: 3px; }
.bench-back a:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 3px; }

@keyframes bench-hang { from { opacity: 0; transform: translateY(-18px) rotate(-4deg); } }

/* ---------- shelf heading on the pegboard ---------- */
body.bench .shelf { padding-top: clamp(18px, 3vw, 30px); }
body.bench .shelf-head h2 { color: var(--bench-head); }
body.bench .shelf-count { color: var(--bench-count); }

/* ---------- beta cards: same cartridge, with work-in-progress dressing ---------- */
.card--wip { position: relative; }
.card--wip .card-shot::after { /* a strip of masking tape holding the screenshot on */
  content: ""; position: absolute; z-index: 2; top: -4px; left: 50%; width: 92px; height: 22px; translate: -50% 0;
  background: var(--tape-b); opacity: .92; transform: rotate(-3deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  clip-path: polygon(2% 0, 98% 4%, 100% 50%, 97% 100%, 3% 96%, 0 50%);
}
.badge.badge--wip { /* stage label: a marker-on-tape strip, not the round phone sticker */
  width: auto; height: auto; border-radius: 2px; padding: 7px 12px 6px; gap: 0;
  font: 400 20px/1 var(--hand); letter-spacing: 0; text-transform: none;
  color: var(--tape-ink); background: var(--tape-b); border: 0; transform: rotate(-4deg);
  box-shadow: 1px 2px 0 rgba(42, 38, 25, .35);
}
.card--wip .card-foot .play { min-height: 48px; flex: 1 1 120px; }
.tune-btn {
  flex: 1 1 120px; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 8px; text-decoration: none;
  font: 800 18px/1 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .08em; color: var(--hazard-ink); background: var(--caution);
  border: 2px solid var(--line); box-shadow: 0 4px 0 var(--shadow); transition: transform .08s, box-shadow .08s;
}
.tune-btn:hover { background: #f0c63a; }
.tune-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--shadow); }
.tune-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.tune-hint { flex-basis: 100%; margin: -2px 0 0; font: 400 13px/1.3 var(--body); color: var(--ink-2); text-align: center; }

/* "Coming soon": the folder isn't on the bench yet. Dimmed shot, a stamped non-button. */
.card--wip-soon .card-shot img { filter: grayscale(.85) brightness(.6); }
.card--wip-soon:hover .card-shot img { filter: grayscale(.85) brightness(.6); }
.card--wip-soon .card-shot::after { content: "COMING SOON"; width: auto; height: auto; top: 50%; padding: 8px 14px 6px;
  font: 700 22px/1 "Big Shoulders", var(--display); letter-spacing: .08em; color: var(--hazard-ink); background: var(--caution);
  translate: -50% -50%; clip-path: none; border: 2px solid var(--hazard-ink); }
.play.play--soon {
  cursor: default; color: var(--ink-2); background: repeating-linear-gradient(-45deg, var(--soon-a) 0 10px, var(--soon-b) 10px 20px);
  box-shadow: none; border-style: dashed; font-size: 20px;
}
.play.play--soon:hover { background: repeating-linear-gradient(-45deg, var(--soon-a) 0 10px, var(--soon-b) 10px 20px); }
.play.play--soon:active { transform: none; }

body.bench .foot { background: var(--bar); }

@media (max-width: 520px) {
  .bench-plank { grid-template-columns: 22px 1fr 22px; }
  .bench-screw.s1 { left: 30px; } .bench-screw.s2 { right: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .bench-plank { animation: none; }
}

/* ---------- Featured beta promo boxes (added 2026-10-14, Jordan) ----------
   The boxes themselves are production's .spot--ad styles from style.css. Beta only adds: a Tune button
   beside Play, and per-game framing of the still on phones, where the media box is a 4:5 portrait crop. */
.spot--ad .spot-actions .acts-main { flex-wrap: wrap; } /* Play and Tune stack on phones as before the .acts-main wrapper (2026-10-15) */
.spot--ad .spot-actions .tune-btn { flex: 0 1 auto; min-width: 112px; padding: 0 18px; }
@media (max-width: 600px) {
  .spot--ad .spot-actions .tune-btn { flex: 1 1 100%; }
  /* Sky Rescue: keep the helicopter, the camp and the locked tank in the 4:5 window. */
  .spot[data-slug="sky-rescue"] .spot-reel img { object-position: 56% 50%; }
  /* Dead Reckoning: the four-tables composite shows whole instead of a centre crop through the gutters. */
  .spot[data-slug="dead-reckoning"] .spot-reel { background: #1a1410; }
  .spot[data-slug="dead-reckoning"] .spot-reel img { object-fit: contain; }
}

/* ---------- Other projects (added 2026-10-17, Jordan) ----------
   Parked work as decommissioned asset cards: solid cream surface, dark border, hard shadow, like the lineup cards.
   Add an entry by copying an <li class="tomb"> in beta/index.html. */
.parked { max-width: 760px; margin: clamp(40px, 7vw, 72px) auto 0; padding: 0 4px; }
.parked-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 18px; padding: 12px 16px 10px; background: var(--bar); border-radius: 8px; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); width: fit-content; max-width: 100%; }
.parked-h span { font: 800 15px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #f3e6b4; }
.parked-h small { font: 400 20px/1 var(--hand); color: #ffd978; }
.parked-list { list-style: none; margin: 0; padding: 0; }
.tomb { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--paper); color: var(--ink); border: 2px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 5px 6px 0 var(--shadow); }
.tomb + .tomb { margin-top: 22px; }
.tomb-shot { position: relative; display: block; background: #111; border-right: 2px solid var(--line); min-height: 180px; }
.tomb-shot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.9) brightness(.7); }
.tomb-stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); white-space: nowrap; padding: 8px 14px 6px; border: 3px solid #ffd2c8; border-radius: 4px; background: rgba(33, 28, 18, .78); color: #ffd2c8; font: 800 clamp(15px, 2.6vw, 20px)/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.tomb-body { padding: 18px 20px 20px; }
.tomb-kicker { font: 700 12px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--tomb-kicker); }
.tomb-name { margin: 4px 0 0; font: 700 26px/1.08 var(--display); letter-spacing: -.01em; color: var(--ink); }
.tomb-dates { margin-top: 6px; font: 400 17px/1.4 var(--body); color: var(--ink-2); }
.tomb-epitaph { display: inline-block; text-wrap: balance; margin: 14px 0 0; padding: 10px 14px 8px; background: var(--epitaph); box-shadow: 0 2px 0 rgba(43, 29, 18, .3); transform: rotate(-1.2deg); font: 400 22px/1.3 var(--hand); color: #5a1d10; }
.tomb-brief { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 18px; border-radius: 8px; background: var(--olive); color: #fff; font: 800 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; box-shadow: 0 4px 0 var(--olive-press); }
.tomb-brief:hover { background: var(--olive-press); }
.tomb-builds-h { margin-top: 16px; font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.tomb-builds { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tomb-builds a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 16px; border: 2px solid var(--line); border-radius: 8px; background: var(--build-btn); color: var(--ink); font: 700 16px/1 var(--body); text-decoration: none; }
.tomb-builds a:hover { background: var(--gold); }
.tomb-brief:focus-visible, .tomb-builds a:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 3px; }
@media (max-width: 620px) {
  .tomb { grid-template-columns: 1fr; }
  .tomb-shot { border-right: 0; border-bottom: 2px solid var(--line); aspect-ratio: 16 / 9; min-height: 0; }
}

/* ============================================================================================
   AFTER HOURS, bench edition (2026-11-10, Jordan; spec section 3 "Beta bench" + "Parked tombs"). The pegboard goes dark, the work-light
   pool strengthens, the plank stays a lit object with fixed dark ink. The shared dark tokens live in style.css; these are the bench's own.
   ============================================================================================ */
html[data-theme="dark"] {
  --peg: #3d2f1f;  --peg-dk: #2f2417;
  --peg-dot: rgba(0, 0, 0, .5);
  --wall-a: rgba(255, 236, 176, .06);  --wall-b: rgba(0, 0, 0, .15);
  --pool: rgba(255, 236, 176, .22);
  --plank-a: #d2b583;  --plank-b: #c9ab78;
  --colon: #8f2a18;  --bench-head: var(--ink);  --bench-count: var(--red-ink);
  --rules-bg: rgba(33, 28, 18, .2);   /* spec said .35, which measures 3.61 to 3.92 for the ink on the plank; .2 gives 4.82 to 5.33 */
  --soon-a: #3b3021;  --soon-b: #33291b;
  --tomb-kicker: var(--red-ink);  --epitaph: #d9cb9c;  --build-btn: var(--paper-2);
  --tape-b: #cdb985;
}
/* Native-dark mirror for detectors (Noir / Safari adaptive dark); same scope and reasoning as the block in style.css. Keep in step. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --peg: #3d2f1f;  --peg-dk: #2f2417;
    --peg-dot: rgba(0, 0, 0, .5);
    --wall-a: rgba(255, 236, 176, .06);  --wall-b: rgba(0, 0, 0, .15);
    --pool: rgba(255, 236, 176, .22);
    --plank-a: #d2b583;  --plank-b: #c9ab78;
    --colon: #8f2a18;  --bench-head: var(--ink);  --bench-count: var(--red-ink);
    --rules-bg: rgba(33, 28, 18, .2);
    --soon-a: #3b3021;  --soon-b: #33291b;
    --tomb-kicker: var(--red-ink);  --epitaph: #d9cb9c;  --build-btn: var(--paper-2);
    --tape-b: #cdb985;
  }
}
/* Back to Arcade, under the plank, sits on the wall rather than on the plank */
html[data-theme="dark"] .bench-back a { color: var(--ink); }
