/* Calm Home Screen: the live TV's PIN question, parents' zone and Theme screen (tv-parents.js).
   Sizes are the app's dp on the 960 x 540 stage: half the Kotlin's mu. Sources: KidHomeGrownUps.kt (PIN),
   KidHomeGrownUpsArea.kt (zone), KidHomeLookPicker.kt (Theme). tv-material defaults where the app uses its
   Surface: focus scale in 300 ms, out 500 ms, cubic-bezier(0, 0, .2, 1), pressed 1.04. */
.pz-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.pz-pin, .pz-zone, .pz-theme { font-family: "Onest", system-ui, sans-serif; color: #fff; }
.pz-pin svg, .pz-zone svg, .pz-theme svg { display: block; }

/* ---- 1. the PIN question ---- */
#tv[data-screen="pin"] .ctv__still, #tv[data-screen="pin"] .ctv__moving, #tv[data-screen="pin"] .ctv__veil { filter: grayscale(1); }
.ctv__still, .ctv__moving, .ctv__veil { transition: filter 0.15s linear; }
.pz-ghost { position: absolute; inset: 0; filter: grayscale(1); pointer-events: none; }
.pz-ghosted { position: absolute; inset: 0; }
.pz-ghosted .tvc, .pz-ghosted .h-gear, .pz-ghosted .h-track, .pz-ghosted .h-headline span { transition: none; }
.pz-scrim { position: absolute; inset: 0; background: rgba(9, 10, 28, 0.78); }
.pz-pcard { position: absolute; left: 187px; top: 108px; width: 586px; height: 310px; box-sizing: border-box; padding: 12px 36px; display: flex; align-items: center; gap: 36px; border-radius: 22px; background: #17193c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.pz-words { flex: none; width: 250px; display: flex; flex-direction: column; gap: 11px; }
.pz-badge { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 192, 103, 0.14); color: #ffc067; display: grid; place-items: center; }
.pz-badge svg { width: 22px; height: 22px; }
.pz-ptitle { font-size: 36px; font-weight: 800; line-height: 1.275; letter-spacing: -0.02em; }
.pz-pbody { font-size: 16px; font-weight: 500; line-height: 1.3; color: rgba(255, 255, 255, 0.78); }
.pz-dots { display: flex; gap: 14px; padding: 5px 0; }
.pz-dots i { display: block; box-sizing: border-box; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.32); }
.pz-dots i.is-next { border-color: rgba(255, 255, 255, 0.7); }
.pz-dots i.is-full { border-color: #ffc067; background: #ffc067; }
.pz-sblock { display: flex; flex-direction: column; gap: 5px; }
.pz-status { font-size: 13px; font-weight: 600; line-height: 1.3; color: #ffc067; opacity: 0; transition: opacity 0.18s linear; }
.pz-status.is-on { opacity: 1; }
.pz-hint { height: 46.8px; } /* the app's "Forgot it?" line keeps its place; it tells a parent to remove the app, which a demo must not */
.pz-keys { flex: none; display: grid; grid-template-columns: repeat(3, 68px); grid-auto-rows: 40px; gap: 12px; }
.ctv .pz-key { position: relative; padding: 0; border: 0; border-radius: 8px; background: #25274a; color: #fff; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; display: grid; place-items: center; cursor: pointer; transition: transform 0.16s cubic-bezier(0.4, 0, 0.2, 1); }
.pz-key--0 { grid-column: span 2; }
.ctv .pz-key svg { width: 18px; height: 18px; }
.ctv .pz-key.is-focus { transform: scale(1.1); }
.ctv .pz-key.is-focus::after { content: ""; position: absolute; inset: 0; border: 3px solid #938f99; border-radius: 8px; pointer-events: none; }
.pz-under { position: absolute; left: 0; right: 0; top: 442px; text-align: center; font-size: 12px; font-weight: 500; line-height: 1.275; color: rgba(255, 255, 255, 0.62); }

/* ---- 2. the parents' zone ---- */
.pz-line { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #ffc067; }
.pz-top { position: absolute; left: 36px; right: 36px; top: 20px; height: 44px; display: flex; align-items: center; justify-content: space-between; }
.pz-pill { height: 32px; box-sizing: border-box; padding: 0 14px 0 5px; border-radius: 16px; background: #ffc067; color: #1e1a3a; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; line-height: 1.275; white-space: nowrap; }
.pz-pdot { width: 22px; height: 22px; border-radius: 50%; background: #1e1a3a; color: #ffc067; display: grid; place-items: center; }
.pz-pdot svg { width: 14px; height: 14px; }
.pz-tright { display: flex; align-items: center; gap: 18px; }
.pz-clock { font-size: 16px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.9); }
.ctv .pz-back { position: relative; height: 40px; box-sizing: border-box; padding: 0 18px 0 13px; border: 0; border-radius: 20px; background: rgba(255, 255, 255, 0.1); color: #fff; display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; line-height: 1.275; white-space: nowrap; cursor: pointer; transition: transform 0.5s cubic-bezier(0, 0, 0.2, 1); }
.ctv .pz-back svg { width: 18px; height: 18px; flex: none; }
.ctv .pz-back::after { content: ""; position: absolute; inset: -0.5px; border: 1px solid rgba(255, 192, 103, 0.4); border-radius: 20.5px; pointer-events: none; }
.ctv .pz-back.is-focus, .ctv .pz-back.is-press { background: #ffc067; color: #1e1a3a; }
.ctv .pz-back.is-focus { transform: scale(1.1); transition-duration: 0.3s; z-index: 1; }
.ctv .pz-back.is-focus::after { inset: -0.75px; border: 1.5px solid #fff; border-radius: 20.75px; }
.ctv .pz-back.is-press { transform: scale(1.04); transition-duration: 0.12s; }

.pz-hl { position: absolute; left: 36px; right: 36px; top: 82px; opacity: 0; transition: opacity 0.18s linear; pointer-events: none; }
.pz-hl.is-on { opacity: 1; }
.pz-ht { font-size: 36px; font-weight: 600; line-height: 1.275; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Compose's box is the font's full line when lineHeight 1.1 is shorter */
.pz-hb { margin-top: 7px; font-size: 14px; font-weight: 500; line-height: 1.2; color: rgba(255, 255, 255, 0.74); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }

.pz-rh { position: absolute; left: 36px; font-size: 13px; font-weight: 600; line-height: 16px; color: #ffc067; white-space: nowrap; }
.pz-rh1 { top: 182px; }
.pz-rh2 { top: 310.5px; }
.pz-row { position: absolute; left: 0; width: 960px; height: 129.5px; overflow: hidden; }
.pz-row1 { top: 187px; }
.pz-row2 { top: 315.5px; }
.pz-track { position: absolute; left: 0; top: 0; display: flex; gap: 14px; padding: 18px 36px; width: max-content; transition: left 0.35s cubic-bezier(0.2, 0.9, 0.25, 1); }

/* A card: 332 x 187 mu. The face carries the fill, ring, glow and scale. */
.ctv .pz-card { position: relative; flex: none; display: block; width: 166px; height: 93.5px; padding: 0; border: 0; background: none; color: inherit; text-align: left; text-decoration: none; cursor: pointer; font: inherit; }
.pz-face { position: absolute; inset: 0; box-sizing: border-box; padding: 10px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 4px rgba(0, 0, 0, 0.3); display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.5s cubic-bezier(0, 0, 0.2, 1); }
.pz-face::after { content: ""; position: absolute; inset: -0.5px; border: 1px solid rgba(255, 192, 103, 0.4); border-radius: 6.5px; pointer-events: none; }
.pz-ico { display: block; width: 30px; height: 30px; }
.pz-chip { width: 30px; height: 30px; border-radius: 50%; background: #ffc067; color: #1a1206; display: grid; place-items: center; }
.pz-chip svg { width: 16px; height: 16px; }
.pz-logo, .pz-logo svg { display: block; width: 30px; height: 30px; }
.pz-glyph, .pz-glyph svg { display: block; width: 30px; height: 30px; }
.pz-glyph svg { fill: none; stroke: rgba(255, 255, 255, 0.92); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pz-w { display: block; }
.pz-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.275; }
.pz-card.is-two .pz-t { line-height: 1.15; padding: 0.0625em 0; }
.pz-w.has-note .pz-t { -webkit-line-clamp: 1; }
.pz-n { display: block; font-size: 11px; font-weight: 500; line-height: 1.275; color: rgba(255, 255, 255, 0.74); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctv .pz-card.is-focus .pz-face { z-index: 1; background: rgba(255, 255, 255, 0.22); box-shadow: 0 0 11px rgba(0, 0, 0, 0.6); transform: scale(1.1); transition-duration: 0.3s; }
.ctv .pz-card.is-focus .pz-face::after { inset: -0.75px; border: 1.5px solid #fff; border-radius: 6.75px; }
.ctv .pz-card.is-press .pz-face { background: rgba(255, 255, 255, 0.22); transform: scale(1.04); transition-duration: 0.12s; }

.pz-foot { position: absolute; left: 36px; right: 36px; top: 480px; display: flex; align-items: center; gap: 24px; font-size: 12px; font-weight: 500; line-height: 1.3; }
.pz-fl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, 0.72); white-space: nowrap; }
.pz-fl svg { flex: none; width: 14px; height: 14px; }
.pz-fl span { overflow: hidden; text-overflow: ellipsis; }
.pz-fr { flex: none; display: flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, 0.56); white-space: nowrap; }
.pz-fr svg { width: 14px; height: 14px; }

/* ---- 3. the Theme screen ---- */
.pz-tscrim { position: absolute; inset: 0; background: #000; opacity: 0.2; transition: opacity 0.2s linear; }
.pz-tcol { position: absolute; left: 61px; right: 61px; top: 84px; }
.pz-ttitle { font-size: 28px; font-weight: 600; line-height: 1.275; } /* the font's full line: Compose won't shorten a line below it */
.pz-tbody { margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.3; color: rgba(255, 255, 255, 0.76); }
.pz-tiles { margin-top: 36px; display: flex; gap: 14px; }
.pz-look { width: 128px; }
.ctv .pz-tile { position: relative; display: block; width: 128px; height: 72px; padding: 0; border: 0; border-radius: 8px; background: #000; cursor: pointer; transition: transform 0.5s cubic-bezier(0, 0, 0.2, 1); }
.pz-clip { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; }
.pz-clip canvas { display: block; width: 128px; height: 72px; }
.ctv .pz-tile::after { content: ""; position: absolute; inset: -0.5px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8.5px; pointer-events: none; }
.ctv .pz-tile.is-chosen::after { border-color: rgba(255, 255, 255, 0.5); }
.ctv .pz-tile.is-focus { z-index: 1; transform: scale(1.08); box-shadow: 0 0 11px rgba(0, 0, 0, 0.6); transition-duration: 0.3s; }
.ctv .pz-tile.is-focus::after { inset: -1px; border: 2px solid #fff; border-radius: 9px; }
.ctv .pz-tile.is-press { transform: scale(1.04); transition-duration: 0.12s; }
.pz-check { position: absolute; top: 9px; right: 9px; width: 20px; height: 20px; border-radius: 50%; background: #ffc067; color: #2a1a05; display: none; place-items: center; }
.ctv .pz-tile.is-chosen .pz-check { display: grid; }
.pz-check svg { width: 14px; height: 14px; }
.pz-lname { margin-top: 12px; font-size: 16px; font-weight: 600; line-height: 1.275; white-space: nowrap; }
.pz-lchosen { margin-top: 3px; height: 15.3px; font-size: 12px; font-weight: 500; line-height: 1.275; color: #ffc067; visibility: hidden; }
.pz-look.is-chosen .pz-lchosen { visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  .pz-face, .pz-back, .pz-key, .pz-tile, .pz-track, .pz-hl, .pz-status, .pz-tscrim, .ctv__still, .ctv__moving, .ctv__veil { transition-duration: 0.01s !important; }
}
