:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --panel: #332820;
  --button-bg: #302a24;
  --panel-soft: rgba(51, 40, 32, 0.86);
  --button-hover-top: #814c10;
  --button-hover-mid: #502506;
  --button-hover-bottom: #2f1a00;
  --button-inner-shadow: #B65500;
  --focus: #ffffff;
}

@property --grad-x {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 26%;
}

@property --grad-y {
  syntax: "<percentage>";
  inherits: true;
  initial-value: -28%;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 600px;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: #000000;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  display: grid;
  place-items: center;
}

button {
  font: inherit;
}

.app {
  width: 600px;
  height: 600px;
  position: relative;
  overflow: visible;
  background: #000000;
}

.app::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.62) 34px, rgba(0, 0, 0, 0.18) 92px, rgba(0, 0, 0, 0) 150px, rgba(0, 0, 0, 0) calc(100% - 150px), rgba(0, 0, 0, 0.18) calc(100% - 92px), rgba(0, 0, 0, 0.62) calc(100% - 34px), rgba(0, 0, 0, 0.92)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.64) 40px, rgba(0, 0, 0, 0.18) 104px, rgba(0, 0, 0, 0) 154px, rgba(0, 0, 0, 0) calc(100% - 154px), rgba(0, 0, 0, 0.22) calc(100% - 104px), rgba(0, 0, 0, 0.68) calc(100% - 40px), rgba(0, 0, 0, 0.94));
  z-index: 20;
}

.top-pill {
  position: absolute;
  top: 16px;
  left: 50%;
  min-width: 92px;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--panel) 0%, rgba(80, 54, 31, 0.92) 66%, rgba(42, 27, 0, 0) 100%);
  color: rgba(255, 255, 255, 0.86);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-18px) scaleX(0.42);
  transform-origin: center top;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 25;
}

.app.has-top-notification .top-pill {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scaleX(1);
}

.app.is-locating:not(.has-top-notification) .top-pill {
  opacity: 0;
  transform: translateX(-50%) translateY(-18px) scaleX(0.42);
}

.intro-bread-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 420ms ease 260ms;
}

.intro-bread {
  position: absolute;
  left: 0;
  top: 0;
  width: 130px;
  height: 130px;
  background: var(--bread-image);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform:
    translate(var(--intro-x), var(--intro-y))
    scale(calc(var(--intro-scale) * 1.2));
  transform-origin: center bottom;
  animation:
    introBreadEnter 1500ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--intro-delay) forwards,
    introBreadDrift var(--drift-duration) ease-in-out calc(var(--intro-delay) + 1500ms) infinite alternate;
  transition:
    transform 820ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 360ms ease;
}

.app.is-picking .intro-bread {
  animation: none;
  opacity: 0;
  transform:
    translate(
      calc(var(--intro-x) + var(--intro-exit-x)),
      calc(var(--intro-y) + var(--intro-exit-y))
    )
    scale(calc(var(--intro-scale) * 0.78));
}

.app.has-carousel .intro-bread {
  animation: none;
  opacity: 0;
}

.app.has-carousel .intro-bread-field {
  opacity: 0;
}

.app.is-locating .intro-bread {
  opacity: 0;
  transform:
    translate(
      calc(var(--intro-x) + var(--intro-exit-x)),
      calc(var(--intro-y) + var(--intro-exit-y))
    )
    scale(calc(var(--intro-scale) * 0.72));
  transition:
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 220ms ease;
}

.intro-view,
.carousel-view {
  position: absolute;
  inset: 0;
}

.intro-view {
  display: grid;
  place-items: center;
  padding-bottom: 44px;
  opacity: 1;
  transform: scale(1.08);
  animation: introViewEnter 680ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition: opacity 260ms ease, transform 300ms ease;
  pointer-events: none;
  z-index: 2;
}

.app.is-picking .intro-view {
  animation: none;
  opacity: 1;
  transform: scale(1);
  transition: none;
}

