:root {
  --bg: #ffffff;
  --ink: #17181b;
  --soft: #7a7c82;
  --line: rgba(23, 24, 27, 0.1);
  --panel: #f4f2ee;
  --accent: #a8612c;
}

*, *::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: 16px;
}

.cf {
  width: min(336px, 100%);
  padding: 16px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(23, 24, 27, 0.07),
    0 1px 2px rgba(23, 24, 27, 0.06),
    0 34px 60px -32px rgba(23, 24, 27, 0.32);
}
.cf__top { display: flex; align-items: center; gap: 12px; padding: 2px 2px 14px; }
.cup { flex: none; width: 76px; height: 76px; overflow: visible; }
.cup path, .cup rect { stroke-linecap: round; stroke-linejoin: round; }
.cup__glass { fill: #ffffff; }
.cup__coffee { fill: var(--accent); }
.cup__crema { fill: color-mix(in srgb, var(--accent) 45%, #ffffff); }
.cup__body { fill: none; stroke: var(--ink); stroke-width: 2.4; }
.cup__handle { fill: none; stroke: var(--ink); stroke-width: 2.4; }
.cup__shine { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 2; }
.cup__saucer { fill: none; stroke: var(--ink); stroke-width: 2.4; }
.cup__steam { fill: none; stroke: rgba(23, 24, 27, 0.32); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }

.cf__say { min-width: 0; display: grid; gap: 2px; }
.cf__kicker { font-size: 12px; font-weight: 540; color: var(--soft); }
.cf__title { font-size: 19px; line-height: 23px; font-weight: 680; font-stretch: 106%; letter-spacing: -0.015em; }
.cf__sub { font-size: 12.5px; font-weight: 460; color: var(--soft); }

/* three radios in a row and one tile that slides under the chosen one */
.cf__row { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; border-radius: 16px; background: var(--panel); }
.cf__thumb { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) / 3); border-radius: 12px; background: #ffffff; box-shadow: 0 1px 2px rgba(23, 24, 27, 0.14), 0 0 0 1px rgba(23, 24, 27, 0.04); pointer-events: none; }
.opt { position: relative; display: grid; place-items: center; height: 38px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--soft); cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; transition: color 0.3s ease; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span { position: relative; pointer-events: none; }
.opt.is-on { color: var(--ink); }
.opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 1px; }

.cf__go { position: relative; display: grid; place-items: center; width: 100%; height: 50px; margin-top: 10px; border: 0; border-radius: 99px; background: none; color: #ffffff; font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.cf__go-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); z-index: -1; transition: background-color 0.5s ease; }
.cf__go.is-done .cf__go-fill { background: var(--accent); }
.cf__go-text { display: block; height: 22px; overflow: hidden; line-height: 22px; }
.cf__go-text span { display: block; white-space: nowrap; }
.cf__go-text b { display: inline-block; font-weight: 700; }
.cf__go-tick { position: absolute; right: 18px; top: 15px; width: 20px; height: 20px; }
.cf__go-tick path { fill: none; stroke: #ffffff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.cf__go:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.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: #ffffff;
  stroke: #14151a;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (hover: hover) {
  .opt:hover { color: var(--ink); }
}
@media (max-width: 350px) {
  .cup { width: 64px; height: 64px; }
  .cf__title { font-size: 17px; }
}
