/* ---------- Platform baseline (mobile first) ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-tap-highlight-color: transparent; /* no grey flash on tap */
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;                /* no pull-to-refresh / rubber band */
  background: #ece9e4;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #f6f4f0 0%, #ece9e4 55%, #e2ded7 100%);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #222;
  padding:
    env(safe-area-inset-top, 0px)
    env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
}

button {
  font: inherit;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;   /* kill double-tap-zoom delay */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
button:focus-visible { outline: 2px solid #2f6fd6; outline-offset: 2px; }

#video {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  left: 0;
  top: 0;
}

/* ---------- Splash ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #000;
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: opacity 420ms ease-out 120ms, transform 520ms cubic-bezier(0.4, 0, 0.2, 1) 120ms;
}
.splash canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
/* CRT scanlines + glass */
.splash::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 45%, transparent 60%, rgba(0,0,0,.35) 100%);
  mix-blend-mode: multiply;
}
.splash.out { opacity: 0; transform: scale(1.06); }

/* camera body powers in after the splash */
.stage {
  transition: opacity 520ms ease-out, transform 640ms cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
html.splash-on .stage { opacity: 0; transform: scale(0.92) translateY(2%); }

/* ---------- Stage: everything inside scales with cqw ---------- */
.stage {
  --ratio: 0.56;
  position: relative;
  width: min(
    calc(100vw - 44px),
    calc((100dvh - 70px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) * var(--ratio)),
    440px
  );
  container-type: inline-size;
  user-select: none;
  -webkit-user-select: none;
}

.strap {
  position: absolute;
  left: -23cqw;
  top: 4cqw;
  width: 24cqw;
  height: 104cqw;
  pointer-events: none;
  filter: drop-shadow(0.6cqw 1.4cqw 1.2cqw rgba(0, 0, 0, 0.25));
}

/* ---------- Credit line under the camera ---------- */
.credit {
  margin: 20px 0 0;
  text-align: center;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #a39e95;
  user-select: text;
  -webkit-user-select: text;
}
.credit a {
  display: inline-block;
  padding: 6px 1px 1px;           /* bigger tap target without moving the text */
  color: #6a665f;
  text-decoration: none;
  border-bottom: 1px dashed #111;
  touch-action: manipulation;
  transition: opacity 100ms ease-out;
}
.credit a:active { opacity: 0.6; }
@media (hover: hover) and (pointer: fine) {
  .credit a:hover { border-bottom-style: solid; }
}

/* ---------- Camera body ---------- */
.camera {
  position: relative;
  width: 100%;
  aspect-ratio: 56 / 100;
  border-radius: 5.5cqw;
  background:
    linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 18%, rgba(0,0,0,0) 70%, rgba(0,0,0,.07) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, rgba(0,0,0,.035) 1px 2px, rgba(255,255,255,0) 2px 3px),
    linear-gradient(100deg, #bfc1c4 0%, #e1e2e4 22%, #cfd1d3 45%, #b6b8bb 70%, #d5d6d8 100%);
  box-shadow:
    inset 0 0 0 0.45cqw rgba(255,255,255,.55),
    inset 0 -1.2cqw 2.4cqw rgba(0,0,0,.18),
    inset 0 1cqw 1.6cqw rgba(255,255,255,.5),
    0 0.6cqw 0.8cqw rgba(0,0,0,.18),
    0 4cqw 9cqw rgba(60,50,40,.28);
}

/* scuffs on the paint */
.chip {
  position: absolute;
  background: #ecebe6;
  box-shadow: inset 0.2cqw 0.2cqw 0.3cqw rgba(0,0,0,.25);
  pointer-events: none;
}
.chip-a { left: 93.5cqw; top: 1.6cqw; width: 2.4cqw; height: 3.2cqw; clip-path: polygon(10% 0, 100% 12%, 85% 100%, 0 70%); }
.chip-b { left: 2.2cqw; top: 156cqw; width: 2cqw; height: 4cqw; clip-path: polygon(0 0, 100% 25%, 70% 100%, 10% 80%); }
.chip-c { left: 89cqw; top: 172cqw; width: 4cqw; height: 2.2cqw; clip-path: polygon(0 30%, 80% 0, 100% 70%, 20% 100%); }
.chip-d { left: 5cqw; top: 173.5cqw; width: 3cqw; height: 1.6cqw; clip-path: polygon(0 50%, 60% 0, 100% 40%, 50% 100%); }

/* side shutter dial poking out of the right edge */
.side-dial {
  position: absolute;
  right: -3.2cqw;
  top: 108cqw;
  width: 3.8cqw;
  height: 21cqw;
  border-radius: 1.2cqw;
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,.18) 0 0.35cqw, rgba(255,255,255,.4) 0.35cqw 0.9cqw),
    linear-gradient(90deg, #9b9da0, #eceded 45%, #a2a4a7);
  box-shadow: 0.4cqw 0.6cqw 1cqw rgba(0,0,0,.3);
  transition: transform 90ms ease-out;
}
.side-dial:active { transform: translateX(-0.8cqw); }

