:root {
  --ink: #14130f;
  --muted: rgba(20, 19, 15, 0.68);
  --paper: #dbe4df;
  --yellow: #f3e1a2;
  --yellow-deep: #e0c878;
  --black: #0d0d0b;
  --card: rgba(255, 250, 235, 0.5);
  --line: rgba(20, 19, 15, 0.18);
  --orange: #bd7042;
  --shadow: 0 24px 70px rgba(34, 25, 8, 0.24);
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background: var(--yellow);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-weight: 400;
}

button {
  font: inherit;
}

.bar-app {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 27vw) minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.38), transparent 28rem),
    linear-gradient(90deg, rgba(224, 200, 120, 0.72), rgba(243, 225, 162, 0.96) 34%, #f7e9b7);
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  background: rgba(20, 19, 15, 0.42);
  backdrop-filter: blur(5px);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.intro-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 1;
  transition: opacity 780ms cubic-bezier(.2,.85,.16,1);
  pointer-events: none;
}

.intro-overlay.is-ready::before {
  opacity: 0;
}

.intro-overlay.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-card {
  width: min(42rem, 92vw, 82svh);
  aspect-ratio: 1;
  padding: clamp(2.2rem, 4vw, 4.4rem);
  border: 1px solid rgba(20, 19, 15, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.42), transparent 13rem),
    rgba(243, 225, 162, 0.96);
  box-shadow: 0 30px 90px rgba(20, 19, 15, 0.28);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(0.72rem, 1.5vw, 1rem);
  color: var(--ink);
  text-align: center;
  opacity: 0;
  transform: translateY(2rem) scale(0.86);
  transition: opacity 700ms cubic-bezier(.22,1,.36,1), transform 700ms cubic-bezier(.22,1,.36,1);
  position: relative;
  z-index: 1;
}

.intro-overlay.is-ready .intro-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.intro-card h1 {
  margin: 0;
  max-width: 10ch;
  font: 800 clamp(2.45rem, 7vw, 4.85rem)/0.84 "Poppins", sans-serif;
  text-transform: uppercase;
}

.intro-card p:not(.eyebrow) {
  margin: 0;
  max-width: 27rem;
  color: rgba(20, 19, 15, 0.82);
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.38;
}

.intro-card button {
  justify-self: center;
  min-height: 2.65rem;
  padding: 0.72rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fffaf0;
  cursor: pointer;
  font: 800 0.74rem/1 "Poppins", sans-serif;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}


.bottle-panel {
  min-height: 100svh;
  padding: clamp(1.4rem, 2.4vw, 2.35rem);
  border-right: 1px solid rgba(20, 19, 15, 0.16);
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  align-content: start;
  gap: 1.4rem;
  background: rgba(246, 230, 173, 0.42);
}

.filter-sheet-close,
.mobile-filter-trigger,
.filter-sheet-scrim,
.mobile-starter-card,
.active-filter-bar {
  display: none;
}

