:root {
  --bg: #e9eaee;
  --screen: #1b1d24;
  --ink: #16171c;
  --soft: rgba(22, 23, 28, 0.56);
  --line: rgba(22, 23, 28, 0.1);
  --accent: #ff6a2b;
  --radius: 30px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 8px 14px;
}

/* the screen: a dark lock screen behind, the notification on top */
.ph { position: relative; width: min(300px, 100%); height: min(384px, 92vh); border-radius: var(--radius); background: var(--screen); box-shadow: 0 0 0 1px rgba(22, 23, 28, 0.2), 0 30px 60px -30px rgba(22, 23, 28, 0.6); overflow: hidden; isolation: isolate; }
.ph__home { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 30%; color: #ffffff; background: radial-gradient(120% 80% at 50% 0%, #3a3f52, #1b1d24 70%); transform-origin: 50% 40%; }
.ph__clock { font-size: clamp(44px, 15vh, 60px); line-height: 1; font-weight: 400; letter-spacing: -0.04em; font-variation-settings: "wght" 560, "wdth" 92; }
.ph__day { margin-top: 6px; margin-bottom: auto; font-size: 13px; font-weight: 560; opacity: 0.7; }
.ph__line { width: 70%; height: 34px; margin-bottom: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); }
.ph__line:last-child { margin-bottom: 22px; width: 56%; }

/* the notification and the page are the same element: it grows from a banner to the whole screen */
.nt { position: absolute; left: 10px; right: 10px; top: 10px; height: 62px; border-radius: 20px; background: #ffffff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); overflow: hidden; }
.nt__hit { position: absolute; inset: 0; z-index: 2; border: 0; background: none; cursor: pointer; outline: none; border-radius: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.nt__hit:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.nt.is-open .nt__hit { display: none; }

.nt__head { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 12px; }
.nt__back { position: absolute; left: 10px; top: 14px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(22, 23, 28, 0.06); color: var(--ink); cursor: pointer; outline: none; opacity: 0; visibility: hidden; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.nt__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.900; stroke-linecap: round; stroke-linejoin: round; }
.nt__back:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.nt__tile { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 13%, #ffffff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent); }
.nt__tile svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }
.nt__text { display: flex; flex-direction: column; min-width: 0; transform-origin: 0 50%; }
.nt__text b { font-size: 14px; line-height: 18px; font-weight: 680; font-stretch: 104%; white-space: nowrap; }
.nt__text span { font-size: 11.5px; line-height: 16px; font-weight: 540; color: var(--soft); white-space: nowrap; }
.nt__time { margin-left: auto; align-self: flex-start; margin-top: 13px; font-size: 11px; font-weight: 600; color: var(--soft); }

.nt__page { position: absolute; left: 0; right: 0; top: 62px; bottom: 0; display: flex; flex-direction: column; padding: clamp(4px, 2vh, 12px) 16px 14px; visibility: hidden; }
.nt__eta { padding: 11px 13px 12px; border-radius: 16px; background: #f5f5f7; }
.nt__eta > span:first-child { display: block; font-size: 11.5px; line-height: 15px; font-weight: 600; color: var(--soft); }
.nt__eta b { display: block; font-size: clamp(20px, 6.200vh, 24px); line-height: 1.2; font-weight: 400; letter-spacing: -0.03em; font-variation-settings: "wght" 660, "wdth" 96; }
.nt__bar { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: rgba(22, 23, 28, 0.1); overflow: hidden; }
.nt__bar i { display: block; height: 100%; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

.nt__steps { list-style: none; margin: clamp(4px, 1.800vh, 10px) 0 auto; }
.nt__steps li { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; height: clamp(26px, 8vh, 32px); font-size: 13px; }
.nt__steps li b { font-weight: 640; }
.nt__steps li > span:last-child { font-size: 11.5px; font-weight: 540; color: var(--soft); white-space: nowrap; }
/* the mark of each step is a small tile with a drawn sign, joined to the next by a thin line */
.nt__mark { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 8px; background: #ffffff; box-shadow: inset 0 0 0 1.500px rgba(22, 23, 28, 0.16); }
.nt__mark svg { width: 14px; height: 14px; fill: none; stroke: #ffffff; stroke-width: 1.900; stroke-linecap: round; stroke-linejoin: round; }
.nt__steps li:not(:last-child)::after { content: ""; position: absolute; left: 10.250px; top: calc(50% + 12px); width: 1.500px; height: calc(100% - 24px); min-height: 3px; background: rgba(22, 23, 28, 0.16); }
.nt__steps li.is-done .nt__mark { background: var(--ink); box-shadow: none; }
.nt__steps li.is-done::after { background: var(--ink); }
.nt__steps li.is-now .nt__mark { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.nt__steps li.is-now b { color: color-mix(in srgb, var(--accent) 80%, #16171c); }
.nt__steps li:not(.is-done):not(.is-now) b { color: var(--soft); }

.nt__cta { height: 42px; border: 0; border-radius: 21px; background: var(--ink); color: #ffffff; font: inherit; font-size: 14px; font-weight: 680; font-stretch: 104%; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.nt__cta:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--accent); }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #16171c;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(22, 23, 28, 0.3));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

/* on a large screen the scene is drawn bigger, so the poster and the preview video are not small in a big room */
@media (min-width: 900px) and (min-height: 680px) {
  .ph { zoom: 1.5; }
}
@media (min-width: 1100px) and (min-height: 800px) {
  .ph { zoom: 1.9; }
}