.app.has-carousel .intro-view {
  animation: none;
  opacity: 0;
  transform: scale(1);
  transition: opacity 160ms ease;
}

.app.is-locating .intro-view {
  animation: none;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 260ms ease, transform 320ms ease;
}

.prompt-circle {
  width: 238px;
  height: 238px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 34px;
  text-align: center;
  background: radial-gradient(circle at 28% 24%, #ffb561 0%, #d78214 44%, #50270f 100%);
  box-shadow:
    inset -3px -3px 12px rgba(255, 119, 0, 0.25),
    inset 3px 3px 12px rgba(255, 255, 255, 0.6);
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 460ms ease,
    transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app.is-picking .prompt-circle,
.app.has-carousel .prompt-circle {
  opacity: 0;
  transform: scale(0.42);
}

.prompt-circle p {
  margin: 0;
  color: #ffffff;
  font-size: 23px;
  line-height: 1.14;
  font-weight: 500;
  text-wrap: balance;
}

.prompt-circle strong {
  font-weight: 800;
  font-size: 1.16em;
}

.carousel-view {
  opacity: 0;
  pointer-events: none;
  transform: translateX(360px) scale(0.92);
  transition:
    opacity 620ms ease,
    transform 760ms cubic-bezier(0.16, 0.9, 0.2, 1);
  z-index: 1;
}

.app.is-carousel-revealing .carousel-view {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.app.has-carousel .carousel-view {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.app.is-locating .carousel-view {
  opacity: 0;
  transform: translateX(-120px) scale(0.94);
  pointer-events: none;
}

.carousel-window {
  position: absolute;
  left: 0;
  right: 0;
  top: 217px;
  height: 166px;
  overflow: visible;
  transition: top 320ms cubic-bezier(0.2, 0.8, 0.2, 1), height 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-track {
  position: absolute;
  top: 18px;
  left: 0;
  height: 130px;
  display: flex;
  align-items: center;
  gap: 22px;
  will-change: transform;
}

.confetti-canvas {
  position: absolute;
  inset: 0;
  width: 600px;
  height: 600px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 0;
}

.app.has-result .confetti-canvas {
  opacity: 1;
}

.app.is-stepping .carousel-track {
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), top 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bread-card {
  --card-scale: 1;
  --card-opacity: 1;
  --card-y: 0px;
  --card-z: 1;
  width: 130px;
  height: 130px;
  flex: 0 0 130px;
  border: 0;
  border-radius: 0;
  background: var(--bread-image);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--card-opacity);
  position: relative;
  transform: translateY(var(--card-y)) scale(var(--card-scale));
  transform-origin: center bottom;
  z-index: calc(10 + var(--card-z));
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    filter 220ms ease,
    width 260ms ease,
    height 260ms ease;
}

.app.is-carousel-focused .bread-card.is-selected,
.app.has-detail .bread-card.is-selected {
  filter:
    drop-shadow(0 0 7px rgba(255, 168, 70, 0.98))
    drop-shadow(0 0 15px rgba(255, 112, 0, 0.64));
}

.bread-card:hover {
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.88))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.42));
}

.bread-card:focus {
  outline: none;
}

.bread-card:focus-visible {
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.88))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.42));
}

