/* The live monitor, /live/. Colours, fonts and radii from coral-tokens.css;
   status colours (ok, warn, bad) only for status, always with a shape. */
.lv-page { position: relative; isolation: isolate; overflow-x: clip; }
.lv-page > .wrap { position: relative; z-index: 7; }

/* ---- the sea: one of the background styles (backgrounds.js) ---- */
.lv-sea { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--coral-ink) 0%, #0A1018 30%, #08101A 62%, #060D16 85%, #050A12 100%); }
.lv-sea[data-style="off"] { background: var(--coral-ink); }
.lv-caustic, .lv-deep, .lv-floor { display: none; }
.has-caustic .lv-caustic, .has-floor .lv-floor { display: block; }
.has-deep .lv-deep { display: block; }
/* The caustic water: faint, in the upper area, drifting. */
.lv-caustic { position: absolute; left: -5%; right: -5%; top: 0; height: 60%; opacity: .9;
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .5) 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .5) 45%, transparent 100%);
  background:
    repeating-radial-gradient(ellipse 120% 60% at 22% 12%, rgba(159, 178, 198, .032) 0 1.5px, transparent 1.5px 34px),
    repeating-radial-gradient(ellipse 90% 50% at 78% 30%, rgba(159, 178, 198, .026) 0 1.5px, transparent 1.5px 47px); }
/* The layers keep their animation and pause in place (no jump back) when
   the page script takes "moving" away: a red alert, delayed data, Motion off. */
.lv-caustic { will-change: transform; animation: lv-drift 30s ease-in-out infinite alternate; animation-play-state: paused; }
.moving .lv-caustic, .moving .lv-deep { animation-play-state: running; }
@keyframes lv-drift { to { transform: translate3d(-48px, -10px, 0); } }
/* The deep mark: the mark file, large and faint, one turn in 4.5 min. */
.lv-deep { position: absolute; left: 50%; top: 52%; width: min(115vh, 115vw); height: auto; aspect-ratio: 1; opacity: .045; transform: translate(-50%, -50%) rotate(12deg); will-change: transform; animation: lv-turn 270s linear infinite paused; }
.lv-deep.inner { width: min(71vh, 71vw); opacity: .03; transform: translate(-50%, -50%) rotate(34.5deg); animation-name: lv-turn-in; }
@keyframes lv-turn { from { transform: translate(-50%, -50%) rotate(12deg); } to { transform: translate(-50%, -50%) rotate(372deg); } }
@keyframes lv-turn-in { from { transform: translate(-50%, -50%) rotate(34.5deg); } to { transform: translate(-50%, -50%) rotate(-325.5deg); } }
/* The floor clusters and the bloom go only in open water: the page script
   places them clear of every text block, and leaves them out when there is none. */
