@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@700;800&display=swap');

:root {
  --ink: #10263f;
  --blue: #5dd1ed;
  --lime: #d8f273;
  --paper: #f4f6f7;
  --muted: #91a0ae;
}

* { box-sizing: border-box; }

body {
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  font-family: 'DM Mono', ui-monospace, monospace;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
  padding: 24px;
}

.game-shell { max-width: 1060px; width: 100%; }

.topbar, footer { align-items: center; display: flex; justify-content: space-between; }

.topbar { margin: 0 4px 20px; }

.brand { align-items: center; color: var(--ink); display: flex; font-family: Manrope, sans-serif; font-size: 1.4rem; font-weight: 800; gap: 9px; letter-spacing: -.07em; text-decoration: none; }
.brand img { image-rendering: pixelated; width: 31px; }
.scoreboard { display: flex; font-size: .72rem; gap: 24px; letter-spacing: .05em; text-transform: uppercase; }
.scoreboard strong { color: #167eae; display: inline-block; min-width: 43px; }
.high-score { color: var(--muted); }

.game-card { background: var(--ink); box-shadow: 0 22px 50px rgba(16, 38, 63, .17); overflow: hidden; position: relative; }
canvas { display: block; height: auto; touch-action: none; width: 100%; }

.message { align-items: center; color: white; display: flex; flex-direction: column; inset: 0; justify-content: center; position: absolute; text-align: center; transition: opacity .16s, transform .16s; }
.message.hidden { opacity: 0; pointer-events: none; transform: translateY(-6px); }
.message.game-over { background: rgba(16, 38, 63, .58); }
.eyebrow { color: var(--lime); font-size: .7rem; letter-spacing: .18em; margin: 0 0 11px; }
h1 { font-family: Manrope, sans-serif; font-size: clamp(2.25rem, 6vw, 4.7rem); letter-spacing: -.075em; line-height: .95; margin: 0; }
.message > p:not(.eyebrow, .hint) { color: #c9d5dd; font-size: .82rem; margin: 17px 0 24px; }
button { border: 0; cursor: pointer; font: inherit; }
#start-button { background: var(--lime); color: var(--ink); font-family: Manrope, sans-serif; font-size: .83rem; font-weight: 800; padding: 14px 17px; }
#start-button span { font-size: 1.1rem; margin-left: 12px; }
.hint { color: #9facb8; font-size: .63rem; margin: 18px 0 0; }
kbd { border: 1px solid #6b7b8a; border-radius: 2px; color: white; padding: 1px 4px; }
.score-form { margin-top: 18px; }
.score-form label { color: #c9d5dd; display: block; font-size: .65rem; margin-bottom: 7px; text-align: left; }
.score-form div { display: flex; gap: 7px; }
.score-form input { border: 1px solid #6b7b8a; border-radius: 0; font: inherit; min-width: 0; padding: 10px; width: 150px; }
.score-form button { background: var(--lime); color: var(--ink); font-family: Manrope, sans-serif; font-size: .71rem; font-weight: 800; padding: 0 11px; }
.score-form button:disabled { cursor: wait; opacity: .65; }
.score-status { color: var(--lime); font-size: .62rem; margin: 9px 0 0; min-height: 1em; }
.leaderboard { background: white; border: 1px solid #dce3e7; display: flex; justify-content: space-between; margin: 18px 4px 0; padding: 17px 20px; }
.leaderboard-heading .eyebrow { color: #167eae; margin-bottom: 5px; }
.leaderboard h2 { font-family: Manrope, sans-serif; font-size: 1.3rem; letter-spacing: -.06em; margin: 0; }
.leaderboard ol { list-style: decimal-leading-zero; margin: 0; padding-left: 34px; width: min(100%, 390px); }
.leaderboard li { border-bottom: 1px solid #edf0f2; color: #526879; display: flex; font-size: .7rem; justify-content: space-between; padding: 5px 0; }
.leaderboard li:last-child { border-bottom: 0; }
.leaderboard li strong { color: var(--ink); font-weight: 500; }
.skins { align-items: center; background: white; border: 1px solid #dce3e7; display: flex; justify-content: space-between; margin: 12px 4px 0; padding: 17px 20px; }
.skin-options { display: flex; flex-wrap: wrap; gap: 9px; }
.skin-option { align-items: center; background: #f4f6f7; color: var(--ink); display: flex; gap: 8px; padding: 8px 11px; text-align: left; }
.skin-option:disabled { cursor: not-allowed; opacity: .45; }
.skin-option[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--blue); }
.skin-option strong, .skin-option small { display: block; }
.skin-option strong { font-family: Manrope, sans-serif; font-size: .7rem; }
.skin-option small { color: #667887; font-size: .52rem; margin-top: 2px; }
.skin-icon { align-items: center; background: var(--ink); color: var(--lime); display: flex; font-family: Manrope, sans-serif; font-size: .72rem; font-weight: 800; height: 31px; justify-content: center; width: 31px; }
.aws-skin .skin-icon { background: #232f3e; color: #ff9900; font-family: 'DM Mono', monospace; font-size: .61rem; }
.topi-skin .skin-icon { background: #10263f; position: relative; }
.topi-skin .skin-icon::after { color: var(--lime); content: '?'; font-family: Manrope, sans-serif; font-size: 1rem; font-weight: 800; }
.topi-skin.is-unlocked .skin-icon { background: #f4f6f7 url('assets/verkeerde-topi.png') center / 170% no-repeat; image-rendering: pixelated; }
.topi-skin.is-unlocked .skin-icon::after { content: ''; }
.good-topi-skin .skin-icon { background: #f4f6f7 url('assets/topi.png') center / 175% no-repeat; image-rendering: pixelated; }
.dino-skin .skin-icon { background: #f4f6f7 url('assets/chrome-dino.png') center / 165% no-repeat; image-rendering: pixelated; }
footer { color: #8493a0; font-size: .61rem; margin: 15px 4px 0; }
.sound-button { background: transparent; color: inherit; font-size: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  body { padding: 14px; }
  .topbar { margin-bottom: 14px; }
  .scoreboard { font-size: .6rem; gap: 10px; }
  .brand { font-size: 1.2rem; }
  .message > p:not(.eyebrow, .hint) { max-width: 250px; line-height: 1.45; }
  .leaderboard { display: block; }
  .leaderboard ol { margin-top: 13px; }
  .skins { align-items: flex-start; display: block; }
  .skin-options { margin-top: 13px; }
  footer { font-size: .55rem; }
}
