:root {
  --bg: #f4f3ef;
  --ink: #17171a;
  --soft: rgba(23, 23, 26, 0.52);
  --line: rgba(23, 23, 26, 0.1);
  --accent: #ff5a36;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}

.sc { position: relative; width: min(316px, 100%); }
/* the device: a dark rim around the screen */
.sc__screen { position: relative; height: min(208px, 52vh); border-radius: 22px; background: #ffffff; box-shadow: 0 0 0 5px #17171a, 0 0 0 6px rgba(255, 255, 255, 0.5), 0 30px 40px -24px rgba(23, 23, 26, 0.55); overflow: hidden; }
.sc__ui, .sc__copyui { position: absolute; inset: 0; display: block; background: #fbfaf8; }
.sc__bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.sc__logo { width: 18px; height: 18px; border-radius: 6px; background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.sc__bar b { flex: 1; font-size: 13px; font-weight: 720; letter-spacing: -0.005em; }
.sc__chip { height: 20px; padding: 0 8px; border-radius: 10px; background: rgba(23, 23, 26, 0.06); font-size: 10.500px; line-height: 20px; font-weight: 620; color: var(--soft); }
.sc__body { display: grid; grid-template-columns: 42% 1fr; gap: 12px; height: calc(100% - 40px); padding: 12px; }
.sc__art { position: relative; border-radius: 12px; background: linear-gradient(150deg, #ffd9a8 0%, var(--accent) 55%, #7a2bd6 120%); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.sc__art i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.sc__art i:nth-child(1) { left: -18%; bottom: -30%; width: 90%; aspect-ratio: 1; }
.sc__art i:nth-child(2) { right: -24%; bottom: -44%; width: 100%; aspect-ratio: 1; background: rgba(23, 23, 26, 0.16); }
.sc__art i:nth-child(3) { right: 14%; top: 14%; width: 20%; aspect-ratio: 1; background: rgba(255, 255, 255, 0.8); }
.sc__copy { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.sc__copy strong { font-size: 13.500px; line-height: 17px; font-weight: 720; letter-spacing: -0.008em; white-space: nowrap; }
.sc__l { display: block; height: 6px; border-radius: 3px; background: rgba(23, 23, 26, 0.1); }
.sc__bars { flex: 1; min-height: 0; display: flex; align-items: flex-end; gap: 5px; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.sc__bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: rgba(23, 23, 26, 0.14); }
.sc__bars i:nth-child(4) { background: var(--accent); }

.sc__dim { position: absolute; inset: 0; background: rgba(23, 23, 26, 0.5); opacity: 0; pointer-events: none; }
/* the capture: a copy of the screen with a white edge, pinned to the bottom left corner */
.sc__shot { position: absolute; inset: 0; display: block; border: 0; padding: 0; border-radius: 22px; background: none; transform-origin: 0% 100%; opacity: 0; visibility: hidden; cursor: pointer; outline: none; box-shadow: 0 0 0 4px #ffffff, 0 18px 40px -8px rgba(23, 23, 26, 0.6), 0 0 0 5px rgba(23, 23, 26, 0.12); overflow: hidden; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sc__shot:focus-visible { box-shadow: 0 0 0 4px #ffffff, 0 0 0 12px var(--ink); }
.sc__copyui { pointer-events: none; text-align: left; color: var(--ink); font-family: inherit; }
.sc__flash { position: absolute; inset: 0; background: #ffffff; opacity: 0; pointer-events: none; }

.sc__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.sc__btn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 22px; background: var(--ink); color: #ffffff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; outline: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 18px -12px rgba(23, 23, 26, 0.7); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sc__btn:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.sc__btn svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }
.sc__btn svg circle { fill: var(--accent); stroke: none; }
@media (hover: hover) { .sc__btn:hover { background: #2a2a2f; } }
.sc__status { min-width: 0; display: block; height: 17px; overflow: hidden; font-size: 12.500px; line-height: 17px; color: var(--soft); text-align: right; font-variant-numeric: tabular-nums; }
.sc__status span { display: block; white-space: nowrap; }

.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #17171a; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); z-index: 6; }

/* small in the corner, the white edge has to be thicker to read as a border */
.sc__shot { transition: box-shadow 0.35s ease; }
.sc[data-state="thumb"] .sc__shot, .sc[data-state="leaving"] .sc__shot { box-shadow: 0 0 0 11px #ffffff, 0 30px 60px -6px rgba(23, 23, 26, 0.7), 0 0 0 13px rgba(23, 23, 26, 0.14); }