.bread-copy {
  position: absolute;
  left: 42px;
  right: 42px;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.detail-copy-stack {
  display: contents;
}

.app.is-carousel-focused .bread-copy,
.app.has-result .bread-copy,
.app.has-detail .bread-copy {
  opacity: 1;
  transform: translateY(0);
}

.bread-copy-top {
  top: 174px;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
}

.bread-copy-bottom {
  top: 393px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.25;
}

.ingredients-copy {
  position: absolute;
  left: 318px;
  top: 360px;
  width: 214px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease 90ms, transform 220ms ease 90ms;
  pointer-events: none;
}

.app.has-detail .carousel-window {
  top: 218px;
  height: 250px;
  overflow: visible;
}

.app.has-detail .carousel-track {
  top: 10px;
  gap: 22px;
}

.app.has-detail .bread-card {
  opacity: 0;
  pointer-events: none;
}

.app.has-detail .bread-card.is-selected {
  width: 230px;
  height: 230px;
  flex-basis: 230px;
  opacity: 1;
  pointer-events: auto;
}

.app.has-detail .bread-copy {
  position: static;
  left: auto;
  right: auto;
  text-align: left;
  transform: translateY(0);
}

.app.has-detail .detail-copy-stack {
  position: absolute;
  left: 318px;
  top: 230px;
  width: 214px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.app.has-detail .ingredients-copy {
  top: 342px;
  opacity: 1;
  transform: translateY(0);
}

.locate-view {
  position: absolute;
  inset: 0;
  padding: 82px 39px 92px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(260px) scale(0.94);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  z-index: 21;
}

.app.is-locating .locate-view {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.locate-view::before,
.locate-view::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 64px;
  pointer-events: none;
  z-index: 4;
}

.locate-view::before {
  top: 0;
  opacity: 0;
  height: 96px;
  background: linear-gradient(to bottom,
    #000000 0%,
    rgba(0, 0, 0, 0.9) 40%,
    rgba(0, 0, 0, 0) 100%);
  transition: opacity 180ms ease;
}

.locate-view::after {
  bottom: 0;
  height: 164px;
  background: linear-gradient(to top,
    #000000 0%,
    rgba(0, 0, 0, 0.94) 38%,
    rgba(0, 0, 0, 0.52) 70%,
    rgba(0, 0, 0, 0) 100%);
}

.locate-view.has-scroll-top::before {
  opacity: 1;
}

.locate-pill {
  position: absolute;
  top: 16px;
  left: 50%;
  min-width: 128px;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(to bottom,
    var(--panel) 0%,
    rgba(80, 54, 31, 0.92) 66%,
    rgba(42, 27, 0, 0) 100%);
  color: rgba(255, 255, 255, 0.86);
  display: none;
  place-items: center;
  font: 700 16px/1 Arial, Helvetica, sans-serif;
  transform: translateX(-50%);
  z-index: 25;
}

.locate-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
  z-index: 6;
}

.locate-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 0 78px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  text-align: center;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
  z-index: 6;
}

.app.is-locate-loading .locate-loader,
.app.has-locate-status .locate-status {
  opacity: 1;
  transform: translateY(0);
}

.locate-loader-dots {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  height: 34px;
}

.locate-loader-dots span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  animation: locateDotLift 1500ms ease-in-out infinite;
}

.locate-loader-dots span:nth-child(2) {
  animation-delay: 170ms;
}

.locate-loader-dots span:nth-child(3) {
  animation-delay: 340ms;
}

.locate-loader-text {
  color: rgba(255, 255, 255, 0.88);
  font: 400 24px/1 Arial, Helvetica, sans-serif;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.42);
}

.locate-status-title {
  color: rgba(255, 255, 255, 0.92);
  font: 400 26px/1 Arial, Helvetica, sans-serif;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.42);
}

.locate-status-detail {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.62);
  font: 400 17px/1.25 Arial, Helvetica, sans-serif;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.34);
}

.navigation-panel {
  position: absolute;
  left: 38px;
  right: 38px;
  top: 72px;
  height: 306px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 280ms ease,
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 5;
}

.app.is-navigating .navigation-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app.is-navigating.has-bakery-detail .navigation-panel {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

.navigation-arrow {
  --navigation-bearing: 0deg;
  --navigation-pitch: 58deg;
  width: 154px;
  height: 154px;
  transition: transform 260ms ease;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(220px) rotateX(var(--navigation-pitch)) rotate(var(--navigation-bearing));
  transform-origin: center 56%;
}

.navigation-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/icons/Navigate.png") center / contain no-repeat;
  filter:
    drop-shadow(0 10px 10px rgba(58, 28, 0, 0.32))
    drop-shadow(0 0 16px rgba(255, 166, 45, 0.48))
    drop-shadow(0 0 28px rgba(182, 85, 0, 0.34));
  z-index: 2;
}

