/* Additive lens: pure black = transparent. Keep backgrounds black and the UI bright with light outlines. */
* { box-sizing: border-box; }
html, body {
  margin: 0; width: 600px; height: 600px; overflow: hidden;
  background: #000; color: #f4eef0;
  font: 22px/1.25 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.hidden { display: none !important; }
.screen { width: 600px; height: 600px; padding: 16px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.bar { display: flex; justify-content: space-between; align-items: center; min-height: 36px; padding-right: 76px; }
.logo { font-size: 26px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 440px; }
.dim { color: #b9a9b0; font-size: 20px; }
.label { color: #c9b6bd; font-size: 20px; text-transform: uppercase; letter-spacing: .06em; }
.row { display: flex; gap: 10px; align-items: stretch; }
.gap-top { margin-top: 12px; }
.note { color: #c9b6bd; font-size: 20px; margin: 0; }
.say { margin: 4px 0; font-size: 24px; line-height: 1.35; color: #ffe2e6; padding: 14px 16px; border: 2px solid #ff6b6b; border-radius: 16px; background: #1a0508; }

.focusable { transition: border-color 120ms, box-shadow 120ms, background 120ms; border: 3px solid #5a4a50; }
.focusable:focus {
  outline: none; border-color: #4fe3ff; box-shadow: 0 0 0 2px #4fe3ff, 0 0 18px rgba(79, 227, 255, .6);
}

.field {
  flex: 1; min-height: 72px; padding: 0 16px; border-radius: 14px;
  background: #141014; color: #fff; font: inherit; font-size: 22px;
}
.field.full { width: 100%; }
.field::placeholder { color: #a8949c; }
.btn {
  min-height: 72px; padding: 0 22px; border-radius: 14px; background: #2a0d14; color: #fff;
  font: inherit; font-size: 22px; font-weight: 600; cursor: pointer;
}
.btn.small { min-width: 96px; padding: 0 12px; }
.btn.wide { flex: 1; }
.btn.slim { min-height: 62px; }
.btn:focus { background: #06303d; }
.btn.danger { color: #ffb3b3; }
.btn.armed { border-color: #ff4d4d; background: #3a0a0a; }

.tz-value { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 24px; font-weight: 700; border: 2px solid #8a7680; border-radius: 14px; padding: 6px; min-height: 72px; }

/* Lists */
.list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.list::-webkit-scrollbar { display: none; }
.list.tall { flex: 1; min-height: 0; }
.item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 72px; padding: 8px 14px; border-radius: 14px;
  background: #120b0e; color: #fff; text-align: left; font: inherit; font-size: 22px; width: 100%; cursor: pointer; flex-shrink: 0;
}
.item small { color: #c9b6bd; font-size: 20px; white-space: nowrap; }
.item.armed small { color: #ff8080; font-weight: 700; }
.item.on { border-color: #ff6b6b; }
.item.soon { color: #cbbcc2; }
.empty { color: #b9a9b0; font-size: 20px; padding: 8px 4px; }

/* Chat */
.chip { font-size: 18px; font-weight: 600; padding: 2px 10px; border: 2px solid #ff8a8a; border-radius: 999px; color: #ffd0d0; vertical-align: middle; margin-left: 6px; }
.chip.therapy { border-color: #8fe3b0; color: #c8f5d8; }
.stage { position: relative; flex: 1; min-height: 0; }
.bubble { position: absolute; left: 0; top: 0; width: 330px; padding: 12px 14px; border: 2px solid #ffb3b3; border-radius: 16px;
  background: #1a0508; font-size: 22px; line-height: 1.3; min-height: 80px; max-height: 240px; overflow: hidden; z-index: 2; }
.bubble.long { font-size: 20px; }
.bubble.serious { border-color: #fff; background: #1c1c1c; }
.bubble.therapy { border-color: #8fe3b0; background: #06160d; }
.line .rest { visibility: hidden; }
.thinking { font-size: 28px; letter-spacing: .2em; color: #ffb3b3; }
.you { position: absolute; left: 0; bottom: 0; width: 330px; font-size: 20px; color: #c9e9f5; padding: 6px 10px;
  border-left: 3px solid #4fe3ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 2; }
.help988 { position: absolute; left: 0; bottom: 0; width: 330px; font-size: 21px; line-height: 1.3; padding: 10px 12px; z-index: 3;
  border: 3px solid #fff; border-radius: 14px; background: #202020; color: #fff; }
.sprite { position: absolute; right: -10px; bottom: -6px; width: 230px; height: 336px; padding: 0; background: transparent;
  border-color: transparent; border-radius: 20px; cursor: pointer; z-index: 1; }
.sprite:focus { background: transparent; box-shadow: 0 0 0 2px #4fe3ff, 0 0 18px rgba(79, 227, 255, .45); }
.sprite img { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; pointer-events: none;
  transform-origin: 50% 100%; }
#frame { animation: breathe 3.6s ease-in-out infinite; }
#xfade { opacity: 0; transition: opacity 150ms; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.006, 1.012); } }
.sprite.pop img { animation: pop 450ms ease-out; }
@keyframes pop { 0% { transform: translateY(0); } 30% { transform: translateY(-12px); } 100% { transform: translateY(0); } }
.sprite.away img { transform: translateX(260px); transition: transform 500ms ease-in; }
.sprite.peek img { transform: translateX(150px); transition: transform 400ms ease-out; }
.sprite.slide img { animation: slide 1.4s ease-in-out; }
@keyframes slide { 0%, 100% { transform: translateX(0); } 40%, 60% { transform: translateX(40px); } }
.sprite.sleep img { filter: brightness(.6); }
.fx { position: absolute; right: 40px; top: 10px; font-size: 34px; font-weight: 800; color: #ff6b6b; opacity: 0; z-index: 4;
  text-shadow: 0 0 2px #fff; }
.fx.show { animation: fx 900ms ease-out; }
@keyframes fx { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-24px); } }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: 560px;
  background: #2a0d14; color: #fff; border: 2px solid #ff8a8a; border-radius: 12px; padding: 10px 16px; font-size: 20px; z-index: 10;
}
/* Build tag: tiny, but proves which build the glasses loaded. */
.build { position: fixed; top: 6px; right: 8px; font-size: 16px; font-weight: 700; color: #9fe8ff; z-index: 20; pointer-events: none; }

/* Pairing screen: big, glanceable, no input needed */
.pair-label { font-size: 30px; color: #ffe2e6; margin-top: 8px; }
.pair-code { font-size: 92px; font-weight: 800; letter-spacing: .08em; color: #fff; text-align: center; line-height: 1.1;
  padding: 10px 0; border: 3px solid #ff6b6b; border-radius: 18px; background: #1a0508; font-variant-numeric: tabular-nums; }
.pair-say { font-size: 30px; line-height: 1.25; margin: 4px 0; color: #ffe2e6; text-align: center; }
#pair-status { text-align: center; font-size: 22px; }
.pair-row { margin-top: auto; }
