/* Bolti - Ninth Sprite. C64 palette: black #000, white #fff, blue #40318d, light blue #7869c4,
   yellow #bfce72, light green #94e089, cyan #67b6bd, light grey #9f9f9f, brown #574200 */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  line-height: 1.9;
}
img { image-rendering: pixelated; }
a { color: #fff; }
a:hover, a:focus-visible { color: #bfce72; }

/* menu bar */
.topbar { background: #000; border-bottom: 6px solid #7869c4; box-shadow: 0 6px 0 #40318d; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 48px; height: 24px; }
.brand span { font-size: 22px; color: #bfce72; letter-spacing: 2px; }
.menu { display: flex; flex-wrap: wrap; gap: 6px; }
.menu a { font-size: 13px; text-decoration: none; padding: 14px 12px; line-height: 1; }
.menu a[aria-current="page"] { background: #40318d; color: #bfce72; box-shadow: inset 0 -4px 0 #bfce72; }

/* layout */
main { max-width: 1200px; margin: 0 auto; padding: 48px 24px 64px; display: flex; flex-direction: column; gap: 48px; }
main.narrow { max-width: 1040px; align-items: center; gap: 40px; }
.kicker { font-size: 14px; color: #94e089; }
h1 { margin: 0; font-size: 30px; line-height: 1.5; color: #bfce72; font-weight: 400; }
h2 { margin: 0; font-size: 18px; color: #bfce72; font-weight: 400; }
.intro { margin: 0; max-width: 820px; font-size: 13px; line-height: 2.2; color: #d8d2ff; }
.head { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.row.center { align-items: center; }
.row > .wide { flex: 1 1 560px; min-width: 0; }
.row > .side { flex: 1 1 380px; min-width: 0; }
.shot { display: block; width: 100%; height: auto; aspect-ratio: 320 / 200; }
.framed { border: 12px solid #40318d; background: #40318d; }
.framed-thin { border: 8px solid #40318d; background: #40318d; }

/* the game's dialogue box */
.box { position: relative; background: #000; border: 3px solid #fff; box-shadow: 0 0 0 3px #7869c4, 0 0 0 6px #40318d, inset 0 0 0 3px #7869c4; }
.box > .heart { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 72px; height: 36px; }
.box > .diamond { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); width: 60px; height: 25px; }

/* buttons */
.btn { display: inline-block; text-align: center; background: #bfce72; color: #000; text-decoration: none; font-size: 18px; padding: 22px 28px; box-shadow: 0 0 0 4px #fff, 8px 8px 0 4px #574200; }
.btn:hover, .btn:focus-visible { background: #fff; color: #000; }

/* panels */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.panel { background: #40318d; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.panel h3 { margin: 0; font-size: 14px; color: #bfce72; font-weight: 400; }
.panel p { margin: 0; font-size: 12px; line-height: 2.2; }
code.c64 { display: block; background: #000; color: #94e089; padding: 16px; font-family: inherit; font-size: 14px; line-height: 2; white-space: pre-line; }

/* status */
.status { width: 100%; max-width: 760px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.status div { background: #40318d; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.status small { font-size: 12px; color: #d8d2ff; }
.status strong { font-size: 20px; font-weight: 400; }

/* galleries */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 40px 32px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.gallery figcaption { display: flex; gap: 16px; align-items: baseline; font-size: 13px; }
.gallery figcaption span { color: #7869c4; }

/* lands */
.land { background: #40318d; padding: 20px 22px; border-left: 12px solid #7869c4; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.land.now { border-left-color: #94e089; }
.land small { font-size: 12px; color: #67b6bd; }
.land a { font-size: 12px; color: #94e089; }
.things { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px 40px; font-size: 12px; line-height: 2.1; }
.things div { display: flex; flex-direction: column; gap: 6px; }
.things b { color: #94e089; font-weight: 400; }
.things span { color: #d8d2ff; }

footer { border-top: 6px solid #40318d; padding: 28px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; font-size: 11px; color: #9f9f9f; }
footer a { color: #9f9f9f; }

@media (max-width: 600px) {
  body { font-size: 14px; }
  h1 { font-size: 22px; }
  .btn { font-size: 15px; padding: 18px 20px; }
}