.navigation-arrow::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(182, 85, 0, 0.44), rgba(42, 27, 0, 0.18) 56%, rgba(0, 0, 0, 0) 72%);
  filter: blur(3px);
  z-index: 1;
}

.navigation-distance {
  color: #ffffff;
  font: 800 36px/1 Arial, Helvetica, sans-serif;
  text-shadow: 0 0 16px rgba(182, 85, 0, 0.62);
}

.navigation-target {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.66);
  font: 700 18px/1.2 Arial, Helvetica, sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.locate-list {
  width: 494px;
  display: grid;
  grid-template-columns: 494px;
  gap: 12px;
  margin: 0 auto;
  position: relative;
  opacity: 1;
  transition:
    opacity 260ms ease,
    transform 220ms ease;
}

.app.is-locate-loading .locate-list,
.app.has-locate-status .locate-list {
  opacity: 0;
  pointer-events: none;
}

.app.is-locate-loading .locate-scrollbar,
.app.has-locate-status .locate-scrollbar,
.app.has-bakery-detail .locate-scrollbar,
.app.is-navigating .locate-scrollbar {
  opacity: 0;
}

.app.is-navigating .locate-list {
  position: absolute;
  left: 53px;
  right: auto;
  bottom: 112px;
  height: 96px;
  margin: 0;
  transform: none !important;
  z-index: 8;
}

.app.is-navigating .bakery-button {
  display: none;
  pointer-events: none;
}

.app.is-navigating .bakery-button.is-navigation-target {
  display: flex;
  grid-row: 1;
  pointer-events: auto;
  height: 96px;
  padding: 0 24px;
  transform: scale(1);
}

.app.is-navigating .bakery-button.is-navigation-target:not(.is-selected):hover,
.app.is-navigating .bakery-button.is-navigation-target:not(.is-selected):focus-visible {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0);
  transform: scale(1);
}

.app.is-navigating .bakery-button.is-navigation-target:not(.is-selected):hover::before,
.app.is-navigating .bakery-button.is-navigation-target:not(.is-selected):hover::after,
.app.is-navigating .bakery-button.is-navigation-target:not(.is-selected):focus-visible::before,
.app.is-navigating .bakery-button.is-navigation-target:not(.is-selected):focus-visible::after {
  opacity: 0;
}

.app.is-navigating.has-bakery-detail .bakery-button.is-expanded {
  height: 250px;
  padding: 0 28px;
  transform: scale(1.02);
}

.app.is-navigating.has-bakery-detail .locate-list {
  height: 250px;
}

.bakery-button {
  --bakery-image: none;
  --grad-x: 36%;
  --grad-y: -16%;
  --gradient: radial-gradient(ellipse 54% 260% at var(--grad-x) var(--grad-y),
    var(--button-hover-top) 0%,
    #7b5026 16%,
    var(--button-hover-mid) 42%,
    #3b240c 68%,
    var(--button-hover-bottom) 100%);
  width: 494px;
  height: 96px;
  padding: 0 24px;
  border: 0;
  border-radius: 24px;
  background: var(--button-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  font: 700 23px/1 Arial, Helvetica, sans-serif;
  text-align: left;
  cursor: pointer;
  outline: none;
  opacity: 1;
  overflow: hidden;
  position: relative;
  transform-origin: center;
  transform: scale(1);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0);
  transition:
    --grad-x 220ms ease,
    --grad-y 220ms ease,
    height 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
    padding 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 260ms ease;
}

.bakery-button::before {
  content: "";
  position: absolute;
  inset: -16px;
  background: var(--gradient);
  filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transform: rotate(-7deg) scale(1.08);
  transition: opacity 160ms ease;
  z-index: 1;
}

.bakery-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset -4px -4px 8px rgba(182, 85, 0, 0.5),
    inset 3px 3px 10px rgba(255, 211, 161, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 2;
}

.bakery-button > * {
  position: relative;
  z-index: 3;
}

