/* Drawn glasses: every drink drawn as its own glass (js/glass.js). */

.glass-art { display: block; overflow: visible; }

/* Drink rows: a bigger square with the glass standing in it */
.drink-thumb.glass-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  align-self: stretch;
  min-height: 64px;
  height: auto;
  border-right: 2px solid var(--ink);
  overflow: hidden;
}
.glass-thumb .glass-art { width: 40px; height: 54px; filter: drop-shadow(2px 2px 0 var(--ink)); }
.glass-sticker {
  position: absolute;
  right: 3px;
  bottom: 2px;
  font-size: 0.85rem;
  line-height: 1;
}

/* Spirit and vibe tiles */
.category-glass { display: flex; justify-content: center; margin-bottom: 0.35rem; }
.category-glass .glass-art { width: 58px; height: 78px; filter: drop-shadow(3px 3px 0 var(--ink)); }

/* Drink of the day: the glass stands at the right */
.dotd-banner.dotd-with-glass { position: relative; padding-right: 7.5rem; min-height: 8.5rem; }
.dotd-glass {
  position: absolute;
  right: 1rem;
  bottom: 0.4rem;
  pointer-events: none;
}
.dotd-with-glass .dotd-label, .dotd-with-glass .dotd-meta, .dotd-with-glass .dotd-cta { color: var(--white); }
.dotd-glass .glass-art { width: 92px; height: 123px; filter: drop-shadow(4px 4px 0 var(--ink)); }

/* Recipe header: name on the left, the glass on the right */
.drink-detail-header.drink-header-glass {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
}
.drink-header-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; min-width: 0; padding-bottom: 0.35rem; }
.drink-header-text .drink-detail-name { overflow-wrap: anywhere; }
.drink-glass-caption {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
  max-width: 28ch;
}
.drink-header-art { flex-shrink: 0; margin-bottom: -0.2rem; }
.drink-header-art .glass-art { width: 104px; height: 139px; filter: drop-shadow(5px 5px 0 var(--ink)); }

@media (min-width: 768px) {
  .drink-header-art .glass-art { width: 140px; height: 188px; }
  .dotd-banner.dotd-with-glass { padding-right: 10rem; display: flex; flex-direction: column; justify-content: center; min-height: 12.5rem; }
  .dotd-glass { right: auto; left: clamp(20rem, 48%, 34rem); }
  .dotd-glass .glass-art { width: 120px; height: 161px; }
  .drink-detail-header.drink-header-glass { justify-content: flex-start; align-items: center; gap: 3rem; padding: 1.5rem 2rem; }
  .drink-glass-caption { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .drink-header-art .glass-art { animation: glass-in 0.35s ease-out both; }
  @keyframes glass-in { from { transform: translateY(10px) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }
}
