/*light on black only: black is see-through on the lens; no large fills, no transform animations (they shimmer)*/
:root {
  --ink: #ffffff;
  --muted: #b0b3b8;
  --dim: rgba(255, 255, 255, 0.18);
  --amber: #ffb020;
  --cyan: #00e5ff;
  --lime: #8cff3a;
  --pink: #ff3d81;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  width: 600px; height: 600px; overflow: hidden;
  background: #000000;
  color: var(--ink);
  font-family: 'Exo 2', system-ui, sans-serif;
  font-weight: 700;
}

#app { position: relative; width: 600px; height: 600px; padding: 26px 30px; display: flex; flex-direction: column; }

.top, .bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 17px; color: var(--muted); letter-spacing: 0.06em; }
.top #place { color: var(--ink); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom { min-height: 24px; font-size: 16px; }
.note { flex: 1; text-align: center; color: var(--amber); font-size: 16px; }
.note.hint { color: var(--muted); }

.screen { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; }

.headline { font-size: 30px; letter-spacing: 0.06em; color: var(--amber); min-height: 0; }
.headline:empty, .label:empty, .count:empty, .dayline:empty { display: none; }
.big .headline { font-size: 58px; letter-spacing: 0.04em; }
.label { font-size: 22px; letter-spacing: 0.14em; color: var(--muted); }
.count { font-size: 104px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.tone-amber .label, .tone-amber .count { color: var(--amber); }
.tone-cyan .label, .tone-cyan .count { color: var(--cyan); }
.tone-lime .headline, .tone-lime .label { color: var(--lime); }

.bar { width: 440px; height: 6px; border-radius: 3px; background: var(--dim); overflow: hidden; margin-top: 6px; }
.fill { height: 100%; width: 0; background: var(--amber); border-radius: 3px; }

.pair { display: flex; gap: 48px; font-size: 21px; letter-spacing: 0.06em; margin-top: 6px; }
.pair span:empty { display: none; }
.dayline { font-size: 20px; letter-spacing: 0.08em; color: var(--lime); margin-top: 4px; }

.title { font-size: 26px; letter-spacing: 0.12em; }
.title-row { display: flex; width: 100%; justify-content: space-between; align-items: baseline; }
.side { font-size: 18px; color: var(--lime); letter-spacing: 0.06em; }
.small { font-size: 16px; color: var(--muted); letter-spacing: 0.06em; }

.times { list-style: none; width: 360px; display: flex; flex-direction: column; gap: 6px; }
.times li { display: flex; justify-content: space-between; font-size: 24px; letter-spacing: 0.06em; color: var(--muted); }
.times li.next { color: var(--amber); }
.times li span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); }
.times li.next span:last-child { color: var(--amber); }

.cells { display: grid; grid-template-columns: repeat(6, 52px); gap: 14px 20px; justify-content: center; margin: 8px 0; }
.cell { position: relative; width: 52px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--muted); }
.cell::before { content: ''; position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(140, 255, 58, 0.45); }
.cell.past { color: #000000; }
.cell.past::before { background: var(--lime); border-color: var(--lime); }
.cell.today { color: var(--ink); }
.cell.today::before { border: 3px solid var(--ink); }
.cell span { position: relative; }
.cell.star::after { content: '\2605'; position: absolute; top: -9px; right: 4px; font-size: 13px; color: var(--amber); }

.rows { list-style: none; width: 460px; display: flex; flex-direction: column; gap: 12px; }
.rows li { display: flex; justify-content: space-between; font-size: 22px; letter-spacing: 0.06em; color: var(--muted); }
.rows li span:last-child { color: var(--ink); }
.rows li.chosen span:first-child { color: var(--ink); }
.rows li.chosen span:last-child { color: var(--amber); }
.rows li.chosen span:last-child::before { content: '\2039  '; }
.rows li.chosen span:last-child::after { content: '  \203A'; }
.diag li { font-size: 16px; gap: 16px; }
.diag li span:last-child { text-align: right; overflow-wrap: anywhere; }
