/* One material, one rhythm for every contextual unlock. */
.pk-unlock-back {
  --unlock-ink: #163047;
  --unlock-muted: #4b6478;
  --unlock-blue: #5956e9;
  --unlock-focus: #114fe8;
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
  background: rgb(36 64 85 / 20%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  backdrop-filter: blur(10px) saturate(115%);
  color: var(--unlock-ink);
  font-family: var(--pk-font, "Onest", "Segoe UI", sans-serif);
  font-size: 14px;
  line-height: 1.5;
  color-scheme: light;
}
.pk-unlock-back *, .pk-unlock-back *::before, .pk-unlock-back *::after { box-sizing: border-box; }
.pk-unlock-back [hidden] { display: none !important; }
.pk-unlock-panel {
  width: min(440px, 100%);
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  margin: auto;
  border-radius: 20px;
  background: linear-gradient(145deg, rgb(255 255 255 / 90%), rgb(245 250 255 / 90%));
  -webkit-backdrop-filter: blur(32px) saturate(145%);
  backdrop-filter: blur(32px) saturate(145%);
  box-shadow: 0 28px 90px -20px rgb(16 43 63 / 35%), 0 7px 22px -8px rgb(22 48 71 / 16%), inset 0 1px 0 #fff;
  scrollbar-width: thin;
  scrollbar-color: #afc6d5 transparent;
  opacity: 1;
  transform: none;
  transform-origin: center;
  /* Protected focus should be readable on the first frame, even while the
     wallpaper compositor is busy. Button feedback carries the motion. */
  transition: none;
}
.pk-unlock-chrome { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 0 20px; min-height: 44px; }
.pk-unlock-app { display: flex; align-items: center; gap: 7px; color: var(--unlock-muted); font-size: 12px; font-weight: 600; }
.pk-unlock-app svg { width: 14px; height: 14px; }
.pk-unlock-back button { font: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; }
.pk-unlock-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 50%; background: transparent; color: var(--unlock-muted); }
.pk-unlock-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.pk-unlock-close:hover { background: rgb(22 48 71 / 7%); color: var(--unlock-ink); }
.pk-unlock-content { padding: 10px 36px 25px; text-align: center; }
.pk-unlock-object { position: relative; width: 78px; height: 78px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 21px; color: #2963d9; background: linear-gradient(145deg, #effaff, #cbdfff); box-shadow: inset 0 1px 1px white, 0 9px 18px -10px #77a4cf; }
.pk-unlock-object > svg { width: 44px; height: 44px; }
.pk-unlock-object[data-kind="game"] { background: linear-gradient(145deg, #ffe9d7, #ffc5b0); color: #a64335; }
.pk-unlock-object[data-kind="archive"] { background: linear-gradient(145deg, #fff4cf, #f1d890); color: #826022; }
.pk-unlock-object[data-kind="update"] { background: linear-gradient(145deg, #e2f9fa, #b4dfe9); color: #286475; }
.pk-unlock-badge { position: absolute; right: -5px; bottom: -4px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 10px; color: #fff; background: var(--unlock-ink); box-shadow: 0 3px 8px rgb(22 48 71 / 18%), 0 0 0 3px #f3f8fc; }
.pk-unlock-badge svg { width: 17px; height: 17px; }
.pk-unlock-filename { color: var(--unlock-muted); margin: 0 auto 7px; max-width: 100%; overflow-wrap: anywhere; font-size: 12px; font-weight: 500; }
.pk-unlock-content h2 { margin: 0 0 10px; color: var(--unlock-ink); font-size: clamp(24px, 5.8vw, 29px); font-weight: 750; line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; }
.pk-unlock-description { max-width: 31ch; margin: 0 auto 25px; color: var(--unlock-muted); font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.pk-unlock-form { margin: 0; text-align: left; }
.pk-unlock-form > label { display: block; margin: 0 0 8px; color: var(--unlock-ink); font-size: 12px; font-weight: 650; }
.pk-unlock-form input[type="email"] { width: 100%; height: 49px; margin: 0; padding: 0 14px; border: 1px solid #b8ccd9; border-radius: 11px; color: var(--unlock-ink); background: rgb(255 255 255 / 83%); box-shadow: inset 0 2px 4px rgb(22 48 71 / 3%); font: inherit; font-size: 16px; outline: none; caret-color: var(--unlock-blue); transition: border-color 150ms, box-shadow 150ms; }
.pk-unlock-form input[type="email"]::placeholder { color: #5d7283; opacity: 1; }
.pk-unlock-form input[type="email"]:focus { border-color: var(--unlock-blue); box-shadow: 0 0 0 3px rgb(24 86 255 / 12%); }
.pk-unlock-form input[aria-invalid="true"] { border-color: #b5323d; }
.pk-unlock-form .pk-unlock-permission { display: flex; gap: 10px; align-items: start; margin: 16px 0 4px; color: var(--unlock-muted); font-size: 11px; font-weight: 400; line-height: 1.5; cursor: pointer; }
.pk-unlock-permission input { width: 17px; height: 17px; flex: 0 0 17px; margin: 1px 0 0; accent-color: var(--unlock-blue); }
.pk-unlock-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.pk-unlock-error { color: #a82634; margin: 10px 0; font-size: 12px; line-height: 1.45; }
.pk-unlock-error:empty { margin: 15px 0 0; }
.pk-unlock-primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 11px; color: #fff; background: var(--unlock-blue); box-shadow: 0 5px 13px -7px rgb(24 86 255 / 65%), inset 0 1px 0 rgb(255 255 255 / 20%); font-size: 14px !important; font-weight: 650 !important; line-height: 1.4; transition: background 150ms, transform 150ms, box-shadow 150ms; }
.pk-unlock-primary svg { width: 17px; height: 17px; flex: 0 0 auto; }
.pk-unlock-primary:hover { background: var(--pk-accent-deep, #423ef3); box-shadow: 0 7px 15px -7px rgb(89 86 233 / 65%); }
.pk-unlock-primary:active { transform: scale(.97); transition-duration: 0ms; }
.pk-unlock-primary:disabled { background: var(--unlock-blue); opacity: .7; cursor: progress; }
.pk-unlock-primary.is-busy svg { animation: pk-unlock-pulse 900ms ease-in-out infinite alternate; }
.pk-unlock-later { width: 100%; min-height: 44px; margin: 5px 0 0; border: 0; border-radius: 10px; color: var(--unlock-muted); background: transparent; font-size: 13px !important; }
.pk-unlock-later:hover { color: var(--unlock-ink); background: rgb(22 48 71 / 5%); }
.pk-unlock-foot { margin: 15px 0 0; color: #576e7e; font-size: 10px; line-height: 1.45; }
.pk-unlock-foot a { color: var(--unlock-muted); text-decoration: underline; text-underline-offset: 3px; }
.pk-unlock-status { margin: -9px 0 22px; color: var(--unlock-muted); font-size: 13px; line-height: 1.5; }
.pk-unlock-back :focus-visible { outline: 2px solid var(--unlock-focus); outline-offset: 3px; }
.pk-unlock-back ::selection { background: #d5e6ff; color: #163047; }
.pk-unlock-back.is-unlocked .pk-unlock-badge { background: #187358; }
.pk-unlock-later > .pk-fa, .pk-unlock-close > .pk-fa { display: none !important; }
.pk-unlock-later::before, .pk-unlock-later::after, .pk-unlock-close::before, .pk-unlock-close::after { content: none !important; }
@keyframes pk-unlock-pulse { from { opacity: .4; } to { opacity: 1; } }
@media (max-width: 480px) {
  .pk-unlock-content { padding: 8px 23px 23px; }
  .pk-unlock-panel { border-radius: 20px; }
  .pk-unlock-close { width: 44px; height: 44px; }
  .pk-unlock-chrome { padding-top: 3px; }
}
@media (max-height: 560px) {
  .pk-unlock-back { padding-top: 8px; padding-bottom: 8px; }
  .pk-unlock-content { padding-top: 0; padding-bottom: 16px; }
  .pk-unlock-object { width: 56px; height: 56px; margin-bottom: 12px; border-radius: 16px; }
  .pk-unlock-object > svg { width: 33px; height: 33px; }
  .pk-unlock-description { margin-bottom: 18px; }
  .pk-unlock-content h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .pk-unlock-panel, .pk-unlock-primary.is-busy svg { animation: none; }
  .pk-unlock-back * { transition: none !important; }
}
@media (prefers-contrast: more) {
  .pk-unlock-panel { background: #fff; border: 1px solid var(--unlock-ink); }
  .pk-unlock-form input[type="email"] { border-color: #466174; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .pk-unlock-back { background: rgb(22 48 71 / 36%); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .pk-unlock-panel { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) { .pk-unlock-panel { transform: none; } }
html[data-pk-input="keyboard"] .pk-unlock-back * { animation: none !important; transition: none !important; }
html[data-pk-input="keyboard"] .pk-unlock-panel { transform: none; }

/* Feature heading, with punctuation and numerals safely falling back to Museo. */
.pk-unlock-content h2 { font-family:var(--pk-font-display); font-weight:400; font-synthesis:none; font-size:clamp(20px,4.8vw,24px); letter-spacing:0; line-height:1.25; }

/* Shared owner-approved glass and flat CTA treatment. */
.pk-unlock-panel { border:1px solid rgba(255,255,255,.96); background:rgba(250,253,255,.9); box-shadow:inset 0 2px 1px #fff,inset 0 -1px 1px rgba(255,255,255,.6),0 28px 70px -20px rgba(22,48,71,.35); }
.pk-unlock-primary { border-radius:999px; background-image:none; letter-spacing:normal !important; gap:6px; }
.pk-unlock-filename { color:#5956e9; font-family:var(--pk-font-subtitle); background:none; border:0; box-shadow:none; }
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) { .pk-unlock-panel { background:#fff; } }
