/* Sun Quest — Bimble Solar platform game */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bs-orange: #F8981D;
  --bs-rust:   #983620;
  --bs-gold:   #FEC60C;
  --bs-yellow: #FDEE19;
}

html, body {
  background: #10182a;
  color: #eee;
  font-family: "Courier New", Courier, monospace;
  min-height: 100%;
}

#wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 10px 30px;
  text-align: center;
}

#masthead { padding: 8px 0 14px; }
#masthead .logo {
  display: inline-block;
  font-weight: bold;
  font-size: 22px;
  letter-spacing: 1px;
}
#masthead .logo .b { color: var(--bs-gold); }
#masthead .logo .s { color: var(--bs-orange); }
#masthead .presents {
  display: inline-block;
  margin: 0 10px;
  color: #8fa3c8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
}
#masthead .title {
  display: inline-block;
  font-size: 30px;
  letter-spacing: 4px;
  color: var(--bs-yellow);
  text-shadow: 3px 3px 0 var(--bs-rust);
}

#shell {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  border: 4px solid var(--bs-rust);
  border-radius: 6px;
  box-shadow: 0 0 0 4px #000, 0 12px 40px rgba(0,0,0,.6);
  background: #000;
}

canvas#game {
  width: 100%;
  max-width: 960px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  outline: none;
}

/* ---- touch controls ---- */
#touch {
  display: none;
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}
#touch .pad { pointer-events: auto; }
#touch button {
  width: 64px; height: 64px;
  margin: 0 6px;
  font-size: 26px;
  color: #fff;
  background: rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 50%;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
#touch button:active { background: rgba(248,152,29,.6); }
@media (pointer: coarse) {
  #touch { display: flex; }
}

#gamefoot { padding-top: 16px; font-size: 13px; color: #b9c6de; line-height: 1.7; }
#gamefoot b { color: var(--bs-gold); }
#gamefoot .back a { color: var(--bs-orange); }
