/* SKYLINE: the Printer World Live View (public/view.html, /view). Printer World's paper and ink, the Loop's cobalt.
   SHOP (owner, November 5: "a better purchasing system, a better view system and easier to purchase things", then "Big camera +
   Shop"): the stage (one big camera, its scenes, the billboards' strip) on the left, dark like a screening room; the Shop, the
   map, Live and Sales on the paper column beside it; on a phone the camera first, then the Shop. */
@font-face { font-family: Geist; src: url('../../assets/Geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --paper: #fffbf2; --paper-2: #f5efe2; --paper-3: #ebe3d1; --ink: #1d2126; --muted: #5f646b; --line: #e3dccb;
  --cobalt: #2f4bff; --cobalt-2: #1d2b8f; --gold: #c99a2e; --red: #e5484d; --green: #3f8f45; --night: #0b1020;
  --stage: #0e1217; --stage-2: #161b22; --stage-line: #262d38; --stage-ink: #e8edf3; --stage-muted: #8d99a8;
  --head: 60px; --side: 440px; --r: 14px; --shadow: 0 1px 0 rgba(29, 33, 38, 0.04), 0 8px 28px rgba(29, 33, 38, 0.08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper-2); color: var(--ink); font: 14px/1.45 Geist, "Segoe UI", system-ui, -apple-system, sans-serif; font-feature-settings: "tnum"; -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
h2, h3 { margin: 0; line-height: 1.2; }

/* the header: who you are, what you pay with, the world's pulse */
.lv-head { height: var(--head); display: flex; align-items: center; gap: 14px; padding: 0 16px; background: rgba(255, 251, 242, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); position: relative; z-index: 5; }
.lv-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: none; }
.lv-brand b { display: block; font-size: 16px; letter-spacing: -0.01em; } .lv-brand small { display: block; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.lv-mark { width: 32px; height: 32px; border-radius: 9px; background: url('../../assets/printer-mark.png') center / contain no-repeat, #f1e8d4; image-rendering: pixelated; }
.lv-pulse { flex: 1; display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; min-width: 0; overflow: hidden; height: 20px; }
.lv-pulse b { color: var(--ink); }
.lv-pay { display: flex; background: var(--paper-3); border-radius: 999px; padding: 3px; flex: none; }
.lv-pay button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s; }
.lv-pay button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lv-you { display: flex; align-items: center; gap: 8px; flex: none; }
.lv-chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; border-radius: 999px; background: var(--paper-3); font-size: 13px; }
.lv-chip.ok { background: #e7f4ec; } .lv-chip.warn { background: #fdecc8; } .lv-chip small { color: var(--muted); }
.lv-dev { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 5px 8px; font-size: 12px; }
.lv-signin { border: 0; background: var(--cobalt); color: #fff; font-weight: 700; padding: 7px 14px; border-radius: 999px; }

.lv-main { height: calc(100vh - var(--head)); height: calc(100dvh - var(--head)); display: grid; grid-template-columns: minmax(0, 1fr) var(--side); }

/* THE STAGE ------------------------------------------------------------------------------------------------------------------ */
.lv-wall { min-width: 0; min-height: 0; overflow: auto; padding: 12px 14px 18px; display: grid; gap: 12px; align-content: start; grid-auto-rows: max-content; background: var(--stage); color: var(--stage-ink); }
.lv-stagebar { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lv-worlds { display: flex; background: #1b212a; border: 1px solid var(--stage-line); border-radius: 999px; padding: 3px; flex: none; }
.lv-worlds button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font-weight: 700; color: var(--stage-muted); transition: background 0.2s, color 0.2s; }
.lv-worlds button[aria-selected="true"] { background: var(--stage-ink); color: var(--stage); }
.lv-worlds[hidden], .lv-worlds button[hidden] { display: none; }
.lv-stagebar .lv-mon-on { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--stage-muted); font: 700 12px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.lv-stagebar .lv-mon-on::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #ff3b3b; vertical-align: 0.05em; animation: lv-pulse 1.4s ease-in-out infinite; }
.lv-full { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--stage-line); background: #1b212a; color: var(--stage-ink); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13px; }
.lv-full:hover { border-color: #4a5566; }
.lv-full i { width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--stage-2); }
.lv-monitors { display: grid; gap: 12px; }
.lv-monitor { min-width: 0; background: var(--stage-2); border: 1px solid var(--stage-line); border-radius: 14px; overflow: hidden; display: grid; transition: border-color 0.25s, box-shadow 0.25s; }
.lv-monitor[hidden] { display: none; }
.lv-monitor.pulse { animation: lv-mon-pulse 1.2s ease-out; }
@keyframes lv-mon-pulse { 0% { border-color: #ff4d4d; box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.45); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); } }
.lv-mon-head { display: none; }   /* SHOP: the stage bar above says what is on air */
.lv-screen { position: relative; aspect-ratio: 16 / 9; max-height: max(calc(100dvh - var(--head) - var(--chrome, 210px)), calc((100dvh - var(--head)) * 0.6)); width: 100%; margin: 0 auto; background: #0b0e12; }
.lv-screen:fullscreen { max-height: none; aspect-ratio: auto; width: 100vw; height: 100vh; }
.lv-screen video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #0b0e12; object-fit: contain; }   /* LIVE CAMS: the 24/7 video, never cropped */
/* the slate covers the camera until it is live: never a loading screen, never a camera moving into place */
.lv-slate { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; color: #cfd8e3; font: 700 13px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.1em; text-transform: uppercase;
  background-color: #12161c; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); transition: opacity 0.45s ease; animation: lv-noise 0.4s steps(3) infinite; }
.lv-slate span { font-weight: 500; color: var(--stage-muted); letter-spacing: 0.02em; text-transform: none; font-family: Geist, system-ui, sans-serif; }
.lv-slate.gone { opacity: 0; pointer-events: none; animation: none; }
.lv-slate.still { background-size: cover; background-position: center; animation: none; place-content: stretch; grid-template-rows: auto 1fr auto; justify-items: start; padding: 3.2% 2.6%; }
.lv-slate.still::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.45) 100%); pointer-events: none; }
.lv-slate.still > * { position: relative; z-index: 1; }
.lv-slate.still button, .lv-slate.still b { justify-self: center; align-self: center; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.lv-slate.still.tap { place-content: center; justify-items: center; grid-template-rows: none; gap: 8px; }
.lv-slate.still.tap::after { background-color: rgba(8, 10, 14, 0.55); }
.lv-slate .lv-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(13, 16, 20, 0.72); color: #e6edf5; padding: 4px 9px; border-radius: 6px; font: 700 11px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.lv-slate .lv-badge i { width: 7px; height: 7px; border-radius: 50%; background: #ffb547; animation: lv-pulse 1s ease-in-out infinite; }
.lv-slate .lv-badge.off i { background: #ff4d4d; animation: none; }
.lv-slate .lv-camtag { grid-row: 3; color: #f2f5f0; font: 600 12px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9); }
.lv-slate button { justify-self: center; margin-top: 6px; border: 1px solid #3a4452; background: #1c232d; color: #e6edf5; padding: 8px 14px; border-radius: 999px; font: inherit; letter-spacing: 0.06em; }
@keyframes lv-noise { 0% { background-position: 0 0; } 33% { background-position: -50px 30px; } 66% { background-position: 40px -40px; } }
/* the scenes to ask for: the games and the places, each under its word and wrapping onto as many lines as it needs (SHOP 6b:
   never a sideways scroll); on air in red, coming up outlined */
.lv-chan { display: grid; gap: 8px; padding: 10px 10px 4px; min-width: 0; }
.lv-chanrow { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 6px; align-items: start; min-width: 0; }
.lv-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.lv-chan .lv-chan-k { padding-top: 8px; color: #7f8b99; font: 700 10px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.lv-more { display: none; border: 1px dashed #3a4452; background: transparent; color: #cfd8e3; padding: 6px 11px; border-radius: 999px; font: 600 12px/1.2 Geist, system-ui, sans-serif; white-space: nowrap; }
.lv-more:hover { border-color: #5a6678; color: #fff; }
.lv-more.wide { justify-self: center; padding: 8px 18px; }
.lv-chan .lv-cam { flex: none; border: 1px solid #2c3441; background: #1b212a; color: #b7c2cf; padding: 6px 11px; border-radius: 999px; font: 600 12px/1.2 Geist, system-ui, sans-serif; white-space: nowrap; transition: background 0.3s, color 0.3s, border-color 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.lv-chan .lv-cam:hover { border-color: #4a5566; color: #fff; }
.lv-chan .lv-cam[aria-current="true"] { background: #ff4d4d; border-color: #ff4d4d; color: #fff; }
.lv-chan .lv-scene.next { border-color: #ff9f43; color: #ffd8a8; }
.lv-chan .lv-scene .n { background: #2f6f3e; color: #e9fbe9; border-radius: 999px; padding: 1px 6px; font-size: 10px; font-weight: 700; }
.lv-chan .lv-scene[aria-current="true"] .n { background: rgba(255, 255, 255, 0.25); }
.lv-chan b { margin: 0; }
/* who is in the picture, with Gift and Add friend */
.lv-inpic { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 10px 10px; min-height: 28px; color: #cfd8e3; font: 600 12px/1.3 Geist, system-ui, sans-serif; }
.lv-inpic .lv-meta { color: var(--stage-muted); }
.lv-inpic-k { color: var(--stage-muted); font: 700 11px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 2px; }
.lv-person { display: inline-flex; align-items: center; gap: 4px; background: #1b212a; border: 1px solid #2c3441; border-radius: 999px; padding: 3px 4px 3px 10px; }
.lv-pname { color: #fff; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-mini { border: 0; border-radius: 999px; padding: 3px 9px; background: #e8edf3; color: #0e1217; font: 700 11px/1.3 Geist, system-ui, sans-serif; cursor: pointer; }
.lv-mini:hover { background: #fff; }
.lv-mini.ghost { background: transparent; color: #cfd8e3; border: 1px solid #3a4452; }
/* THE BILLBOARDS: every board's face as the world paints it, under the camera. SHOP 6b: a grid that wraps, every card the same
   size and nothing spilling out of it; Watch and the price side by side on a wide card, one above the other on a narrow one */
.lv-adwall { display: grid; gap: 10px; min-width: 0; }
.lv-adwall-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lv-adwall-head h2 { font-size: 17px; color: #fff; } .lv-adwall-head .lv-kicker { color: #ff7a7a; margin: 0; } .lv-adwall-head .lv-mini { margin-left: auto; }
.lv-adgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; min-width: 0; }
.lv-adcard { background: var(--stage-2); border: 1px solid var(--stage-line); border-radius: 12px; padding: 9px; display: grid; gap: 7px; align-content: start; }
.lv-adgrid > .lv-adcard { min-width: 0; display: flex; flex-direction: column; container-type: inline-size; }
.lv-adinfo { min-width: 0; }
.lv-adgrid .lv-adinfo .lv-adby { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; min-height: 2.6em; }
.lv-adprice { display: block; margin-top: 4px; color: #ffd36b; font-weight: 700; font-size: 13px; }
.lv-adacts { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.lv-adacts > * { flex: 1 1 auto; min-width: 0; }
@container (max-width: 169px) { .lv-adacts > * { flex-basis: 100%; } }
.lv-adface { position: relative; aspect-ratio: 640 / 307; border-radius: 6px; overflow: hidden; background: #0b0e12; box-shadow: inset 0 0 0 3px #2a313c, 0 2px 0 #0a0d11; }
.lv-adface canvas { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); border-radius: 4px; opacity: 0; transition: opacity 0.6s ease; }
.lv-adface canvas.on { opacity: 1; }
.lv-adbar { display: flex; gap: 4px; } .lv-adbar i { flex: 1; height: 3px; border-radius: 2px; background: #2a313c; overflow: hidden; } .lv-adbar b { display: block; height: 100%; width: 0; background: #ff4d4d; transition: width 0.25s linear; }
.lv-adinfo b { display: block; font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lv-adinfo small { color: var(--stage-muted); font-size: 11px; }
.lv-adinfo .lv-adby { display: block; color: #cfd8e3; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-adcard .lv-row { justify-content: space-between; flex-wrap: wrap; }
.lv-adcard .lv-watch { white-space: nowrap; background: #1f2630; border-color: #2f3846; color: var(--stage-ink); padding: 7px 10px; }
.lv-adcard .lv-buy { padding: 7px 11px; background: var(--stage-ink); color: var(--stage); } .lv-adcard .lv-buy b { color: #8a5a00; }
@media (prefers-reduced-motion: reduce) { .lv-adface canvas { transition: none; } }

/* THE SIDE COLUMN: tabs, the map (hidden, small or big as the tab needs), the panel ------------------------------------------- */
.lv-side { min-width: 0; min-height: 0; overflow: auto; display: flex; flex-direction: column; background: var(--paper); border-left: 1px solid var(--line); }
.lv-tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); flex: none; position: sticky; top: 0; z-index: 3; background: var(--paper); }
.lv-tabs button { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 10px; font-weight: 700; color: var(--muted); font-size: 14px; white-space: nowrap; }
.lv-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.lv-tabs button[data-tab="shop"][aria-selected="false"] { color: var(--cobalt); }
.lv-mapbox { flex: none; border-bottom: 1px solid var(--line); }
.lv-side[data-map="off"] .lv-mapbox { display: none; }
.lv-mapwrap { position: relative; height: 250px; background: #2c72b5; overflow: hidden; transition: height 0.25s ease; }
.lv-side[data-map="big"] .lv-mapwrap { height: min(62vh, 620px); }
.lv-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; transition: opacity 0.16s ease; }
.lv-map:active { cursor: grabbing; } .lv-map.swap { opacity: 0; }
.lv-layers { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; background: rgba(255, 251, 242, 0.92); border: 1px solid var(--line); border-radius: 10px; padding: 3px; box-shadow: var(--shadow); }
.lv-side[data-map="small"] .lv-layers { display: none; }
.lv-layers button { flex: none; border: 0; background: none; border-radius: 7px; padding: 4px 7px; font-size: 11px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.lv-layers button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.lv-layers .k { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.k.land { background: #6f9a5e; } .k.places { background: var(--green); border-radius: 50%; } .k.boards { background: var(--red); } .k.people { background: #ff6a45; border-radius: 50%; } .k.cam { background: var(--cobalt); }
.lv-zoom { position: absolute; right: 8px; bottom: 8px; display: grid; gap: 4px; }
.lv-zoom button { min-width: 38px; height: 32px; padding: 0 6px; border: 1px solid var(--line); background: rgba(255, 251, 242, 0.95); border-radius: 9px; font-weight: 800; font-size: 12px; box-shadow: var(--shadow); }
.lv-tip { position: absolute; left: 0; top: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; z-index: 2; }
@keyframes lv-pulse { 50% { opacity: 0.3; } }
.lv-panel { padding: 16px; display: grid; gap: 12px; align-content: start; min-height: 0; }
.lv-panel > * { min-width: 0; animation: lv-in 0.25s ease-out; }
@keyframes lv-in { from { opacity: 0; transform: translateY(4px); } }
.lv-intro h2 { font-size: 22px; letter-spacing: -0.01em; } .lv-intro p { margin: 4px 0 0; color: var(--muted); } .lv-intro .lv-price { margin-top: 6px; }
.lv-kicker { margin: 0 0 2px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cobalt); font-weight: 800; }
.lv-panel h3, .lv-card h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 6px; }
.lv-meta { margin: 0; color: var(--muted); font-size: 13px; } .lv-meta b { color: var(--ink); } .lv-fine { font-size: 12px; color: var(--muted); margin: 0; }
.lv-back { border: 0; background: none; color: var(--cobalt); font-weight: 700; padding: 0; justify-self: start; }
.lv-back::before { content: "\2039"; margin-right: 6px; font-size: 16px; line-height: 1; }

/* THE SHOP: the categories, what you hold, a category's list ---------------------------------------------------------------- */
.lv-cats { display: grid; gap: 10px; }
.lv-cat { position: relative; display: grid; gap: 4px; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 14px 44px 14px 16px; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.lv-cat:hover { border-color: var(--cobalt); transform: translateY(-1px); box-shadow: var(--shadow); }
.lv-cat::after { content: "\203A"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--cobalt); line-height: 1; }
.lv-cat-k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cobalt); font-weight: 800; }
.lv-cat-t { font-size: 18px; letter-spacing: -0.01em; }
.lv-cat-l { color: var(--muted); font-size: 13px; }
.lv-cat-f { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.lv-cat-n { font-size: 12px; font-weight: 700; color: var(--green); background: #e7f4ec; border-radius: 999px; padding: 2px 9px; } .lv-cat-n.none { color: var(--muted); background: var(--paper-3); }
.lv-cat-p b { font-size: 16px; } .lv-cat-p small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.lv-own { display: grid; gap: 6px; background: #fff7e3; border: 1px solid #f0dcaa; border-radius: 14px; padding: 12px; }
.lv-own h3 { margin: 0; color: #8a5a00; }
.lv-own-row { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; text-align: left; border: 0; background: #fff; border-radius: 10px; padding: 8px 10px; }
.lv-own-row span { color: var(--muted); font-size: 12px; grid-row: 2; } .lv-own-row small { grid-row: 1 / 3; grid-column: 2; align-self: center; color: #8a5a00; font-weight: 700; }
.lv-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.lv-fchip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lv-fchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lv-items { display: grid; gap: 8px; }
.lv-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; transition: border-color 0.15s; }
.lv-item:hover, .lv-item.sel { border-color: var(--cobalt); }
.lv-item.mine { border-color: #e2c178; background: #fffaf0; }
.lv-item > .lv-adface { grid-column: 1 / -1; }
.lv-item-main { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; border: 0; background: none; padding: 0; text-align: left; min-width: 0; }
.lv-item-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lv-item-t small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-item-s { grid-column: 3; grid-row: 1 / 3; text-align: right; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-item.open .lv-item-s { color: var(--green); font-weight: 700; } .lv-item.mine .lv-item-s { color: #8a5a00; font-weight: 700; }
.lv-swatch { width: 14px; height: 14px; border-radius: 4px; border: 1.5px dashed var(--cobalt); background: #fff; grid-row: 1 / 3; }
.lv-swatch.held { border: 1.5px solid #3e6b36; background: #6f9a5e; } .lv-swatch.mine { border: 1.5px solid #7a5b12; background: var(--gold); }
.lv-item-acts { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.lv-item-acts .lv-watch { padding: 8px 10px; }
.lv-item.lv-adcard { background: #fff; border-color: var(--line); color: var(--ink); padding: 10px; }
.lv-taken { border-top: 1px dashed var(--line); padding-top: 8px; }
.lv-taken summary { cursor: pointer; font-weight: 700; color: var(--muted); font-size: 13px; padding: 4px 0; }
.lv-taken .lv-items { margin-top: 8px; }
.lv-empty { border: 1.5px dashed var(--line); border-radius: 14px; padding: 16px; color: var(--muted); margin: 0; } .lv-empty b { color: var(--ink); }
.lv-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 13px; }
.lv-legend li { display: flex; align-items: center; gap: 8px; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; } .lg.open { border: 1.5px dashed var(--cobalt); background: #fff; } .lg.held { background: #6f9a5e; } .lg.mine { background: var(--gold); } .lg.people { background: #ff6a45; border-radius: 50%; } .lg.cam { background: var(--cobalt); }

/* the pieces of the panel: stats, bars, lists, cards, prices, buttons */
.lv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 1px; }
.lv-stat b { font-size: 24px; letter-spacing: -0.02em; } .lv-stat span { font-size: 12px; color: var(--muted); font-weight: 600; } .lv-stat small { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.lv-bars { display: grid; gap: 4px; }
.lv-bar { display: grid; grid-template-columns: 112px 1fr 26px; align-items: center; gap: 8px; border: 0; background: none; padding: 3px 4px; border-radius: 8px; text-align: left; font-size: 13px; }
.lv-bar:hover { background: var(--paper-2); }
.lv-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-bar i { height: 8px; border-radius: 99px; background: var(--paper-3); position: relative; overflow: hidden; }
.lv-bar i::after { content: ""; position: absolute; inset: 0; width: calc(var(--k) * 100%); background: linear-gradient(90deg, #ff6a45, #ffa36c); border-radius: 99px; transition: width 0.6s ease; }
.lv-bar b { text-align: right; }
.lv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lv-list button { width: 100%; display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; text-align: left; transition: border-color 0.2s; }
.lv-list button:hover, .lv-list button.sel { border-color: var(--cobalt); }
.lv-list small { color: #c2410c; font-weight: 700; font-size: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); } .dot.park { background: var(--green); } .dot.games { background: #6b3fc4; } .dot.land { background: #8a7a2c; }
.lv-feed { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.lv-feed li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13px; }
.lv-feed li span { font-weight: 700; } .lv-feed li small { color: var(--muted); grid-column: 1 / -1; }
.lv-urls { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lv-urls li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.lv-urls span { font-size: 12px; color: var(--muted); grid-column: 1 / -1; } .lv-urls code { font-size: 11px; overflow-wrap: anywhere; }
.lv-card { display: grid; gap: 10px; animation: lv-in 0.25s ease-out; }
.lv-card h2 { font-size: 22px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.lv-card .lv-cardface { background: var(--stage-2); border: 0; }
.lv-bigbar { height: 8px; background: var(--paper-3); border-radius: 99px; overflow: hidden; } .lv-bigbar i { display: block; height: 100%; width: calc(var(--k) * 100%); background: linear-gradient(90deg, var(--cobalt), #7d8cff); border-radius: 99px; }
.lv-ups { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; } .lv-ups span { font-size: 12px; background: #eef1ff; color: var(--cobalt-2); padding: 2px 8px; border-radius: 999px; }
.lv-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lv-price b { font-size: 15px; color: var(--muted); font-weight: 600; } .lv-price b.on { color: var(--ink); font-weight: 800; } .lv-price span, .lv-price small { color: var(--muted); font-size: 12px; }
.lv-row { display: flex; gap: 8px; align-items: center; } .lv-row.wrap { flex-wrap: wrap; } .lv-row.end { justify-content: flex-end; }
.lv-row > .lv-buy:last-child { margin-left: auto; } .lv-row.wrap > .lv-buy { margin-left: 0; }
.lv-buy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--ink); color: var(--paper); padding: 9px 14px; border-radius: 10px; font-weight: 700; white-space: nowrap; transition: background 0.15s, transform 0.15s; }
.lv-buy b { color: #ffd36b; font-weight: 700; } .lv-buy:hover:not(:disabled) { background: #000; transform: translateY(-1px); } .lv-buy.big { padding: 12px 18px; font-size: 15px; }
.lv-buy.wide { flex: 1; max-width: 340px; background: var(--cobalt); } .lv-buy.wide:hover:not(:disabled) { background: var(--cobalt-2); }
.lv-watch, .lv-ghost { border: 1px solid var(--line); background: var(--paper); padding: 9px 12px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.lv-watch::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--red); border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.lv-ads { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .lv-ads li { display: grid; gap: 3px; } .lv-ads small { color: var(--muted); font-size: 12px; }
.lv-ad { --c: #2f4bff; background: var(--c); color: #fff; border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; min-height: 58px; align-content: center; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25); overflow-wrap: anywhere; }
.lv-ad b { font-size: 16px; } .lv-ad span { font-size: 13px; opacity: 0.92; }
.lv-ad.house { background: repeating-linear-gradient(135deg, #f1ebdc 0 10px, #ebe3d1 10px 20px); color: var(--muted); text-shadow: none; }
.lv-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; } .lv-dl div { background: var(--paper-2); border-radius: 8px; padding: 6px 8px; } .lv-dl dt { font-size: 11px; color: var(--muted); } .lv-dl dd { margin: 0; font-weight: 700; }

/* THE CHECKOUT: one sheet, one button (a bottom sheet on a phone) */
.lv-checkout { border: 0; border-radius: 18px; padding: 22px; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); }
.lv-checkout[open] { animation: lv-pop 0.22s ease-out; }
@keyframes lv-pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.lv-checkout::backdrop { background: rgba(11, 16, 32, 0.5); backdrop-filter: blur(3px); }
.lv-checkout > * + * { margin-top: 12px; }
.lv-checkout h2 { font-size: 22px; padding-right: 30px; overflow-wrap: anywhere; }
.lv-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-weight: 700; }
.lv-cur { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-cur label { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; cursor: pointer; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; position: relative; }
.lv-cur label.on { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(47, 75, 255, 0.12); }
.lv-cur input { position: absolute; opacity: 0; pointer-events: none; }
.lv-cur span { font-size: 12px; color: var(--muted); font-weight: 600; } .lv-cur b { font-size: 18px; } .lv-cur small { font-size: 11px; color: var(--muted); }
.lv-form { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; display: grid; gap: 8px; margin-inline: 0; }
.lv-form legend { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 4px; }
.lv-form label { display: grid; gap: 3px; font-size: 12px; color: var(--muted); font-weight: 600; }
.lv-form input:not([type="color"]) { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; background: #fff; color: var(--ink); font-size: 16px; }
.lv-color { grid-template-columns: auto 1fr; align-items: center; } .lv-color input { width: 44px; height: 30px; border: 0; padding: 0; background: none; }
.lv-agree { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.lv-agree input { width: 18px; height: 18px; flex: none; }
.lv-note, .lv-wallet { background: #eef1ff; border-radius: 12px; padding: 12px; font-size: 13px; } .lv-wallet p { margin: 4px 0 10px; color: var(--muted); }
.lv-done { background: #e7f4ec; border-radius: 12px; padding: 14px; } .lv-done b { font-size: 17px; } .lv-done p { margin: 6px 0 12px; }
.lv-receipt { display: grid; gap: 6px; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.lv-receipt div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; font-size: 13px; } .lv-receipt dt { color: var(--muted); } .lv-receipt dd { margin: 0; overflow-wrap: anywhere; } .lv-receipt code { font-size: 12px; }
.lv-err { color: var(--red); font-weight: 600; font-size: 13px; }
.lv-steps { list-style: none; display: flex; gap: 6px; margin: 4px 0 12px; padding: 0; }
.lv-steps li { flex: 1; font-size: 11px; font-weight: 600; color: var(--muted); border-top: 3px solid var(--line); padding-top: 6px; }
.lv-steps li.done { color: var(--green); border-color: var(--green); }
.lv-steps li.on { color: var(--cobalt); border-color: var(--cobalt); }
.lv-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 30; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
/* the game's wallet picker and wallet error dialogs (net/wallet-picker.js, ui/wallet-error.js; their rules from styles.css) */
.world-wallet-picker { width: min(360px, calc(100vw - 32px)); box-sizing: border-box; max-height: 85dvh; overflow: auto; padding: 24px; border: 1px solid #cbd0db; border-radius: 16px; color: #202532; background: #fffdf8; font: inherit; box-shadow: 0 18px 60px #0003; }
.world-wallet-picker::backdrop { background: #17203199; }
.world-wallet-picker h2 { font-size: 22px; margin: 0 0 18px; }
.world-wallet-options { display: grid; gap: 10px; margin-bottom: 16px; }
.world-wallet-picker button, .world-wallet-options a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid #cbd0db; border-radius: 10px; background: #fff; color: #202532; font: inherit; text-decoration: none; cursor: pointer; }
.world-wallet-picker button:focus-visible, .world-wallet-options a:focus-visible { outline: 3px solid #2054bd; outline-offset: 2px; }
.world-wallet-picker img { width: 28px; height: 28px; border-radius: 6px; }
.wallet-error p { line-height: 1.5; overflow-wrap: anywhere; }
.wallet-error button { width: 100%; margin-top: 10px; justify-content: center; }
.wallet-error button:last-child { background: #2054bd; color: #fff; border-color: #2054bd; }

/* a smaller desk */
@media (max-width: 1280px) { :root { --side: 400px; } .lv-pulse { display: none; } }
/* a phone and a small tablet: the camera first, then the Shop and the rest; the page scrolls */
@media (max-width: 860px) {
  body { overflow: auto; }
  .lv-head { height: auto; flex-wrap: wrap; padding: 10px 14px; gap: 8px; }
  .lv-brand small { display: none; }
  .lv-you { margin-left: auto; } .lv-dev { max-width: 120px; }
  .lv-main { height: auto; display: flex; flex-direction: column; }
  .lv-wall { overflow: visible; padding: 10px 10px 14px; }
  .lv-stagebar { flex-wrap: wrap; gap: 8px; } .lv-stagebar .lv-mon-on { order: 3; flex-basis: 100%; }
  .lv-full span { display: none; } .lv-full { margin-left: auto; padding: 8px 10px; }
  .lv-screen { max-height: none; }
  /* SHOP 6b: the word above its scenes, the first six of each (and what is on air or next), the first four billboards, each
     with Show all (view.js PHONE_CHIPS, PHONE_BOARDS) */
  .lv-chanrow { grid-template-columns: minmax(0, 1fr); gap: 4px; } .lv-chan .lv-chan-k { padding-top: 0; }
  .lv-chanrow:not(.all) .lv-scene:nth-child(n+7):not([aria-current="true"]):not(.next) { display: none; }
  .lv-more { display: inline-flex; }
  .lv-adgrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .lv-adgrid:not(.all) > .lv-adcard:nth-child(n+5) { display: none; }
  .lv-adgrid .lv-adinfo > b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; min-height: 2.5em; }
  .lv-side { overflow: visible; border-left: 0; }
  .lv-tabs { top: 0; }
  .lv-side[data-map="big"] .lv-mapwrap { height: 62vh; }
  .lv-cur { grid-template-columns: 1fr; }
  .lv-item-acts .lv-buy { flex: 1; }
  .lv-checkout { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 92dvh; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); }
  .lv-checkout .lv-row.end { position: sticky; bottom: 0; background: var(--paper); padding-top: 8px; }
  .lv-buy.wide { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .lv-panel > *, .lv-card, .lv-checkout[open] { animation: none; } .lv-stagebar .lv-mon-on::before, .lv-slate { animation: none; } }