.bakery-button.is-selected,
.bakery-button:focus-visible,
.bakery-button:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
  transform: scale(1.05);
  z-index: 2;
}

.bakery-button.is-selected::before,
.bakery-button:focus-visible::before,
.bakery-button:hover::before,
.bakery-button.is-selected::after,
.bakery-button:focus-visible::after,
.bakery-button:hover::after {
  opacity: 1;
}

.bakery-button.is-expanded {
  height: 250px;
  align-items: center;
  padding: 0 28px;
  transform: scale(1.02);
  z-index: 5;
}

.bakery-button.is-expanded:hover,
.bakery-button.is-expanded:focus-visible,
.bakery-button.is-expanded.is-selected {
  transform: scale(1.02);
}

.bakery-button.is-muted {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}

.bakery-image {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 14px;
  background: #000000 var(--bakery-image) center / cover no-repeat;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.3));
  transition:
    width 260ms ease,
    height 260ms ease,
    flex-basis 260ms ease,
    border-radius 260ms ease,
    transform 180ms ease;
}

.bakery-button.is-selected .bakery-image,
.bakery-button:hover .bakery-image,
.bakery-button:focus-visible .bakery-image {
  transform: scale(1.1);
}

.bakery-button.is-expanded .bakery-image {
  width: 174px;
  height: 174px;
  flex-basis: 174px;
  border-radius: 22px;
  transform: scale(1);
}

.bakery-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bakery-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.bakery-distance,
.bakery-detail {
  max-width: 350px;
  color: rgba(255, 255, 255, 0.62);
  font: 400 18px/1.2 Arial, Helvetica, sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.24);
}

.bakery-detail {
  display: none;
  white-space: normal;
  line-height: 1.25;
}

.bakery-button.is-expanded .bakery-copy {
  padding-top: 0;
  gap: 12px;
  justify-content: center;
}

.bakery-button.is-expanded .bakery-name {
  white-space: normal;
  font-size: 24px;
  line-height: 1.05;
}

.bakery-button.is-expanded .bakery-distance,
.bakery-button.is-expanded .bakery-detail {
  max-width: 238px;
}

.bakery-button.is-expanded .bakery-detail {
  display: block;
}

.app.has-bakery-detail .dialog-pill-row {
  padding-left: 36px;
  padding-right: 36px;
}

.app.has-bakery-detail:not(.is-navigating) .dialog-pill-button[data-action="bookmark"] {
  order: 1;
}

.app.has-bakery-detail:not(.is-navigating) .dialog-pill-button[data-action="back"] {
  order: 2;
}

.app.has-bakery-detail:not(.is-navigating) .dialog-pill-button[data-action="locate"] {
  order: 3;
}

.app.is-navigating.has-bakery-detail .dialog-pill-row {
  padding-left: 0;
  padding-right: 0;
  transform: translateX(39px);
}

.app.is-navigating.has-bakery-detail .dialog-pill-button[data-action="back"] {
  order: 1;
}

.app.is-navigating.has-bakery-detail .dialog-pill-button[data-action="locate"] {
  order: 2;
}

.app.has-bakery-detail .dialog-pill-button.is-selected {
  min-width: 0;
}

.long-scrollbar {
  --thumb-top: 0px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  width: 8px;
  height: 96px;
  border-radius: 999px;
  background: var(--button-bg);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 25;
}

.long-scrollbar.is-visible {
  opacity: 1;
}

.long-scrollbar-thumb {
  position: absolute;
  left: 0;
  top: var(--thumb-top);
  width: 8px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  transition:
    top 160ms ease,
    height 160ms ease;
}

.long-scrollbar.is-at-start .long-scrollbar-thumb {
  top: 0;
  height: 32px;
}

.long-scrollbar.is-at-end .long-scrollbar-thumb {
  top: 64px;
  height: 32px;
}

.bakery-button.is-leaving.move-right {
  animation: longGradientLeaveRight 260ms ease-out;
}

.bakery-button.is-leaving.move-left {
  animation: longGradientLeaveLeft 260ms ease-out;
}