.lv-floor { position: absolute; inset: 0; }
.lv-floor img { position: absolute; opacity: .07; }
.lv-sea img[hidden], .lv-floor img:not(.placed), .lv-bloom:not(.placed) { display: none !important; }
/* The bloom on a proposal: the mark, a soft glow of about 2 s (opacity only). */
.lv-bloom { position: absolute; opacity: 0; }
/* Bleaching: a grey wash over the sea only, its opacity from the misses. */
.lv-wash { position: absolute; inset: 0; background: #929CAA; mix-blend-mode: saturation; opacity: 0; transition: opacity 3s var(--coral-ease); }
#lv-fx { position: fixed; left: 0; top: 0; z-index: 6; pointer-events: none; }
/* The site footer sits above the canvas: nothing is drawn behind it. */
body[data-page="live"] .site-footer { position: relative; z-index: 7; background: var(--coral-ink); }
.lv-style { position: relative; }
.lv-style ul { position: absolute; left: 0; right: auto; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: .35rem; min-width: 12rem; max-width: calc(100vw - 2rem); background: var(--coral-panel); border: 1px solid var(--coral-border-strong); border-radius: var(--coral-radius-md); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.lv-style li button { display: flex; width: 100%; gap: .6rem; align-items: center; min-height: 44px; padding: 0 .7rem; background: transparent; border: 0; border-radius: var(--coral-radius-sm); color: var(--coral-text); font: var(--coral-fs-sm) var(--coral-font-sans); cursor: pointer; text-align: left; }
.lv-style li button:hover, .lv-style li button:focus-visible { background: var(--coral-panel-hover); }
.lv-style li button::before { content: "○"; color: var(--coral-muted); font-family: var(--coral-font-mono); }
.lv-style li button[aria-checked="true"]::before { content: "●"; color: var(--coral-peach); }

/* ---- the live bar ---- */
.lv-bar { display: flex; align-items: center; gap: var(--coral-space-3); flex-wrap: wrap; padding: var(--coral-space-5) 0 var(--coral-space-3); }
.lv-sel { display: flex; align-items: center; gap: var(--coral-space-2); background: var(--coral-panel); border: 1px solid var(--coral-border-strong); border-radius: var(--coral-radius-md); padding: .3rem .6rem; }
.lv-sel label { font-family: var(--coral-font-mono); font-size: var(--coral-fs-xs); letter-spacing: var(--coral-tracking-wide); text-transform: uppercase; color: var(--coral-muted); }
.lv-sel select { font: 600 var(--coral-fs-md) var(--coral-font-mono); color: var(--coral-text); background: transparent; border: 0; max-width: 16rem; min-width: 0; min-height: 44px; }
/* The selector never runs past a phone's edge. */
.lv-sel { max-width: 100%; min-width: 0; box-sizing: border-box; }
.lv-sel select { flex: 1 1 auto; width: 100%; text-overflow: ellipsis; }
.lv-sel select option { background: var(--coral-panel); }
.lv-live { font-family: var(--coral-font-mono); font-size: var(--coral-fs-xs); border: 1px solid currentColor; border-radius: var(--coral-radius-pill); padding: .2rem .65rem; display: inline-flex; gap: .35rem; align-items: center; }
/* The status: the pill and the read time as one line, right-aligned on the
   bar at desktop (the tools wrap to the next row), under the selector on a phone. */
.lv-stat { order: 2; margin: 0 0 0 auto; display: inline-flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
#main p.lv-stat { max-width: none; }
.lv-sel { order: 1; }
.lv-tools { order: 3; flex-basis: 100%; }
.lv-src { font: 400 var(--coral-fs-xs) var(--coral-font-mono); color: var(--coral-muted); white-space: nowrap; }
.lv-src b { font-weight: 400; color: var(--coral-text); }
.lv-tools { display: flex; gap: var(--coral-space-2); flex-wrap: wrap; }
.lv-tools .btn[aria-pressed="true"] { border-color: var(--coral-peach); color: var(--coral-text); }
.lv-tools .btn[aria-pressed="false"] { color: var(--coral-muted); }
/* The thin live ticker under the live bar: the newest block, its proposer, its age. */
/* It wraps rather than cuts on a narrow screen: the age always shows. */
#main p.lv-ticker { max-width: none; margin: 0 0 var(--coral-space-2); font: 400 var(--coral-fs-xs) var(--coral-font-mono); color: var(--coral-muted); overflow-wrap: anywhere; }
.lv-tk { display: inline-block; max-width: 100%; }
.lv-tk [data-ago] { white-space: nowrap; }
.lv-kiosk #main p.lv-ticker { font-size: 1rem; }
.lv-lane { display: flex; justify-content: flex-end; min-height: 2.9rem; margin: 0 0 var(--coral-space-3); gap: var(--coral-space-2); }
.lv-toast { background: rgba(16, 21, 28, .95); border: 1px solid rgba(255, 166, 106, .45); border-radius: var(--coral-radius-md); padding: .5rem .9rem; font-size: var(--coral-fs-sm); display: flex; gap: .6rem; align-items: center; animation: lv-in .4s var(--coral-ease); }
.lv-toast.ms { border-color: rgba(255, 192, 151, .8); }
@keyframes lv-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---- alerts ---- */
.lv-alert { display: flex; align-items: center; gap: var(--coral-space-3); flex-wrap: wrap; border-radius: var(--coral-radius-md); padding: .7rem 1rem; margin-bottom: var(--coral-space-3); border: 2px solid; font-weight: 600; }
.lv-alert.a-bad { background: rgba(255, 107, 107, .14); border-color: var(--coral-bad); }
.lv-alert.a-warn { background: rgba(227, 179, 65, .12); border-color: var(--coral-warn); }
.lv-at { font-family: var(--coral-font-mono); letter-spacing: var(--coral-tracking-wide); }
.a-bad .lv-at { color: var(--coral-bad); } .a-warn .lv-at { color: var(--coral-warn); }
.lv-am { flex: 1; min-width: 12rem; }
.lv-ack { font: inherit; font-size: var(--coral-fs-xs); background: transparent; color: var(--coral-text); border: 1px solid var(--coral-border-strong); border-radius: var(--coral-radius-pill); min-height: 44px; padding: 0 var(--coral-space-3); cursor: pointer; }
.lv-hidden { border: 1px dashed var(--coral-border-strong); border-radius: var(--coral-radius-lg); padding: var(--coral-space-6); text-align: center; color: var(--coral-muted); }

/* ---- the grid and panels ---- */
.lv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--coral-space-4); }
.lv-card { background: rgba(21, 26, 34, .86); border: 1px solid var(--coral-border); border-radius: var(--coral-radius-lg); padding: 1.15rem 1.25rem; position: relative; min-width: 0; }
.lv-card.wide { grid-column: span 2; }
.lv-card.full { grid-column: 1 / -1; }
.lv-h { font: 600 var(--coral-fs-xs) var(--coral-font-mono); letter-spacing: var(--coral-tracking-wide); text-transform: uppercase; color: var(--coral-muted); display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; }
.lv-n { color: var(--coral-peach); }
.lv-lock { margin-left: auto; font-size: .7rem; letter-spacing: .02em; text-transform: none; font-weight: 400; }
.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-mouse { display: none; } }
.lv-big { font: 600 2.25rem/1.1 var(--coral-font-mono); overflow-wrap: anywhere; }
.lv-grad { background: var(--coral-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lv-row { display: flex; align-items: baseline; gap: .5rem; }
.lv-big.lv-na-big { font-size: 1.35rem; color: var(--coral-muted); }
.lv-earn { margin: .6rem 0 0; font-size: var(--coral-fs-md); }
/* The Rewards amount: "If you delegate [1,000] UP", under the panel title. */
.lv-amt { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.lv-amt label { font: 400 var(--coral-fs-xs) var(--coral-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--coral-muted); }
.lv-amt-box { max-width: 100%; box-sizing: border-box; display: inline-flex; align-items: center; gap: .4rem; background: var(--coral-ink-raised); border: 1px solid var(--coral-border-strong); border-radius: var(--coral-radius-md); padding: 0 .7rem; min-height: 44px; }
.lv-amt-box:focus-within { border-color: var(--coral-peach); }
.lv-amt input { width: 16ch; max-width: 100%; min-width: 0; background: transparent; border: 0; color: var(--coral-text); font: 600 var(--coral-fs-md) var(--coral-font-mono); text-align: right; min-height: 42px; padding: 0; }
.lv-amt input:focus { outline: none; }
.lv-amt-u { font-family: var(--coral-font-mono); color: var(--coral-muted); }
#main p.lv-amt-help { max-width: none; margin: .4rem 0 .8rem; color: var(--coral-muted); font-size: var(--coral-fs-xs); }
/* The estimates sit side by side where they fit and wrap whole where they
   do not: a number never breaks inside itself. */
.lv-est { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: .7rem 0 0; }
.lv-est div { display: grid; gap: .1rem; }
.lv-est b { font: 600 var(--coral-fs-md) var(--coral-font-mono); color: var(--coral-text); white-space: nowrap; }
.lv-est span { font-size: var(--coral-fs-xs); color: var(--coral-muted); }
#main p.lv-acc { max-width: none; margin: .5rem 0 0; font-size: var(--coral-fs-sm); color: var(--coral-muted); }
.lv-acc b { font: 600 1em var(--coral-font-mono); color: var(--coral-peach-light); }
/* The roll of a figure on a new block (live.js): the changed characters,
   the old one out and the new one in (transform and opacity only). */
.lv-od { display: inline-block; position: relative; overflow: hidden; vertical-align: bottom; }
.lv-od > span { display: inline-block; }
.lv-od > .lv-od-o { position: absolute; left: 0; top: 0; }
/* The signing pill's pulse on a signed block: a ring that widens and fades. */
.lv-pill.lv-sg { position: relative; display: inline-block; }
.lv-pulse { position: absolute; inset: -1px; border: 1px solid currentColor; border-radius: inherit; opacity: 0; pointer-events: none; }
/* The hour in progress: a lighter track at its signed share, the fill
   growing inside it from the foot, so it never reads as a dip. */
.lv-bars i.now { position: relative; background: rgba(60, 207, 174, .22); box-shadow: inset 0 0 0 1px rgba(60, 207, 174, .45); opacity: 1; }
.lv-bars i.now.m { background: rgba(227, 179, 65, .22); box-shadow: inset 0 0 0 1px rgba(227, 179, 65, .5); }
.lv-bars i.now b { position: absolute; left: 0; right: 0; bottom: 0; height: var(--f, 0%); background: var(--coral-ok); border-radius: inherit; transform-origin: 50% 100%; }
.lv-bars i.now.m b { background: var(--coral-warn); }
#main p.lv-cap { max-width: none; margin: .35rem 0 0; font-size: .7rem; color: var(--coral-muted); }
.lv-earn b { font: 600 1em var(--coral-font-mono); color: var(--coral-text); }
.lv-unit { font-family: var(--coral-font-mono); color: var(--coral-muted); }
.lv-eb { font: 400 var(--coral-fs-xs) var(--coral-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--coral-muted); margin: .25rem 0 .8rem; }
.lv-pills { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.lv-pill { font-family: var(--coral-font-mono); font-size: var(--coral-fs-xs); border: 1px solid currentColor; border-radius: var(--coral-radius-pill); padding: .15rem .6rem; }
.t-ok { color: var(--coral-ok); } .t-warn { color: var(--coral-warn); } .t-bad { color: var(--coral-bad); } .t-muted { color: var(--coral-muted); }
.lv-kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: var(--coral-fs-sm); margin: .8rem 0 0; }
.lv-kv dt { color: var(--coral-muted); white-space: nowrap; }
.lv-kv dd { font-family: var(--coral-font-mono); text-align: right; margin: 0; overflow-wrap: anywhere; }
.lv-note, .lv-na, .lv-mut { color: var(--coral-muted); font-size: var(--coral-fs-xs); }
.lv-card .lv-kv + .lv-note { margin-top: .9rem; }
/* The intro line under the live bar; not in kiosk mode. */
#main p.lv-intro { max-width: none; margin: 0 0 var(--coral-space-2); color: var(--coral-muted); font-size: var(--coral-fs-sm); }
.lv-kiosk .lv-intro { display: none; }
.lv-code { display: grid; gap: .5rem; justify-items: start; min-width: 0; }
.lv-code code { justify-self: stretch; }
/* The 100 squares always fit their panel: the columns may shrink below the
   glyph (minmax(0, 1fr)), and the glyph is sized from the grid's own width. */
.lv-sq { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; container-type: inline-size; max-width: 100%; }
.lv-sq i { aspect-ratio: 1; min-width: 0; overflow: hidden; border-radius: 3px; background: var(--coral-ok); position: relative; display: grid; place-items: center; font-style: normal; line-height: 1; }
.lv-sq i::after { content: "\2713"; font-size: clamp(6px, 2.6cqi, 20px); color: var(--coral-ink); font-weight: 700; opacity: .75; }
.lv-sq i.pr { background: var(--coral-gradient); border-radius: 50%; }
.lv-sq i.ms { background: var(--coral-bad); }
.lv-sq i.ms::after { content: "\2715"; opacity: 1; }
.lv-sq i.na { background: transparent; border: 1px dashed var(--coral-border-strong); }
.lv-sq i.na::after { content: ""; }
/* The newest square after a shift: a brief ring over it (opacity only). */
.lv-sq i.nw::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--coral-text); opacity: 0; animation: lv-new 1.6s var(--coral-ease); pointer-events: none; }
@keyframes lv-new { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
.lv-sq.small { gap: 2px; } .lv-sq.small i::after { font-size: clamp(5px, 2.4cqi, 14px); }
.lv-legend { display: flex; gap: 1rem; font-size: var(--coral-fs-xs); color: var(--coral-muted); margin-top: .6rem; flex-wrap: wrap; }
.lv-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.lv-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.k-ok { background: var(--coral-ok); } .k-pr { background: var(--coral-gradient); border-radius: 50% !important; } .k-ms { background: var(--coral-bad); } .k-na { border: 1px dashed var(--coral-border-strong); }
.lv-ups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--coral-space-3); }
.lv-up .lv-big { font-size: 1.6rem; }
.lv-cov { display: block; font-size: .8rem; font-weight: 400; color: var(--coral-muted); margin-top: .15rem; }
.lv-up .lv-eb { margin: 0 0 .2rem; }
.lv-bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; margin-top: var(--coral-space-3); }
.lv-bars i { flex: 1; height: var(--h, 100%); background: var(--coral-ok); border-radius: 2px 2px 0 0; opacity: .9; }
.lv-bars i.m { background: var(--coral-warn); }
.lv-bars i.e { background: var(--coral-border); height: 6px; opacity: .6; }
.lv-axis { display: flex; justify-content: space-between; font-size: .7rem; color: var(--coral-muted); margin-top: .3rem; }
.lv-meter { height: 10px; border-radius: var(--coral-radius-pill); background: var(--coral-ink-raised); border: 1px solid var(--coral-border); overflow: hidden; }
.lv-meter i { display: block; height: 100%; width: var(--w, 1%); background: var(--coral-gradient); }
.lv-race { display: flex; flex-direction: column; gap: .4rem; font-size: var(--coral-fs-sm); }
.lv-r { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: .6rem; padding: .35rem .5rem; border-radius: var(--coral-radius-sm); border: 1px solid transparent; }
.lv-r span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-r.me { background: rgba(255, 166, 106, .08); border-color: rgba(255, 166, 106, .35); }
.lv-r .k { font-family: var(--coral-font-mono); color: var(--coral-muted); } .lv-r .v { font-family: var(--coral-font-mono); }
.lv-net { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--coral-space-5); align-items: start; }
.lv-explain { color: var(--coral-muted); font-size: var(--coral-fs-sm); margin: -.3rem 0 .8rem; max-width: none; }
.lv-reef { display: flex; flex-wrap: wrap; gap: 10px 4px; align-items: flex-start; justify-content: center; align-content: center; min-height: 150px; border-radius: var(--coral-radius-md); padding: .8rem;
  background: radial-gradient(80% 90% at 50% 100%, rgba(255, 127, 92, .06), transparent 70%), var(--coral-ink-raised); border: 1px solid var(--coral-border); }
