/* A CLINICIAN'S PAGE, not the game's. Warm paper, real type, everything legible
   at arm's length on a laptop she is holding in a clinic. The only pixel art on
   it is the drawings themselves, because those are the thing being judged. */

:root {
  --paper: #f6f1e6;
  --ink: #2b2620;
  --soft: #6d6355;
  --line: #ded4c2;
  --keep: #1f8a6d;
  --change: #c2542f;
  --accent: #b8452f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0 0 120px;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
header { max-width: 720px; margin: 0 auto; padding: 44px 20px 20px; }
.eyebrow {
  margin: 0 0 6px; font-size: 12px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 44px); line-height: 1.06; }
.lede { margin: 0; max-width: 54ch; color: var(--soft); }
main { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.sound-head {
  margin: 34px 0 10px;
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}
.word {
  display: flex;
  gap: 16px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.word.kept { border-color: color-mix(in srgb, var(--keep) 50%, var(--line)); }
.word.changed { border-color: color-mix(in srgb, var(--change) 55%, var(--line)); }
.shot {
  flex: none;
  width: 92px; height: 92px;
  border-radius: 10px;
  overflow: hidden;
  background: #efe7d6;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.body { flex: 1; min-width: 0; }
.head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
h2 { margin: 0; font-size: 22px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 999px;
  background: #ece3d1; color: var(--soft);
}
.tag.tier.probe { background: #d9ecff; color: #1d4e79; }
.tag.tier.clean { background: #d9f2e4; color: #1a6349; }
.tag.warn { background: #fde8c7; color: #8a5a10; }
.lines { margin: 7px 0 2px; color: var(--ink); }
.why { margin: 0 0 10px; font-size: 13px; color: var(--soft); }
.verdict { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.verdict button {
  font: inherit; font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.verdict .keep:hover, .word.kept .keep {
  background: var(--keep); border-color: var(--keep); color: #fff;
}
.verdict .change:hover, .word.changed .change {
  background: var(--change); border-color: var(--change); color: #fff;
}
.note {
  flex: 1; min-width: 190px;
  font: inherit;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.note:focus { outline: 2px solid color-mix(in srgb, var(--change) 45%, transparent); }
/* the bar that follows you down the page */
#bar {
  position: fixed;
  left: 50%; bottom: 14px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 28px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 999px;
  background: #fffdf8;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(60, 45, 20, 0.16);
}
.track {
  flex: 1; min-width: 60px; height: 8px;
  border-radius: 999px; background: #ece3d1; overflow: hidden;
}
.fill { height: 100%; background: var(--keep); transition: width 0.2s ease; }
.count { margin: 0; font-size: 13px; color: var(--soft); white-space: nowrap; }
.count b { color: var(--ink); }
#bar button { font: inherit; font-weight: 700; border-radius: 999px; cursor: pointer; }
.ghost {
  border: 1px solid var(--line); background: #fff; color: var(--soft);
  padding: 7px 14px; font-size: 13px; white-space: nowrap;
}
.send {
  border: 0; background: var(--accent); color: #fff;
  padding: 9px 18px; white-space: nowrap;
}
.send:hover { filter: brightness(1.06); }
#said {
  position: fixed; left: 50%; bottom: 84px;
  transform: translate(-50%, 8px);
  padding: 11px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#said.up { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 560px) {
  .word { gap: 12px; padding: 11px; }
  .shot { width: 68px; height: 68px; }
  #bar { flex-wrap: wrap; border-radius: 20px; }
  .track { order: 3; flex-basis: 100%; }
}
/* Told on the FIRST failed mark, not at the end. An hour of somebody's clinical
   judgement is not a thing to lose quietly, and she can still rescue it with
   Send while the page is open. */
.lost {
  flex-basis: 100%;
  margin: 2px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  background: color-mix(in srgb, var(--change) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--change) 45%, transparent);
  color: var(--change);
}
