:root { color-scheme: light; font-family: system-ui,sans-serif; background:#eae8ef; color:#242138; }
* { box-sizing:border-box; }
body { margin:0; min-height:100svh; }
.stage { min-height:100svh; display:grid; justify-items:center; align-content:center; gap:15px; padding:18px 12px; background:radial-gradient(ellipse at 50% 23%,#f7f5fb,#e1deea); }
.phone {
  position:relative; width:min(415px,calc(100vw - 28px),calc((100svh - 88px) * .476));
  aspect-ratio:446 / 945; padding:8px; border:1px solid #676572; border-radius:13% / 6%;
  background:linear-gradient(145deg,#9a98a3,#34333c 18%,#15151b 46%,#666471 84%,#92909c);
  box-shadow:inset 0 0 0 2px #ffffff26,inset 0 0 0 5px #202027,0 28px 52px -20px #28233b83;
}
.phone::before,.phone::after { content:""; position:absolute; width:3px; border-radius:2px; background:#51505c; top:24%; }
.phone::before { left:-3px; height:7%; box-shadow:0 34px #51505c; }
.phone::after { right:-3px; height:10%; top:27%; }
.screen { position:relative; height:100%; overflow:hidden; border-radius:11.6% / 5.45%; background:#1c2737; box-shadow:0 0 0 2px #0e0e14; container-type:inline-size; }
.map,.veil,.surface,.card,.ticket,.status,.home,.details,.close { position:absolute; }
.map,.status { inset:0; width:100%; height:100%; }
.map { object-fit:fill; }
.veil { inset:0; background:#1c2737; opacity:0; }
.surface { left:4.56%; top:62.12%; width:90.87%; height:27.32%; background:#fefefe; border-radius:3.37cqi; opacity:0; }
.card { left:4.42%; top:62.05%; width:91.16%; height:27.62%; pointer-events:none; opacity:0; }
.ticket { left:4.28%; top:12.82%; width:91.44%; height:70.34%; opacity:0; }
.ticket img { display:block; width:100%; height:100%; }
.seconds { position:absolute; top:31.9%; left:57.5%; width:10.5%; height:4.6%; display:grid; place-items:center; color:#344054; font-size:7.2cqi; font-weight:600; letter-spacing:-.045em; font-variant-numeric:tabular-nums; background:#fefefe; opacity:0; }
.status { clip-path:polygon(0 0,100% 0,100% 4.3%,0 4.3%); opacity:0; pointer-events:none; }
.home { pointer-events:none; left:34.4%; right:34.4%; bottom:.83%; height:.56%; border-radius:99px; background:#fff; opacity:0; }
.details,.close { padding:0; background:transparent; border:0; color:transparent; cursor:pointer; }
.details { left:8.3%; right:8.3%; top:82.65%; height:5.1%; border-radius:1.8cqi; }
.close { left:4.56%; top:7.6%; width:7.5%; aspect-ratio:1; border-radius:50%; background:#fff; color:#182334; font:500 6cqi/1 system-ui; }
.close::before { content:"×"; }
button[hidden] { display:none; }
button:focus-visible { outline:2px solid #8e64eb; outline-offset:3px; }
.playback { background:#f7f5fc; color:#43365a; border:1px solid #a29bb0; padding:6px 17px; min-width:75px; border-radius:100px; font:600 12px system-ui; cursor:pointer; }

@font-face { font-family:Space; src:url(space-grotesk.woff2) format("woff2"); font-weight:500; font-display:swap; }
.screen,.veil { background:#1d2939; }
.surface,.seconds { background:#fff; }
.dial { position:absolute; left:16.31%; top:16.41%; width:67.67%; height:auto; pointer-events:none; }
.seconds { top:31.58%; left:55.84%; width:10.6%; height:4.92%; color:#344054; font:500 7.44cqi/1 Space,sans-serif; letter-spacing:0; opacity:1; justify-items:start; }
.details:hover { background:#7f56d91c; }
.details::after { content:""; position:absolute; inset:0; border-radius:inherit; background:#7f56d9; opacity:var(--press,0); }
.seconds { overflow:hidden; }
.seconds span { grid-area:1 / 1; }
.location-pulse {
  position:absolute; left:51.65%; top:50.86%; width:15%; aspect-ratio:1;
  border:1.4px solid #7f56d9; border-radius:50%; pointer-events:none;
  transform:translate(-50%,-50%) scale(var(--pulse-scale,1)); opacity:var(--pulse-opacity,0);
}
