/* Shovel Brigade site: the look of the dig page and the game's lobby UI.
   Colours are the dig page's, sampled from the game's logo and lobby screens. */
:root {
  --bg: #1f231d; --panel: #191c17; --brass: #756136; --gold: #e2b646; --yellow: #f8c50d; --orange: #ee970d;
  --cream: #d6cfb2; --dim: #8b8670; --blue: #67c1f5; --blue-bar: #437287; --red: #fc7b65; --red-bar: #884b3b;
  --ink: #0d0f0b; --out: #1c0e09; --bone: #fde8e0; --olive: #7a882b;
  --px: 'Press Start 2P', ui-monospace, monospace;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- buttons (also used on the home page) ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 0; padding: 0; }
.btn {
  display: inline-block; font-family: var(--px); font-size: 10px; line-height: 1.4; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none; -webkit-font-smoothing: none;
  color: var(--cream); background: var(--panel); padding: 12px 14px;
  border: 3px solid var(--brass); outline: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .08s steps(2), box-shadow .08s steps(2);
}
.btn:hover { color: var(--gold); border-color: var(--gold); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn[aria-current="page"] { color: var(--gold); border-color: var(--gold); }
.btn-steam { color: var(--out); background: var(--yellow); border-color: var(--orange); text-shadow: none; }
.btn-steam:hover { color: var(--out); background: #fff3a8; border-color: var(--yellow); }
@keyframes btnpulse { 50% { background: #fff3a8; box-shadow: 0 0 16px var(--yellow), 4px 4px 0 var(--ink); } }
.btn-steam.pulse { animation: btnpulse .6s steps(2) infinite; }

/* ---------- content pages ---------- */
html:has(body.page) { background: var(--bg); }
body.page {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg) url(/img/ground.svg) repeat; color: var(--cream);
  font-family: var(--text); font-size: 17px; line-height: 1.65;
}
/* text links only; buttons, cards, the crumbs and the footer style their own */
.content a:not(.btn):not(.card) { color: var(--gold); text-underline-offset: 3px; }
.content a:not(.btn):not(.card):hover { color: var(--yellow); }
.page a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.nw { white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 9; }
.skip:focus { left: 16px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 24px; background: var(--panel); border-bottom: 3px solid var(--brass); box-shadow: 0 4px 0 var(--ink);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 64px; width: auto; display: block; }
.brand span { font-family: var(--px); font-size: 12px; color: var(--yellow); text-shadow: 2px 2px 0 var(--out); -webkit-font-smoothing: none; }
.top .btn-row { justify-content: flex-end; }
.top .btn { font-size: 9px; padding: 10px 12px; }

.wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.crumbs { font-family: var(--px); font-size: 8px; line-height: 2; color: var(--dim); margin: 26px 0 0; text-transform: uppercase; -webkit-font-smoothing: none; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs li + li::before { content: '>'; margin-right: 10px; color: var(--brass); }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--cream); }

.content { flex: 1; padding-bottom: 56px; }
.content h1 {
  font-family: var(--px); font-weight: normal; font-size: clamp(18px, 4.2vw, 26px); line-height: 1.5;
  color: var(--yellow); text-shadow: 3px 3px 0 var(--out); margin: 22px 0 18px; text-transform: uppercase; -webkit-font-smoothing: none;
}
.content h2 {
  font-family: var(--px); font-weight: normal; font-size: 13px; line-height: 1.7; color: var(--gold);
  margin: 2.4em 0 0.9em; text-transform: uppercase; -webkit-font-smoothing: none;
}
.content h2::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--yellow);
  box-shadow: 2px 2px 0 var(--out); margin-right: 12px; vertical-align: 2px; }