/* A ring and its name under it, always shown: cut short with an ellipsis,
   in full under the selected ring and in the title on hover. */
.lv-node { display: flex; flex-direction: column; align-items: center; gap: .3rem; width: max(var(--d, 20px), 4.75rem); padding: .25rem .15rem; background: transparent; border: 0; border-radius: var(--coral-radius-sm); font: .68rem/1.2 var(--coral-font-mono); color: var(--coral-muted); cursor: pointer; min-width: 0; }
.lv-ring { display: block; flex: none; width: var(--d, 20px); height: var(--d, 20px); border-radius: 50%; border: 1.5px solid rgba(146, 156, 170, .5); background: rgba(146, 156, 170, .08); }
.lv-nl { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-node:hover .lv-nl, .lv-node:focus-visible .lv-nl { color: var(--coral-text); }
.lv-node:hover .lv-ring { border-color: var(--coral-text); }
.lv-node:focus-visible { outline: 2px solid var(--coral-peach); outline-offset: 2px; }
.lv-node.sel { color: var(--coral-text); }
.lv-node.sel .lv-ring { border-color: var(--coral-peach); background: rgba(255, 166, 106, .10); }
.lv-node.sel .lv-nl { white-space: normal; overflow-wrap: anywhere; text-align: center; }
.lv-node.lit .lv-ring { border-color: var(--coral-peach-light); box-shadow: 0 0 0 4px rgba(255, 192, 151, .15), 0 0 22px rgba(255, 166, 106, .55); }
.lv-node.jl .lv-ring { border-style: dashed; border-color: var(--coral-bad); }
.lv-node.off .lv-ring { border-style: dashed; }
.lv-strip { display: none; }
.lv-strip-h { display: flex; justify-content: space-between; font-size: var(--coral-fs-xs); margin-bottom: .3rem; font-family: var(--coral-font-mono); }
.lv-strip-h .lv-eb { margin: 0; }

/* ---- the band, the badge and the foot ---- */
.lv-band { margin-top: var(--coral-space-5); border: 1px solid var(--coral-border); border-radius: var(--coral-radius-lg); padding: 1rem 1.25rem; display: flex; align-items: center; gap: var(--coral-space-3); flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(255, 192, 151, .08), rgba(255, 127, 92, .04)), var(--coral-ink-raised); }
.lv-band p { flex: 1; min-width: 14rem; margin: 0; max-width: none !important; }
.lv-band .btns { display: flex; gap: var(--coral-space-2); flex-wrap: wrap; }
/* The badge preview at twice its size (its own width, never squeezed),
   with the code box beside it where there is room, under it where not. */
