.cvs-demo *, .cvs-demo *::before, .cvs-demo *::after { box-sizing: border-box }
.cvs-demo { container: canvas-demo / inline-size; }
.cvs-demo button { font: inherit }
.cvs-demo svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0 }
.cvs-icons { display: none }
.cvs-monitor { color-scheme: dark; color: #f1f1fd; line-height: 1.4; width: min(100%, 1040px); margin: 0 auto; overflow: hidden; border: 1px solid #363547; border-radius: 15px; background: #171822 }
.cvs-stage { container-type: inline-size; position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 16/8; max-height: 425px; background: #232235; border-bottom: 1px solid #383a4a }
.cvs-landscape,.cvs-veil { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none }
.cvs-landscape { object-fit: cover; object-position: center 51%; background: linear-gradient(150deg,#34566c,#373952 62%,#242a3f) }
.cvs-veil { background: linear-gradient(90deg,#15172d40,transparent 52%), linear-gradient(0deg,#0b0f22a8,transparent 35%); transition: background-color .8s }
[data-cvs-layout="talk"] .cvs-veil { background-color: #0e0d22bc }
[data-cvs-layout="soon"] .cvs-veil { background-color: #0e0d229c }
.cvs-element { position: absolute; overflow: hidden; border: 1px solid #beb1ee77; border-radius: clamp(7px,1.2cqw,14px); background: #141529eb; box-shadow: 0 4px 20px #06071444; transition-property: left,top,width,height,opacity; transition-duration: .82s; transition-timing-function: cubic-bezier(.4,0,.12,1) }
.cvs-cam { left: 3%; top: 61.5%; width: 25%; height: 32%; background: #262841 }
.cvs-cam img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 38% }
.cvs-cam::after { content:""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent,#0e10236e) }
.cvs-cam b { display: flex; align-items: center; gap: .42em; position: absolute; z-index: 1; bottom: .6em; left: .7em; padding: .2em .45em; border-radius: 4px; background: #161827bd; font-size: clamp(10px,1.3cqw,14px); font-weight: 600 }
.cvs-chat { left: 72%; top: 59%; width: 25%; height: 34.5%; padding: clamp(6px,1.25cqw,13px); background: #16182aee }
.cvs-widget-title { display: flex; align-items: center; gap: .45em; margin: 0; font-weight: 700; font-size: clamp(10px,1.4cqw,15px); line-height: 1.15; color: #ebe7ff }
.cvs-widget-title svg { color: #b8a7ff }
.cvs-messages { display: grid; gap: clamp(3px,.7cqw,8px); list-style: none; padding: 0; margin: clamp(4px,1.2cqw,12px) 0 0 }
.cvs-messages li { font-size: clamp(10px,1.35cqw,15px); line-height: 1.26; overflow-wrap: anywhere }
.cvs-messages strong { color: #81e6d3; margin-right: .28em }
.cvs-messages li:nth-child(even) strong { color: #c5a7ff }
.cvs-messages li:nth-child(n+3) { display: none }
[data-cvs-layout="talk"] .cvs-messages li:nth-child(n+3) { display: list-item }
.cvs-long { display: none }
@container canvas-demo (min-width: 601px) {
  [data-cvs-layout="talk"] .cvs-messages { gap: 0; margin-top: .45em }
  [data-cvs-layout="talk"] .cvs-messages li { padding: clamp(4px,.8cqw,9px) 0; border-top: 1px solid #ffffff13; font-size: clamp(13px,1.7cqw,18px) }
  [data-cvs-layout="talk"] .cvs-messages strong { display: block; font-size: .8em; margin-bottom: .13em }
  [data-cvs-layout="talk"] .cvs-long { display: inline }
  [data-cvs-layout="talk"] .cvs-short { display: none }
}
.cvs-goal { left: 72%; top: 6%; width: 25%; height: 15%; display: grid; align-content: center; gap: .5em; padding: .4em clamp(7px,1.3cqw,15px); font-size: clamp(10px,1.3cqw,14px) }
.cvs-goal-label { display: flex; justify-content: space-between; align-items: baseline; gap: .4em }
.cvs-goal-label span { font-weight: 600 }
.cvs-goal-label b { color: #9eedd9 }
.cvs-rail { height: clamp(3px,.5cqw,6px); border-radius: 5px; background: #454456; overflow: hidden }
.cvs-rail::before { content: ""; display: block; width: 68%; height: 100%; background: linear-gradient(90deg,#9786fa,#80ebd9) }
[data-cvs-layout="talk"] .cvs-cam { left: 4%; top: 7%; width: 51%; height: 73% }
[data-cvs-layout="talk"] .cvs-chat { left: 58%; top: 7%; width: 38%; height: 73%; background: #191a30ee }
[data-cvs-layout="talk"] .cvs-goal { left: 4%; top: 83%; width: 92%; height: 12% }
[data-cvs-layout="soon"] .cvs-cam { left: 65%; top: 8%; width: 31%; height: 46% }
[data-cvs-layout="soon"] .cvs-chat { left: 65%; top: 57%; width: 31%; height: 35% }
[data-cvs-layout="soon"] .cvs-goal { left: 4%; top: 84%; width: 52%; height: 8%; opacity: 0; pointer-events: none }
.cvs-count { position: absolute; left: 6%; top: 17%; width: 54%; height: 64%; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateX(-4%); transition: opacity .5s, transform .8s cubic-bezier(.4,0,.12,1); pointer-events: none }
[data-cvs-layout="soon"] .cvs-count { opacity: 1; transform: translateX(0) }
.cvs-count div { font-size: clamp(17px,3.6cqw,40px); font-weight: 650; letter-spacing: -.04em; text-shadow: 0 2px 12px #100f1fc0 }
.cvs-digits { font-variant-numeric: tabular-nums; font-size: clamp(42px,10.5cqw,110px); font-weight: 750; letter-spacing: -.065em; line-height: 1.07; text-shadow: 0 2px 20px #100f1f77 }
.cvs-dock { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; min-height: 61px; padding: 10px 15px }
.cvs-source { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: #d4d1e5; font-size: 13px; font-weight: 600 }
.cvs-source > svg { width: 22px; height: 22px; stroke: #ae9ff3 }
.cvs-source small { font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: #a8a6b9; display: block; line-height: 1.4 }
.cvs-switch { display: inline-flex; flex-wrap: nowrap; align-items: stretch; background: #0e0f1a; padding: 3px; border-radius: 9px; border: 1px solid #383747 }
.cvs-switch button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; line-height: 1.2; padding: 5px 11px; font-size: 13px; color: #c1bfd2; background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer; transition: color .15s, background .15s }
.cvs-switch button:hover { color: #fff; background: #2a293c }
.cvs-switch button[aria-pressed="true"] { color: #f8f6ff; background: #41345c; border-color: #756097 }
.cvs-switch button:focus-visible { outline: 2px solid #9edef5; outline-offset: 1px }
@container canvas-demo (max-width: 600px) {
  .cvs-stage { aspect-ratio: 1.62 }
  .cvs-dock { gap: 7px; padding: 9px; display: grid; justify-content: stretch }
  .cvs-source { font-size: 12px }
  .cvs-source small { display: inline; margin-right: 5px; letter-spacing: .05em }
  .cvs-source > svg { width: 15px; height: 15px }
  .cvs-switch { display: grid; grid-template-columns: .8fr 1fr 1.3fr }
  .cvs-switch button { padding: 4px 5px }
  .cvs-chat { left: 58%; top: 55%; width: 39%; height: 40% }
  .cvs-cam { top: 57%; width: 36%; height: 38% }
  .cvs-goal { left: 58%; width: 39%; top: 6%; height: 18% }
  [data-cvs-layout="talk"] .cvs-cam { left: 3%; width: 47%; height: 69% }
  [data-cvs-layout="talk"] .cvs-chat { left: 52%; width: 45%; height: 69% }
  [data-cvs-layout="talk"] .cvs-goal { top: 79%; height: 16% }
  [data-cvs-layout="soon"] .cvs-cam { left: 61%; width: 36%; top: 6%; height: 42% }
  [data-cvs-layout="soon"] .cvs-chat { left: 61%; width: 36%; top: 51%; height: 44% }
  .cvs-messages { gap: 3px }
}
@container canvas-demo (max-width: 360px) {
  .cvs-stage { aspect-ratio: 1.48 }
  .cvs-switch button { gap: 4px; font-size: 12px }
  .cvs-switch button svg { width: 13px }
}
@media (prefers-reduced-motion: reduce) { .cvs-demo *, .cvs-demo *::before, .cvs-demo *::after { transition-duration: 0s !important } }
.cvs-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0 }
.cvs-stage img { max-width: none }
