@font-face { font-family: "Field Mono"; src: url("/fonts/dejavu-sans-mono.woff") format("woff"); font-weight: 400; }
@font-face { font-family: "Field Mono"; src: url("/fonts/dejavu-sans-mono-bold.woff") format("woff"); font-weight: 700; }
:root { --bg: #050505; --surface: #0d0c0a; --line: #26231e; --fg: #e9e3d6; --muted: #8a8277; --faint: #5c564d; --amber: #f0a33a; --red: #ff4632; --blue: #4f86ff; --gold: #ffd34d; --violet: #9b8bb0;
  --mono: "Field Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace; --serif: Georgia, "Times New Roman", serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font-family: var(--mono); font-size: 13px; overflow: hidden; -webkit-user-select: none; user-select: none; }
#gl { position: fixed; inset: 0; display: block; touch-action: none; cursor: grab; }
body.dragging #gl { cursor: grabbing; }
body.in-device #gl { cursor: pointer; }
[hidden] { display: none !important; }
button, .file { font: inherit; color: var(--fg); background: #14120f; border: 1px solid var(--line); padding: 8px 14px; cursor: pointer; letter-spacing: .3px; }
button:hover, .file:hover { border-color: var(--muted); }
button[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
button.primary { background: var(--amber); color: #111; border-color: var(--amber); font-weight: 700; }
button.primary:hover { filter: brightness(1.1); }
.loading { position: fixed; inset: 0; display: grid; place-items: center; letter-spacing: 3px; color: var(--muted); }
.screen { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(5,5,5,.55), rgba(5,5,5,.92)); z-index: 20; overflow: auto; padding: 20px; }
.card { width: min(760px, 100%); background: rgba(11,10,8,.88); border: 1px solid var(--line); padding: 30px 34px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.card.small { width: 340px; text-align: center; }
.kicker { color: var(--muted); letter-spacing: 2px; font-size: 11px; }
h1 { font-size: 40px; letter-spacing: 1px; margin: 8px 0 10px; text-transform: uppercase; }
h1.forgot { text-transform: none; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 38px; }
h2 { margin: 0 0 16px; letter-spacing: 2px; text-transform: uppercase; font-size: 18px; }
.sub { color: #b8b0a3; line-height: 1.6; margin: 0 0 18px; }
.row { display: flex; align-items: center; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.row.go { margin-top: 22px; }
.lbl { width: 92px; color: var(--muted); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.hint { color: var(--faint); font-size: 11px; }
input#nameInput { font: inherit; font-size: 16px; color: var(--gold); background: #0a0908; border: 1px solid var(--line); padding: 8px 12px; width: 220px; outline: none; }
input#nameInput:focus { border-color: var(--gold); }
.row.audio { color: var(--muted); font-size: 11px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.row.audio.need { color: var(--red); }
.file input { display: none; }
.keys { margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.keys b { color: var(--fg); font-weight: 700; }
/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#hud button { pointer-events: auto; }
.tl { position: absolute; left: 22px; top: 18px; text-shadow: 0 1px 3px #000; }
.brand { letter-spacing: 3px; font-size: 11px; color: var(--muted); }
.clock { font-size: 20px; font-weight: 700; margin: 4px 0 2px; }
.row2 { color: #b8b0a3; font-size: 12px; display: flex; align-items: center; gap: 6px; }
#beatDot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.mode { color: var(--faint); font-size: 10px; letter-spacing: 2px; margin-top: 4px; }
.tr { position: absolute; right: 22px; top: 18px; text-align: right; text-shadow: 0 1px 3px #000; }
.score { font-size: 34px; font-weight: 700; color: var(--gold); }
.frags { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.log { position: absolute; left: 22px; top: 118px; width: min(440px, 46vw); font-size: 11px; line-height: 1.55; color: #a39b8f; text-shadow: 0 1px 2px #000; }
.logline { transition: opacity 2s; padding-left: 10px; border-left: 2px solid var(--line); margin-bottom: 4px; }
.logline.old { opacity: .35; }
.logline.red { color: var(--red); border-color: var(--red); }
.logline.amber { color: var(--amber); border-color: var(--amber); }
.bottom { position: absolute; left: 22px; right: 22px; bottom: 16px; }
.phase { color: #b8b0a3; font-size: 11px; letter-spacing: 1px; margin-bottom: 6px; text-shadow: 0 1px 2px #000; }
.meter { display: flex; align-items: center; gap: 10px; }
.meter .lab { font-size: 11px; letter-spacing: 2px; color: var(--muted); width: 40px; }
.meter .bar { flex: 0 0 min(360px, 40vw); height: 10px; border: 1px solid #3a352e; background: rgba(0,0,0,.5); }
.meter #meterFill { height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), var(--red)); transition: width .1s; }
.meter .who { font-size: 12px; color: #cfc7b8; letter-spacing: 1px; }
.meter.hot .who { color: #111; background: var(--gold); padding: 1px 8px; font-weight: 700; }
.meter.hot .bar { border-color: var(--red); box-shadow: 0 0 12px rgba(255,70,50,.6); }
.meter.gone .bar { opacity: .25; }
.meter.gone .who { color: var(--violet); }
.strip { display: block; width: 100%; height: 22px; margin-top: 8px; opacity: .9; }
.floats { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.float { font-size: 13px; color: var(--fg); text-shadow: 0 1px 3px #000; animation: rise 1.9s ease-out forwards; white-space: nowrap; }
.float.gold { color: var(--gold); font-weight: 700; }
.float.bad { color: var(--red); font-weight: 700; font-size: 15px; }
.float.seen { color: #111; background: var(--gold); padding: 2px 8px; font-weight: 700; text-shadow: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } 15% { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-36px); } }
.caption { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); font-family: var(--serif); font-style: italic; font-size: 24px; color: #fff3df; text-shadow: 0 0 18px rgba(240,163,58,.6), 0 2px 4px #000; opacity: 0; white-space: nowrap; }
.caption.go { animation: cap 5s ease-out forwards; }
@keyframes cap { 0% { opacity: 0; } 10% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
.reticle { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border: 1px solid rgba(236,230,218,.5); border-radius: 50%; }
body.in-device .reticle { display: none; }
.moment { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; z-index: 8; text-align: center; padding: 0 20px; }
#momentTitle { font-size: clamp(30px, 6vw, 72px); font-weight: 700; letter-spacing: 6px; color: #fff; text-shadow: 0 0 30px rgba(255,255,255,.35), 0 3px 8px #000; }
#momentSub { margin-top: 10px; color: var(--amber); letter-spacing: 2px; font-size: 14px; text-shadow: 0 2px 4px #000; }
.moment.go { animation: moment 4.2s ease-out forwards; }
.moment.serif #momentTitle { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 1px; text-transform: none; }
.moment.free #momentTitle { color: var(--gold); text-shadow: 0 0 40px rgba(255,211,77,.7), 0 3px 8px #000; }
.moment.free #momentSub { color: #d8c8f0; }
@keyframes moment { 0% { opacity: 0; transform: scale(1.08); filter: blur(6px); } 12% { opacity: 1; transform: none; filter: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
.solo { position: absolute; inset: 0; }
.osd { position: absolute; font-family: "Arial Narrow", Arial, sans-serif; font-weight: 600; font-size: 24px; color: #f4f1ea; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
.tl2 { left: 26px; top: 120px; } .br2 { right: 26px; bottom: 120px; }
body.in-device .log { display: none; }
.solobar { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); background: rgba(11,10,8,.85); border: 1px solid var(--line); padding: 8px 14px; display: flex; gap: 18px; font-size: 12px; white-space: nowrap; }
.solobar em { font-style: normal; text-transform: uppercase; letter-spacing: 1px; }
.solobar .back { color: var(--muted); }
.solobar .left { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.solobar #soloLeft { height: 100%; background: var(--amber); }
.dropout { position: fixed; inset: 0; display: grid; place-items: center; color: #2a2622; letter-spacing: 4px; font-size: 11px; z-index: 6; pointer-events: none; text-transform: uppercase; }
.toast { position: fixed; left: 50%; top: 80px; transform: translateX(-50%); background: rgba(11,10,8,.92); border: 1px solid var(--line); padding: 8px 14px; z-index: 30; font-size: 12px; max-width: 90vw; }
.bigscore { font-size: 64px; font-weight: 700; color: var(--gold); margin: 6px 0 8px; }
.bigscore small { font-size: 14px; color: var(--muted); margin-left: 10px; letter-spacing: 2px; font-weight: 400; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin: 10px 0 18px; }
.stats div { border: 1px solid var(--line); padding: 8px 10px; display: flex; justify-content: space-between; gap: 8px; }
.stats span { color: var(--muted); font-size: 11px; } .stats b { color: var(--fg); }
a.link { color: var(--muted); }
.touch { display: none; position: absolute; right: 18px; bottom: 90px; flex-direction: column; gap: 8px; }
.touch button { width: 52px; height: 52px; border-radius: 50%; background: rgba(20,18,15,.7); }
@media (pointer: coarse) { .touch { display: flex; } .keys { display: none; } }
@media (max-width: 700px) { h1 { font-size: 28px; } .clock { font-size: 15px; } .score { font-size: 24px; } .log { top: 100px; width: 70vw; font-size: 10px; } .caption { font-size: 17px; white-space: normal; width: 90vw; text-align: center; } .lbl { width: 100%; } }

.caught { position: absolute; inset: 20vh 9vw 17vh; pointer-events: none; }
.caught .c { position: absolute; width: 46px; height: 46px; border: 3px solid var(--gold); }
.caught .c.tl { left: 0; top: 0; border-right: 0; border-bottom: 0; } .caught .c.tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.caught .c.bl { left: 0; bottom: 0; border-right: 0; border-top: 0; } .caught .c.br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.caught .tagwrap { position: absolute; left: -3px; top: -38px; }
.caught .tag { display: inline-block; background: var(--gold); color: #111; font-weight: 700; font-size: 18px; padding: 4px 10px; font-family: "Arial Narrow", Arial, sans-serif; letter-spacing: .5px; }
.caught .by { color: var(--gold); font-size: 11px; margin-top: 4px; text-shadow: 0 1px 2px #000; }

/* Site chrome chips: black text on light paper. Not game art. */
.row.chips { margin-top: 18px; }
a.chip {
  display: inline-block;
  color: #111;
  background: #f3efe3;
  border: 1px solid #d4cec0;
  padding: 8px 14px;
  text-decoration: none;
  letter-spacing: .3px;
}
a.chip:hover, a.chip:focus { color: #111; background: #ebe6d8; }
