/* Palantir AR HUD — high-contrast cyan-on-black for a transparent display.
   Fixed 600x600 stage = Meta Ray-Ban Display native resolution.
   Structured screens only (no canvas / no AR boxes) to match the lens. */
:root {
  --cyan: #00f0ff;
  --cyan-dim: #00939c;
  --green: #39ff14;
  --amber: #ffb000;
  --warn: #ff3b3b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #111;
  color: var(--cyan);
  font-family: "SF Mono", "Roboto Mono", ui-monospace, monospace;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; overflow: hidden;
}

#stage {
  position: relative;
  width: 600px; height: 600px;
  max-width: 100vw; max-height: 100vw;
  background: #000;
  overflow: hidden;
  border: 1px solid var(--cyan-dim);
}

/* camera = dim aiming aid on phone; the glasses have no passthrough feed */
#cam {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.22; filter: grayscale(0.3);
}

#status {
  position: absolute; top: 14px; left: 14px; right: 14px; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; letter-spacing: 2px; text-shadow: 0 0 6px var(--cyan);
}
#facecount { margin-left: auto; color: var(--cyan-dim); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.dot.live { background: var(--green); box-shadow: 0 0 10px var(--green); }

#searching {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  color: var(--amber); text-shadow: 0 0 8px var(--amber);
  font-size: 17px; letter-spacing: 1px; white-space: nowrap; text-align: center;
}

/* ---- Tinder queue ---- */
#stack {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
#card {
  width: 340px; padding: 22px 18px;
  background: rgba(0, 0, 0, 0.82);
  border: 2px solid var(--amber); border-radius: 14px;
  box-shadow: 0 0 26px rgba(255, 176, 0, 0.45);
  text-align: center; touch-action: none;
  transition: transform .12s ease, opacity .12s ease;
}
#card-face {
  width: 200px; height: 200px; object-fit: cover;
  border: 2px solid var(--amber); border-radius: 10px;
  filter: drop-shadow(0 0 8px rgba(255,176,0,.5));
}
#card-q { margin-top: 14px; font-size: 17px; letter-spacing: 1px; color: var(--amber); text-shadow: 0 0 6px var(--amber); }
#card-count { font-size: 13px; color: var(--cyan-dim); margin-top: 5px; }

#stack-actions { display: flex; gap: 16px; width: 340px; }
.act {
  flex: 1; padding: 14px 0; font: inherit; font-size: 16px; letter-spacing: 1px;
  background: transparent; color: var(--warn); border: 2px solid var(--warn); border-radius: 8px;
}
.act.ok { color: var(--green); border-color: var(--green); text-shadow: 0 0 6px var(--green); }
.act:active { background: rgba(255,255,255,.1); }
#stack-hint { font-size: 12px; color: var(--cyan-dim); letter-spacing: 1px; }

/* ---- Dossier screen ---- */
#dossier {
  position: absolute; inset: 0; z-index: 5;
  background: rgba(0, 6, 8, 0.96); padding: 20px; overflow-y: auto;
  text-shadow: 0 0 5px var(--cyan);
}
#d-face {
  width: 92px; height: 92px; object-fit: cover; float: right;
  border: 2px solid var(--cyan); border-radius: 8px; margin-left: 12px;
}
#d-name { font-size: 30px; font-weight: 700; letter-spacing: 1px; }
#d-sub { font-size: 13px; color: var(--green); margin: 4px 0 16px; }
#d-rows { display: flex; flex-direction: column; gap: 10px; clear: both; }
.row { border-left: 2px solid var(--cyan-dim); padding-left: 10px; }
.row .k { font-size: 11px; letter-spacing: 2px; color: var(--cyan-dim); }
.row .v { font-size: 17px; color: #d6ffff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag { font-size: 12px; color: var(--green); border: 1px solid var(--green); border-radius: 10px; padding: 1px 9px; }
#d-summary-label { font-size: 11px; letter-spacing: 2px; color: var(--cyan-dim); margin: 18px 0 6px; }
#d-summary { font-size: 18px; line-height: 1.4; color: #d6ffff; }
#d-back {
  margin-top: 22px; width: 100%; padding: 13px 0; font: inherit; font-size: 15px; letter-spacing: 2px;
  background: transparent; color: var(--cyan); border: 2px solid var(--cyan); border-radius: 8px;
  text-shadow: 0 0 6px var(--cyan);
}

.hidden { display: none !important; }

#start {
  position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: transparent; color: var(--cyan);
  border: 2px solid var(--cyan); border-radius: 6px; padding: 16px 26px;
  font: inherit; font-size: 18px; letter-spacing: 2px;
  text-shadow: 0 0 6px var(--cyan); box-shadow: 0 0 16px rgba(0,240,255,.4);
}
#start:active { background: rgba(0,240,255,.15); }
