:root {
  --bg: #f3e9e6;
  --card: #ffffff;
  --ink: #241a1c;
  --soft: #8c7b7e;
  --shade: #c2334d;
  --nude: #f4dfd6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(60% 50% at 15% 0%, #fffaf8, transparent 70%),
    radial-gradient(55% 50% at 100% 100%, color-mix(in srgb, var(--shade) 18%, transparent), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  transition: background-color 0.6s ease;
}

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

.np {
  position: relative;
  width: min(288px, 100%);
  padding: 14px 14px 13px;
  border-radius: 26px;
  background: var(--card);
  box-shadow:
    0 0 0 1px rgba(36, 26, 28, 0.06),
    0 2px 4px rgba(36, 26, 28, 0.05),
    0 20px 40px -18px rgba(36, 26, 28, 0.28),
    0 50px 80px -44px color-mix(in srgb, var(--shade) 70%, transparent);
  transition: box-shadow 0.7s ease;
}
.np__head { display: flex; align-items: flex-end; justify-content: space-between; }
.np__head span { display: block; font-size: 10.5px; line-height: 14px; font-weight: 640; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.np__head h1 { font-size: 18px; line-height: 22px; font-weight: 720; font-stretch: 108%; letter-spacing: -0.02em; }
.finish { height: 26px; padding: 0 11px; border: 0; border-radius: 99px; background: #f5efed; color: var(--ink); font: inherit; font-size: 11.5px; font-weight: 660; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.finish span { display: block; }
.finish:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.nails { display: flex; align-items: flex-end; justify-content: center; gap: min(9px, 2.6vw); height: min(80px, 19vh); margin-top: min(12px, 2.6vh); padding: 0 6px min(8px, 1.6vh); border-radius: 18px; background: linear-gradient(180deg, #faf4f2, #f3e9e6); }
.nail { flex: none; height: 86%; aspect-ratio: 32 / 46; }
.nail:nth-child(1), .nail:nth-child(5) { height: 64%; }
.nail:nth-child(2), .nail:nth-child(4) { height: 75%; }
.nail svg { display: block; width: 100%; height: 100%; overflow: visible; }
.nail__base { fill: var(--nude); }
.nail__edge { fill: none; stroke: rgba(36, 26, 28, 0.14); stroke-width: 1; }
.nail__moon { fill: rgba(255, 255, 255, 0.5); }
.nail__gloss { fill: none; stroke: #ffffff; stroke-width: 2.6; stroke-linecap: round; opacity: 0.55; }
.nail__flash { fill: #ffffff; opacity: 0; }

.shade { margin-top: min(9px, 2vh); text-align: center; }
.roll { display: block; overflow: hidden; }
.roll > span, .roll > strong { display: block; white-space: nowrap; }
.shade__name { height: 23px; line-height: 23px; font-size: 17px; font-stretch: 108%; letter-spacing: -0.015em; }
.shade__name strong { font-weight: 720; }
.shade__note { height: 16px; line-height: 16px; font-size: 11.5px; font-weight: 540; color: var(--soft); }

.bottles { display: flex; justify-content: center; gap: min(8px, 2vw); margin-top: min(9px, 2vh); padding: min(8px, 1.6vh) 0 0; }
.bottle { position: relative; flex: none; width: 40px; height: min(56px, 13vh); padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bottle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bottle svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bottle__cap { fill: #2a2224; }
.bottle__capline { fill: rgba(255, 255, 255, 0.16); }
.bottle__glass { stroke: rgba(36, 26, 28, 0.12); stroke-width: 1; }
.bottle__shine { fill: rgba(255, 255, 255, 0.42); }
.bottle__shadow { fill: rgba(36, 26, 28, 0.16); transform-origin: 50% 50%; }

.book { display: block; width: 100%; height: min(44px, 10.5vh); margin-top: min(10px, 2vh); border: 0; border-radius: 99px; background: var(--ink); color: #ffffff; font: inherit; font-size: 14px; font-weight: 660; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.book:focus-visible { outline: 2px solid var(--shade); outline-offset: 3px; }
.book .roll { height: 20px; line-height: 20px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* big in the poster and on a desk, unchanged in the phone's box */
@media (min-width: 700px) and (min-height: 500px) {
  .np { zoom: 1.25; }
}
@media (min-width: 1100px) and (min-height: 760px) {
  .np { zoom: 1.7; }
}
