/* Whose eyes? (eyes.html): a top bar, the 3D stage, and a panel with the guess box and
   the clue rows (beside the stage on wide screens, under it on phones). */
:root {
  --bg: #050b14; --panel: rgba(8, 17, 32, .9); --line: #1e3a5f;
  --gold: #c8aa6e; --gold-hi: #f0e6d2; --text: #cdd6e0; --muted: #7b8ba1;
  --ok: #2f9e5b; --near: #c27c1e; --no: #a8323a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.4 Inter, system-ui, sans-serif; }
body { display: grid; grid-template-rows: auto auto minmax(260px, 1fr) auto; height: 100dvh; overflow: hidden; }
button { font: inherit; cursor: pointer; }

.bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #071121; }
.bar a { color: var(--gold-hi); text-decoration: none; font-weight: 600; }
.bar h1 { margin: 0; font: 700 18px Cinzel, serif; color: var(--gold); letter-spacing: .5px; }
.bar .stat { margin-left: auto; display: flex; gap: 14px; color: var(--muted); font-size: 13px; }
.bar .stat b { color: var(--gold-hi); }
/* see-through red notice: the mode is still being built */
.warn-strip { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 14px; font-size: 12px; font-weight: 600;
  color: #fff; text-align: center; background: rgba(190, 30, 45, .72); border-bottom: 1px solid rgba(255, 110, 110, .5); }
.warn-strip [aria-hidden] { font-size: 15px; line-height: 1; }

.stage { position: relative; overflow: hidden; touch-action: none; cursor: grab; background: #0b1622; }
.stage:active { cursor: grabbing; }
.stage canvas { display: block; width: 100%; height: 100%; }
.stage .hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 4px 12px; font-size: 12px;
  color: #e8eef5; background: rgba(5, 11, 20, .6); pointer-events: none; white-space: nowrap; }
.stage .steps { position: absolute; top: 10px; left: 12px; display: flex; gap: 4px; pointer-events: none; }
.stage .steps i { width: 18px; height: 5px; background: rgba(240, 230, 210, .3); }
.stage .steps i.on { background: var(--gold); }
.stage .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-hi); font-weight: 600; }
.reveal { position: absolute; left: 0; right: 0; top: 14px; text-align: center; pointer-events: none; }
.reveal b { display: inline-block; padding: 6px 16px; font: 700 22px Cinzel, serif; color: var(--gold-hi); background: rgba(5, 11, 20, .78); border: 1px solid var(--gold); }
.reveal span { display: block; margin-top: 6px; font-weight: 600; color: var(--gold-hi); text-shadow: 0 0 6px #000, 0 0 2px #000; }

.panel { background: var(--panel); border-top: 1px solid var(--line); max-height: 48dvh; overflow: auto; padding: 12px 14px 14px; }
.guess { position: relative; display: flex; gap: 8px; }
.guess input { flex: 1; min-width: 0; padding: 10px 12px; font: inherit; color: var(--gold-hi); background: #0a1428; border: 1px solid var(--gold); outline: none; }
.guess input::placeholder { color: var(--muted); }
.btn { padding: 10px 16px; font-weight: 600; color: var(--gold-hi); background: rgba(10, 20, 40, .8); border: 1px solid rgba(200, 170, 110, .6); text-decoration: none; }
.btn:hover, .btn:focus-visible { border-color: var(--gold); background: rgba(200, 170, 110, .16); outline: none; }
.btn.primary { color: #050b14; background: var(--gold); border-color: var(--gold); }
.btn:disabled { opacity: .45; cursor: default; }
.suggest { position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); z-index: 5; max-height: 220px; overflow: auto; margin: 0; padding: 0; list-style: none;
  background: #0a1428; border: 1px solid var(--gold); }
.suggest li { padding: 8px 12px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: rgba(200, 170, 110, .2); color: var(--gold-hi); }
.actions { display: flex; gap: 8px; margin-top: 8px; }
.actions .left { margin-right: auto; color: var(--muted); font-size: 12px; align-self: center; }

.clues { margin-top: 12px; }
.clue-head, .clue-row { display: grid; grid-template-columns: minmax(96px, 1.4fr) repeat(5, minmax(0, 1fr)); gap: 4px; }
.clue-head { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; text-align: center; }
.clue-head span:first-child { text-align: left; }
.clue-row { margin-top: 4px; animation: pop .25s ease-out both; }
.clue-row > div { display: grid; place-items: center; min-height: 46px; padding: 4px 2px; text-align: center; font-size: 11px; line-height: 1.2; color: #fff;
  border: 1px solid rgba(255, 255, 255, .08); overflow-wrap: break-word; min-width: 0; }
@media (max-width: 479px) { .clue-head, .clue-row { grid-template-columns: minmax(78px, 1.1fr) repeat(5, minmax(0, 1fr)); } .clue-row > div { font-size: 10px; } }
@media (min-width: 480px) { .clue-row > div { font-size: 12px; padding: 4px; } }
.clue-row .name { justify-items: start; text-align: left; font-size: 12px; font-weight: 600; color: var(--gold-hi); background: #0a1428; }
.clue-row .ok { background: var(--ok); } .clue-row .near { background: var(--near); } .clue-row .no { background: var(--no); }
.clue-row .arrow::after { content: attr(data-arrow); display: block; font-size: 15px; }
.clue-row .unk { background: #3a4658; color: var(--muted); } /* no data for this skin yet */
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }
.empty { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

.results { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(5, 11, 20, .85); }
.results .card { width: min(440px, calc(100vw - 32px)); padding: 22px; background: #0a1428; border: 1px solid var(--gold); }
.results h2 { margin: 0 0 4px; font: 700 26px Cinzel, serif; color: var(--gold); }
.results ol { padding-left: 20px; } .results li { margin: 4px 0; } .results li b { float: right; color: var(--gold-hi); }

@media (min-width: 900px) {
  body { grid-template-columns: 1fr 460px; grid-template-rows: auto auto 1fr; }
  .bar, .warn-strip { grid-column: 1 / -1; }
  .panel { max-height: none; border-top: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
  .panel .clues { flex: 1; }
}
