/*
  Starworld on the lens. Meta Ray-Ban Display is an additive 600x600 waveguide: black emits no
  light and is see-through, so the page is pure black and every word is light. Surfaces that must
  read as solid are a faint near-black. Gold is Starheart's own (#ffd166, from starheart.love).
  The panel refreshes at 30 Hz, so motion is short and calm.
*/
:root {
  --ink: #ffffff;
  --ink-2: #e4e6eb;
  --dim: #8f90a6;
  --gold: #ffd166;
  --gold-soft: #ffd16633;
  --rose: #ff8fb1;
  --teal: #6ad1c9;
  --surface: #14141c;
  --sans: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 600px;
  height: 600px;
  overflow: hidden;
  background: #000;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body {
  position: relative;
}
[hidden] {
  display: none !important;
}

.view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 32px 40px 30px;
}
.view.on {
  display: flex;
}

.crown {
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  white-space: nowrap;
}
.crown > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.crown .right {
  color: var(--dim);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.foot {
  margin: 14px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--dim);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.stamp .build-stamp {
  padding: 0;
  font-size: 12px;
  opacity: 0.55;
}
.note {
  margin: auto;
  text-align: center;
  color: var(--ink-2);
  font-size: 24px;
  line-height: 1.35;
}
.note b {
  color: var(--gold);
  font-weight: 600;
}

/* Home: the menu, one lit row at a time */
.menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.item {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 88px;
  padding: 0 22px;
  border-radius: 22px;
  color: var(--dim);
  transition: background 120ms, color 120ms;
}
.item .glyph {
  width: 40px;
  text-align: center;
  font-size: 30px;
  color: var(--dim);
}
.item .label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.item .name {
  font-size: 30px;
  letter-spacing: 0.01em;
}
.item .sub {
  font-size: 16px;
  color: var(--dim);
}
.item.lit {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--gold-soft);
}
.item.lit .glyph {
  color: var(--gold);
  text-shadow: 0 0 14px var(--gold);
}
.status {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--dim);
  min-height: 20px;
  display: flex;
  gap: 18px;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
  background: #555;
  vertical-align: 1px;
}
.dot.on {
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}
.dot.wait {
  background: var(--gold);
}

/* Setlist and gestures: a rail of five, the chosen one lit */
.rail {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--dim);
  font-size: 25px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .n {
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: right;
  font-size: 19px;
}
.row .t {
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .tag {
  margin-left: auto;
  font-size: 17px;
  color: var(--gold);
  opacity: 0.8;
}
.row.lit {
  color: var(--ink);
  background: var(--surface);
  font-size: 29px;
}
.row.lit .n {
  color: var(--gold);
}
.row.near {
  color: #c8c8d8;
}
.row.small {
  font-size: 20px;
  white-space: normal;
}
.row.small.lit {
  font-size: 22px;
}

/* The prompter: the current line big and white, its words lighting gold on the beat */
.prompter {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
}
.line {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.28;
  color: var(--dim);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.line.past {
  opacity: 0.5;
  font-size: 23px;
}
.line.now {
  color: var(--ink);
  font-size: 40px;
  line-height: 1.2;
}
.line.next {
  color: #d6d6e6;
}
.line.far {
  opacity: 0.55;
}
.line.blank {
  height: 8px;
}
.line .w {
  transition: color 90ms;
}
.line .w.sung {
  color: var(--gold);
  text-shadow: 0 0 16px #ffd16688;
}
.line em,
.line strong {
  color: var(--gold);
}
.intro {
  margin: auto;
  text-align: center;
}
.intro .big {
  font: 700 72px/1 var(--serif);
  color: var(--gold);
  text-shadow: 0 0 24px #ffd16677;
  font-variant-numeric: tabular-nums;
}
.intro .small {
  margin-top: 14px;
  font-size: 22px;
  color: var(--ink-2);
}
.beat {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin: 18px 6px 0;
  background: #333;
}
.beat.on {
  background: var(--gold);
  box-shadow: 0 0 14px var(--gold);
}
.end {
  text-align: center;
  color: var(--gold);
  font-size: 26px;
  letter-spacing: 0.1em;
}
.bar {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 18px;
  height: 3px;
  background: #222;
  border-radius: 2px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold);
}

/* Music card */
.card {
  flex: 1;
  margin: 6px 0;
  padding: 30px 30px 26px;
  border-radius: 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.card .k {
  font-size: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.card .title {
  font: 600 36px/1.15 var(--serif);
}
.card .by {
  font-size: 22px;
  color: var(--ink-2);
}
.card .big-state {
  font-size: 56px;
  color: var(--gold);
  text-shadow: 0 0 18px #ffd16666;
}
.card .time {
  font-size: 20px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

/* The echo: what the glasses understood, for a moment */
.echo {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translate(-50%, -8px);
  max-width: 540px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--gold-soft);
  color: var(--ink);
  font-size: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 160ms, transform 160ms;
  pointer-events: none;
  z-index: 20;
}
.echo.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Entrance: the star ignites, the name lands, the charge */
#splash {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: #000;
  overflow: hidden;
  transition: opacity 0.8s ease;
}
#splash.out {
  opacity: 0;
}
#splash canvas {
  position: absolute;
  inset: 0;
}
.s-line {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), letter-spacing 1.4s ease;
}
.s-line.in {
  opacity: 1;
  transform: none;
}
.s-line.gone {
  opacity: 0;
  transform: translateY(-14px);
}
.s-name {
  top: 236px;
  font: 700 62px/1 var(--serif);
  color: #fff3c4;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-shadow: 0 0 10px #fff, 0 0 28px var(--gold), 0 0 80px var(--gold);
}
.s-name.in {
  letter-spacing: 0.1em;
  text-indent: 0.1em;
}
.s-tag {
  top: 326px;
  font: italic 400 25px/1.3 var(--serif);
  color: var(--ink);
  letter-spacing: 0.06em;
}
.s-go {
  top: 272px;
  font: 800 44px/1 var(--sans);
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 0 12px #fff, 0 0 34px var(--gold), 0 0 90px var(--gold);
}