/* The code under the badge at every width: a wide code box, no empty space beside a short preview. */
.lv-embed { margin-top: var(--coral-space-5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--coral-space-3) var(--coral-space-4); align-items: start; }
.lv-embed .lv-h { grid-column: 1 / -1; margin: 0; }
.lv-prev { margin: 0; display: grid; gap: .35rem; }
.lv-prev img { display: block; height: 56px; width: auto; max-width: 100%; object-fit: contain; object-position: left; }
.lv-prev figcaption { font-size: var(--coral-fs-xs); color: var(--coral-muted); }
.lv-embed code { display: block; font-size: var(--coral-fs-xs); overflow-wrap: anywhere; background: var(--coral-ink-raised); border: 1px solid var(--coral-border); border-radius: var(--coral-radius-sm); padding: .6rem; }
.lv-foot { color: var(--coral-muted); font-size: var(--coral-fs-xs); margin: var(--coral-space-5) 0 var(--coral-space-6); }
/* The neutrality line: the full width, one line at desktop widths. */
#main p.lv-foot { max-width: none; }
/* One line where it fits; it wraps rather than clips where it does not. */
@media (min-width: 72rem) { #main p.lv-foot { font-size: .7rem; letter-spacing: 0; } }
#main p.lv-explain { max-width: none; }
.lv-loading { display: grid; place-items: center; min-height: 50vh; gap: var(--coral-space-3); color: var(--coral-muted); }
.lv-loading img { width: 72px; height: 72px; animation: lv-spin 6s linear infinite; }
@keyframes lv-spin { to { transform: rotate(360deg); } }
.lv-pager, .lv-dots, .lv-bottom, .lv-kcard { display: none; }

/* ---- the phone: one page at a time, dots, the strip, a bottom bar ---- */
@media (max-width: 47.99rem) {
  .lv-grid { display: block; touch-action: pan-y; }
  .lv-grid .lv-card { display: none; }
  .lv-grid .lv-card.on { display: block; }
  .lv-strip { display: block; margin-bottom: var(--coral-space-3); background: rgba(21, 26, 34, .86); border: 1px solid var(--coral-border); border-radius: var(--coral-radius-md); padding: .6rem .8rem; }
  .lv-dots { display: flex; justify-content: center; gap: 4px; margin: var(--coral-space-3) 0; }
  .lv-dots button { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; padding: 0; cursor: pointer; }
  .lv-dots button::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral-border-strong); }
  .lv-dots button[aria-current="true"]::after { background: var(--coral-peach); width: 20px; border-radius: 4px; }
  .lv-net { grid-template-columns: 1fr; }
  .lv-tools .kiosk-btn { display: none; }
  .lv-stat { margin-left: 0; flex-basis: 100%; }
  .lv-src { white-space: normal; }
  .lv-bottom { display: flex; position: sticky; bottom: 0; z-index: 8; gap: var(--coral-space-2); padding: .6rem var(--coral-gutter); margin: 0; background: rgb(11, 15, 20); box-shadow: 0 -12px 24px rgba(11, 15, 20, .85); border-top: 1px solid var(--coral-border); }
  .lv-bottom .btn { flex: 1; }
  .lv-embed { grid-template-columns: 1fr; }
  .lv-prev img { height: auto; width: 100%; max-width: 856px; }
  .lv-lane { justify-content: center; }
}

