/* Pinwheel's screens for the web (pinwheel-demo.js). The screen is 100cqw wide and 217cqw tall. */
.pw-phone {
  position: relative; width: 100%; max-width: 340px; margin: 0 auto;
  padding: 9px; border-radius: 52px;
  background: #1c1c22; box-shadow: 0 0 0 1.5px #3a3a44, 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 9px #0b0b0f;
}
.pw-phone::before { /* the island */
  content: ""; position: absolute; z-index: 30; top: 20px; left: 50%; width: 27%; height: 23px; margin-left: -13.5%;
  border-radius: 20px; background: #000;
}
.pw-screen {
  position: relative; container-type: inline-size; aspect-ratio: 100 / 217; overflow: hidden;
  border-radius: 44px; background: #0f0f14; color: #fff;
  font: 600 3.4cqw/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; isolation: isolate;
}
.pw-screen svg { width: 100%; height: 100%; display: block; }
.pw-screen img { display: block; max-width: none; }

.pw-bd { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; opacity: 0; }
.pw-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(#0f0f1400 0%, #0f0f1466 38%, #0f0f14d9 100%); }
.pw-status { position: absolute; z-index: 20; top: 4.6cqw; left: 0; right: 0; height: 5cqw; padding: 0 9cqw; display: flex; align-items: center; gap: 1.6cqw; font-size: 3.9cqw; font-weight: 600; }
.pw-status span { margin-right: auto; }
.pw-sig { width: 4.4cqw; height: 2.8cqw; background: linear-gradient(90deg, #fff 18%, transparent 18% 27%, #fff 27% 45%, transparent 45% 54%, #fff 54% 72%, transparent 72% 81%, #fff 81%); clip-path: polygon(0 60%, 18% 60%, 18% 40%, 45% 40%, 45% 20%, 72% 20%, 72% 0, 100% 0, 100% 100%, 0 100%); }
.pw-bat { width: 6.2cqw; height: 3cqw; border-radius: 0.9cqw; background: #fff; }

.pw-top { position: absolute; z-index: 12; top: 16cqw; left: 4cqw; right: 4cqw; height: 10cqw; display: flex; align-items: center; justify-content: space-between; }
.pw-round { width: 9.6cqw; height: 9.6cqw; padding: 2.5cqw; border-radius: 50%; background: rgba(40, 44, 58, 0.72); color: #fff; }
.pw-mark i { display: block; width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(#40A3FF, #30D18C, #FFB52E, #FF5E57, #FF70AB, #A17DFF, #40A3FF); -webkit-mask: radial-gradient(circle, transparent 0 16%, #000 17%); mask: radial-gradient(circle, transparent 0 16%, #000 17%); }
.pw-source { display: inline-flex; align-items: center; gap: 1.8cqw; height: 10cqw; padding: 0 4.4cqw 0 3.6cqw; border-radius: 6cqw; background: #2F8FEA; font-size: 4cqw; font-weight: 700; }
.pw-source svg { width: 4.6cqw; height: 4.6cqw; }
.pw-source b { font-weight: 700; }

.pw-ring { position: absolute; z-index: 3; border-radius: 50%; border: 0.3cqw solid #fff; opacity: 0; }
.pw-beam {
  position: absolute; z-index: 3; width: 320cqw; height: 320cqw; opacity: 0; pointer-events: none;
  -webkit-mask: radial-gradient(circle, transparent 0 3%, #000 34%); mask: radial-gradient(circle, transparent 0 3%, #000 34%);
}

.pw-pod {
  --c: #fff; --lit: 0;
  position: absolute; z-index: 7; left: 0; top: 0; width: 12.6cqw; height: 12.6cqw; padding: 0; border: 0; background: none; color: #fff;
  font: inherit; cursor: pointer; opacity: 0; -webkit-tap-highlight-color: transparent;
}
.pw-halo { position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(circle, var(--c) 0%, transparent 62%); opacity: calc(var(--lit) * 0.85); }
.pw-face {
  position: absolute; inset: 0; padding: 3.4cqw; border-radius: 50%; overflow: hidden;
  background: color-mix(in srgb, var(--c) calc(46% + var(--lit) * 54%), #1a1a22);
  box-shadow: inset 0 0 0 0.35cqw color-mix(in srgb, var(--c) 70%, #fff 0%);
  color: color-mix(in srgb, #fff calc(60% + var(--lit) * 40%), var(--c));
}
.pw-face img { position: absolute; inset: 0.35cqw; width: calc(100% - 0.7cqw); height: calc(100% - 0.7cqw); border-radius: 50%; object-fit: cover; filter: saturate(calc(0.75 + var(--lit) * 0.4)) brightness(calc(0.78 + var(--lit) * 0.3)); }
.pw-name { position: absolute; left: 50%; top: 108%; transform: translateX(-50%); white-space: nowrap; font-size: 2.6cqw; font-weight: 600; color: rgba(255, 255, 255, 0.7); opacity: calc(1 - var(--lit)); }

.pw-card { position: absolute; left: 0; top: 0; width: 78cqw; height: 104cqw; border-radius: 6.8cqw; opacity: 0; will-change: transform, opacity; cursor: grab; touch-action: none; }
.pw-card:active { cursor: grabbing; }
.pw-card::before { content: ""; position: absolute; inset: 4% 3% -5%; border-radius: 9cqw; background: #000; filter: blur(7cqw); opacity: 0.5; z-index: -1; }
.pw-card img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; pointer-events: none; }
.pw-edge { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.6cqw var(--edge, transparent), 0 0 9cqw 1cqw var(--edge, transparent); opacity: var(--edge-on, 0); pointer-events: none; }
.pw-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0.3cqw rgba(255, 255, 255, 0.18); pointer-events: none; }

.pw-readout { position: absolute; z-index: 8; left: 0; top: 0; padding: 1.3cqw 3.6cqw; border-radius: 5cqw; font-size: 3.7cqw; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; text-shadow: 0 0.2cqw 0.6cqw rgba(0, 0, 0, 0.25); }
.pw-tray { position: absolute; z-index: 12; left: 50%; bottom: 10cqw; display: flex; align-items: center; gap: 2.2cqw; height: 10.6cqw; padding: 0 3.4cqw 0 2cqw; border-radius: 6cqw; background: rgba(22, 22, 28, 0.82); box-shadow: inset 0 0 0 0.25cqw rgba(255, 255, 255, 0.09); white-space: nowrap; font-size: 3.5cqw; opacity: 0; }
.pw-tray b { font-weight: 700; }
.pw-tray .pw-mb { color: rgba(255, 255, 255, 0.86); font-weight: 500; }
.pw-traydot { width: 6.8cqw; height: 6.8cqw; padding: 1.5cqw; border-radius: 50%; background: #FF5E57; }
.pw-tray > svg { width: 3.4cqw; height: 3.4cqw; opacity: 0.7; }
.pw-finger { position: absolute; z-index: 40; left: 0; top: 0; width: 10.5cqw; height: 10.5cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.42); box-shadow: 0 0 0 0.5cqw rgba(255, 255, 255, 0.75), 0 1cqw 4cqw rgba(0, 0, 0, 0.35); opacity: 0; pointer-events: none; }

/* sheets: the tray, a locked album, the wheel's sizes */
.pw-sheet { background: #1c1c1f; }
.pw-sheet::after { content: ""; position: absolute; inset: 0; z-index: 14; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.pw-head { position: absolute; z-index: 12; top: 17cqw; left: 4cqw; right: 4cqw; height: 10cqw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 4cqw; }
.pw-head b { font-weight: 600; }
.pw-head > :last-child { justify-self: end; }
.pw-head > :first-child { justify-self: start; }
.pw-pill { display: inline-flex; align-items: center; height: 9.6cqw; padding: 0 4cqw; border-radius: 5cqw; background: rgba(255, 255, 255, 0.09); font-weight: 600; }
.pw-grid { position: absolute; inset: 0; }
.pw-cell { position: absolute; left: 0; top: 0; width: 30.6cqw; height: 30.6cqw; border-radius: 3.4cqw; overflow: hidden; transform-origin: 50% 50%; }
.pw-cell img { width: 100%; height: 100%; object-fit: cover; }
.pw-backdot { position: absolute; top: 2cqw; right: 2cqw; width: 5.4cqw; height: 5.4cqw; padding: 1.1cqw; border-radius: 50%; background: rgba(20, 20, 24, 0.7); }
.pw-foot { position: absolute; left: 4cqw; right: 4cqw; bottom: 9cqw; text-align: center; }
.pw-danger { display: block; height: 13cqw; line-height: 13cqw; border-radius: 4.4cqw; background: #D92E21; font-size: 4.2cqw; font-weight: 700; }
.pw-foot p { margin: 3cqw 6cqw 0; font-size: 2.9cqw; font-weight: 500; line-height: 1.35; color: rgba(255, 255, 255, 0.75); }
.pw-alert { position: absolute; z-index: 16; left: 50%; top: 52%; width: 66cqw; border-radius: 7cqw; background: rgba(52, 52, 58, 0.97); text-align: center; opacity: 0; }
.pw-alert p { margin: 0; padding: 6cqw 5cqw; font-size: 4cqw; font-weight: 600; line-height: 1.3; }
.pw-alert div { display: grid; grid-template-columns: 1fr 1fr; border-top: 0.25cqw solid rgba(255, 255, 255, 0.14); }
.pw-alert span, .pw-alert b { padding: 3.6cqw 0; font-size: 3.9cqw; color: #4DA3FF; font-weight: 500; }
.pw-alert b { border-left: 0.25cqw solid rgba(255, 255, 255, 0.14); font-weight: 700; color: #FF6259; }
.pw-done { position: absolute; z-index: 13; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqw; opacity: 0; pointer-events: none; }
.pw-tick { width: 22cqw; height: 22cqw; padding: 5.5cqw; border-radius: 50%; background: #30D18C; color: #06281a; }
.pw-done b { font-size: 7.4cqw; font-weight: 800; letter-spacing: -0.02em; }
.pw-done p { margin: 0; font-size: 3.4cqw; font-weight: 500; color: rgba(255, 255, 255, 0.7); }

.pw-album { position: absolute; z-index: 18; inset: 0; background: #1c1c1f; opacity: 0; pointer-events: none; }
.pw-gate { position: absolute; left: 50%; top: 46%; width: 24cqw; color: #40A3FF; text-align: center; }
.pw-gate svg { width: 24cqw; height: 24cqw; stroke-width: 1.5; }
.pw-gate span { display: block; margin-top: 2cqw; font-size: 3.6cqw; color: rgba(255, 255, 255, 0.8); }
.pw-grid3 { position: absolute; top: 31cqw; left: 2.9cqw; right: 2.9cqw; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2cqw; }
.pw-grid3 img { width: 100%; aspect-ratio: 1; border-radius: 3.4cqw; object-fit: cover; opacity: 0; }

.pw-sizes .pw-pod { cursor: default; width: 13.4cqw; height: 13.4cqw; }
.pw-sizes .pw-name { opacity: 1; color: rgba(255, 255, 255, 0.86); }
.pw-sizes .pw-halo { opacity: 0.22; }
.pw-hub { position: absolute; left: 50%; top: 100cqw; width: 22cqw; height: 22cqw; }
.pw-hub i { display: block; width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(#40A3FF 0 12.5%, #30D18C 0 25%, #9ED63D 0 37.5%, #FFB52E 0 50%, #FF5E57 0 62.5%, #FF70AB 0 75%, #A17DFF 0 87.5%, #21C7CC 0); -webkit-mask: radial-gradient(circle, #000 0 9%, transparent 10% 19%, #000 20% 68%, transparent 69%); mask: radial-gradient(circle, #000 0 9%, transparent 10% 19%, #000 20% 68%, transparent 69%); opacity: 0.9; }
.pw-caption { position: absolute; left: 8cqw; top: 154cqw; font-size: 3.6cqw; font-weight: 700; }
.pw-segments { position: absolute; left: 8cqw; right: 8cqw; top: 162cqw; height: 11cqw; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; border-radius: 5.5cqw; background: rgba(255, 255, 255, 0.08); text-align: center; font-size: 3.8cqw; }
.pw-segments i { position: absolute; left: 0; top: 0; width: 33.333%; height: 100%; border-radius: 5.5cqw; background: rgba(255, 255, 255, 0.22); }
.pw-segments span { position: relative; }
.pw-segments em { margin-left: 1.4cqw; padding: 0.3cqw 1.6cqw; border-radius: 2cqw; background: #2F8FEA; font-style: normal; font-size: 2.6cqw; font-weight: 700; vertical-align: 0.2cqw; }
