:root {
  --bone: #f1eee8;
  --ash: #bdb8b0;
  --blood: #d0121f;
  --petal: #f0c21c;
  --ink: #000;
}
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--bone); overflow: hidden;
  font: 22px/1.45 Consolas, 'Cascadia Mono', monospace; }
canvas#screen, canvas#ghost { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; image-rendering: pixelated; }
canvas#ghost { pointer-events: none; mix-blend-mode: screen; opacity: 0; }
#vignette { position: fixed; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.65) 75%, #000 100%); }

#hud { position: fixed; inset: 0; pointer-events: none; }
#hud[hidden] { display: none; }
#camera { position: absolute; right: 3vw; bottom: 4vh; display: flex; align-items: center; gap: 18px;
  padding: 10px 18px; background: rgba(0,0,0,.55); border: 2px solid #2b2b2b; border-radius: 10px; }
#counter { font-size: 44px; font-weight: bold; letter-spacing: 2px; color: var(--bone); min-width: 2.2ch; text-align: right; }
#counter.low { color: var(--blood); }
#ready { width: 18px; height: 18px; border-radius: 50%; background: #3a1010; box-shadow: none; transition: background .05s; }
#ready.on { background: #ff3b2f; box-shadow: 0 0 12px #ff3b2f; }
#ready.beat { background: #fff1d6; box-shadow: 0 0 22px #fff1d6; }

#print { position: absolute; left: 3vw; bottom: 4vh; margin: 0; padding: 10px 10px 34px; background: #ece8df;
  transform: rotate(-3deg); box-shadow: 0 6px 24px rgba(0,0,0,.6); transition: opacity .2s; }
#print[hidden] { display: none; }
#photo { display: block; width: 22vh; height: auto; background: #000; image-rendering: pixelated; }
#print figcaption { position: absolute; left: 12px; right: 12px; bottom: 6px; font-size: 18px; color: #3a3530; white-space: nowrap; }

#callout { position: absolute; left: 0; right: 0; top: 62vh; text-align: center; font-size: 30px; font-weight: bold;
  letter-spacing: 3px; opacity: 0; transition: opacity .25s; text-shadow: 0 0 10px #000, 0 0 2px #000; }
#callout.show { opacity: 1; transition: none; }
#callout.hit { color: var(--petal); }
#callout.miss { color: var(--ash); }
#callout.bad { color: var(--blood); }

#debug { position: absolute; left: 16px; top: 12px; font-size: 18px; color: #ccc; background: rgba(0,0,0,.6); padding: 6px 10px; white-space: pre; }
#debug[hidden] { display: none; }

#card, #end { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: safe center; overflow-y: auto;
  text-align: center; background: rgba(0,0,0,.72); padding: 16px; }
#card[hidden], #end[hidden] { display: none; }
#card .artist { margin: 0; font-size: 34px; letter-spacing: 12px; color: var(--ash); text-transform: uppercase; }
#card h1 { margin: 0 0 4px; font-size: clamp(80px, 14vh, 190px); letter-spacing: 10px; color: var(--bone); line-height: 1.05; }
#card .game { margin: 0 0 28px; font-size: 24px; letter-spacing: 6px; color: var(--petal); }
#card .how { font-size: 24px; color: var(--bone); max-width: 60ch; }
.keys { font-size: 20px; color: var(--ash); }
.keys b { color: var(--bone); }
#songnote { font-size: 18px; color: #8d8880; }
#go { margin: 18px 0 8px; font: inherit; font-size: 26px; letter-spacing: 3px; color: var(--ink); background: var(--bone);
  border: 0; border-radius: 6px; padding: 12px 34px; cursor: pointer; }
#go:hover { background: var(--petal); }
#end h2 { margin: 0 0 12px; font-size: clamp(56px, 10vh, 130px); letter-spacing: 8px; }
#end h2.out { color: var(--bone); }
#end h2.caught { color: var(--blood); }
#endstats { font-size: 24px; color: var(--bone); white-space: pre-line; }

/* Credit for shmani, on the title, pause and end screens. */
.credit { margin-top: 26px; padding: 16px 28px 6px; border-top: 1px solid #3a3733; }
.credit .music { margin: 0 0 12px; font-size: 22px; color: var(--ash); }
.credit .music b { color: var(--petal); }
.credit .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }
.credit a { font-size: 20px; color: var(--bone); text-decoration: none; border: 1px solid #5c5852; border-radius: 6px; padding: 8px 16px; }
.credit a:hover { border-color: var(--petal); color: var(--petal); }
#nowplaying { position: absolute; right: 3vw; top: 3vh; font-size: 20px; color: var(--ash); opacity: .75; text-shadow: 0 0 6px #000; }