/* ---------- Screen plate ---------- */
.plate {
  position: absolute;
  left: 2.6cqw;
  top: 2.6cqw;
  width: 76cqw;
  height: 97.4cqw;
  border-radius: 3.4cqw;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, rgba(0,0,0,.03) 1px 2px),
    linear-gradient(135deg, #e4e5e6 0%, #cdcfd1 40%, #c2c4c7 75%, #d3d4d6 100%);
  box-shadow:
    inset 0.35cqw 0.35cqw 0.3cqw rgba(255,255,255,.8),
    inset -0.4cqw -0.5cqw 0.6cqw rgba(0,0,0,.18),
    0.5cqw 0.9cqw 1.4cqw rgba(0,0,0,.2);
}

.bezel {
  position: absolute;
  left: 5cqw;
  top: 4.9cqw;
  width: 66cqw;
  height: calc(64cqw * 4 / 3 + 2cqw);
  padding: 1cqw;
  border-radius: 1.4cqw;
  background: #0b0b0c;
  box-shadow:
    0 0 0 0.35cqw #9fa1a4,
    0 0 0 0.6cqw rgba(255,255,255,.5),
    inset 0 0 0.6cqw rgba(255,255,255,.08);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.5cqw;
  background: #111;
  isolation: isolate;
  cursor: pointer;
}

.view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* rule-of-thirds overlay (like the reference) */
.grid-thirds,
.grid-thirds::before,
.grid-thirds::after { position: absolute; pointer-events: none; }
.grid-thirds { inset: 0; opacity: 0; transition: opacity 160ms ease-out; }
.grid-thirds::before,
.grid-thirds::after { content: ""; border: 0 solid rgba(255,255,255,.5); }
.grid-thirds::before { top: 0; bottom: 0; left: 33.333%; width: 33.333%; border-left-width: 1px; border-right-width: 1px; }
.grid-thirds::after { left: 0; right: 0; top: 33.333%; height: 33.333%; border-top-width: 1px; border-bottom-width: 1px; }

/* pixel cell overlay — shows the grid you picked */
.grid-pixels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease-out;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.28) 1px, transparent 1px);
  background-size: calc(100% / var(--cols, 32)) calc(100% / var(--rows, 43));
}

.screen[data-grid="thirds"] .grid-thirds { opacity: 1; }
.screen.cells .grid-pixels { opacity: 1; transition-duration: 60ms; }
.screen[data-mode="play"] .grid-thirds,
.screen[data-mode="play"] .grid-pixels { opacity: 0; }

/* ---------- On-screen display ---------- */
.osd {
  position: absolute;
  inset: 0;
  padding: 2.6cqw 2.8cqw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  font-size: 2.9cqw;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: 0 0 0.4cqw rgba(0,0,0,.9), 0 0.2cqw 0 rgba(0,0,0,.6);
  pointer-events: none;
}
.osd-top,
.osd-bottom { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; }
.osd-l,
.osd-r { display: flex; align-items: center; gap: 1.4cqw; white-space: nowrap; }