.bakery-button.is-leaving.move-down {
  animation: longGradientLeaveDown 260ms ease-out;
}

.bakery-button.is-leaving.move-up {
  animation: longGradientLeaveUp 260ms ease-out;
}

.bakery-button.is-selected.move-right {
  animation: longGradientEnterRight 320ms ease-out;
}

.bakery-button.is-selected.move-left {
  animation: longGradientEnterLeft 320ms ease-out;
}

.bakery-button.is-selected.move-down {
  animation: longGradientEnterDown 320ms ease-out;
}

.bakery-button.is-selected.move-up {
  animation: longGradientEnterUp 320ms ease-out;
}

.bakery-button.is-selected.is-bouncing.move-down {
  animation: longGradientBounceDown 320ms ease-out;
}

.bakery-button.is-selected.is-bouncing.move-up {
  animation: longGradientBounceUp 320ms ease-out;
}

.action-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 96px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  z-index: 30;
  opacity: 0;
  transform: translateY(14px) scale(1.08);
  animation: actionBarEnter 680ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms forwards;
}

.dialog-pill-window {
  --dialog-pill-offset: 0px;
  width: 438px;
  height: 96px;
  margin: -18px auto 0;
  overflow: hidden;
  position: relative;
}

.action-pill-window {
  margin: 0 auto;
}

.dialog-pill-window::before,
.dialog-pill-window::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 76px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  z-index: 6;
}

.dialog-pill-window::before {
  left: 0;
  background: linear-gradient(to right,
    #000000 0%,
    rgba(0, 0, 0, 0.82) 32%,
    rgba(0, 0, 0, 0) 100%);
}

.dialog-pill-window::after {
  right: 0;
  background: linear-gradient(to left,
    #000000 0%,
    rgba(0, 0, 0, 0.82) 32%,
    rgba(0, 0, 0, 0) 100%);
}

.dialog-pill-window.has-left-fade::before,
.dialog-pill-window.has-right-fade::after {
  opacity: 1;
}

.dialog-pill-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: max-content;
  min-width: 100%;
  padding: 16px 96px;
  transform: translateX(calc(-1 * var(--dialog-pill-offset)));
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dialog-pill-button {
  --grad-x: 26%;
  --grad-y: -28%;
  --gradient: radial-gradient(ellipse 56% 230% at var(--grad-x) var(--grad-y),
    var(--button-hover-top) 0%,
    var(--button-hover-mid) 54%,
    var(--button-hover-bottom) 100%);
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  position: relative;
  transform: scale(1);
  box-shadow: none;
  transition:
    width 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    padding-right 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 260ms ease,
    box-shadow 260ms ease,
    --grad-x 220ms ease,
    --grad-y 220ms ease;
}

.dialog-pill-button::before,
.dialog-pill-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.dialog-pill-button::before {
  background: var(--gradient);
  z-index: 1;
}

.dialog-pill-button::after {
  box-shadow:
    inset -3px -4px 10px rgba(182, 85, 0, 0.5),
    inset 2px 4px 14px rgba(255, 211, 161, 0.5);
  z-index: 2;
}

.dialog-pill-button > * {
  position: relative;
  z-index: 3;
}

.dialog-pill-button.is-selected,
.dialog-pill-button:focus-visible,
.dialog-pill-button.is-label-open {
  width: auto;
  min-width: 0;
  padding-right: 26px;
}

.dialog-pill-button.is-selected,
.dialog-pill-button:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.dialog-pill-button.is-label-open,
.dialog-pill-button.is-label-open:focus-visible {
  transform: scale(1);
  box-shadow: none;
}

.app.is-spinning .dialog-pill-button.is-selected {
  min-width: 0;
}

.dialog-pill-button.is-selected::before,
.dialog-pill-button.is-selected::after,
.dialog-pill-button:focus-visible::before,
.dialog-pill-button:focus-visible::after,
.dialog-pill-button.is-leaving::before,
.dialog-pill-button.is-leaving::after {
  opacity: 1;
}

