/* Shared look for the indexable standalone pages (/about, /how-to-play,
   /highscores). The game's css/style.css is desk-scene-specific; these
   pages get the dashboard's dark reading style instead. Content classes
   (.pullquotes, .exhibit, .tiprow...) mirror the #panelbody rules in
   style.css so the SAME markup renders well both here and adopted into
   the in-game panels. */
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: #0a0a14;
  color: #c8c8d0;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.5;
}
main { max-width: 720px; margin: 0 auto; padding: 12px 16px 40px; }
a { color: #ffd23f; }
h1 {
  font-size: 22px;
  color: #ffd23f;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 18px 0 14px;
}
h2 {
  margin: 22px 0 6px;
  font-size: 15px;
  color: #ffd23f;
  letter-spacing: .5px;
  text-transform: uppercase;
}
p { margin: 8px 0; }
.dim { color: #8890a8; }

/* header/footer nav */
.pgnav {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  border-bottom: 1px solid #1c1c2c;
}
footer.pgnav { border-bottom: 0; border-top: 1px solid #1c1c2c; margin-top: 20px; }
.pgnav .site { color: #ffd23f; font-weight: bold; text-decoration: none; margin-right: auto; }
.pgnav a { color: #c8c8d0; text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.pgnav a:hover { color: #ffd23f; }
.pgnav a[aria-current="page"] { color: #ffd23f; border-bottom: 1px solid #ffd23f; }

/* the big invitation back to the game */
.playcta { margin: 30px 0 10px; text-align: center; }
.playcta a {
  display: inline-block;
  padding: 12px 26px;
  background: #ffd23f;
  color: #14120f;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.playcta a:hover { background: #ffe27a; }

/* ---- content classes shared with the in-game panels ---- */
.pullquotes { margin: 2px 0 20px; }
.pullquotes p { margin: 14px 0; color: #ffd23f; font-size: 17px; line-height: 1.4; }
.pullquotes .who { color: #8890a8; font-size: 13px; white-space: nowrap; }
.tiny { font-size: 12px; }
.exhibit {
  margin: 10px 0;
  padding: 10px 12px;
  background: #10101e;
  border: 1px solid #2a2a44;
  border-radius: 4px;
}
.exhibit h3 { margin: 0 0 4px; font-size: 14px; }
.exhibit a { color: #ffd23f; text-decoration: none; }
.exhibit a:hover { text-decoration: underline; }
.exhibit p { margin: 0; color: #9aa; font-size: 13px; }
img.aboutshot, video.aboutshot {
  display: block;
  width: 100%;
  max-width: 440px;
  margin: 14px auto;
  image-rendering: pixelated;
  border: 2px solid #333;
  border-radius: 3px;
}
.tiprow { display: flex; align-items: center; gap: 16px; margin: 10px 0; }
/* a fixed icon slot keeps every row's text aligned, whatever the sprite size */
.tiprow .tipicon { flex: none; width: 96px; display: flex; justify-content: center; }
.tiprow img { image-rendering: pixelated; flex: none; }
.tiprow p { margin: 0; }
.tiprow.tipminus p { color: #ff5545; }
.tipcaption { text-align: center; margin-top: -6px; }
.tipbonus p { margin: 12px 0; }

/* ---- highscore boards (dashboard.html look) ---- */
.card {
  background: #10101c;
  border: 1px solid #22223a;
  border-radius: 10px;
  padding: 16px 14px;
  margin: 0 0 18px;
}
.card h2 { margin: 0 0 10px; font-size: 13px; color: #8890a8; letter-spacing: .06em; }
.bignum {
  color: #ffd23f;
  font-size: clamp(38px, 8vw, 56px);
  font-weight: bold;
  text-align: center;
  margin: 6px 0 2px;
  line-height: 1.1;
}
.row {
  display: grid;
  grid-template-columns: 2.6em 1fr 8em 4em 4em 4em;
  gap: 8px;
  align-items: baseline;
  padding: 6px 10px;
  border-bottom: 1px solid #1c1c2c;
  font-size: 14px;
}
.head { color: #8890a8; text-transform: uppercase; letter-spacing: .06em; cursor: default; }
.head span { font-size: 12px; }
.idx { color: #8890a8; text-align: right; }
.row.m1 span { color: #ffd23f; }
.row.m2 span { color: #e8e8f0; }
.row.m3 span { color: #cd8032; }
.h2row { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; }
.h2row h2 { margin: 0; }
.h2pick { display: flex; align-items: center; gap: 8px; }
.h2pick select {
  font-family: inherit;
  font-size: 12px;
  color: #cfcfcf;
  background: #16161c;
  border: 1px solid #33333d;
  border-radius: 4px;
  padding: 3px 6px;
  max-width: 200px;
}
.flag { width: 16px; height: 12px; margin-right: 6px; vertical-align: -1px;
        border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.when { color: #8890a8; font-size: 12px; }
.nth { color: #9aa; text-align: right; }
.dur { color: #9aa; text-align: right; }
.pts { color: #ffd23f; font-weight: bold; text-align: right; }
.head .nth, .head .pts { text-align: right; }
.msg { color: #8890a8; padding: 20px 10px; }
@media (max-width: 560px){
  .row { grid-template-columns: 2em 1fr 6.5em 3em 3em 3.4em; gap: 5px; font-size: 12px; padding: 6px 4px; }
  .when { font-size: 11px; }
}

/* ---- the contact form (mirrors the in-game panel's form) ---- */
#commentForm { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
#commentForm label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #c8c8d0; }
#commentForm input, #commentForm textarea {
  padding: 7px 9px;
  font-family: inherit;
  font-size: 13px;
  color: #cfcfcf;
  background: #16161c;
  border: 1px solid #33333d;
  border-radius: 4px;
}
#commentForm textarea { resize: vertical; min-height: 90px; }
#commentForm .crow { display: flex; align-items: center; gap: 12px; }
#cSend {
  padding: 7px 22px;
  font-family: inherit;
  font-size: 13px;
  color: #ffd23f;
  background: #26263a;
  border: 1px solid #4a4a66;
  border-radius: 5px;
  cursor: pointer;
}
#cSend:hover { background: #33334d; }
#cSend:disabled { opacity: .5; cursor: default; }