/* ---- kiosk: full screen, one page at a time, large numbers ---- */
.lv-kiosk .site-header, .lv-kiosk .site-footer, .lv-kiosk .lv-band, .lv-kiosk .lv-embed, .lv-kiosk .lv-foot, .lv-kiosk .lv-tools .btn:not(.exit-btn), .lv-kiosk .lv-sel { display: none !important; }
.lv-kiosk .lv-stat { margin-left: 0; }
.lv-kiosk .lv-tools { flex-basis: auto; margin-left: auto; }
.lv-kiosk .lv-src { font-size: 1rem; }
.lv-kiosk .lv-live { font-size: 1rem; }
.lv-tools .exit-btn { display: none; }
.lv-kiosk .lv-tools .exit-btn { display: inline-flex; }
.lv-kiosk .lv-page { min-height: 100vh; }
.lv-kiosk .lv-page > .wrap { max-width: none; padding: 1.2rem 2.5rem; }
.lv-kiosk .lv-grid { display: block; }
.lv-kiosk .lv-grid .lv-card { display: none; padding: 2rem 2.5rem; font-size: 1.35rem; }
.lv-kiosk .lv-grid .lv-card.on { display: block; }
.lv-kiosk .lv-big { font-size: 5.5rem; }
.lv-kiosk .lv-up .lv-big { font-size: 3.6rem; }
.lv-kiosk .lv-h { font-size: 1.1rem; }
.lv-kiosk .lv-kv, .lv-kiosk .lv-earn, .lv-kiosk .lv-est b, .lv-kiosk #main p.lv-acc { font-size: 1.4rem; }
.lv-kiosk .lv-bars { height: 160px; }
.lv-kiosk .lv-node { font-size: .95rem; width: max(var(--d, 20px), 7rem); }
.lv-kiosk .lv-explain { font-size: 1.15rem; }
.lv-kiosk .lv-strip { display: block; margin-bottom: 1rem; }
.lv-kiosk .lv-strip .lv-sq { grid-template-columns: repeat(50, minmax(0, 1fr)); }
.lv-kiosk .lv-strip .lv-sq i::after { font-size: clamp(6px, 1.1cqi, 18px); }
/* The kiosk's signing page: the 100 squares at a size that leaves the figures and the card on a TV screen. */
.lv-kiosk .lv-card .lv-sq { width: min(100%, 60rem); margin-inline: auto; }
.lv-kiosk .lv-strip .lv-sq i:not(.pr) { border-radius: 4px; }
.lv-kiosk .lv-dots { display: flex; justify-content: center; gap: 6px; margin-top: 1rem; }
.lv-kiosk .lv-dots button { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.lv-kiosk .lv-dots button::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral-border-strong); }
.lv-kiosk .lv-dots button[aria-current="true"]::after { background: var(--coral-peach); width: 28px; border-radius: 5px; }
/* The kiosk's Delegate card: a real link to /stake/ (the whole card), large
   enough to read across a room, with a clear hover and focus state. */