.tag {
  display: inline-grid;
  place-items: center;
  min-width: 4cqw;
  height: 4cqw;
  padding: 0 0.8cqw;
  border: 0.35cqw solid #fff;
  border-radius: 0.6cqw;
  font-size: 2.5cqw;
  box-shadow: 0 0 0.4cqw rgba(0,0,0,.7), inset 0 0 0.4cqw rgba(0,0,0,.5);
}

.battery {
  display: inline-flex;
  gap: 0.35cqw;
  padding: 0.45cqw;
  border: 0.35cqw solid #e9ffe9;
  border-radius: 0.5cqw;
  position: relative;
  box-shadow: 0 0 0.4cqw rgba(0,0,0,.6);
}
.battery::after {
  content: "";
  position: absolute;
  right: -1cqw;
  top: 30%;
  width: 0.6cqw;
  height: 40%;
  background: #e9ffe9;
  border-radius: 0 0.3cqw 0.3cqw 0;
}
.battery i { width: 0.9cqw; height: 1.7cqw; background: #5fe35f; border-radius: 0.15cqw; }

/* gallery note: photos stay on the device */
.osd-note {
  position: absolute;
  top: 8.4cqw;
  left: 50%;
  padding: 0.9cqw 1.8cqw;
  border-radius: 99px;
  background: rgba(255,255,255,.16);
  border: 0.25cqw solid rgba(255,255,255,.4);
  font-size: 2.1cqw;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: #fff;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transform: translate(-50%, -1.2cqw);
  transition: opacity 220ms ease-out, transform 260ms cubic-bezier(.2,.9,.3,1.2);
}
.screen[data-mode="play"] .osd-note {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 120ms;
}

.osd-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 1.6cqw 2.6cqw;
  background: rgba(0,0,0,.62);
  border: 0.35cqw solid rgba(255,255,255,.85);
  border-radius: 1cqw;
  font-size: 3.6cqw;
  text-align: center;
  line-height: 1.3;
  white-space: pre;
  animation: pop 180ms cubic-bezier(.2,.9,.3,1.2);
}
.osd-center.big {
  font-size: 18cqw;
  padding: 0;
  background: none;
  border: 0;
  text-shadow: 0 0 1cqw rgba(0,0,0,.8), 0 0.6cqw 0 rgba(0,0,0,.5);
}

