/* Room C LIVE: what is specific to this page, in the tokens of ../../ad/roomc.css (Room C's art direction; load that first).
   It has the structure of ../live.css (Room B's page: the same header, the same panel), so that the two pages look the same.
   A black ground, white and nothing else, grey only as white at the steps of the alpha stair. Colour only for the fly turning
   (--turn), startle (--alarm) and the room's real light colours, which the page draws on the plan as they come, unchanged: these
   two cues are defined here and nowhere else on the site, so that no colour has two meanings. No external resources. */
:root { --turn:#3f7cff; --alarm:#ff3b30; }

.live { margin: 0 var(--rc-margin); }

.public-test { margin-top: calc(20 * var(--u)); padding: calc(16 * var(--u)) 0; border-top: var(--rc-w) solid var(--rc-aux); border-bottom: var(--rc-w) solid var(--rc-aux); }
.public-test .label { margin-bottom: calc(8 * var(--u)); }
.public-test .note { color: var(--rc-fg-sub); font-size: var(--rc-fs-read); line-height: var(--rc-lh-read); }

/* under the header: the small facts row (the old eyebrow and the room switcher), and the lead */
.live-head .rc-meta { margin: calc(24 * var(--u)) 0 0; }
.lead { max-width: var(--rc-measure); margin: calc(20 * var(--u)) 0 0; color: var(--rc-fg-sub); font-size: var(--rc-fs-read); line-height: var(--rc-lh-read); }
.live-stage { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(calc(300 * var(--u)), 1fr); gap: calc(48 * var(--u)); align-items: start; margin-top: calc(40 * var(--u)); padding: calc(40 * var(--u)) 0 0; border-top: var(--rc-w) solid var(--rc-aux); }

.plan { margin: 0; max-width: calc(86svh * 1.02); min-width: 0; }
#plan { display: block; width: 100%; aspect-ratio: 1 / 1; background: #000; border: var(--rc-w) solid var(--rc-aux); transition: opacity .6s; }
[data-state="closed"] #plan, [data-state="ended"] #plan { opacity: .55; }
[data-state="waiting"] #plan, [data-state="reconnecting"] #plan, [data-state="connecting"] #plan { opacity: .8; }
.data-box { transition: opacity .6s; }
[data-state="waiting"] .data-box, [data-state="reconnecting"] .data-box, [data-state="connecting"] .data-box { opacity: .45; }

/* the legend: the shapes of the plan */
.legend { display: flex; flex-wrap: wrap; gap: calc(8 * var(--u)) calc(18 * var(--u)); margin-top: calc(12 * var(--u)); color: var(--rc-fg-head); font-size: var(--rc-fs-credit); letter-spacing: var(--rc-ls-sub); line-height: 1.5; text-transform: uppercase; }
.legend span { display: inline-flex; align-items: center; gap: calc(7 * var(--u)); }
.legend b { font-weight: 300; }
.legend-faces { flex-basis: 100%; }
.plan-note { max-width: calc(704 * var(--u)); margin: calc(16 * var(--u)) 0 0; color: var(--rc-fg-foot); font-size: var(--rc-fs-credit); letter-spacing: var(--rc-ls-foot); line-height: 1.8; }
.key { display: inline-block; flex: none; }
.key-moving { width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; background: #fff; }
.key-still { width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; border: calc(1.5 * var(--u)) solid #fff; }
.key-watch { width: calc(16 * var(--u)); height: 0; border-top: var(--rc-w) dashed var(--rc-fg-sub); }
.key-unit { width: calc(7 * var(--u)); height: calc(13 * var(--u)); border-radius: calc(2 * var(--u)); background: linear-gradient(to top, var(--rc-faint), #fff); box-shadow: inset 0 0 0 var(--rc-w) var(--rc-fg-sub); }
.key-fly, .key-turn, .key-alarm { width: calc(12 * var(--u)); height: calc(12 * var(--u)); background: #fff; clip-path: polygon(50% 0, 82% 100%, 50% 78%, 18% 100%); }
.key-turn { background: var(--turn); }
.key-alarm { background: var(--alarm); }
.key-unseen { width: calc(12 * var(--u)); height: calc(12 * var(--u)); border: var(--rc-w) dashed var(--rc-dim); background: repeating-linear-gradient(45deg, var(--rc-line) 0 1px, transparent 1px 4px); }

/* the views (views.js): the plan's stage (the 3D view, the colour scale over it) and the rows of a label and small buttons, in PLAYBACK's look.
   White on the alpha stair; the only colour is a quantity's, drawn by views.js with its scale. */
.plan-stage { position: relative; }
.plan-stage[data-three-d] #plan { visibility: hidden; }
#plan3d { position: absolute; inset: 0; display: block; width: 100%; height: 100%; background: var(--rc-bg); touch-action: none; }
.plan-stage[data-three-d]::after { content: ""; position: absolute; inset: 0; border: var(--rc-w) solid var(--rc-aux); pointer-events: none; }
.plan-legend { position: absolute; z-index: 1; right: calc(16 * var(--u)); bottom: calc(14 * var(--u)); display: grid; gap: calc(5 * var(--u)); width: min(calc(170 * var(--u)), 32%); color: var(--rc-fg-head); font-family: var(--rc-mono); font-size: var(--rc-fs-mono); letter-spacing: 0; line-height: 1.3; text-transform: uppercase; pointer-events: none; }
.plan-legend[hidden] { display: none; }
.lg-bar { display: block; height: calc(6 * var(--u)); border: var(--rc-w) solid var(--rc-line); }
.lg-ticks { display: flex; justify-content: space-between; color: var(--rc-fg-sub); }
.lg-ticks b { font-weight: 400; }
.legend span[hidden] { display: none; }
.key-cam { width: calc(9 * var(--u)); height: calc(9 * var(--u)); border: calc(1.5 * var(--u)) solid var(--rc-fg-head); }

.views { border-top: var(--rc-w) solid var(--rc-aux); }
.views[hidden] { display: none; }
.v-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 calc(16 * var(--u)); padding: calc(6 * var(--u)) 0; border-bottom: var(--rc-w) solid var(--rc-aux); }
.v-label { flex: 0 0 calc(120 * var(--u)); color: var(--rc-fg-head); font-size: var(--rc-fs-label); letter-spacing: var(--rc-ls-sub); text-transform: uppercase; }
.v-btns { display: flex; flex-wrap: wrap; gap: 0 calc(18 * var(--u)); }
.v-btn { position: relative; padding: calc(8 * var(--u)) 0; border: 0; background: none; color: var(--rc-fg-head); font-family: var(--rc-mono); font-size: var(--rc-fs-label); font-weight: 400; letter-spacing: 0; text-transform: uppercase; }
.v-btn[hidden] { display: none; }
.v-btn::after { content: ""; position: absolute; inset: calc(-6 * var(--u)) calc(-8 * var(--u)); }   /* the target is bigger than the letters, and takes no room */
.v-btn:hover { color: var(--rc-fg); }
.v-btn[aria-pressed="true"] { color: var(--rc-fg-now); font-weight: 500; }
.v-toggle::before { content: ""; display: block; width: calc(12 * var(--u)); height: calc(12 * var(--u)); border: var(--rc-w) solid var(--rc-fg-head); }
.v-toggle[aria-pressed="true"]::before { border-color: var(--rc-fg-now); background: var(--rc-fg-now); }
.v-note { margin: 0; padding: calc(10 * var(--u)) 0; border-bottom: var(--rc-w) solid var(--rc-aux); color: var(--rc-fg-foot); font-size: var(--rc-fs-credit); letter-spacing: var(--rc-ls-foot); line-height: 1.8; }
.v-note[hidden] { display: none; }

/* the readout */
.readout { display: flex; flex-direction: column; gap: calc(28 * var(--u)); min-width: 0; }
.live-status { margin: 0; display: flex; align-items: center; gap: calc(10 * var(--u)); color: var(--rc-fg-head); font-size: var(--rc-fs-label); letter-spacing: var(--rc-ls-state); text-transform: uppercase; }
.live-status .dot { width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: var(--rc-dim); flex: none; }
.live-status em { margin-left: auto; font-family: var(--rc-mono); font-size: var(--rc-fs-credit); font-weight: 400; letter-spacing: 0; white-space: nowrap; }
[data-state="live"] .dot { background: #fff; animation: rc-pulse 2.6s ease-in-out infinite; }
[data-state="live"] .live-status { color: #fff; font-weight: 400; }
@media (prefers-reduced-motion: reduce) { [data-state="live"] .dot { animation: none; } #plan, .data-box, .bar span, .cycle-steps b, .m-track i { transition: none !important; } }

.block { margin: 0; }
.data-box > * + * { margin-top: calc(26 * var(--u)); }
.label { margin: 0 0 calc(10 * var(--u)); color: var(--rc-fg-head); font-size: var(--rc-fs-label); letter-spacing: var(--rc-ls-sub); text-transform: uppercase; }
.scene-name { margin: 0; color: var(--rc-fg); font-size: var(--rc-fs-scene); font-weight: 300; line-height: 1.2; letter-spacing: 0; overflow-wrap: anywhere; text-transform: uppercase; }
.scene-time { display: flex; align-items: center; gap: calc(14 * var(--u)); margin: calc(16 * var(--u)) 0 0; color: var(--rc-fg-head); font-family: var(--rc-mono); font-size: var(--rc-fs-label); font-weight: 400; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.bar { flex: 1; height: var(--rc-w); background: var(--rc-aux); position: relative; overflow: hidden; }
.bar span { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); transition: transform .26s linear; }
.scene-note { margin: calc(14 * var(--u)) 0 0; color: var(--rc-fg-head); font-size: var(--rc-fs-label); letter-spacing: var(--rc-ls-sub); text-transform: uppercase; }

/* the place in the 150 s cycle: five steps, the ones behind full, the one now filling */
.cycle { margin-top: calc(22 * var(--u)); }
.cycle-time { display: flex; justify-content: space-between; gap: calc(12 * var(--u)); margin: 0 0 calc(9 * var(--u)); color: var(--rc-fg-head); font-size: var(--rc-fs-label); letter-spacing: var(--rc-ls-sub); text-transform: uppercase; }
.cycle-time span:last-child { font-family: var(--rc-mono); font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.cycle-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(5 * var(--u)); }
.cycle-steps li { min-width: 0; color: var(--rc-dim); font-size: var(--rc-fs-credit); letter-spacing: var(--rc-ls-sub); overflow-wrap: anywhere; text-transform: uppercase; }
.cycle-steps li[aria-current="step"] { color: #fff; }
.cycle-steps i { display: block; height: var(--rc-w2); margin-bottom: calc(7 * var(--u)); background: var(--rc-aux); position: relative; overflow: hidden; }
.cycle-steps b { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); transition: transform .26s linear; }

.counts { margin: 0; border-top: var(--rc-w) solid var(--rc-aux); }
.counts > div { display: grid; grid-template-columns: calc(120 * var(--u)) minmax(0, 1fr); gap: calc(16 * var(--u)); padding: calc(12 * var(--u)) 0; border-bottom: var(--rc-w) solid var(--rc-aux); align-items: baseline; }
.counts dt { color: var(--rc-fg-head); font-size: var(--rc-fs-label); letter-spacing: var(--rc-ls-sub); text-transform: uppercase; }
.counts dd { margin: 0; font-size: calc(14 * var(--u)); }
.counts strong { color: var(--rc-fg); font-family: var(--rc-mono); font-size: calc(24 * var(--u)); font-weight: 400; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.counts strong.word { display: block; font-family: var(--rc-sans); font-size: var(--rc-fs-state); font-weight: 400; line-height: 1.4; letter-spacing: var(--rc-ls-state); text-transform: uppercase; }
.counts small { text-transform: uppercase; display: block; margin: calc(7 * var(--u)) 0 0; color: var(--rc-fg-foot); font-size: var(--rc-fs-label); letter-spacing: var(--rc-ls-sub); line-height: 1.6; }

.brain .label { margin-bottom: calc(4 * var(--u)); }
.meter { display: grid; grid-template-columns: calc(104 * var(--u)) minmax(0, 1fr) calc(54 * var(--u)); align-items: center; gap: calc(14 * var(--u)); padding: calc(10 * var(--u)) 0; border-bottom: var(--rc-w) solid var(--rc-aux); }
.m-name { color: var(--rc-fg-head); font-size: var(--rc-fs-label); letter-spacing: var(--rc-ls-sub); text-transform: uppercase; }
.m-track { position: relative; height: var(--rc-w3); background: var(--rc-aux); overflow: hidden; }
.m-track i { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); transition: transform .9s linear; }
.m-centred::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: var(--rc-w); background: var(--rc-fg-head); z-index: 1; }
.m-centred i { width: 50%; }
.m-centred #m-tension-pos { left: 50%; transform-origin: left; }
.m-centred #m-tension-neg { left: 0; transform-origin: right; }
.m-value { text-align: right; color: var(--rc-fg-head); font-family: var(--rc-mono); font-size: var(--rc-fs-label); font-weight: 400; font-variant-numeric: tabular-nums; }

.closed-box h2 { margin: 0 0 calc(16 * var(--u)); color: var(--rc-fg); font-size: var(--rc-fs-scene); font-weight: 300; line-height: 1.2; letter-spacing: 0; text-transform: uppercase; text-wrap: balance; word-break: auto-phrase; }
.closed-next { margin: 0; color: var(--rc-fg-head); font-size: calc(14 * var(--u)); line-height: 1.8; }
.hours, .note { margin: 0; max-width: calc(576 * var(--u)); color: var(--rc-fg-foot); font-size: var(--rc-fs-credit); letter-spacing: var(--rc-ls-foot); line-height: 1.8; }

/* the room switcher: the language is the page's: <html lang> hides the other text */
html[lang="en"] .rs-ja, html[lang="ja"] .rs-en { display:none; }

@media (max-width: 860px) {
  .live-stage { grid-template-columns: 1fr; gap: calc(40 * var(--u)); }
  .plan { max-width: none; }
}
@media (max-width: 720px) {
  .counts > div { grid-template-columns: calc(96 * var(--u)) minmax(0, 1fr); }
  .v-label { flex-basis: calc(96 * var(--u)); }
  .meter { grid-template-columns: calc(88 * var(--u)) minmax(0, 1fr) calc(51 * var(--u)); gap: calc(10 * var(--u)); }
}
