.cwc-showcase, .cwc-showcase * { box-sizing: border-box; }
.cwc-showcase { --bg: transparent; background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.3; }
.cwc-showcase img { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; border-radius: 0; }
.cwc-showcase .scroller img { max-width: 100%; }

    .cwc-showcase { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 16px; }
  .cwc-showcase .stage-outer { position: relative; width: 100%; aspect-ratio: 1600 / 840; }
  .cwc-showcase .stage { position: absolute; left: 0; top: 0; width: 1600px; height: 840px; transform-origin: 0 0; }

  /* ---------- laptop ---------- */
  .cwc-showcase .laptop { position: absolute; left: 165px; top: 84px; z-index: 1; }
  .cwc-showcase .lid { position: relative; width: 1044px; height: 677px; background: #18181b; border-radius: 30px 30px 6px 6px;
         box-shadow: inset 0 0 0 2px #4b4b52; }
  .cwc-showcase .lid .cam { position: absolute; left: 50%; top: 12px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #3a3c42; }
  .cwc-showcase .base { position: absolute; left: -60px; top: 674px; width: 1164px; height: 30px; border-radius: 0 0 26px 26px;
          background: linear-gradient(#e2e3e6, #9c9ea4); box-shadow: 0 26px 40px -18px rgba(0,0,0,.35); }
  .cwc-showcase .base::before { content: ""; position: absolute; left: 50%; top: 0; width: 200px; height: 9px; margin-left: -100px; border-radius: 0 0 8px 8px; background: #b4b6bb; }
  .cwc-showcase .lscreen { position: absolute; left: 22px; top: 30px; width: 1000px; height: 625px; border-radius: 6px; overflow: hidden; background: #fff; }

  /* ---------- phone ---------- */
  .cwc-showcase .phone { position: absolute; z-index: 2; left: 1155px; top: 20px; width: 373px; height: 775px; border-radius: 60px; background: #161618;
           box-shadow: inset 0 0 0 3px #5c5e64, 18px 34px 60px -20px rgba(0,0,0,.45); }
  .cwc-showcase .phone::before, .cwc-showcase .phone::after { content: ""; position: absolute; background: #3c3e42; border-radius: 3px; }
  .cwc-showcase .phone::before { left: -5px; top: 170px; width: 5px; height: 64px; box-shadow: 0 86px 0 #3c3e42; }
  .cwc-showcase .phone::after { right: -5px; top: 210px; width: 5px; height: 100px; }
  .cwc-showcase .pscreen { position: absolute; left: 14px; top: 14px; width: 345px; height: 747px; border-radius: 47px; overflow: hidden; background: #fff; }
  .cwc-showcase .status { position: absolute; left: 0; top: 0; width: 100%; height: 46px; background: #fff; z-index: 3; }
  .cwc-showcase .status .time { position: absolute; left: 36px; top: 14px; font-weight: 700; font-size: 15px; color: #000; }
  .cwc-showcase .status .island { position: absolute; left: 50%; top: 11px; width: 112px; height: 32px; margin-left: -56px; border-radius: 20px; background: #000; }
  .cwc-showcase .status .icons { position: absolute; right: 26px; top: 17px; display: flex; gap: 6px; align-items: flex-end; }
  .cwc-showcase .status .bars { display: flex; gap: 2px; align-items: flex-end; }
  .cwc-showcase .status .bars i { display: block; width: 3px; background: #000; border-radius: 1px; }
  .cwc-showcase .status .batt { width: 25px; height: 12px; border: 2px solid #000; border-radius: 4px; position: relative; }
  .cwc-showcase .status .batt::after { content: ""; position: absolute; left: 1px; top: 1px; right: 4px; bottom: 1px; background: #000; border-radius: 1px; }

  /* ---------- scroll areas ---------- */
  .cwc-showcase .scroller { position: absolute; left: 0; right: 0; overflow: hidden; overscroll-behavior: contain;
              scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
  .cwc-showcase .scroller::-webkit-scrollbar { display: none; }
  .cwc-showcase .scroller img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; pointer-events: none; }
  .cwc-showcase .scroller { background: #f4f4f4; }
  .cwc-showcase .lscreen .scroller { top: 0; bottom: 0; }
  .cwc-showcase .overlay { position: absolute; left: 0; width: 100%; display: block; pointer-events: none; z-index: 2; }
  .cwc-showcase .lscreen .overlay { top: 0; }
  .cwc-showcase .pscreen .scroller { top: 111px; height: 594px; }
  .cwc-showcase .pscreen .mhead { top: 46px; height: 65px; }
  .cwc-showcase .pscreen .mbar { bottom: 0; height: 42px; }

  .cwc-showcase .cue { position: absolute; left: 50%; transform: translateX(-50%); z-index: 4; pointer-events: none;
         display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border-radius: 999px;
         background: rgba(17,17,19,.82); color: #fff; font-size: 17px; font-weight: 600; white-space: nowrap;
         box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .45s ease, transform .45s ease; }
  .cwc-showcase .cue.hidden { opacity: 0; transform: translateX(-50%) translateY(10px); }
  .cwc-showcase .lscreen .cue { bottom: 28px; }
  .cwc-showcase .pscreen .cue { bottom: 64px; font-size: 15px; padding: 10px 16px 10px 12px; gap: 10px; }
  .cwc-showcase .mouse { width: 22px; height: 34px; border: 2px solid #fff; border-radius: 12px; position: relative; flex: none; }
  .cwc-showcase .mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #E0DD34;
                  animation: cwcwheel 1.6s ease-in-out infinite; }
  @keyframes cwcwheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
  .cwc-showcase .finger { width: 22px; height: 34px; position: relative; flex: none; }
  .cwc-showcase .finger::before { content: ""; position: absolute; left: 50%; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #E0DD34;
                    animation: cwcswipe 1.6s ease-in-out infinite; }
  .cwc-showcase .finger::after { content: ""; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 2px; margin-left: -1px; background: rgba(255,255,255,.35); border-radius: 1px; }
  @keyframes cwcswipe { 0% { transform: translateY(14px); opacity: 0; } 20% { opacity: 1; } 80% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cwc-showcase .mouse::after, .cwc-showcase .finger::before { animation: none; } }
  .cwc-showcase .pad { height: 24px; }

/* ---------- on dark backgrounds (auto-detected, or theme="dark") ---------- */
.cwc-showcase.cwc-dark .lid { background: #1c1c20; box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 0 0 1px rgba(255,255,255,.06); }
.cwc-showcase.cwc-dark .phone { background: #1a1a1d; box-shadow: inset 0 0 0 3px rgba(255,255,255,.28), 0 30px 70px -20px rgba(0,0,0,.9); }
.cwc-showcase.cwc-dark .phone::before, .cwc-showcase.cwc-dark .phone::after { background: #55575d; }
.cwc-showcase.cwc-dark .base { background: linear-gradient(#d4d5d9, #7d7f85); box-shadow: 0 30px 50px -18px rgba(0,0,0,.9); }
.cwc-showcase.cwc-dark .stage-outer::before { content: ""; position: absolute; inset: 4% 6% 0; pointer-events: none;
  background: radial-gradient(50% 55% at 50% 52%, rgba(255,255,255,.07), rgba(255,255,255,0) 70%); }
.cwc-showcase .pad { height: 8px; }
.cwc-showcase.cwc-touch .scroller { overflow-y: auto; touch-action: pan-y; }

/* ---------- small screens: phone only ---------- */
.cwc-showcase.cwc-narrow { padding: 0; }
.cwc-showcase.cwc-narrow .stage-outer { aspect-ratio: 420 / 820; width: min(100%, calc(66vh * 420 / 820), 340px); margin: 0 auto; }
.cwc-showcase.cwc-narrow .stage-outer::before { inset: 0; background: radial-gradient(60% 50% at 50% 50%, rgba(255,255,255,.08), rgba(255,255,255,0) 70%); }
.cwc-showcase.cwc-narrow .stage { width: 420px; height: 820px; }
.cwc-showcase.cwc-narrow .laptop { display: none; }
.cwc-showcase.cwc-narrow .phone { left: 23px; top: 22px; }
.cwc-showcase.cwc-narrow .pscreen .cue { font-size: 20px; padding: 12px 20px 12px 16px; gap: 12px; bottom: 70px; }