.eyebrow {
  margin: 0;
  font: 800 clamp(0.76rem, 0.9vw, 0.92rem)/1.1 "Poppins", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.panel-head .eyebrow {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

.bottle-list {
  display: grid;
  gap: 0.42rem;
}

.bottle-filter-panel {
  display: grid;
  gap: 0.55rem;
}

.bottle-filter-panel h2,
.mood-panel h2 {
  margin: 0;
  max-width: 14rem;
  font: 700 clamp(1.04rem, 1.36vw, 1.34rem)/1.05 "Cormorant Garamond", Georgia, serif;
  font-style: italic;
}

.bottle-button {
  width: 100%;
  min-height: 2.05rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  grid-template-columns: 0.72rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.56rem;
  text-align: left;
}

.bottle-button::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  transform: rotate(45deg);
  background: var(--bottle-color);
}

.bottle-button span {
  font: 800 clamp(0.76rem, 0.8vw, 0.9rem)/1.1 "Poppins", sans-serif;
  text-transform: uppercase;
}

.bottle-count {
  color: var(--muted);
  font: 700 0.68rem/1 "Poppins", sans-serif;
}

.bottle-button:hover,
.bottle-button.is-active {
  color: var(--bottle-color);
}

.mood-panel {
  padding-top: 0.4rem;
  display: grid;
  gap: 0.55rem;
}

.mood-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.mood-buttons button {
  min-height: 2rem;
  padding: 0.45rem 0.68rem;
  border: 1px solid rgba(20, 19, 15, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--ink);
  cursor: pointer;
  font: 800 0.66rem/1 "Poppins", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mood-buttons button:hover,
.mood-buttons button.is-active {
  background: var(--ink);
  color: var(--yellow);
}

.starter-card {
  width: min(100%, 18rem);
  padding: 0.8rem;
  border: 1px solid rgba(20, 19, 15, 0.28);
  background: rgba(255, 255, 255, 0.13);
  transition: opacity 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.bar-app.has-filter .starter-card {
  opacity: 0.22;
}

.bar-app.has-filter .starter-card.is-highlighted {
  opacity: 1;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 28px rgba(45, 31, 5, 0.13);
  transform: translateY(-1px);
}

.starter-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  text-align: center;
}

.starter-title {
  margin-bottom: 0.1rem;
  font: 700 0.92rem/1.05 "Cormorant Garamond", Georgia, serif;
}

.starter-button .drink-icon,
.starter-button .fallback-icon {
  width: 3.15rem;
  height: 3.15rem;
}

.extras {
  align-self: end;
  padding-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.extras h2 {
  margin: 0 0 0.35rem;
  font: 700 clamp(1.2rem, 1.75vw, 1.7rem)/1 "Cormorant Garamond", Georgia, serif;
  font-style: italic;
}

.extras p {
  margin: 0;
  color: rgba(20, 19, 15, 0.8);
  font-size: clamp(0.78rem, 0.78vw, 0.92rem);
  line-height: 1.25;
}

.extras strong {
  font: 800 0.78rem/1.1 "Poppins", sans-serif;
  text-transform: uppercase;
}

.cocktail-stage {
  min-width: 0;
  min-height: 100svh;
  padding: clamp(0.85rem, 1.25vw, 1.35rem) clamp(1.2rem, 2vw, 2.1rem) clamp(0.95rem, 1.35vw, 1.35rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.42rem;
}

.stage-head {
  min-height: 2.35rem;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.stage-head h1 {
  margin: 0.1rem 0 0;
  font: 800 clamp(1.75rem, 3vw, 3.28rem)/0.85 "Poppins", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stage-head .eyebrow {
  color: rgba(20, 19, 15, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.clear-filter {
  min-height: 2.3rem;
  padding: 0.45rem 0.76rem;
  border: 1px solid rgba(20, 19, 15, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: var(--ink);
  cursor: pointer;
  font: 800 0.68rem/1 "Poppins", sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.filter-chips button,
.filter-empty {
  min-height: 2rem;
  padding: 0.48rem 0.66rem;
  border: 1px solid rgba(20, 19, 15, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: var(--ink);
  cursor: pointer;
  font: 800 0.66rem/1 "Poppins", sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.filter-chips span {
  margin-left: 0.38rem;
  color: rgba(20, 19, 15, 0.58);
}

.filter-chips .chip-clear {
  background: transparent;
}

.cocktail-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(5.6rem, 1fr));
  grid-auto-rows: minmax(4.65rem, 1fr);
  gap: clamp(0.18rem, 0.42vw, 0.44rem) clamp(0.28rem, 0.76vw, 0.76rem);
  align-items: stretch;
}

.cocktail {
  position: relative;
  min-width: 0;
  padding: 0.28rem 0.2rem 0.42rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  grid-template-rows: minmax(2.52rem, 1fr) auto auto;
  justify-items: center;
  align-items: end;
  text-align: center;
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.cocktail:hover,
.cocktail:focus-visible,
.cocktail.is-highlighted {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 28px rgba(45, 31, 5, 0.13);
  outline: none;
}

.bar-app.has-filter .cocktail {
  opacity: 0.22;
}

.bar-app.has-filter .cocktail.is-highlighted {
  opacity: 1;
}

.drink-icon {
  width: min(3.08rem, 68%);
  height: 3.04rem;
  object-fit: contain;
  align-self: end;
  filter: drop-shadow(0 7px 6px rgba(24, 19, 9, 0.12));
}

.fallback-icon {
  width: min(2.9rem, 68%);
  height: 3.04rem;
  display: grid;
  place-items: center;
}

.fallback-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.drink-name {
  max-width: 9.8ch;
  min-height: 1.24rem;
  display: grid;
  place-items: center;
  font: 800 clamp(0.42rem, 0.5vw, 0.58rem)/1.02 "Poppins", sans-serif;
  text-transform: uppercase;
}

.dot-row {
  min-height: 0.42rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.14rem;
}

.dot {
  width: 0.28rem;
  height: 0.28rem;
  transform: rotate(45deg);
  background: var(--dot-color);
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 4, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 9;
}

.recipe-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(34rem, 94vw);
  padding: clamp(0.9rem, 1.5vw, 1.25rem);
  background: rgba(13, 13, 11, 0.72);
  backdrop-filter: blur(8px);
  color: #fffaf0;
  box-shadow: -20px 0 70px rgba(0, 0, 0, 0.32);
  transform: translateX(104%);
  transition: transform 260ms ease;
  z-index: 10;
  overflow-y: auto;
}

.bar-app.drawer-open .drawer-scrim {
  opacity: 1;
  pointer-events: auto;
}

.bar-app.drawer-open .recipe-drawer {
  transform: translateX(0);
}

.drawer-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(244, 230, 196, 0.18);
  border-radius: 999px;
  background: rgba(244, 230, 196, 0.08);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}

.drawer-close::before,
.drawer-close::after {
  content: "";
  position: absolute;
  width: 0.9rem;
  height: 2px;
  background: #fffaf0;
}

.drawer-close::before { transform: rotate(45deg); }
.drawer-close::after { transform: rotate(-45deg); }

.recipe-card {
  margin-top: 0.7rem;
  display: grid;
  gap: 1.1rem;
  padding: clamp(1rem, 2vw, 1.45rem);
  border: 1px solid rgba(244, 230, 196, 0.16);
  border-radius: 6px;
  background: rgba(10, 12, 16, 0.82);
  box-shadow: var(--shadow);
  overflow-wrap: break-word;
}

.recipe-card header {
  display: grid;
  gap: 0.55rem;
}

.recipe-card h2 {
  margin: 0;
  font: 800 clamp(2rem, 4vw, 3.4rem)/0.9 "Poppins", sans-serif;
  text-transform: uppercase;
}

.recipe-card p {
  margin: 0;
  color: rgba(255, 250, 240, 0.82);
  line-height: 1.58;
}

.card-label,
.section-label {
  color: rgba(244, 230, 196, 0.76);
  font: 700 0.72rem/1 "Poppins", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recipe-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(244, 230, 196, 0.12);
  border-bottom: 1px solid rgba(244, 230, 196, 0.12);
}

.recipe-meta div {
  display: grid;
  gap: 0.25rem;
}

.recipe-meta dt {
  color: rgba(244, 230, 196, 0.76);
  font: 700 0.7rem/1 "Poppins", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recipe-meta dd {
  margin: 0;
  color: #fffaf0;
  line-height: 1.35;
}

.ingredients,
.method,
.note {
  display: grid;
  gap: 0.55rem;
}

.ingredients ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255, 250, 240, 0.88);
  line-height: 1.55;
}

.method p,
.note p {
  color: rgba(255, 250, 240, 0.86);
}

@media (max-width: 1080px) {
  .bar-app {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .bottle-panel {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(20, 19, 15, 0.16);
  }

  .bottle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .extras {
    align-self: start;
  }

  .cocktail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(7rem, auto);
  }
}

@media (max-width: 620px) {
  body {
    min-height: 100svh;
  }

  .bar-app {
    min-height: 100svh;
    padding-bottom: 5.4rem;
    display: block;
    overflow: visible;
  }

  .bottle-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 22;
    max-height: min(78svh, 42rem);
    min-height: 0;
    padding: 1.25rem 1.1rem 1.35rem;
    border: 1px solid rgba(20, 19, 15, 0.18);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background:
      radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.36), transparent 12rem),
      rgba(243, 225, 162, 0.96);
    box-shadow: 0 -18px 52px rgba(20, 19, 15, 0.24);
    display: grid;
    grid-template-rows: auto auto auto auto;
    gap: 1rem;
    overflow-y: auto;
    transform: translateY(calc(100% + 1rem));
    transition: transform 260ms cubic-bezier(.22,1,.36,1);
  }

  .bar-app.filter-sheet-open .bottle-panel {
    transform: translateY(0);
  }

  .filter-sheet-close {
    display: grid;
    place-items: center;
    position: sticky;
    top: 0;
    justify-self: end;
    z-index: 1;
    width: 2.2rem;
    height: 2.2rem;
    margin-bottom: -0.5rem;
    border: 1px solid rgba(20, 19, 15, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
  }

  .filter-sheet-close::before,
  .filter-sheet-close::after {
    content: "";
    position: absolute;
    width: 0.88rem;
    height: 2px;
    background: var(--ink);
  }

  .filter-sheet-close::before { transform: rotate(45deg); }
  .filter-sheet-close::after { transform: rotate(-45deg); }

  .filter-sheet-scrim {
    position: fixed;
    inset: 0;
    z-index: 21;
    background: rgba(5, 5, 4, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .bar-app.filter-sheet-open .filter-sheet-scrim {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .panel-head {
    display: none;
  }

  .bottle-panel > .starter-card {
    display: none;
  }

  .bottle-list {
    grid-template-columns: 1fr;
    gap: 0.36rem;
  }

  .bottle-button {
    min-height: 2.3rem;
  }

  .extras {
    display: none;
  }

  .cocktail-stage {
    width: 100vw;
    max-width: 100vw;
    min-height: 100svh;
    padding: 1rem 0.86rem 0;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 0.72rem;
    overflow-x: hidden;
  }

  .stage-head {
    align-items: start;
    gap: 0.75rem;
    min-width: 0;
  }

  .stage-head h1 {
    max-width: 8.8ch;
    font-size: clamp(2.05rem, 11.6vw, 3.3rem);
    overflow-wrap: normal;
  }

  .stage-head .eyebrow {
    font-size: 0.64rem;
  }

  .clear-filter {
    display: none;
  }

  .mobile-starter-card {
    display: block;
    width: 100%;
    padding: 0.56rem 0.6rem;
    border: 1px solid rgba(20, 19, 15, 0.2);
    background: rgba(255, 255, 255, 0.18);
    transition: opacity 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }

  .bar-app.has-filter .mobile-starter-card {
    opacity: 0.28;
  }

  .bar-app.has-filter .mobile-starter-card.is-highlighted {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 24px rgba(45, 31, 5, 0.12);
  }

  .mobile-starter-card .starter-button {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    justify-items: start;
    align-items: center;
    column-gap: 0.65rem;
    text-align: left;
  }

  .mobile-starter-card .starter-title {
    grid-column: 2 / 4;
    margin: 0;
    font-size: 1rem;
  }

  .mobile-starter-card .drink-icon,
  .mobile-starter-card .fallback-icon {
    grid-row: 1 / 3;
    width: 3.2rem;
    height: 3.2rem;
  }

  .mobile-starter-card .drink-name {
    max-width: none;
    min-height: 0;
    place-items: start;
    font-size: 0.64rem;
  }

  .mobile-starter-card .dot-row {
    justify-content: flex-end;
  }

  .active-filter-bar {
    display: block;
    min-height: 2rem;
  }

  .filter-empty {
    width: 100%;
    min-height: 2.85rem;
    display: grid;
    place-items: center;
    border-color: rgba(20, 19, 15, 0.28);
    background: rgba(255, 255, 255, 0.32);
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
  }

  .cocktail-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(8.4rem, auto);
    gap: 0.72rem 0.6rem;
    align-content: start;
  }

  .bar-app.has-filter .cocktail:not(.is-highlighted) {
    display: none;
  }

  .cocktail {
    padding: 0.62rem 0.42rem 0.56rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(20, 19, 15, 0.08);
    grid-template-rows: minmax(4.8rem, 1fr) auto auto;
  }

  .drink-icon {
    width: min(4.5rem, 78%);
    height: 4.8rem;
  }

  .fallback-icon {
    width: min(4.3rem, 76%);
    height: 4.8rem;
  }

  .drink-name {
    max-width: 14ch;
    min-height: 1.5rem;
    font-size: 0.62rem;
  }

  .mobile-filter-trigger {
    position: fixed;
    left: 50%;
    bottom: max(0.9rem, env(safe-area-inset-bottom));
    z-index: 20;
    display: block;
    min-height: 3rem;
    width: min(18rem, calc(100vw - 2rem));
    padding: 0.82rem 1rem;
    border: 1px solid rgba(20, 19, 15, 0.22);
    border-radius: 999px;
    background: var(--ink);
    color: var(--yellow);
    box-shadow: 0 14px 36px rgba(20, 19, 15, 0.28);
    cursor: pointer;
    transform: translateX(-50%);
    font: 800 0.76rem/1 "Poppins", sans-serif;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .recipe-drawer {
    top: auto;
    left: 0;
    width: 100%;
    height: min(88svh, 48rem);
    padding: 0.9rem 0.8rem max(1rem, env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    transform: translateY(104%);
    box-shadow: 0 -18px 52px rgba(0, 0, 0, 0.34);
  }

  .bar-app.drawer-open .recipe-drawer {
    transform: translateY(0);
  }

  .recipe-card {
    margin-top: 0.5rem;
    padding: 1.05rem;
  }

  .recipe-card h2 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .recipe-meta {
    grid-template-columns: 1fr;
  }
}
