/* Gesture Playground — MilanIQ Lab. Same palette and type as the studio page. */

:root {
  --ink-0: #05070b;
  --ink-1: #0a0e16;
  --ink-2: #111827;
  --line: rgb(190 205 235 / .14);
  --warm: #f3efe7;
  --dim: rgb(243 239 231 / .66);
  --faint: rgb(243 239 231 / .4);
  --cyan: #83e4f1;
  --blue: #4d8dff;
  --violet: #8b6cff;
  --magenta: #d05bd0;
  --iris: #7165d8;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 5vw, 84px);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink-0); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(80% 50% at 50% 18%, rgb(77 141 255 / .16), transparent 70%),
    var(--ink-0);
  color: var(--warm);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
img, video, svg { display: block; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
::selection { background: rgb(131 228 241 / .35); }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 200;
  background: var(--warm);
  color: var(--ink-0);
  padding: 14px 20px;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px var(--gutter);
  padding-top: max(16px, env(safe-area-inset-top));
}
.brand { font-size: 30px; letter-spacing: -2px; font-weight: 800; color: var(--warm); }
.brand span { font-weight: 400; }
.brand i { display: inline-block; width: 8px; height: 8px; background: var(--iris); border-radius: 50%; margin-left: 4px; }
.header-kicker { margin: 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.lab-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: auto;
  padding: 0 14px;
  font-size: 13px;
  color: rgb(243 239 231 / .74);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--dim);
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .i-play { display: none; }
.icon-btn[aria-pressed="true"] .i-pause { display: none; }
.icon-btn[aria-pressed="true"] .i-play { display: block; }
.icon-btn .lbl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

main { padding: 8px var(--gutter) 48px; }
.stage {
  position: relative;
  min-height: min(62vh, 560px);
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--line);
  background:
    radial-gradient(50% 60% at 50% 42%, rgb(131 228 241 / .08), transparent 70%),
    var(--ink-1);
  touch-action: none;
}
.stage:focus { outline: none; }
.stage:focus-visible { outline: 2px solid var(--cyan); outline-offset: -8px; }

.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  max-width: 920px;
  margin: 0 auto;
}
.choice {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgb(5 7 11 / .55);
  text-align: left;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.choice:disabled { cursor: default; opacity: .72; }
.choice-kicker { font-size: 11px; letter-spacing: .2em; font-weight: 700; color: var(--cyan); }
.choice-name { font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -.04em; font-weight: 700; }
.choice.is-hover,
.choice:focus-visible {
  border-color: rgb(131 228 241 / .7);
  background: rgb(131 228 241 / .08);
}
.choice.is-selected {
  border-color: var(--cyan);
  box-shadow: inset 4px 0 0 var(--cyan);
  background: rgb(131 228 241 / .12);
}

.cursor {
  position: absolute;
  z-index: 4;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: rgb(131 228 241 / .2);
  box-shadow: 0 0 0 8px rgb(131 228 241 / .12);
  pointer-events: none;
}
.cursor.is-pinch {
  background: var(--cyan);
  box-shadow: 0 0 0 14px rgb(131 228 241 / .2);
}

.chip {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  width: min(148px, 32vw);
  margin: 0;
  border: 1px solid rgb(190 205 235 / .22);
  border-radius: 14px;
  overflow: hidden;
  background: #05070b;
  pointer-events: none;
}
.chip video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #000;
  transform: scaleX(-1);
}
.chip figcaption {
  padding: 8px 10px 10px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}

.dock { max-width: 760px; margin: 28px auto 0; }
.eyebrow { font-size: 11px; letter-spacing: .24em; font-weight: 700; color: var(--cyan); }
.gate h1, .hud { font-weight: 700; }
.gate h1 {
  margin-top: 10px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: .95;
  letter-spacing: -.05em;
}
.lede { margin-top: 16px; max-width: 46ch; font-size: clamp(16px, 1.5vw, 20px); color: var(--dim); }
.privacy, .privacy-line {
  margin-top: 18px;
  max-width: 58ch;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgb(5 7 11 / .45);
  color: var(--dim);
  font-size: 15px;
}
.privacy strong { display: block; margin-bottom: 4px; color: var(--warm); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgb(243 239 231 / .28);
  border-radius: 99px;
  font-size: 14px;
}
.btn-primary { background: var(--warm); color: var(--ink-0); border-color: var(--warm); }
.btn[aria-busy="true"] { opacity: .7; }
.status, .hover-status { margin-top: 16px; min-height: 1.5em; color: var(--cyan); }
.hover-status:empty { display: none; }
.status.is-alert { color: #ffb4a8; }
.hints, .signature, .help { margin-top: 14px; color: var(--faint); font-size: 14px; }
.signature a { text-decoration: underline; text-underline-offset: 3px; }
.help { color: var(--dim); font-size: 16px; }
.noscript {
  margin: 24px var(--gutter);
  padding: 16px;
  border: 1px solid var(--line);
}

@media (max-width: 720px) {
  .choices { grid-template-columns: 1fr; }
  .choice { min-height: 96px; }
  .header-kicker { display: none; }
  .icon-btn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (prefers-reduced-motion: reduce) {
  .choice { transition: none; }
  .cursor { box-shadow: none; }
}