.content h3 { font-size: 17px; color: var(--cream); margin: 1.6em 0 0.3em; }
.content p, .content li { max-width: 68ch; }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin: 0.35em 0; }
.content li::marker { color: var(--brass); }
.content strong { color: #efe8cc; }
.lede { font-size: 19px; color: #e6dfc2; }
.meta { font-family: var(--px); font-size: 8px; line-height: 2; color: var(--dim); text-transform: uppercase; -webkit-font-smoothing: none; }

/* panel, like the in-game order card */
.panel { background: var(--panel); border: 3px solid var(--brass); outline: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); margin: 28px 0; }
.panel > .bar { display: flex; align-items: center; gap: 10px; background: var(--blue-bar); color: #eaf6fd; font-family: var(--px);
  font-size: 9px; padding: 8px 12px; letter-spacing: 0.04em; -webkit-font-smoothing: none; }
.panel > .bar.red { background: var(--red-bar); color: var(--bone); }
.panel > .body { padding: 6px 16px 14px; }

/* fact sheet */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0 20px; margin: 0; }
.facts dt { font-family: var(--px); font-size: 8px; line-height: 2; color: var(--dim); text-transform: uppercase; padding: 12px 0 0; -webkit-font-smoothing: none; }
.facts dd { margin: 0; padding: 8px 0; border-bottom: 1px solid #2c2f27; }
.facts dt { border-bottom: 1px solid #2c2f27; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-top: 14px; }
  .facts dd { padding-top: 2px; }
}

/* key list */
.keys { width: 100%; border-collapse: collapse; }
.keys th { text-align: left; font-family: var(--px); font-weight: normal; font-size: 8px; color: var(--dim); padding: 10px 8px; -webkit-font-smoothing: none; }
.keys td { padding: 9px 8px; border-top: 1px solid #2c2f27; vertical-align: top; }
.keys td:first-child { white-space: nowrap; width: 1%; padding-right: 20px; }
kbd {
  display: inline-block; font-family: var(--px); font-size: 9px; line-height: 1; color: var(--cream); background: #2a2e25;
  padding: 6px 7px 5px; margin: 1px 2px; border: 2px solid var(--brass); border-bottom-width: 4px; border-radius: 0;
  -webkit-font-smoothing: none;
}
@media (max-width: 560px) { .keys td:first-child { white-space: normal; } }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 20px 0; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border: 3px solid var(--brass); outline: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); background: var(--panel); }
.shots figcaption { font-size: 14px; color: var(--dim); margin-top: 10px; line-height: 1.5; }
@media (max-width: 620px) { .shots { grid-template-columns: 1fr; } }

/* guide cards */
.cards, .content .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin: 26px 0; padding: 0; list-style: none; }
.cards li { margin: 0; max-width: none; }
.card {
  display: flex; flex-direction: column; gap: 10px; height: 100%; box-sizing: border-box; padding: 16px; text-decoration: none;
  background: var(--panel); border: 3px solid var(--brass); outline: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .08s steps(2), box-shadow .08s steps(2);
}
a.card { color: var(--cream); }
.card:hover { border-color: var(--gold); }
.card:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.card .t { font-family: var(--px); font-size: 11px; line-height: 1.6; color: var(--gold); text-transform: uppercase; -webkit-font-smoothing: none; }
.card .d { font-size: 15px; line-height: 1.55; flex: 1; }
.card .go { font-family: var(--px); font-size: 8px; color: var(--dim); text-transform: uppercase; -webkit-font-smoothing: none; }
.card:hover .go { color: var(--gold); }

.cta { margin: 40px 0 0; }
.cta .btn-row { justify-content: flex-start; }

.foot { background: var(--panel); border-top: 3px solid var(--brass); padding: 22px 0 28px; font-size: 14px; color: var(--dim); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--cream); text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot p { margin: 0; }

@media (max-width: 640px) {
  .top { padding: 12px 16px; justify-content: center; }
  .top .btn-row { justify-content: center; gap: 10px; }
  .brand img { height: 52px; }
  .wrap { padding: 0 16px; }
  body.page { font-size: 16px; }
  .lede { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .card { transition: none; }
  .btn-steam.pulse { animation: none; }
}
