Files
piik/src/client/styles.css
T

1501 lines
51 KiB
CSS

/* Screener living-room UI — the production design system.
The stage is a TV on the wall, viewers are pawns on the couch, connection
state is what the TV shows and what the LEDs say. Copy lives in tooltips
and aria in visual mode; text modes add visible captions.
Motion serves state changes and control feedback only, and collapses
entirely under prefers-reduced-motion. */
:root {
color-scheme: light;
--wall: #e9f2ee;
--wall-2: #dcebe4;
--ink: #22303e;
--paper: #ffffff;
--couch: #e4572e;
--couch-dark: #c8492b;
--you: #2fa66a;
--pawn-1: #3b7dd8;
--pawn-2: #efb23f;
--pawn-3: #8e6fd8;
--pawn-4: #2fa8a0;
--pawn-5: #e2698f;
--pawn-6: #7d9c3f;
--pawn-7: #e08a3c;
--pawn-8: #5f7dd8;
--action: #2f6fed;
--action-deep: #2058c9;
--live: #2fa66a;
--warn: #d98e04;
--danger: #d64541;
--route-p2p: #1f7a4a;
--route-sfu: #53676a;
--route-pending: #875400;
--lcd: #1d2b22;
--lcd-digits: #9de8bf;
--stage: #101a2c;
--frame: #22303e;
--radius: 16px;
--spring: cubic-bezier(.3, 1.45, .45, 1);
--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC",
"Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
--mono: ui-monospace, "Cascadia Mono", SFMono-Regular, Consolas, monospace;
}
html[data-theme="dark"] {
color-scheme: dark;
--wall: #141e29;
--wall-2: #0e1620;
--ink: #dde8f3;
--paper: #22303e;
--frame: #0a111a;
--action: #4a84f2;
--action-deep: #3a70d8;
--live: #3fb97a;
--warn: #e8a33d;
--danger: #e25a52;
--route-p2p: #3fb97a;
--route-sfu: #9bb0c5;
--route-pending: #e8a33d;
--lcd: #0d1611;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body, #root { margin: 0; min-height: 100%; }
body {
background: var(--wall);
color: var(--ink);
font-family: var(--font);
font-size: 15px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
transition: background-color 300ms ease, color 300ms ease;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.4; }
h1, h2, h3, p, dl, dd, dt { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible {
outline: 3px solid var(--action);
outline-offset: 2px;
border-radius: 8px;
}
.visually-hidden {
position: absolute;
width: 1px; height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
clip-path: inset(50%);
white-space: nowrap;
}
/* ---------- header ---------- */
.lr-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px clamp(16px, 4vw, 44px) 6px;
}
.lr-brand {
display: grid;
width: 44px; height: 44px;
place-items: center;
border: 0;
border-radius: 12px;
background: transparent;
color: var(--ink);
transition: background 160ms ease, color 160ms ease, transform 160ms var(--spring);
}
.lr-brand:hover { background: var(--wall-2); }
.lr-brand:active { transform: scale(.92); }
.lr-brand-mark {
display: block;
flex: 0 0 auto;
overflow: visible;
}
.lr-brand-loader {
display: grid;
width: 88px;
height: 88px;
place-items: center;
color: currentColor;
}
.lr-brand-eye-open,
.lr-brand-sparkles { opacity: 0; }
.lr-brand-sparkles > * { opacity: 0; }
.lr-brand-mark.is-animated,
.lr-brand-mark.is-once {
transform-box: fill-box;
transform-origin: center;
}
.lr-brand-mark.is-animated {
animation: lr-brand-bob 3.6s cubic-bezier(.3, .8, .35, 1) infinite;
}
.lr-brand-mark.is-once {
animation: lr-brand-bob 1.6s cubic-bezier(.3, .8, .35, 1) 1 both;
}
.lr-brand-mark:is(.is-animated, .is-once) .lr-brand-shell > * {
stroke-dasharray: 1;
stroke-dashoffset: 1;
animation: lr-brand-draw cubic-bezier(.45, .05, .35, 1) forwards;
}
.lr-brand-mark:is(.is-animated, .is-once) .lr-brand-frame { animation-duration: 380ms; }
.lr-brand-mark:is(.is-animated, .is-once) .lr-brand-antenna {
animation-duration: 260ms;
animation-delay: 260ms;
}
.lr-brand-mark:is(.is-animated, .is-once) .lr-brand-feet {
animation-duration: 220ms;
animation-delay: 360ms;
}
.lr-brand-mark:is(.is-animated, .is-once) .lr-brand-face {
transform-box: fill-box;
transform-origin: center;
animation: lr-brand-face-in 180ms ease-out 500ms both;
}
.lr-brand-mark.is-animated .lr-brand-eye-open {
transform-box: fill-box;
transform-origin: center;
animation: lr-brand-eye-open 3.6s ease-in-out infinite;
}
.lr-brand-mark.is-animated .lr-brand-eye-wink {
animation: lr-brand-eye-wink 3.6s ease-in-out infinite;
}
.lr-brand-mark.is-animated .lr-brand-sparkles { opacity: 1; }
.lr-brand-mark.is-animated .lr-brand-sparkles > * {
transform-box: fill-box;
transform-origin: center;
animation: lr-brand-sparkle 3.6s cubic-bezier(.3, 1.45, .45, 1) infinite both;
}
.lr-brand-mark.is-animated .lr-brand-sparkles > :nth-child(2) {
animation-name: lr-brand-sparkle-alt;
animation-delay: 90ms;
}
.lr-brand-mark.is-once .lr-brand-eye-open {
transform-box: fill-box;
transform-origin: center;
animation: lr-brand-eye-open 1.6s ease-in-out 1 both;
}
.lr-brand-mark.is-once .lr-brand-eye-wink {
animation: lr-brand-eye-wink 1.6s ease-in-out 1 both;
}
.lr-brand-mark.is-once .lr-brand-sparkles { opacity: 1; }
.lr-brand-mark.is-once .lr-brand-sparkles > * {
transform-box: fill-box;
transform-origin: center;
animation: lr-brand-sparkle 1.6s cubic-bezier(.3, 1.45, .45, 1) 1 both;
}
.lr-brand-mark.is-once .lr-brand-sparkles > :nth-child(2) {
animation-name: lr-brand-sparkle-alt;
animation-delay: 45ms;
}
@keyframes lr-brand-draw { to { stroke-dashoffset: 0; } }
@keyframes lr-brand-bob {
0%, 20%, 42%, 100% { transform: translateY(0) rotate(0); }
26% { transform: translateY(-.8px) rotate(-2deg); }
32% { transform: translateY(.8px) rotate(1.5deg); }
}
@keyframes lr-brand-face-in {
from { opacity: 0; transform: scale(.35); }
to { opacity: 1; transform: scale(1); }
}
@keyframes lr-brand-eye-open {
0%, 24%, 34%, 100% { opacity: 0; transform: scaleY(.15); }
27%, 30% { opacity: 1; transform: scale(1); }
}
@keyframes lr-brand-eye-wink {
0%, 24%, 35%, 100% { opacity: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
27%, 30% { opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; }
32% { opacity: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
}
@keyframes lr-brand-sparkle {
0%, 30% { opacity: 0; transform: translate(-1px, 2px) scale(.12) rotate(-20deg); }
36% { opacity: 1; transform: translate(0, 0) scale(.85) rotate(0); }
52% { opacity: .9; transform: translate(5px, -5px) scale(1) rotate(18deg); }
70% { opacity: .35; transform: translate(9px, -9px) scale(.55) rotate(34deg); }
78%, 100% { opacity: 0; transform: translate(12px, -12px) scale(.2) rotate(48deg); }
}
@keyframes lr-brand-sparkle-alt {
0%, 30% { opacity: 0; transform: translate(-1px, -1px) scale(.12) rotate(18deg); }
36% { opacity: .95; transform: translate(0, 0) scale(.75) rotate(0); }
52% { opacity: .8; transform: translate(4px, 4px) scale(.95) rotate(-16deg); }
70% { opacity: .3; transform: translate(8px, 8px) scale(.5) rotate(-30deg); }
78%, 100% { opacity: 0; transform: translate(11px, 11px) scale(.18) rotate(-42deg); }
}
.lr-brand-sparkles { stroke: #d08a22; }
html[data-theme="dark"] .lr-brand-sparkles { stroke: #f4c14d; }
.lr-top-right { display: inline-flex; gap: 10px; align-items: center; }
/* LED state strip */
.lr-leds {
display: inline-flex;
gap: 7px;
align-items: center;
padding: 8px 12px;
border-radius: 999px;
background: var(--wall-2);
}
.lr-leds i {
width: 9px; height: 9px;
border-radius: 50%;
background: #b7c6bf;
transition: background 300ms ease;
}
.lr-leds[data-state="live"] i { background: var(--live); opacity: .35; }
.lr-leds[data-state="live"] i:first-child { opacity: 1; animation: lr-breathe 2.8s ease-in-out infinite; }
.lr-leds[data-state="busy"] i { animation: lr-chase 1s ease-in-out infinite; background: var(--action); }
.lr-leds[data-state="busy"] i:nth-child(2) { animation-delay: .15s; }
.lr-leds[data-state="busy"] i:nth-child(3) { animation-delay: .3s; }
.lr-leds[data-state="warn"] i { background: var(--warn); animation: lr-blink 1.1s ease-in-out infinite; }
.lr-leds[data-state="bad"] i { background: var(--danger); }
.lr-leds-label { margin-left: 4px; font-size: 11.5px; font-weight: 700; opacity: .8; white-space: nowrap; }
@keyframes lr-breathe { 50% { opacity: .55; } }
@keyframes lr-chase { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes lr-blink { 50% { opacity: .3; } }
/* language + theme controls */
.lr-lang {
display: inline-flex;
gap: 4px;
padding: 4px;
border: 2.5px solid var(--ink);
border-radius: 999px;
background: var(--paper);
}
.lr-lang button {
display: inline-grid;
min-width: 38px;
height: 34px;
place-items: center;
padding: 0 9px;
border: 0;
border-radius: 999px;
background: transparent;
color: var(--ink);
font-size: 12px;
font-weight: 700;
opacity: .55;
transition: opacity 120ms ease, transform 140ms var(--spring);
}
.lr-lang button:hover:not(.is-selected) { opacity: .85; }
.lr-lang button:active { transform: scale(.9); }
.lr-lang button.is-selected { background: var(--ink); color: var(--paper); opacity: 1; }
/* ---------- room layout ---------- */
/* overflow-x: clip keeps invisible absolutely-positioned decor (the resting
opacity:0 comic-tip panels, up to 320px wide and centered on triggers near
the viewport edge) out of the document's scrollable overflow — at narrow
widths they otherwise inflate scrollWidth and open a blank horizontal
gutter. clip (unlike hidden) creates no scroll container and leaves
overflow-y: visible untouched. Open panels are edge-aligned via
is-start/is-end, so nothing visible is cut in practice. */
.lr-app { min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
.lr-room {
flex: 1;
width: min(1180px, 100%);
min-width: 0;
margin: 0 auto;
padding: 8px clamp(14px, 3.5vw, 40px) 64px;
}
.lr-scene { position: relative; min-width: 0; }
/* ---------- the TV ---------- */
.lr-tv {
position: relative;
width: min(880px, 100%);
margin: 0 auto;
padding: 12px 12px 0;
border: 3px solid var(--frame);
border-radius: 26px 26px 20px 20px;
background: var(--frame);
}
.lr-tv-screen {
position: relative;
overflow: hidden;
aspect-ratio: 16 / 9;
border-radius: 14px 14px 8px 8px;
background: var(--stage);
}
.lr-tv-screen video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--stage); }
.lr-tv-screen.has-entry { aspect-ratio: 16 / 9; }
.lr-tv-screen.is-on { animation: lr-crt .5s cubic-bezier(.2, .8, .3, 1) both; }
.lr-tv-chin {
display: flex;
align-items: center;
justify-content: center;
height: 26px;
}
.lr-tv-chin i {
width: 8px; height: 8px;
border-radius: 50%;
background: #57697f;
transition: background 300ms ease;
}
.lr-tv-chin i.is-on { background: var(--live); }
.lr-tv-chin i.is-warn { background: var(--warn); animation: lr-blink 1.1s infinite; }
.lr-tv-chin i.is-bad { background: var(--danger); }
.lr-tv-chin i.is-busy { background: var(--action); animation: lr-blink .8s infinite; }
@keyframes lr-crt {
0% { filter: brightness(3); transform: scaleY(.012); }
55% { filter: brightness(1.6); transform: scaleY(1.02); }
100% { filter: brightness(1); transform: scaleY(1); }
}
.lr-shelf {
width: min(640px, 84%);
height: 10px;
margin: 14px auto 0;
border: 3px solid var(--ink);
border-radius: 6px;
background: var(--paper);
}
/* TV overlays */
.lr-tv-overlay {
position: absolute;
inset: 0;
display: grid;
place-content: center;
justify-items: center;
gap: 14px;
padding: 18px;
color: #dfe8f2;
text-align: center;
}
.lr-tv-overlay.is-dim { background: rgba(10, 16, 28, .62); }
.lr-tv-big {
position: relative;
display: grid;
width: 84px; height: 84px;
place-items: center;
border: 3px solid #dfe8f2;
border-radius: 50%;
color: #fff;
background: rgba(255, 255, 255, .07);
transition: transform 180ms var(--spring), background 160ms ease;
}
.lr-tv-big:hover { transform: scale(1.05); }
.lr-tv-big:active { transform: scale(.94); }
.lr-tv-big.is-action { border-color: var(--action); background: var(--action); cursor: pointer; }
.lr-tv-big.is-action:hover { background: var(--action-deep); }
.lr-tv-big.is-ripple::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
box-shadow: 0 0 0 22px rgba(47, 111, 237, .45);
opacity: 0;
pointer-events: none;
transform: scale(.66);
will-change: transform, opacity;
animation: lr-ripple 2s ease-out infinite;
}
@keyframes lr-ripple {
0% { opacity: .45; transform: scale(.66); }
70%, 100% { opacity: 0; transform: scale(1); }
}
.lr-tv-msg {
font-size: 14.5px;
font-weight: 600;
color: #dfe8f2;
text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
}
.lr-entry-text { display: grid; gap: 6px; margin-bottom: 4px; }
.lr-entry-text h1 { font-size: clamp(19px, 2.6vw, 24px); font-weight: 800; color: #f2efe7; letter-spacing: -0.01em; text-wrap: balance; }
.lr-entry-text p { max-width: 400px; margin: 0 auto; color: #9aa0b0; font-size: 13.5px; text-wrap: balance; }
.lr-entry-actions { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.lr-entry-action { display: grid; justify-items: center; gap: 8px; align-content: start; }
/* static noise while connecting */
.lr-tv-static {
position: absolute;
inset: 0;
opacity: .55;
background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Crect width='90' height='90' fill='%230d1526'/%3E%3Crect x='4' y='9' width='5' height='5' fill='%232c3a52'/%3E%3Crect x='26' y='30' width='4' height='4' fill='%231e2a40'/%3E%3Crect x='52' y='12' width='6' height='6' fill='%23364a68'/%3E%3Crect x='70' y='48' width='5' height='5' fill='%23232f47'/%3E%3Crect x='12' y='60' width='6' height='6' fill='%23304058'/%3E%3Crect x='40' y='70' width='4' height='4' fill='%231e2a40'/%3E%3Crect x='64' y='74' width='5' height='5' fill='%232c3a52'/%3E%3Crect x='80' y='20' width='4' height='4' fill='%23304058'/%3E%3Crect x='34' y='50' width='5' height='5' fill='%23232f47'/%3E%3Crect x='8' y='36' width='4' height='4' fill='%23364a68'/%3E%3Crect x='48' y='40' width='4' height='4' fill='%232c3a52'/%3E%3Crect x='76' y='64' width='4' height='4' fill='%231e2a40'/%3E%3C/svg%3E");
animation: lr-static .36s steps(3) infinite;
}
@keyframes lr-static {
0% { background-position: 0 0; }
33% { background-position: 28px 14px; }
66% { background-position: -18px 26px; }
100% { background-position: 12px -20px; }
}
/* storyboard: connection beats */
.lr-storyboard { display: grid; justify-items: center; gap: 10px; }
.lr-story { display: flex; align-items: center; justify-content: center; gap: 10px; }
.lr-story-item { display: grid; justify-items: center; gap: 6px; }
.lr-story-panel {
display: grid;
width: 52px; height: 52px;
place-items: center;
border: 2.5px solid #48597a;
border-radius: 14px;
color: #7789a8;
background: rgba(13, 21, 38, .65);
transition: border-color 220ms ease, color 220ms ease;
}
.lr-story-panel.is-done { border-color: var(--live); color: var(--live); animation: lr-pop .24s var(--spring); }
.lr-story-panel.is-now { border-color: var(--action); color: #fff; animation: lr-blink 1s ease-in-out infinite; }
.lr-story-link { width: 22px; height: 2.5px; border-radius: 2px; background: #48597a; transition: background 220ms ease; }
.lr-story-link.is-done { background: var(--live); }
.lr-story-cap { font-size: 10.5px; font-weight: 600; color: #8ea0bd; white-space: nowrap; }
.lr-story-item.is-done .lr-story-cap { color: var(--live); }
.lr-story-item.is-now .lr-story-cap { color: #fff; }
/* ---------- couch + pawns ---------- */
.lr-couch {
position: relative;
width: min(720px, 96%);
margin: 22px auto 0;
}
.lr-couch > svg { display: block; width: 100%; height: auto; }
.lr-pawns-window {
position: absolute;
inset: 0 8% auto;
top: -35px;
overflow-x: auto;
overflow-y: hidden;
padding: 20px 12px 10px;
scrollbar-color: var(--route-sfu) transparent;
scrollbar-width: thin;
}
.lr-pawns {
display: flex;
width: max-content;
min-width: 100%;
flex-wrap: nowrap;
justify-content: center;
align-items: start;
gap: 2px 10px;
}
.lr-pawn {
position: relative;
display: grid;
width: max-content;
min-width: 44px;
place-items: center;
padding: 0;
border: 0;
background: transparent;
animation: lr-hop .55s var(--spring) backwards;
transition: transform 150ms var(--spring);
}
.lr-pawn:hover:not(.is-static) { transform: translateY(-5px) rotate(-4deg); }
.lr-pawn svg { width: 40px; height: 48px; display: block; }
.lr-pawn-led {
position: absolute;
top: 2px;
left: calc(50% + 10px);
width: 10px; height: 10px;
border: 2px solid var(--wall);
border-radius: 50%;
background: var(--live);
transition: background 200ms ease;
}
.lr-pawn-led.is-wait { background: var(--warn); animation: lr-blink 1.2s infinite; }
.lr-pawn.is-you::after {
content: "";
position: absolute;
top: -13px; left: 50%;
width: 13px; height: 10px;
background: var(--you);
clip-path: polygon(50% 100%, 0 0, 100% 0);
transform: translateX(-50%);
}
.lr-pawn.is-you { z-index: 1; }
.lr-pawn.is-static { cursor: default; }
.lr-pawn.is-selected { transform: translateY(-5px); }
.lr-pawn.is-selected::before {
content: "";
position: absolute;
inset: -3px -6px;
border: 2.5px solid var(--action);
border-radius: 13px;
}
.lr-pawn.is-child { min-width: 34px; align-self: end; }
.lr-pawn.is-child svg { width: 30px; height: 36px; }
.lr-pawns.is-crowded { gap: 6px; }
.lr-pawns.is-crowded .lr-pawn { min-width: 33px; }
.lr-pawns.is-crowded .lr-pawn svg { width: 29px; height: 35px; }
.lr-pawns.is-crowded .lr-pawn-led { width: 8px; height: 8px; }
.lr-pawn-name {
margin-top: -4px;
padding: 1px 6px;
border-radius: 7px;
background: var(--paper);
color: var(--ink);
font-size: 10px;
font-weight: 700;
white-space: nowrap;
box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}
.lr-pawn-name.is-mini { font-size: 9px; padding: 0 5px; }
.lr-couch-count {
position: absolute;
right: 4%;
bottom: 8px;
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 8px;
border: 2px solid var(--ink);
border-radius: 999px;
background: var(--paper);
color: var(--ink);
font-family: var(--mono);
font-size: 11px;
line-height: 1;
}
.lr-couch-count b { font-size: inherit; }
.lr-couch-empty {
position: absolute;
inset: -8px 0 auto;
display: grid;
place-items: center;
color: #6f8579;
opacity: .85;
}
@keyframes lr-hop {
0% { transform: translateY(-16px) scale(.7); opacity: 0; }
60% { transform: translateY(3px) scale(1.04); opacity: 1; }
100% { transform: translateY(0) scale(1); opacity: 1; }
}
/* ---------- deck: control rows ---------- */
.lr-deck { width: 100%; min-width: 0; margin-top: 34px; display: grid; gap: 14px; }
.lr-row {
display: flex;
min-width: 0;
max-width: 100%;
flex-wrap: wrap;
align-items: center;
gap: 12px;
padding: 15px 18px;
border: 2.5px solid var(--ink);
border-radius: var(--radius);
background: var(--paper);
}
.lr-row.is-sub { background: var(--wall-2); border-color: transparent; }
.lr-row-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.lr-group-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.lr-viewer-summary-row {
display: flex;
flex-wrap: wrap;
align-items: center;
column-gap: 12px;
row-gap: 10px;
}
.lr-viewer-room-slot { flex: 0 0 auto; }
.lr-viewer-host-slot {
flex: 0 1 auto;
max-width: 180px;
flex-wrap: nowrap;
font-size: 13px;
}
.lr-viewer-host-slot svg { flex: 0 0 auto; color: #53676a; }
html[data-theme="dark"] .lr-viewer-host-slot svg { color: #9bb0c5; }
.lr-viewer-host-slot b {
min-width: 0;
overflow: hidden;
line-height: 1.25;
text-overflow: ellipsis;
white-space: nowrap;
}
.lr-viewer-state-slot { flex: 1 1 120px; }
.lr-viewer-state-slot:empty { display: none; }
.lr-viewer-self-slot {
display: flex;
flex: 0 1 auto;
align-items: center;
gap: 8px;
}
.lr-viewer-actions-slot {
flex: 0 0 auto;
margin-left: auto;
}
.lr-viewer-self-slot .lr-name-tag { flex: 0 1 auto; width: auto; }
.lr-spacer { flex: 1; }
.lr-divider { width: 2.5px; align-self: stretch; border-radius: 2px; background: var(--wall-2); }
.lr-row.is-sub .lr-divider { background: #c3d4cb; }
.lr-field-cap { opacity: .55; font-size: 12px; font-weight: 600; }
.lr-invite-url {
width: 100%;
min-width: 0;
max-width: 340px;
flex: 1 1 240px;
overflow: hidden;
padding: 7px 10px;
border: 1.5px dashed var(--wall-2);
border-radius: 8px;
background: var(--wall-2);
color: var(--ink);
font-family: var(--mono);
font-size: 11px;
text-overflow: ellipsis;
white-space: nowrap;
user-select: all;
}
html[data-theme="dark"] .lr-invite-url { background: #1a2634; border-color: #33465c; }
.lr-status-text {
min-width: 0;
overflow: hidden;
font-size: 13.5px;
font-weight: 600;
opacity: .78;
text-overflow: ellipsis;
white-space: nowrap;
}
/* LCD room code */
.lr-lcd {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
border: 3px solid var(--ink);
border-radius: 12px;
background: var(--lcd);
color: var(--lcd-digits);
font-family: var(--mono);
font-size: 24px;
font-weight: 700;
letter-spacing: .3em;
text-indent: .15em;
}
.lr-lcd button {
display: grid;
width: 34px; height: 34px;
place-items: center;
border: 0;
border-radius: 8px;
background: transparent;
color: var(--lcd-digits);
transition: background 120ms ease;
}
.lr-lcd button:hover { background: #ffffff22; }
.lr-lcd-roll { display: inline-flex; overflow: hidden; }
.lr-lcd-roll span { display: inline-block; animation: lr-roll .34s var(--spring) both; }
@keyframes lr-roll { from { transform: translateY(110%); } }
/* ---------- buttons & chips ---------- */
.lr-btn {
display: inline-grid;
grid-auto-flow: column;
align-items: center;
justify-content: center;
gap: 8px;
min-width: 52px; height: 52px;
padding: 0 14px;
border: 2.5px solid var(--ink);
border-radius: 15px;
background: var(--paper);
color: var(--ink);
white-space: nowrap;
transition: transform 120ms var(--spring), background 120ms ease, box-shadow 160ms ease;
}
.lr-btn:hover:not(:disabled) { background: var(--wall-2); transform: translateY(-1px); }
.lr-btn:active:not(:disabled) { transform: scale(.93); }
.lr-btn.is-primary { border-color: var(--action); background: var(--action); color: #fff; }
.lr-btn.is-primary:hover:not(:disabled) { background: var(--action-deep); box-shadow: 0 4px 14px rgba(47, 111, 237, .35); }
.lr-btn.is-danger { border-color: var(--danger); color: var(--danger); }
.lr-btn.is-danger:hover:not(:disabled) { background: rgba(214, 69, 65, .1); }
.lr-btn.is-on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.lr-btn .lr-cap { margin-left: 2px; font-size: 12.5px; font-weight: 600; }
.lr-cap { font-size: 12.5px; font-weight: 600; color: inherit; white-space: nowrap; }
.lr-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 9px 14px;
border: 2.5px solid var(--ink);
border-radius: 10px;
background: var(--paper);
font-family: var(--mono);
font-size: 13px;
font-weight: 700;
letter-spacing: .1em;
transition: transform 120ms var(--spring), background 120ms ease;
}
.lr-chip:hover:not(:disabled) { background: var(--wall-2); }
.lr-chip:active:not(:disabled) { transform: scale(.94); }
.lr-chip.is-selected { background: var(--ink); color: var(--paper); animation: lr-pop .2s var(--spring); }
.lr-chip .lr-cap { font-family: var(--font); letter-spacing: 0; }
.lr-chip small { margin-left: 5px; font-size: 10.5px; opacity: .6; }
.lr-chip-dot {
display: inline-block;
width: 7px; height: 7px;
margin-left: 7px;
border-radius: 50%;
background: var(--live);
vertical-align: 1px;
}
@keyframes lr-pop { 50% { transform: scale(1.06); } }
/* policy segmented toggle with sliding thumb. inline-grid + 1fr auto columns
makes every option exactly half the toggle (equal to the widest caption),
so the 50%/translateX(100%) thumb lines up in every language — flex sizing
let EN "Open"/"Private" run unequal and the thumb underlapped the selected
button. */
.lr-toggle {
position: relative;
display: inline-grid;
grid-auto-flow: column;
grid-auto-columns: 1fr;
padding: 4px;
border: 2.5px solid var(--ink);
border-radius: 15px;
background: var(--paper);
}
.lr-toggle::before {
content: "";
position: absolute;
top: 4px; bottom: 4px; left: 4px;
width: calc(50% - 4px);
border-radius: 11px;
background: var(--ink);
transition: transform 260ms var(--spring);
}
.lr-toggle[data-selected="private"]::before { transform: translateX(100%); }
.lr-toggle button {
position: relative;
z-index: 1;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
min-width: 44px; height: 44px;
padding: 0 10px;
border: 0;
border-radius: 11px;
background: transparent;
color: #8aa0b2;
transition: color 180ms ease;
}
.lr-toggle button.is-selected { color: var(--paper); }
.lr-toggle button:active { transform: scale(.94); }
/* Vis mode hint-wraps each option button, so the wrap (not the button) is the
grid item; it stretches to its track, and without centering the icon-only
button would pin to the left of its half. */
.lr-toggle .lr-comic-tip-wrap { justify-content: center; }
/* iOS-style switch */
.lr-switch {
position: relative;
display: inline-flex;
width: 58px; height: 34px;
border: 2.5px solid var(--ink);
border-radius: 999px;
background: var(--paper);
flex: 0 0 auto;
transition: background 200ms ease, border-color 200ms ease;
}
.lr-switch::after {
content: "";
position: absolute;
top: 2.5px; left: 3px;
width: 24px; height: 24px;
border-radius: 50%;
background: var(--ink);
transition: transform 280ms var(--spring), background 200ms ease;
}
.lr-switch:active::after { transform: scaleX(1.18); }
.lr-switch[aria-checked="true"] { background: var(--live); border-color: var(--live); }
.lr-switch[aria-checked="true"]::after { transform: translateX(24px); background: #fff; }
.lr-switch[aria-checked="true"]:active::after { transform: translateX(24px) scaleX(1.18); }
/* sliders */
.lr-slider { display: flex; align-items: center; gap: 12px; }
.lr-slider input { flex: 1; accent-color: var(--action); height: 32px; }
.lr-slider output { min-width: 64px; font-family: var(--mono); font-size: 12.5px; text-align: right; }
/* quality tiles */
.lr-tiles { display: flex; gap: 10px; flex-wrap: wrap; }
.lr-tile {
display: grid;
justify-items: center;
gap: 6px;
min-width: 76px;
padding: 12px 10px 9px;
border: 2.5px solid var(--ink);
border-radius: 14px;
background: var(--paper);
color: var(--ink);
transition: transform 140ms var(--spring), background 120ms ease;
}
.lr-tile:hover:not(:disabled):not(.is-selected) { background: var(--wall-2); transform: translateY(-2px); }
.lr-tile:active:not(:disabled) { transform: scale(.95); }
.lr-tile.is-selected { background: var(--ink); color: var(--paper); animation: lr-pop .2s var(--spring); }
.lr-tile small { font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: #5d7086; white-space: nowrap; }
.lr-tile.is-selected small { color: var(--paper); opacity: .75; }
/* text inputs */
.lr-input {
display: inline-flex;
align-items: center;
gap: 8px;
min-width: 0;
height: 48px;
padding: 0 12px;
border: 2.5px solid var(--ink);
border-radius: 13px;
background: var(--paper);
transition: border-color 140ms ease;
}
.lr-input:focus-within { border-color: var(--action); outline: 3px solid var(--action); outline-offset: 2px; }
.lr-input input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; }
.lr-input input[type="password"]:not(:placeholder-shown) { letter-spacing: .25em; }
.lr-input.lr-name-editor {
width: clamp(140px, 18vw, 200px);
height: 40px;
border-radius: 999px;
}
.lr-name-tag {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 8px 13px;
border: 2.5px solid var(--ink);
border-radius: 999px;
background: var(--paper);
font-size: 13.5px;
font-weight: 700;
max-width: 100%;
}
.lr-name-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--you); flex: 0 0 auto; }
.lr-name-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* notices */
.lr-pill {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 9px 14px;
border-radius: 999px;
background: #fdf3e0;
border: 2px solid var(--warn);
color: #8a5f04;
font-size: 13px;
font-weight: 600;
animation: lr-slide-in 240ms var(--spring);
}
.lr-pill.is-bad { background: rgba(214, 69, 65, .1); border-color: var(--danger); color: #a1332f; }
.lr-pill.is-good { background: #e2f3e9; border-color: var(--live); color: #1f7a4a; }
html[data-theme="dark"] .lr-pill { background: #2e2410; }
html[data-theme="dark"] .lr-pill.is-bad { background: #331c1a; }
html[data-theme="dark"] .lr-pill.is-good { background: #14291d; }
@keyframes lr-slide-in { from { opacity: 0; transform: translateY(-6px); } }
/* metric cells */
.lr-meter { display: flex; flex-wrap: wrap; gap: 10px; }
.lr-meter-cell {
display: inline-flex;
min-width: 0;
max-width: 100%;
align-items: center;
gap: 8px;
padding: 9px 12px;
border-radius: 12px;
background: var(--wall-2);
}
.lr-meter-cell b {
min-width: 0;
max-width: 100%;
overflow-wrap: anywhere;
font-family: var(--mono);
font-size: 13px;
font-weight: 700;
letter-spacing: .02em;
}
.lr-meter-cell svg { color: #53676a; }
html[data-theme="dark"] .lr-meter-cell svg { color: #7d92a8; }
.lr-meter-text { display: grid; line-height: 1.18; }
.lr-meter-text small { font-size: 9.5px; font-weight: 600; opacity: .62; }
.lr-meter-tag { display: inline-flex; align-items: center; padding: 9px 2px 9px 0; color: #53676a; }
.lr-meter-tag .lr-cap { margin-left: 6px; font-size: 12px; }
.lr-metrics-more { min-width: 40px; height: 40px; padding: 0 10px; }
.lr-metrics-more svg { transition: transform 160ms ease; }
.lr-metrics-more.is-open svg { transform: rotate(180deg); }
/* per-viewer detail row */
.lr-pawn-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lr-pawn-mini { display: grid; place-items: center; }
.lr-pawn-mini svg { width: 28px; height: 34px; display: block; }
.lr-pawn-detail-name { font-size: 14px; font-weight: 800; }
.lr-pawn-detail .lr-meter { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); }
.lr-pawn-detail-close {
display: grid;
width: 40px; height: 40px;
place-items: center;
border: 2.5px solid var(--ink);
border-radius: 12px;
background: var(--paper);
color: var(--ink);
transition: transform 120ms var(--spring), background 120ms ease;
}
.lr-pawn-detail-close:hover { background: var(--wall-2); }
.lr-pawn-detail-close:active { transform: scale(.9); }
/* ---------- topology tree ---------- */
.lr-route {
width: 100%;
min-width: 0;
max-width: 100%;
flex: 1 1 100%;
overflow-x: auto;
padding: 6px 2px;
box-sizing: border-box;
overscroll-behavior-inline: contain;
scrollbar-color: var(--route-sfu) transparent;
scrollbar-width: thin;
}
.lr-route svg { display: block; width: 100%; max-width: 880px; height: auto; margin: 0 auto; }
.lr-route:focus-visible { border-radius: 10px; }
.lr-route-edge {
fill: none;
stroke-width: 2.5;
stroke-linecap: round;
stroke-linejoin: round;
vector-effect: non-scaling-stroke;
}
.lr-route-edge.is-p2p { stroke: var(--route-p2p); }
.lr-route-edge.is-sfu { stroke: var(--route-sfu); }
.lr-route-edge.is-pending,
.lr-route-edge.is-recovering {
stroke: var(--route-pending);
stroke-dasharray: 6 7;
animation: lr-flow 1.1s linear infinite;
}
.lr-route-node { transition: opacity 180ms ease; }
.lr-route-node.is-recovering { opacity: .58; }
.lr-route-selection,
.lr-route-you { fill: none; vector-effect: non-scaling-stroke; }
.lr-route-selection { stroke: var(--action); stroke-width: 3; }
.lr-route-you { stroke: var(--route-p2p); stroke-width: 2.5; stroke-dasharray: 4 3; }
.lr-route-sfu { fill: none; stroke: var(--route-sfu); stroke-width: 2.5; }
.lr-route-sfu path { stroke-linecap: round; }
.lr-route-label {
fill: var(--ink);
font-size: 11px;
font-weight: 650;
opacity: .78;
paint-order: stroke;
stroke: var(--wall-2);
stroke-width: 3px;
stroke-linejoin: round;
}
.lr-route-label.is-host { font-weight: 800; opacity: 1; }
.lr-route-label.is-sfu { fill: var(--route-sfu); font-weight: 800; opacity: 1; }
.lr-route-label.is-recovering { fill: var(--route-pending); opacity: 1; }
.lr-route-label.is-selected { fill: var(--action-deep); font-weight: 800; opacity: 1; }
@keyframes lr-flow { to { stroke-dashoffset: -24; } }
/* ---------- advanced door ---------- */
.lr-door-body {
display: grid;
gap: 16px;
padding: 16px;
border: 2.5px dashed #9db3a7;
border-radius: var(--radius);
}
.lr-door { display: grid; }
.lr-door-reveal {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 260ms ease;
}
.lr-door-reveal.is-open { grid-template-rows: 1fr; }
.lr-door-reveal > div { overflow: hidden; }
/* Once open, tooltips inside the door must escape the reveal clip; the
discrete flip is delayed past the 260ms row transition so the opening
animation still renders clipped. */
.lr-door-reveal.is-open > div { overflow: visible; transition: overflow 0s 260ms; }
.lr-door-group { display: grid; gap: 10px; }
.lr-door-glyph { display: flex; align-items: center; gap: 10px; color: #53676a; }
html[data-theme="dark"] .lr-door-glyph { color: #7d92a8; }
.lr-door-glyph .lr-cap { font-size: 13px; }
.lr-switch-item { display: inline-flex; align-items: center; gap: 9px; }
/* ---------- join / access ---------- */
.lr-join {
flex: 1;
display: grid;
place-items: center;
padding: 24px 16px 72px;
}
.lr-join-panel {
display: grid;
width: 100%;
min-width: 0;
max-width: 100%;
justify-items: center;
gap: 20px;
}
.lr-join-door { color: var(--ink); }
.lr-join-door.is-shake { animation: lr-shake .4s ease; }
@keyframes lr-shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-7px); }
50% { transform: translateX(6px); }
75% { transform: translateX(-4px); }
}
.lr-dials-wrap { position: relative; }
.lr-dials-wrap:focus-within { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 14px; }
.lr-dials { display: flex; gap: 12px; }
.lr-dial {
display: grid;
width: 64px; height: 78px;
place-items: center;
border: 3px solid var(--ink);
border-radius: 14px;
background: var(--paper);
font-family: var(--mono);
font-size: 34px;
font-weight: 700;
transition: border-color 120ms ease, transform 160ms var(--spring), box-shadow 160ms ease;
}
.lr-dial.is-active { border-color: var(--action); transform: translateY(-4px); box-shadow: 0 6px 0 -2px rgba(47, 111, 237, .2); }
.lr-dial.is-filled { background: var(--ink); color: var(--paper); animation: lr-pop .18s ease; }
.lr-dials-wrap input {
position: absolute;
inset: 0;
opacity: 0;
cursor: pointer;
font-size: 40px;
}
.lr-join-error {
display: grid;
width: 52px; height: 52px;
place-items: center;
border-radius: 50%;
background: var(--danger);
color: #fff;
animation: lr-pop .2s var(--spring);
}
.lr-join-go {
display: grid;
width: 68px; height: 68px;
place-items: center;
border: 3px solid var(--action);
border-radius: 50%;
background: var(--action);
color: #fff;
transition: transform 140ms var(--spring), background 160ms ease;
}
.lr-join-go:hover:not(:disabled) { background: var(--action-deep); transform: scale(1.05); }
.lr-join-go:active:not(:disabled) { transform: scale(.92); }
.lr-join-go:disabled { background: var(--wall-2); border-color: transparent; color: #9db3a7; opacity: 1; }
html[data-theme="dark"] .lr-join-go:disabled { background: #1a2634; color: #48607a; }
.lr-access-text {
display: grid;
width: min(100%, 330px);
min-width: 0;
max-width: 100%;
gap: 7px;
justify-items: center;
text-align: center;
}
.lr-access-text h1 {
min-width: 0;
max-width: 100%;
overflow-wrap: anywhere;
font-size: 20px;
font-weight: 800;
letter-spacing: -0.01em;
}
.lr-access-text p {
min-width: 0;
max-width: 100%;
overflow-wrap: anywhere;
font-size: 13px;
line-height: 1.6;
opacity: .72;
}
.lr-loading {
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 12px;
color: var(--ink);
font-size: 14.5px;
font-weight: 600;
}
.lr-viewer-entry-brand { display: grid; place-items: center; color: var(--ink); }
.lr-spin { animation: lr-rotate .9s linear infinite; }
@keyframes lr-rotate { to { transform: rotate(360deg); } }
/* ---------- dark theme refinements ---------- */
html[data-theme="dark"] .lr-btn:hover:not(:disabled) { background: #2b3d4f; }
html[data-theme="dark"] .lr-btn.is-on { background: var(--ink); color: #22303e; }
html[data-theme="dark"] .lr-btn.is-danger:hover:not(:disabled) { background: #3d2626; }
html[data-theme="dark"] .lr-chip:hover:not(:disabled),
html[data-theme="dark"] .lr-tile:hover:not(:disabled):not(.is-selected) { background: #2b3d4f; }
html[data-theme="dark"] .lr-chip.is-selected,
html[data-theme="dark"] .lr-tile.is-selected { background: var(--ink); color: #22303e; }
html[data-theme="dark"] .lr-tile.is-selected small { color: #4a5f78; }
html[data-theme="dark"] .lr-row.is-sub { background: #1a2634; }
html[data-theme="dark"] .lr-meter-cell { background: #1a2634; }
html[data-theme="dark"] .lr-meter-tag { color: #7d92a8; }
html[data-theme="dark"] .lr-door-body { border-color: #33465c; }
html[data-theme="dark"] .lr-pawn-name { background: #0e1620; box-shadow: none; }
html[data-theme="dark"] .lr-couch-empty { color: #54708c; }
html[data-theme="dark"] .lr-switch { background: #0e1620; }
html[data-theme="dark"] .lr-switch::after { background: var(--ink); }
/* ---------- responsive ---------- */
@media (max-width: 640px) {
.lr-pawns-window { inset-inline: 4%; }
.lr-pawns { gap: 2px 6px; }
.lr-pawn { min-width: 36px; }
.lr-pawn svg { width: 32px; height: 39px; }
.lr-route { padding-inline: 0; }
.lr-row { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
.lr-row > .lr-spacer,
.lr-row > .lr-divider { display: none; }
.lr-row-group { width: 100%; gap: 9px; }
.lr-viewer-summary-row { flex-direction: row; align-items: center; }
.lr-viewer-summary-row .lr-row-group { width: auto; }
.lr-viewer-host-slot { flex: 0 1 auto; max-width: 180px; }
.lr-viewer-state-slot { flex: 1 1 120px; }
.lr-viewer-self-slot { flex: 1 1 auto; gap: 6px; }
.lr-viewer-actions-slot { flex: 1 1 100%; margin-left: 0; }
.lr-input.lr-name-editor { width: min(136px, 40vw); }
.lr-group-actions { display: flex; width: 100%; gap: 8px; min-width: 0; }
.lr-group-actions .lr-btn { flex: 1 1 0; min-width: 0; min-height: 52px; padding: 4px 5px; gap: 6px; }
.lr-group-actions .lr-btn .lr-cap { white-space: normal; text-align: center; line-height: 1.25; font-size: 11px; }
.lr-lcd { flex: 1; justify-content: center; }
.lr-tiles { display: flex; width: 100%; gap: 8px; }
.lr-tiles .lr-tile { flex: 1 1 0; min-width: 0; padding: 10px 6px 8px; }
.lr-meter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.lr-pawn-detail .lr-meter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lr-meter-cell { justify-content: flex-start; }
.lr-group-name .lr-name-tag { flex: 1; }
.lr-viewer-self-slot .lr-name-tag { flex: 0 1 auto; }
.lr-toggle { flex: 1; }
.lr-door-body { padding: 12px; }
.lr-dial { width: 54px; height: 66px; font-size: 28px; }
.lr-status-text { width: 100%; }
.lr-tv-screen.has-entry { aspect-ratio: auto; min-height: 292px; }
.lr-tv-big { width: 72px; height: 72px; }
.lr-leds-label { display: none; }
.lr-header-controls .lr-btn .lr-cap { display: none; }
}
@media (max-width: 360px) {
.lr-top { gap: 6px; padding-inline: 10px; }
.lr-top-right { gap: 6px; }
.lr-leds { gap: 4px; padding: 6px; }
.lr-leds i { width: 8px; height: 8px; }
.lr-lang { gap: 1px; padding: 2px; border-width: 2px; }
.lr-lang button { min-width: 30px; height: 32px; padding-inline: 5px; }
.lr-header-controls .lr-btn {
min-width: 36px !important;
width: 36px;
height: 36px !important;
padding: 0;
}
.lr-tiles .lr-tile { padding-inline: 4px; }
.lr-tile small { font-size: 10px; letter-spacing: 0; }
/* Keep the three connection beats inside a narrow TV. Captions may wrap
to two lines instead of being clipped at the screen edge. */
.lr-storyboard { width: 100%; min-width: 0; gap: 4px; }
.lr-storyboard > .lr-brand-mark { width: 36px; height: 36px; }
.lr-story { width: 100%; min-width: 0; gap: 6px; }
.lr-story-panel { width: 44px; height: 44px; border-radius: 12px; }
.lr-story-link { width: 14px; }
.lr-story-cap {
width: 44px;
white-space: normal;
text-wrap: balance;
line-height: 1.1;
font-size: 9.5px;
}
}
/* ---------- comic tooltip ---------- */
/* Pure-CSS hover/focus panel carrying a paper Comic above its trigger. The
trigger inside the wrapper stays the focusable element (touch = focus), so
no tabindex here. Enter is delayed ~120ms, exit is immediate. Under
prefers-reduced-motion the global block collapses the transition to instant
and the comic's own RM block pins its final frame. */
/* Visibility is three-channel: hover on fine pointers only (touch would
leave sticky-hover stuck), keyboard focus via :has(:focus-visible) (touch
taps never match, so no stuck tooltip after activation), and .is-tip-open
from the component's Material-style long-press handling. */
.lr-comic-tip-wrap { position: relative; display: inline-flex; }
.lr-comic-tip {
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%) translateY(4px);
width: max-content;
max-width: 320px;
z-index: 30;
background: var(--paper);
border: 2.5px solid var(--ink);
border-radius: 14px;
padding: 10px;
box-shadow: 0 6px 18px rgb(16 26 44 / .18);
opacity: 0;
pointer-events: none;
transition: opacity .16s ease, transform .16s ease;
}
.lr-comic-tip * { animation-play-state: paused !important; }
/* Caret lives on the wrapper (not the panel) so it always centers on the
trigger button, whatever the panel alignment is. The diamond's center sits
on the panel's edge; the half inside the panel hides behind its paper
background (z 29 vs 30), leaving a clean point aimed at the trigger. */
.lr-comic-tip-wrap::before {
content: "";
position: absolute;
bottom: calc(100% + 3px);
left: 50%;
width: 10px;
height: 10px;
margin-left: -5px;
background: var(--paper);
border: 2.5px solid var(--ink);
transform: rotate(45deg) scale(.6);
z-index: 29;
opacity: 0;
pointer-events: none;
transition: opacity .16s ease, transform .16s ease;
}
.lr-comic-tip-wrap:has(.lr-comic-tip.is-below)::before {
bottom: auto;
top: calc(100% + 3px);
}
/* channel 1: fine-pointer hover */
@media (hover: hover) and (pointer: fine) {
.lr-comic-tip-wrap:hover .lr-comic-tip { opacity: 1; transform: translateX(-50%) translateY(0); transition-delay: .12s; }
.lr-comic-tip-wrap:hover .lr-comic-tip * { animation-play-state: running !important; }
.lr-comic-tip-wrap:hover .lr-comic-tip.is-below { transform: translateX(-50%) translateY(0); }
.lr-comic-tip-wrap:hover .lr-comic-tip.is-start,
.lr-comic-tip-wrap:hover .lr-comic-tip.is-end { transform: translateX(0) translateY(0); }
.lr-comic-tip-wrap:hover::before { opacity: 1; transform: rotate(45deg) scale(1); transition-delay: .12s; }
/* Panel mutex: keyboard focus (channel 2) can hold one wrap's panel open
while the pointer hovers a neighboring trigger, and two 320px panels at
the same z-index would overlap (stacking decided by DOM order alone).
While a wrap in the same container carries focus-visible, suppress
hover-open on the others; the suppressed wrap re-arms the moment focus
moves, so keyboard and pointer handoff stays a clean one-panel relay.
Scoped to the containers that hold adjacent wrapped triggers; the guard
keys on focus-visible inside a wrap, so plain mouse clicks (no panel
held open) never suppress anything. */
:is(.lr-row-group, .lr-pawn-detail, .lr-entry-actions):has(.lr-comic-tip-wrap:has(:focus-visible))
.lr-comic-tip-wrap:not(:has(:focus-visible)):hover .lr-comic-tip {
opacity: 0;
transition-delay: 0s;
}
:is(.lr-row-group, .lr-pawn-detail, .lr-entry-actions):has(.lr-comic-tip-wrap:has(:focus-visible))
.lr-comic-tip-wrap:not(:has(:focus-visible)):hover::before {
opacity: 0;
transition-delay: 0s;
}
}
/* channels 2+3: keyboard focus-visible and touch long-press */
.lr-comic-tip-wrap:has(:focus-visible) .lr-comic-tip,
.lr-comic-tip-wrap.is-tip-open .lr-comic-tip {
opacity: 1;
transform: translateX(-50%) translateY(0);
transition-delay: .12s;
}
.lr-comic-tip-wrap:has(:focus-visible) .lr-comic-tip *,
.lr-comic-tip-wrap.is-tip-open .lr-comic-tip * {
animation-play-state: running !important;
}
.lr-comic-tip-wrap:has(:focus-visible) .lr-comic-tip.is-below,
.lr-comic-tip-wrap.is-tip-open .lr-comic-tip.is-below { transform: translateX(-50%) translateY(0); }
.lr-comic-tip-wrap:has(:focus-visible) .lr-comic-tip.is-start,
.lr-comic-tip-wrap:has(:focus-visible) .lr-comic-tip.is-end,
.lr-comic-tip-wrap.is-tip-open .lr-comic-tip.is-start,
.lr-comic-tip-wrap.is-tip-open .lr-comic-tip.is-end { transform: translateX(0) translateY(0); }
.lr-comic-tip-wrap:has(:focus-visible)::before,
.lr-comic-tip-wrap.is-tip-open::before {
opacity: 1;
transform: rotate(45deg) scale(1);
transition-delay: .12s;
}
/* Below-placement: header controls sit at the viewport top, so their panel
opens downward; the wrapper caret flips to the trigger's bottom edge. */
.lr-comic-tip.is-below { bottom: auto; top: calc(100% + 8px); transform: translateX(-50%) translateY(-4px); }
/* Edge alignment: triggers near a viewport edge anchor the panel's near edge
instead of centering, so the comic never clips off-screen. */
.lr-comic-tip.is-start { left: 0; transform: translateX(0) translateY(4px); }
.lr-comic-tip.is-end { left: auto; right: 0; transform: translateX(0) translateY(4px); }
.lr-comic-tip.is-below.is-start { transform: translateX(0) translateY(-4px); }
.lr-comic-tip.is-below.is-end { transform: translateX(0) translateY(-4px); }
/* On mobile the wrapper (not the button) is the flex item, so equal-width
action buttons keep their stretch when hint-wrapped. */
@media (max-width: 640px) {
.lr-group-actions .lr-comic-tip-wrap { flex: 1 1 0; min-width: 0; }
.lr-group-actions .lr-comic-tip-wrap .lr-btn { width: 100%; }
.lr-comic-tip { max-width: min(320px, 78vw); }
.lr-comic-tip svg { width: 100% !important; height: auto; }
}
.lr-comic-tip-caption {
display: block;
margin-top: 6px;
font-size: 11px;
font-weight: 600;
text-align: center;
opacity: .72;
}
/* ---------- reduced motion: everything collapses to instant ---------- */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
.lr-tv-static { animation: none; opacity: .35; }
.lr-route-edge.is-pending,
.lr-route-edge.is-recovering { animation: none; }
.lr-brand-mark:is(.is-animated, .is-once) .lr-brand-shell > * {
animation: none !important;
stroke-dashoffset: 0 !important;
}
.lr-brand-mark:is(.is-animated, .is-once) .lr-brand-face {
animation: none !important;
opacity: 1 !important;
transform: none !important;
}
.lr-brand-mark:is(.is-animated, .is-once) .lr-brand-eye-left,
.lr-brand-mark:is(.is-animated, .is-once) .lr-brand-eye-wink {
animation: none !important;
opacity: 1 !important;
transform: none !important;
stroke-dashoffset: 0 !important;
}
.lr-brand-mark:is(.is-animated, .is-once) .lr-brand-eye-open,
.lr-brand-mark:is(.is-animated, .is-once) .lr-brand-sparkles {
animation: none !important;
opacity: 0 !important;
}
}
/* ---------- interaction and legibility constraints ---------- */
/* Password field needs enough room for the full hint text in both languages
(the tracking itself is scoped to the filled state above). !important is
required because HostPage pins minWidth: 180 via an inline style. */
.lr-input:has(input[type="password"]) { min-width: 260px !important; }
/* Dark-mode notice pills: pair the dark fills with readable foregrounds. */
html[data-theme="dark"] .lr-pill { color: #e8a33d; }
html[data-theme="dark"] .lr-pill.is-bad { color: #e88a85; }
html[data-theme="dark"] .lr-pill.is-good { color: #63c78a; }
/* Dark-mode preset tiles: lift the unselected caption off the tile fill. */
html[data-theme="dark"] .lr-tile small { color: #8ba0b4; }
@media (max-width: 640px) {
/* Pawn drill-down: the shared .lr-row column stack breaks this card —
column + wrap fans the children into off-screen side-by-side columns and
the meter's 100% flex-basis inflates the block axis. Keep it row-wrapped
so the meter takes its own full-width line at natural height and the
more/close buttons stay in flow inside the card. */
.lr-pawn-detail { flex-direction: row; align-items: center; }
.lr-pawn-detail .lr-meter { flex: 1 1 100%; align-content: start; }
/* Action row: let the buttons wrap to two rows once three-across can no
longer hold each label on a single line (stops orphan-character wraps). */
.lr-group-actions .lr-comic-tip-wrap,
.lr-group-actions > .lr-btn { flex-basis: 112px; }
}
/* Entry overlay hosts hint tooltips: let them escape the screens clip. */
.lr-tv-screen.has-entry { overflow: visible; }
@media (max-width: 640px) {
.lr-tv-screen .lr-comic-tip { max-width: 62vw; }
}
/* ---------- glyph draw-in (一笔一划) ---------- */
/* One-shot state-entry beat, gated by Glyph: only on an icon SWAP (play↔pause,
copy→check, moon↔sun — innerHTML remounts and replays) or on explicit
theatrical mounts (entry cast/door, stage overlay, join door, gate key).
Everyday interactions never retrigger it. */
/* Every shape carries pathLength=1 (injected by Glyph), so dasharray/offset
in [0,1] paces each stroke evenly no matter its real length. The pen
grammar: one stroke at a time — 210ms draw per stroke, next stroke starts
as the current one lands (190ms stagger, ~10% overlap) — with a fast-in,
settle-out pen curve. Solid icons and filled dots pop with the spring.
Reduced motion pins the final pose via the global collapse plus the pins. */
.lr-glyph-draw :is(path, circle, rect, line) {
stroke-dasharray: 1;
stroke-dashoffset: 1;
animation: lr-glyph-in 210ms cubic-bezier(.45, .05, .35, 1) forwards;
}
.lr-glyph-draw.is-solid > :is(path, circle, rect),
.lr-glyph-draw :is([fill="currentColor"], [fill^="#"]) {
stroke-dasharray: none;
stroke-dashoffset: 0;
transform-box: fill-box;
transform-origin: center;
/* spring curve inlined: a var() reference would make Chromium restart the
animation whenever :root custom properties change (theme flip). */
animation: lr-glyph-pop 220ms cubic-bezier(.3, 1.45, .45, 1) both;
}
.lr-glyph-draw > *:nth-child(2) { animation-delay: 190ms; }
.lr-glyph-draw > *:nth-child(3) { animation-delay: 380ms; }
.lr-glyph-draw > *:nth-child(4) { animation-delay: 570ms; }
.lr-glyph-draw > *:nth-child(5) { animation-delay: 760ms; }
.lr-glyph-draw > *:nth-child(6) { animation-delay: 950ms; }
@keyframes lr-glyph-in { to { stroke-dashoffset: 0; } }
@keyframes lr-glyph-pop {
0% { opacity: 0; transform: scale(.3); }
100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
.lr-glyph-draw :is(path, circle, rect, line) {
animation: none !important;
stroke-dashoffset: 0 !important;
opacity: 1 !important;
transform: none !important;
}
}
/* append-sink: workflow agents append new rules ABOVE this line. */