.lv-kiosk .lv-kcard { display: flex; align-items: center; gap: 1.4rem; margin-top: 1rem; border: 2px solid var(--coral-border-strong); border-radius: var(--coral-radius-lg); padding: 1.1rem 1.6rem; background: var(--coral-ink-raised); font-size: 1.6rem; line-height: 1.35; color: var(--coral-text); text-decoration: none; cursor: pointer; }
.lv-kiosk .lv-kcard:hover { border-color: var(--coral-peach); background: rgba(255, 166, 106, .10); }
.lv-kiosk .lv-kcard:focus-visible { outline: 4px solid var(--coral-peach); outline-offset: 4px; border-color: var(--coral-peach); }
.lv-kcard img { width: 64px; height: 64px; }
.lv-kcard b { font-family: var(--coral-font-mono); color: var(--coral-peach); }
/* The kiosk's lasting hint; while the screen is held it says so. */
.lv-khint { display: none; }
.lv-kiosk .lv-khint { display: block; text-align: center; margin: .6rem 0 0; font: 1.05rem var(--coral-font-mono); color: var(--coral-muted); }
.lv-kiosk .lv-khint.on { color: var(--coral-peach); }
#main p.lv-khint { max-width: none; }
.lv-kiosk .lv-bottom { display: none; }
.lv-page.locked { box-shadow: inset 0 0 0 3px var(--coral-peach); }
.lv-ripple { position: fixed; z-index: 20; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 2px solid var(--coral-peach); pointer-events: none; animation: lv-rip .7s var(--coral-ease) forwards; }
@keyframes lv-rip { to { transform: scale(9); opacity: 0; } }
.lv-lockmsg { position: fixed; z-index: 21; pointer-events: none; left: 50%; top: 1rem; transform: translateX(-50%); background: var(--coral-panel); border: 1px solid var(--coral-peach); border-radius: var(--coral-radius-pill); padding: .4rem 1rem; font: var(--coral-fs-sm) var(--coral-font-mono); }

/* Reduced motion: nothing moves unless Motion is turned on; the page script
   follows the same choice for the sea layers ("moving") and the canvas, and
   sets lv-still for the rest. Data still changes. */
@media (prefers-reduced-motion: reduce) {
  .lv-loading img { animation: none !important; }
  .lv-wash { transition: none; }
}
.lv-still .lv-loading img, .lv-still .lv-toast, .lv-still .lv-ripple, .lv-still .lv-sq i.nw::before { animation: none !important; }
@media (max-width: 71.99rem) and (min-width: 48rem) { .lv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lv-card.wide { grid-column: 1 / -1; } }

/* Anything set hidden stays hidden, whatever display its class gives it
   (the loading block, the grid, the strip and the dots past the cut-off). */
.lv-page [hidden] { display: none !important; }
.lv-ackn { margin: .35rem 0 0; font-size: var(--coral-fs-xs); color: var(--coral-muted); }
