@font-face {
  font-family: "KK Ramesha";
  src: url("../assets/fonts/ramesha-regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Wonderful Today";
  src: url("../assets/fonts/wonderful-today.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Adage Script JF";
  src: url("../assets/fonts/adage-script-jf.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Better Alert";
  src: url("../assets/fonts/better-alert.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Brock Script";
  src: url("../assets/fonts/brock-script.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Great Vibes";
  src: url("../assets/fonts/great-vibes.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Parisienne";
  src: url("../assets/fonts/parisienne.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Srinthile Script";
  src: url("../assets/fonts/srinthile-script.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Stalemate";
  src: url("../assets/fonts/stalemate.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Better Sweety";
  src: url("../assets/fonts/better-sweety.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Strawberry Blossom";
  src: url("../assets/fonts/strawberry-blossom.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Swoon";
  src: url("../assets/fonts/swoon.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "The Daylight";
  src: url("../assets/fonts/the-daylight.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Allora";
  src: url("../assets/fonts/allora.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Earth Quest";
  src: url("../assets/fonts/earth-quest.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Reading";
  src: url("../assets/fonts/reading.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Cherry Bomb One";
  src: url("../assets/fonts/cherry-bomb-one.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Rastenoba";
  src: url("../assets/fonts/rastenoba.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0d291a;
  --body: #526259;
  --line: rgba(13, 41, 26, 0.12);
  --paper: #fbfaf6;
  --cream: #f5efe6;
  --mint: #d8f8dd;
  --dark: #17201d;
  --dark-soft: #252e2b;
  --birch: #e7c99e;
  --edge: #76503a;
}

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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 3%, rgba(205, 250, 214, 0.58), transparent 27rem),
    linear-gradient(180deg, #fbfaf6 0%, #f7f3ec 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1560px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 72px;
}

body.is-embedded {
  background: transparent;
}

.is-embedded .page-shell {
  width: 100%;
  padding-bottom: 0;
}

.is-embedded .experiment-note,
.is-embedded .page-heading,
.is-embedded .intro {
  display: none;
}

.is-embedded .name-builder {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.is-embedded .product-line__price > strong {
  display: none;
}

.experiment-note {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.experiment-note span {
  color: #758078;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.experiment-note .experiment-note__wordmark {
  display: grid;
  color: #0e2c18;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.73;
  text-transform: lowercase;
}

.experiment-note__wordmark b {
  font: inherit;
}

.page-heading {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 34px) 0 clamp(17px, 2.4vw, 27px);
  text-align: center;
}

.eyebrow,
.controls-panel__eyebrow {
  margin: 0 0 12px;
  color: #55705d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 0;
  font-family: "KK Ramesha", Georgia, serif;
  font-size: clamp(42px, 4.7vw, 62px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.intro {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(25px, 3.2vw, 42px) 20px clamp(38px, 5vw, 64px);
  text-align: center;
}

.intro > p:last-child {
  margin: 0;
  color: var(--body);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
}

.name-builder {
  position: relative;
  display: block;
  width: 100%;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 46px;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(13, 41, 26, 0.07),
    0 28px 78px rgba(45, 53, 48, 0.12);
}

.name-builder::before {
  display: none;
  content: "";
}

.name-builder > * {
  position: relative;
  z-index: 1;
}

.preview-panel {
  min-width: 0;
  padding: 10px clamp(18px, 2.4vw, 28px) 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.product-line {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(calc(100% - 56px), 1100px);
  margin: 0 auto;
}

.product-line p {
  margin: 0;
  font-family: "KK Ramesha", Georgia, serif;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1;
}

.product-line > div:first-child span {
  display: block;
  margin-top: 6px;
  color: #778078;
  font-size: 11px;
}

.product-line__price {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-line__price strong {
  font-size: 20px;
  white-space: nowrap;
}

.product-line__price span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(13, 41, 26, 0.1);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 242, 0.62));
  color: #627068;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 7px 18px rgba(35, 65, 46, 0.06);
}

.product-line__price i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58bd72;
  box-shadow: 0 0 12px rgba(88, 189, 114, 0.62);
}

.cake-stage {
  position: relative;
  overflow: hidden;
  width: min(100%, 1100px);
  margin-inline: auto;
  aspect-ratio: 1000 / 690;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 34%, rgba(92, 114, 102, 0.38), transparent 34%),
    linear-gradient(155deg, #303936 0%, #1c2421 54%, #121815 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -80px 120px rgba(0, 0, 0, 0.16);
}

.cake-stage::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 11%;
  border-radius: 0 0 38px 38px;
  background: linear-gradient(
    180deg,
    rgba(18, 24, 21, 0) 0%,
    rgba(18, 24, 21, 0.025) 62%,
    rgba(18, 24, 21, 0.07) 100%
  );
  content: "";
  pointer-events: none;
}

.cake-stage__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.choice-scroll-shell {
  position: relative;
  min-width: 0;
}

.choice-scroll-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(8, 52, 28, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(8, 52, 28, 0.12);
  color: #08341c;
  font: 600 22px/1 Arial, sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.choice-scroll-arrow:hover {
  background: #fff;
  box-shadow: 0 10px 26px rgba(8, 52, 28, 0.17);
  transform: translateY(-50%) scale(1.04);
}

.choice-scroll-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.choice-scroll-arrow--previous {
  left: 5px;
}

.choice-scroll-arrow--next {
  right: 5px;
}

@media (hover: none), (pointer: coarse) {
  .choice-scroll-arrow {
    display: none;
  }
}

.cake-stage__cake {
  transform: none;
}

.preview-size-note {
  width: min(100%, 1100px);
  margin: 10px auto 0;
  color: #727c75;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.tutorial-launch {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background:
    radial-gradient(circle at 25% 0%, rgba(255, 255, 255, 0.22), transparent 42%),
    rgba(12, 25, 19, 0.56);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.025em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 10px 30px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.16);
  backdrop-filter: blur(12px) saturate(1.16);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.tutorial-launch:hover {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(15, 38, 25, 0.72);
  transform: translateY(-1px);
}

.tutorial-launch:active {
  transform: translateY(1px) scale(0.985);
}

.tutorial-launch:focus-visible {
  outline: 3px solid rgba(202, 255, 211, 0.7);
  outline-offset: 3px;
}

.tutorial-launch__icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 850;
}

.tutorial-overlay[hidden] {
  display: none;
}

.tutorial-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  pointer-events: none;
}

.tutorial-focus-ring {
  position: fixed;
  z-index: 1;
  border: 2px solid rgba(218, 255, 224, 0.94);
  border-radius: 22px;
  box-shadow:
    0 0 0 9999px rgba(4, 12, 8, 0.68),
    0 0 0 7px rgba(213, 255, 220, 0.15);
  pointer-events: none;
  transition:
    top 420ms cubic-bezier(0.22, 1, 0.36, 1),
    left 420ms cubic-bezier(0.22, 1, 0.36, 1),
    width 420ms cubic-bezier(0.22, 1, 0.36, 1),
    height 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 420ms ease;
}

.tutorial-arrow {
  position: fixed;
  z-index: 2;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: visible;
  pointer-events: none;
}

.tutorial-arrow path:not([marker-end]) {
  fill: #dfffe4;
}

.tutorial-arrow path[marker-end] {
  fill: none;
  stroke: #dfffe4;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.tutorial-card {
  position: fixed;
  z-index: 3;
  width: min(370px, calc(100vw - 28px));
  padding: 25px 23px 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 25px;
  background:
    radial-gradient(circle at 16% 0%, rgba(133, 191, 151, 0.24), transparent 44%),
    rgba(10, 27, 18, 0.9);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 24px 70px rgba(0, 0, 0, 0.36);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  backdrop-filter: blur(22px) saturate(1.12);
  pointer-events: auto;
}

.tutorial-card h2 {
  margin: 7px 64px 8px 0;
  color: #fff;
  font-family: "KK Ramesha", Georgia, serif;
  font-size: clamp(25px, 3vw, 31px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.tutorial-card > p:not(.tutorial-progress) {
  margin: 0;
  color: rgba(244, 250, 245, 0.78);
  font-size: 13px;
  line-height: 1.55;
}

.tutorial-progress {
  margin: 0;
  color: #c9f8d1;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tutorial-skip {
  position: absolute;
  top: 17px;
  right: 18px;
  padding: 7px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 11px;
  font-weight: 720;
}

.tutorial-skip:hover,
.tutorial-skip:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.tutorial-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 17px;
}

.tutorial-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tutorial-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  transition: width 220ms ease, background 220ms ease;
}

.tutorial-dots i.is-current {
  width: 21px;
  background: #c9f8d1;
}

.tutorial-next {
  min-height: 42px;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: linear-gradient(145deg, #f3ffef, #c9f8d1);
  color: #0d291a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
  box-shadow:
    inset 0 1px 0 #fff,
    0 9px 24px rgba(0, 0, 0, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tutorial-next:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 #fff,
    0 13px 28px rgba(0, 0, 0, 0.2);
}

.tutorial-next:active {
  transform: translateY(1px) scale(0.985);
}

.tutorial-overlay.is-step-changing .tutorial-card {
  animation: tutorial-card-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tutorial-overlay.is-step-changing .tutorial-arrow path[marker-end] {
  animation: tutorial-arrow-draw 620ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes tutorial-card-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes tutorial-arrow-draw {
  from {
    opacity: 0;
    stroke-dashoffset: 1;
  }

  to {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

.name-art {
  pointer-events: none;
}

.name-art[hidden] {
  display: none;
}

.name-measure {
  pointer-events: none;
}

.name-measure text {
  dominant-baseline: alphabetic;
  fill: #fff;
  text-anchor: middle;
}

.name-art--edge rect {
  fill: var(--edge);
}

.name-art--face rect {
  fill: url(#birch-texture);
}

.figure-art[hidden] {
  display: none;
}

.figure-art--edge rect {
  fill: var(--edge);
}

.figure-art--face rect {
  fill: url(#birch-texture);
}

.symbol-art text {
  text-anchor: middle;
}

.symbol-art--edge text {
  fill: var(--edge);
}

.symbol-art--face text {
  fill: url(#birch-texture);
}

.symbol-image-art {
  pointer-events: none;
}

.symbol-image-art[hidden] {
  display: none;
}

.controls-panel {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-template-areas:
    "head head"
    "model model"
    "font font"
    "label label"
    "input input"
    "cart cart"
    "message message";
  column-gap: 24px;
  width: min(100%, 1180px);
  margin-inline: auto;
  padding: 9px clamp(20px, 3vw, 34px) 20px;
  background: #fff;
}

.controls-panel__head {
  grid-area: head;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 0;
  border-bottom: 0;
}

.controls-panel__head h2 {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #6d7971;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0.015em;
}

.choice-fieldset {
  min-width: 0;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.category-fieldset {
  width: min(100%, 1100px);
  margin: 0 auto 9px;
  padding: 0 0 3px;
  background: transparent;
  text-align: center;
}

.model-fieldset {
  grid-area: model;
}

.choice-fieldset legend,
.font-fieldset legend,
.field-label span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.category-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
}

.category-options,
.model-options,
.font-options {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-options::-webkit-scrollbar,
.model-options::-webkit-scrollbar,
.font-options::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.category-option,
.model-option {
  border: 1px solid rgba(13, 41, 26, 0.13);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 8px 20px rgba(41, 70, 49, 0.05);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.category-option {
  min-height: 38px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 720;
}

.category-option:hover,
.model-option:hover {
  border-color: rgba(13, 41, 26, 0.35);
  background: #fff;
}

.category-option.is-selected,
.model-option.is-selected {
  border-color: rgba(13, 41, 26, 0.62);
  background: linear-gradient(145deg, rgba(239, 255, 241, 0.97), rgba(207, 244, 215, 0.82));
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(47, 97, 58, 0.13);
}

.model-options {
  display: grid;
  grid-auto-columns: 148px;
  grid-auto-flow: column;
  gap: 9px;
  overflow-x: auto;
  margin: 1px -14px -8px;
  padding: 10px 50px 16px;
  scroll-padding-inline: 50px;
  scroll-snap-type: x proximity;
}

.model-option {
  display: grid;
  width: 148px;
  height: 64px;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 760;
  text-align: left;
}

.model-option img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0);
}

.model-option b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 500;
}

.model-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  grid-area: label;
  align-self: end;
  margin: 10px 1px 8px;
}

.field-label span,
.font-fieldset legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.field-label small {
  color: #7c857e;
  font-size: 10px;
}

#names-input {
  grid-area: input;
  width: 100%;
  min-height: 82px;
  resize: none;
  padding: 10px 15px;
  border: 1px solid rgba(13, 41, 26, 0.16);
  border-radius: 18px;
  outline: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 247, 0.66));
  color: var(--ink);
  font-size: 18px;
  line-height: 1.28;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 9px 24px rgba(39, 68, 48, 0.05);
}

#names-input:focus {
  border-color: rgba(20, 85, 46, 0.62);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201, 246, 211, 0.7);
}

.field-help {
  grid-area: help;
  margin: 9px 2px 0;
  color: #7a847d;
  font-size: 10px;
  line-height: 1.45;
}

.font-fieldset {
  grid-area: font;
  min-width: 0;
  align-self: end;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}

.controls-panel .model-fieldset[hidden] + .font-fieldset {
  margin-top: 2px;
}

.font-fieldset legend {
  margin-bottom: 11px;
}

.font-options {
  display: grid;
  grid-auto-columns: 62px;
  grid-auto-flow: column;
  gap: 9px;
  overflow-x: auto;
  margin: -8px -14px -10px;
  padding: 10px 50px 18px;
  scroll-padding-inline: 50px;
  scroll-snap-type: x proximity;
}

@keyframes choice-window-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 7px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.is-configurator-entering .category-option,
.is-configurator-entering .model-option,
.is-configurator-entering .font-option {
  animation: choice-window-enter 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--enter-delay, 0ms);
  will-change: transform, opacity;
}

.font-option {
  display: grid;
  width: 62px;
  height: 62px;
  padding: 5px;
  place-items: center;
  align-content: center;
  scroll-snap-align: start;
  border: 1px solid rgba(13, 41, 26, 0.1);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(241, 247, 242, 0.58));
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 8px 20px rgba(41, 70, 49, 0.06);
}

.font-option span {
  display: block;
  font-size: 27px;
  line-height: 1;
}

.font-option:hover {
  border-color: rgba(13, 41, 26, 0.3);
  background: #fff;
  transform: translateY(-2px);
}

.font-option:focus-visible {
  outline: 3px solid rgba(100, 207, 124, 0.44);
  outline-offset: 2px;
}

.font-option.is-selected {
  border-color: rgba(13, 41, 26, 0.72);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.96), transparent 35%),
    linear-gradient(145deg, rgba(239, 255, 241, 0.94), rgba(207, 244, 215, 0.78));
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(13, 41, 26, 0.1),
    0 12px 28px rgba(47, 97, 58, 0.16);
}

.cart-button {
  grid-area: cart;
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 23px;
  border: 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% -35%, rgba(118, 188, 139, 0.38), transparent 48%),
    linear-gradient(145deg, #173d25, #06190e);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 15px 31px rgba(7, 27, 16, 0.22);
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.cart-button:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.23),
    0 18px 37px rgba(7, 27, 16, 0.29);
}

.cart-button:active {
  transform: translateY(1px) scale(0.995);
}

.cart-button.is-loading {
  gap: 10px;
  cursor: wait;
  opacity: 0.92;
}

.cart-button.is-loading::before {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: kk-cart-spin 700ms linear infinite;
  content: "";
}

.cart-button:disabled,
.cart-button:disabled:hover {
  transform: none;
}

@keyframes kk-cart-spin {
  to {
    transform: rotate(360deg);
  }
}

.prototype-message {
  grid-area: message;
  min-height: 18px;
  margin: 9px 2px 0;
  color: #667269;
  font-size: 10px;
  text-align: center;
}

@media (max-width: 980px) {
  .page-shell {
    width: min(720px, calc(100% - 26px));
  }

  .preview-panel {
    border-bottom: 1px solid var(--line);
  }

  .controls-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "model"
      "font"
      "label"
      "input"
      "cart"
      "message";
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: 100%;
    padding-bottom: 0;
  }

  .experiment-note {
    width: calc(100% - 30px);
    min-height: 68px;
    margin: 0 auto;
  }

  .experiment-note img {
    width: 108px;
  }

  .experiment-note span {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .experiment-note .experiment-note__wordmark {
    font-size: 16px;
    letter-spacing: -0.075em;
  }

  .page-heading {
    padding: 17px 16px 15px;
  }

  .page-heading h1 {
    font-size: clamp(36px, 10vw, 44px);
  }

  .page-heading .eyebrow {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .intro {
    padding: 22px 20px 38px;
  }

  .intro > p:last-child {
    font-size: 14px;
    line-height: 1.55;
  }

  .name-builder {
    margin-top: 12px;
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: none;
  }

  .is-embedded .name-builder {
    margin-top: 0;
    border: 0;
  }

  .preview-panel {
    padding: 8px 14px 14px;
  }

  .product-line {
    width: calc(100% - 30px);
    min-height: 58px;
  }

  .product-line p {
    font-size: 21px;
  }

  .product-line > div:first-child span {
    display: none;
  }

  .product-line__price {
    gap: 8px;
  }

  .product-line__price strong {
    font-size: 17px;
  }

  .product-line__price span {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 8px;
  }

  .cake-stage {
    width: calc(100% + 28px);
    max-height: none;
    margin-left: -14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .cake-stage::after {
    border-radius: 0;
  }

  .tutorial-launch {
    top: 12px;
    right: 12px;
    min-height: 38px;
    padding: 6px 12px 6px 7px;
    font-size: 11px;
  }

  .tutorial-launch__icon {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .tutorial-card {
    padding: 22px 20px 18px;
    border-radius: 22px;
  }

  .tutorial-card h2 {
    font-size: 26px;
  }

  .cake-stage__cake {
    transform: none;
  }

  .controls-panel {
    padding: 9px 15px 21px;
  }

  .controls-panel__head {
    padding-bottom: 0;
  }

  .controls-panel__head h2 {
    font-size: 11px;
  }

  .controls-panel__eyebrow {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .field-label {
    margin-top: 16px;
  }

  #names-input {
    min-height: 84px;
    font-size: 16px;
  }

  .font-fieldset {
    margin-top: 16px;
  }

  .category-options {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .category-fieldset {
    margin-bottom: 7px;
    padding: 0 1px 2px;
    text-align: left;
  }

  .category-options::-webkit-scrollbar {
    display: none;
  }

  .category-option {
    flex: 0 0 auto;
    min-height: 36px;
    padding-inline: 15px;
  }

  .model-options {
    grid-auto-columns: 138px;
  }

  .model-option {
    width: 138px;
    height: 60px;
  }

  .font-options {
    width: calc(100% + 15px);
    margin-right: -15px;
    margin-left: -14px;
    grid-auto-columns: 64px;
  }

  .font-option {
    width: 64px;
    height: 64px;
  }

  .font-option span {
    font-size: 27px;
  }

  .cart-button {
    min-height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-configurator-entering .category-option,
  .is-configurator-entering .model-option,
  .is-configurator-entering .font-option {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .tutorial-overlay.is-step-changing .tutorial-card,
  .tutorial-overlay.is-step-changing .tutorial-arrow path[marker-end] {
    animation: none;
  }

  .cart-button.is-loading::before {
    animation-duration: 1400ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