.dialog-pill-button.is-label-open::before,
.dialog-pill-button.is-label-open::after,
.dialog-pill-button.is-label-open:focus-visible::before,
.dialog-pill-button.is-label-open:focus-visible::after {
  opacity: 0;
}

.dialog-pill-button.is-hidden {
  width: 0;
  padding: 0;
  margin-left: -14px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.dialog-pill-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.dialog-pill-button.is-selected .dialog-pill-icon {
  width: 56px;
  flex-basis: 56px;
}

.dialog-pill-icon::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 0;
  background-color: transparent;
  background-image: var(--action-icon);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.22));
  box-shadow: none;
}

.dialog-pill-button[data-action="spin"] {
  --action-icon: url("assets/icons/spin-icon.png");
}

.dialog-pill-button[data-action="locate"] {
  --action-icon: url("assets/icons/locate-icon.png");
}

.app.has-bakery-detail .dialog-pill-button[data-action="locate"] {
  --action-icon: url("assets/icons/navigate-icon.png");
}

.dialog-pill-button[data-action="bookmark"] {
  --action-icon: url("assets/icons/bookmark-icon.png");
}

.app.has-bakery-detail:not(.is-saved-view) .dialog-pill-button[data-action="bookmark"] {
  --action-icon: url("assets/icons/bookmarkadd-icon.png");
}

.app.has-bakery-detail.is-saved-view .dialog-pill-button[data-action="bookmark"] {
  --action-icon: url("assets/icons/bookmarkdelete-icon.png");
}

.app.is-selected-bakery-saved .dialog-pill-button[data-action="bookmark"] {
  --action-icon: url("assets/icons/bookmarkdelete-icon.png");
}

.dialog-pill-button[data-action="back"] {
  --action-icon: url("assets/icons/back-icon.png");
}

.dialog-pill-label {
  position: relative;
  min-width: 0;
  flex: 0 0 auto;
  opacity: 0;
  transform: translateX(-8px);
  font: 700 17px/1 Arial, Helvetica, sans-serif;
  text-align: left;
  white-space: nowrap;
  transition:
    opacity 160ms ease,
    transform 220ms ease;
}

.dialog-pill-button.is-selected .dialog-pill-label,
.dialog-pill-button.is-label-open .dialog-pill-label {
  opacity: 1;
  transform: translateX(0);
}

.dialog-pill-button.is-leaving.move-right {
  animation: dialogPillLeaveRight 260ms ease-out;
}

.dialog-pill-button.is-leaving.move-left {
  animation: dialogPillLeaveLeft 260ms ease-out;
}

.dialog-pill-button.is-leaving.move-down {
  animation: dialogPillLeaveDown 260ms ease-out;
}

.dialog-pill-button.is-leaving.move-up {
  animation: dialogPillLeaveUp 260ms ease-out;
}

.dialog-pill-button.is-selected.move-right {
  animation: dialogPillEnterRight 320ms ease-out;
}

.dialog-pill-button.is-selected.move-left {
  animation: dialogPillEnterLeft 320ms ease-out;
}

.dialog-pill-button.is-selected.move-down {
  animation: dialogPillEnterDown 320ms ease-out;
}

.dialog-pill-button.is-selected.move-up {
  animation: dialogPillEnterUp 320ms ease-out;
}

@keyframes circleFadeIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes locateDotLift {
  0%,
  52%,
  100% {
    transform: translateY(0);
  }

  14% {
    transform: translateY(-18px);
  }

  28% {
    transform: translateY(0);
  }
}

