.context-nudge {
  position: fixed;
  z-index: 2100;
  top: 0;
  left: 0;
  box-sizing: border-box;
  inline-size: max-content;
  max-inline-size: min(32rem, calc(100vw - 2rem));
  padding: .75rem 1.15rem;
  border: 1px solid #ad6888;
  border-radius: 1rem;
  background: #241b2c;
  color: #fff3f9;
  box-shadow: 0 .45rem 1.5rem #08040b60;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: break-word;
  pointer-events: none;
  opacity: 0;
  transition: opacity .16s ease;
}

.context-nudge.is-visible {
  opacity: 1;
}

html[data-theme="light"] .context-nudge {
  border-color: #ac6381;
  background: #fff4fa;
  color: #41263c;
  box-shadow: 0 .45rem 1.5rem #41263c26;
}

@media (prefers-reduced-motion: reduce) {
  .context-nudge { transition: none; }
}

.context-nudge-counter {
  display: block;
  margin-top: .3rem;
  color: #ffb6d3;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
}

html[data-theme="light"] .context-nudge-counter { color: #8b3d65; }

.context-lock-page {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 1.25rem;
  background: #0a0e1e;
  color: #fff4fa;
  font-family: "DM Sans", system-ui, sans-serif;
}

.context-lock-page #georgia-ambient .georgia-landmark {
  bottom: 4vh;
  height: 58vh;
}

.context-lock-card {
  position: relative;
  z-index: 1;
  align-self: start;
  box-sizing: border-box;
  width: min(100%, 33rem);
  margin-block-start: clamp(1rem, 9vh, 6rem);
  padding: clamp(1.5rem, 6vw, 3.1rem);
  border: 1px solid #eea8cd44;
  border-radius: clamp(1.25rem, 4vw, 2rem);
  background: linear-gradient(150deg, #21172bf2, #101427f0);
  box-shadow: 0 1.4rem 5rem #02030d9c;
  text-align: center;
}

.context-lock-brand {
  color: #ff9cc5;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.context-lock-card h1 {
  margin: .6rem 0 .85rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.1;
  text-wrap: balance;
}

.context-lock-card p {
  margin: 0 auto;
  color: #e0d5e3;
  font-size: clamp(.9rem, 2vw, 1rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.context-lock-clock { margin: 1.65rem auto 0; }

#pause-timer-label {
  color: #f5abc8;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#pause-time {
  margin: .08rem 0 .65rem;
  font-size: clamp(2.8rem, 10vw, 4.6rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: 1;
}

#pause-progress {
  display: block;
  width: min(100%, 14rem);
  height: .35rem;
  margin: 0 auto;
  accent-color: #f593bd;
  color: #f593bd;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background: #32283f;
}

#pause-progress::-webkit-progress-bar { background: #32283f; }
#pause-progress::-webkit-progress-value { background: linear-gradient(90deg, #b876b1, #f593bd); }
#pause-progress::-moz-progress-bar { background: linear-gradient(90deg, #b876b1, #f593bd); }

#pause-attempts {
  margin-top: .9rem;
  color: #d4bccf;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

#pause-reset {
  margin: 1rem auto 0;
  padding: .6rem 1rem;
  border: 1px solid #f593bd88;
  border-radius: 99px;
  background: #45263e;
  color: #fff4fa;
  font: inherit;
  font-size: .83rem;
  cursor: pointer;
}

#pause-reset:focus-visible { outline: 2px solid #ffb6d3; outline-offset: 3px; }

@media (max-width: 720px) {
  .context-lock-page #georgia-ambient .georgia-landmark {
    bottom: 0;
    height: 36vh;
  }
}

@media (max-height: 620px) {
  .context-lock-card { margin-block-start: 0; }
}