/* grid-size picker bar */
.osd-picker {
  position: absolute;
  left: 2.8cqw;
  right: 2.8cqw;
  bottom: 9cqw;
  padding: 1.8cqw 1.6cqw 1.4cqw;
  background: rgba(0,0,0,.6);
  border: 0.35cqw solid rgba(255,255,255,.85);
  border-radius: 1cqw;
  animation: pop 180ms cubic-bezier(.2,.9,.3,1.2);
}
.osd-picker .title { text-align: center; font-size: 2.6cqw; margin-bottom: 1.6cqw; opacity: .9; }
.osd-picker .row { display: flex; justify-content: space-between; gap: 0.6cqw; }
.osd-picker .opt {
  flex: 1;
  text-align: center;
  font-size: 2.3cqw;
  padding: 1cqw 0;
  border-radius: 0.5cqw;
  opacity: .55;
}
.osd-picker .opt.on { background: #fff; color: #111; opacity: 1; text-shadow: none; }
.osd-picker .tile {
  display: block;
  height: 4.6cqw;
  margin: 0 0.5cqw 0.9cqw;
  border-radius: 0.3cqw;
  background:
    repeating-conic-gradient(#f2f2f2 0 25%, #6d6d6d 0 50%)
    0 0 / calc(var(--cell) * 2) calc(var(--cell) * 2);
  box-shadow: 0 0 0 0.2cqw rgba(255,255,255,.5);
}
.osd-picker .opt.on .tile { box-shadow: 0 0 0 0.3cqw #111; }

@keyframes pop {
  from { opacity: 0; transform: translate(var(--tx, -50%), var(--ty, -50%)) scale(.9); }
}
.osd-picker { --tx: 0; --ty: 0; }

.flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.flash.on { animation: flash 420ms ease-out; }
@keyframes flash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.boot {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  background: #0d0d0e;
  color: #fff;
  transition: opacity 400ms ease-out;
  gap: 1cqw;
}
.boot b {
  font-size: 9cqw;
  letter-spacing: 0.12em;
  background: repeating-linear-gradient(180deg, #ff9cbb 0 1.2cqw, #ffd84a 1.2cqw 2.4cqw, #97cbff 2.4cqw 3.6cqw);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.boot span { font-size: 3cqw; letter-spacing: 0.6em; opacity: .7; }
.boot.off { opacity: 0; pointer-events: none; }

.glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 28%, rgba(255,255,255,0) 29%),
    radial-gradient(120% 60% at 100% 100%, rgba(255,255,255,.05), transparent 60%);
}

/* ---------- Lens module ---------- */
.lens-mod {
  position: absolute;
  left: 81.8cqw;
  top: 57cqw;
  width: 15.6cqw;
  height: 32cqw;
  border-radius: 3cqw;
  background: linear-gradient(135deg, #e6e7e8, #c3c5c8 60%, #d0d1d3);
  box-shadow:
    inset 0.3cqw 0.3cqw 0.3cqw rgba(255,255,255,.85),
    inset -0.3cqw -0.4cqw 0.5cqw rgba(0,0,0,.2),
    0.4cqw 0.8cqw 1.2cqw rgba(0,0,0,.22);
}
.lens {
  position: absolute;
  left: 1.3cqw;
  top: 3.4cqw;
  width: 13cqw;
  height: 13cqw;
  border-radius: 50%;
  background: conic-gradient(from 30deg, #8d8f92, #eeeeee, #9a9c9f, #e2e2e3, #8d8f92);
  box-shadow: 0 0.4cqw 0.8cqw rgba(0,0,0,.35);
  padding: 1.3cqw;
}
.lens-glass {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 32%, rgba(255,255,255,.75) 0 6%, transparent 7%),
    radial-gradient(circle at 62% 66%, rgba(120,150,255,.35) 0 8%, transparent 14%),
    radial-gradient(circle at 50% 50%, #2a2d33 0 22%, #0a0a0c 23% 55%, #1c1d21 56% 70%, #050506 71%);
  box-shadow: inset 0 0 0 0.5cqw #1b1b1d, inset 0 0 1.4cqw rgba(0,0,0,.9);
}
.leds {
  position: absolute;
  left: 0;
  right: 0;
  top: 20.6cqw;
  display: flex;
  justify-content: center;
  gap: 3.4cqw;
}
.leds i {
  width: 3cqw;
  height: 3cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #b9bbbe, #6f7174 70%);
  box-shadow: inset 0 0.2cqw 0.4cqw rgba(0,0,0,.5), 0 0.2cqw 0 rgba(255,255,255,.7);
}
.leds .led.on {
  background: radial-gradient(circle at 40% 35%, #ffd2c9, #ff3b2e 60%);
  box-shadow: 0 0 1.6cqw #ff3b2e, inset 0 0.2cqw 0.3cqw rgba(0,0,0,.3);
}

.brand {
  position: absolute;
  left: 82cqw;
  top: 91.5cqw;
  width: 15.6cqw;
  text-align: center;
  font-size: 2.1cqw;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,.28);
  text-shadow: 0 0.15cqw 0 rgba(255,255,255,.7);
}

/* ---------- Round buttons ---------- */
.btn-wrap {
  position: absolute;
  width: 16cqw;
  height: 16cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #b4b6b9 0 55%, #d7d8da 70%, #eeeeef 100%);
  box-shadow:
    inset 0 0.6cqw 1cqw rgba(0,0,0,.28),
    inset 0 -0.3cqw 0.5cqw rgba(255,255,255,.7),
    0 0.2cqw 0 rgba(255,255,255,.8);
}
.b-view { left: 7.5cqw; top: 103cqw; }
.b-grid { left: 7.5cqw; top: 135.5cqw; }
.b-flip { left: 61cqw; top: 103cqw; }

.round {
  position: absolute;
  inset: 2.8cqw;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(255,255,255,.95) 0 8%, rgba(255,255,255,0) 30%),
    conic-gradient(from 20deg, #9ea0a3, #f1f1f2, #a8aaad, #e6e7e8, #9ea0a3);
  box-shadow:
    0 0.7cqw 0.9cqw rgba(0,0,0,.35),
    inset 0 -0.4cqw 0.6cqw rgba(0,0,0,.25),
    inset 0 0.3cqw 0.3cqw rgba(255,255,255,.8);
  transition: transform 100ms ease-out, box-shadow 100ms ease-out, filter 100ms ease-out;
}
.round:active,
.round.pressed {
  transform: scale(0.94) translateY(0.3cqw);
  box-shadow: 0 0.2cqw 0.3cqw rgba(0,0,0,.35), inset 0 0.4cqw 0.6cqw rgba(0,0,0,.25);
  filter: brightness(.95);
}

.lbl {
  position: absolute;
  top: calc(100% + 0.7cqw);
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.9cqw;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(0,0,0,.55);
  text-shadow: 0 0.15cqw 0 rgba(255,255,255,.7);
  white-space: nowrap;
  pointer-events: none;
}

/* ---------- D-pad dial ---------- */
.dial {
  position: absolute;
  left: 18.5cqw;
  top: 103cqw;
  width: 47cqw;
  height: 47cqw;
}
.dial::before {
  /* flat housing ring */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, #e9eaeb, #c6c8ca 60%, #d9dadc);
  box-shadow:
    inset 0 0.4cqw 0.4cqw rgba(255,255,255,.8),
    inset 0 -0.4cqw 0.6cqw rgba(0,0,0,.15),
    0 0 0 0.3cqw rgba(0,0,0,.06);
}
.ico {
  position: absolute;
  left: 50%;
  width: 5cqw;
  height: 5cqw;
  transform: translateX(-50%);
}
.ico-up { top: 0.8cqw; }
.ico-down { bottom: 0.8cqw; }

.ring {
  position: absolute;
  inset: 7cqw;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0,0,0,0) 0 56%, rgba(0,0,0,.12) 58%, rgba(0,0,0,0) 62%),
    conic-gradient(from 0deg, #f4f4f5, #a5a7aa 12%, #eaeaeb 25%, #9a9c9f 38%, #f3f3f3 50%, #a3a5a8 62%, #ebebec 75%, #999b9e 88%, #f4f4f5);
  box-shadow:
    0 0.9cqw 1.2cqw rgba(0,0,0,.32),
    inset 0 0.3cqw 0.3cqw rgba(255,255,255,.9),
    inset 0 -0.5cqw 0.7cqw rgba(0,0,0,.25);
  transition: transform 110ms ease-out;
  transform: perspective(60cqw);
}
.ring:has(.up:active)    { transform: perspective(60cqw) rotateX(7deg); }
.ring:has(.down:active)  { transform: perspective(60cqw) rotateX(-7deg); }
.ring:has(.left:active)  { transform: perspective(60cqw) rotateY(-7deg); }
.ring:has(.right:active) { transform: perspective(60cqw) rotateY(7deg); }
.ring.t-up    { transform: perspective(60cqw) rotateX(7deg); }
.ring.t-down  { transform: perspective(60cqw) rotateX(-7deg); }
.ring.t-left  { transform: perspective(60cqw) rotateY(-7deg); }
.ring.t-right { transform: perspective(60cqw) rotateY(7deg); }

.pad {
  position: absolute;
  display: grid;
  place-items: center;
  color: #1c1c1d;
  font-size: 3cqw;
  line-height: 1;
}
.pad.up    { left: 22%; top: 0; width: 56%; height: 30%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.pad.down  { left: 22%; bottom: 0; width: 56%; height: 30%; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.pad.left  { left: 0; top: 22%; width: 30%; height: 56%; border-radius: 100% 0 0 100% / 50% 0 0 50%; }
.pad.right { right: 0; top: 22%; width: 30%; height: 56%; border-radius: 0 100% 100% 0 / 0 50% 50% 0; }
.pad.left span  { transform: translateX(-0.6cqw); }
.pad.right span { transform: translateX(0.6cqw); }

.dot {
  position: absolute;
  left: 50%;
  width: 1.2cqw;
  height: 1.2cqw;
  margin-left: -0.6cqw;
  border-radius: 50%;
  background: #4a4b4d;
  box-shadow: 0 0.15cqw 0 rgba(255,255,255,.7);
  pointer-events: none;
}
.dot-t { top: 3.2cqw; }
.dot-b { bottom: 3.2cqw; }

.ok {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17cqw;
  height: 17cqw;
  margin: -8.5cqw 0 0 -8.5cqw;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 32%, rgba(255,255,255,.9) 0 6%, rgba(255,255,255,0) 28%),
    conic-gradient(from 10deg, #a2a4a7, #f6f6f6, #a9abae, #ececec, #9fa1a4, #f2f2f2, #a2a4a7);
  box-shadow:
    0 0 0 0.5cqw rgba(0,0,0,.08),
    0 0.6cqw 0.9cqw rgba(0,0,0,.35),
    inset 0 -0.4cqw 0.6cqw rgba(0,0,0,.2),
    inset 0 0.3cqw 0.3cqw rgba(255,255,255,.9);
  transition: transform 90ms ease-out, box-shadow 90ms ease-out;
  z-index: 2;
}
.ok:active,
.ok.pressed {
  transform: scale(0.93);
  box-shadow: 0 0 0 0.5cqw rgba(0,0,0,.1), 0 0.2cqw 0.3cqw rgba(0,0,0,.35), inset 0 0.5cqw 0.8cqw rgba(0,0,0,.25);
}

/* ---------- Speaker ---------- */
.speaker {
  position: absolute;
  left: 64.5cqw;
  top: 123.5cqw;
  width: 11cqw;
  height: 11cqw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  transform: rotate(-12deg);
}
.speaker i {
  width: 1.9cqw;
  height: 1.9cqw;
  border-radius: 50%;
  background: #1a1a1b;
  box-shadow: 0 0.2cqw 0 rgba(255,255,255,.7), inset 0 0.2cqw 0.3cqw rgba(0,0,0,.8);
}
.speaker i:nth-child(1),
.speaker i:nth-child(9) { visibility: hidden; }

/* ---------- Grip + stickers ---------- */
.grip {
  position: absolute;
  left: 58cqw;
  top: 160cqw;
  width: 30cqw;
  height: 5cqw;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  border-bottom: 0.45cqw solid rgba(0,0,0,.13);
  box-shadow: 0 0.35cqw 0 -0.1cqw rgba(255,255,255,.75);
  pointer-events: none;
}

.sticker {
  position: absolute;
  pointer-events: none;
  filter:
    drop-shadow(0 0.5cqw 0.5cqw rgba(0,0,0,.22))
    drop-shadow(0 0.15cqw 0.1cqw rgba(0,0,0,.18));
}
.s-heart  { left: 8.8cqw;  top: 123.6cqw; width: 11cqw; transform: rotate(-8deg); }
.s-star   { left: 19cqw;   top: 154.5cqw; width: 11cqw; transform: rotate(-10deg); }
.s-cloud  { left: 34cqw;   top: 158cqw;   width: 14cqw; }
.s-flower { left: 62.5cqw; top: 140.5cqw; width: 12cqw; transform: rotate(12deg); }
.s-gem    { left: 84cqw;   top: 112cqw;   width: 9cqw;   transform: rotate(18deg); }
.s-lips   { left: 81cqw;   top: 19cqw;    width: 16.5cqw; transform: rotate(-9deg); }

@media (hover: hover) and (pointer: fine) {
  .round:hover,
  .ok:hover { filter: brightness(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .flash.on { animation-duration: 1ms; }
  .ring, .round, .ok, .stage, .splash, .osd-note { transition: none; }
  .osd-center, .osd-picker { animation: none; }
}