@keyframes introViewEnter {
  from {
    opacity: 0;
    transform: scale(1.18);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes actionBarEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(1.08);
  }

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

@keyframes introBreadEnter {
  0% {
    opacity: 0;
    transform:
      translate(var(--intro-start-x), var(--intro-start-y))
      scale(calc(var(--intro-scale) * 1.18))
      rotate(-7deg);
  }

  100% {
    opacity: var(--intro-opacity);
    transform:
      translate(var(--intro-x), var(--intro-y))
      scale(var(--intro-scale))
      rotate(0deg);
  }
}

@keyframes introBreadDrift {
  0% {
    transform:
      translate(var(--intro-x), var(--intro-y))
      scale(var(--intro-scale))
      rotate(-2deg);
  }

  50% {
    transform:
      translate(var(--intro-orbit-mid-x), var(--intro-orbit-mid-y))
      scale(var(--intro-scale))
      rotate(1deg);
  }

  100% {
    transform:
      translate(var(--intro-orbit-x), var(--intro-orbit-y))
      scale(var(--intro-scale))
      rotate(3deg);
  }
}

@keyframes dialogPillLeaveRight {
  from { --grad-x: 26%; --grad-y: -28%; }
  to { --grad-x: 78%; --grad-y: 22%; }
}

@keyframes dialogPillLeaveLeft {
  from { --grad-x: 26%; --grad-y: -28%; }
  to { --grad-x: -18%; --grad-y: -64%; }
}

@keyframes dialogPillLeaveDown {
  from { --grad-x: 26%; --grad-y: -28%; }
  to { --grad-x: 42%; --grad-y: 82%; }
}

@keyframes dialogPillLeaveUp {
  from { --grad-x: 26%; --grad-y: -28%; }
  to { --grad-x: 14%; --grad-y: -88%; }
}

@keyframes dialogPillEnterRight {
  from { --grad-x: -18%; --grad-y: -64%; }
  to { --grad-x: 26%; --grad-y: -28%; }
}

@keyframes dialogPillEnterLeft {
  from { --grad-x: 78%; --grad-y: 22%; }
  to { --grad-x: 26%; --grad-y: -28%; }
}

@keyframes dialogPillEnterDown {
  from { --grad-x: 14%; --grad-y: -88%; }
  to { --grad-x: 26%; --grad-y: -28%; }
}

@keyframes dialogPillEnterUp {
  from { --grad-x: 42%; --grad-y: 82%; }
  to { --grad-x: 26%; --grad-y: -28%; }
}

@keyframes longGradientLeaveRight {
  from { --grad-x: 36%; --grad-y: -16%; }
  to { --grad-x: 84%; --grad-y: -16%; }
}

@keyframes longGradientLeaveLeft {
  from { --grad-x: 36%; --grad-y: -16%; }
  to { --grad-x: -18%; --grad-y: -16%; }
}

@keyframes longGradientLeaveDown {
  from { --grad-x: 36%; --grad-y: -16%; }
  to { --grad-x: 36%; --grad-y: 92%; }
}

@keyframes longGradientLeaveUp {
  from { --grad-x: 36%; --grad-y: -16%; }
  to { --grad-x: 36%; --grad-y: -68%; }
}

@keyframes longGradientEnterRight {
  from { --grad-x: -18%; --grad-y: -16%; }
  to { --grad-x: 36%; --grad-y: -16%; }
}

@keyframes longGradientEnterLeft {
  from { --grad-x: 84%; --grad-y: -16%; }
  to { --grad-x: 36%; --grad-y: -16%; }
}

@keyframes longGradientEnterDown {
  from { --grad-x: 36%; --grad-y: -68%; }
  to { --grad-x: 36%; --grad-y: -16%; }
}

@keyframes longGradientEnterUp {
  from { --grad-x: 36%; --grad-y: 92%; }
  to { --grad-x: 36%; --grad-y: -16%; }
}

@keyframes longGradientBounceDown {
  0% { --grad-x: 36%; --grad-y: -16%; }
  45% { --grad-x: 36%; --grad-y: 106%; }
  100% { --grad-x: 36%; --grad-y: -16%; }
}

@keyframes longGradientBounceUp {
  0% { --grad-x: 36%; --grad-y: -16%; }
  45% { --grad-x: 36%; --grad-y: -76%; }
  100% { --grad-x: 36%; --grad-y: -16%; }
}
