.brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#showGuide {
  flex: none;
  min-height: 30px;
  padding: 3px 7px;
  border: 1px solid #51446c;
  border-radius: 999px;
  background: #1a1424;
  color: #e6d8ff;
  font-size: 11px;
  white-space: nowrap;
}

.quick-guide h3 {
  margin: 13px 0 6px;
  font-size: 13px;
}

.quick-guide p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.bottle-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bottle-legend li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  color: #c8cbd2;
  font-size: 12px;
}

.bottle-legend strong {
  padding: 2px 5px;
  border: 1px solid var(--legend-color);
  border-radius: 4px;
  color: var(--legend-color);
  font-size: 10px;
}

.icon-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: #d1d4db;
  font-size: 12px;
}

.footer-partner {
  margin-top: 10px;
}

#showPartnership {
  min-height: 42px;
  padding: 6px 11px;
  font-size: 13px;
}

.partnership-actions {
  display: grid;
  gap: 9px;
}

.partnership-actions :is(a, button) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #3a3249;
  border-radius: 8px;
  background: #191421;
  color: #eadfff;
  font-size: 14px;
  text-align: left;
}

.partnership-actions button span {
  color: #beb8cc;
  user-select: all;
}

#modalToast {
  position: sticky;
  z-index: 3;
  bottom: 12px;
  margin: 0 14px 12px;
  padding: 9px 12px;
  border: 1px solid #584477;
  border-radius: 8px;
  background: #2b213c;
  color: white;
  font-size: 13px;
  text-align: center;
}

.thumb-layout .place {
  --badge-width: 76px;
  grid-template-columns: minmax(116px, 1.15fr) var(--badge-width) minmax(85px, 1fr) 18px 65px;
  grid-template-areas: 'name bottle address glass map';
  column-gap: 10px;
}

.thumb-layout .place.place-liquor {
  --badge-width: 116px;
}

.spirit-silhouette {
  display: block;
  flex: none;
}

.place-badge .spirit-silhouette {
  max-width: 100%;
  height: auto;
}

.spirit-silhouette[data-shape="maebyeong"],
.place-badge:has(> .spirit-silhouette[data-shape="maebyeong"]) {
  width: 84px;
  height: 34px;
}

.liquor-profile {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 9px 12px;
  line-height: 1.55;
  font-size: 14px;
}

.liquor-profile dt { color: #a9b4c4; }
.liquor-profile dd { margin: 0; overflow-wrap: anywhere; }
.liquor-profile a { color: #9ed6f9; }

.place-glass {
  grid-area: glass;
  min-width: 18px;
  text-align: center;
}

.place-glass .glass-icon {
  display: inline;
  font-size: 14px;
  line-height: 1;
}

.event-mark {
  flex: none;
  padding: 2px 4px;
  border: 1px solid #735d36;
  border-radius: 4px;
  background: #241c11;
  color: #ffdc92;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.place .open h3 {
  min-width: 0;
}

.detail-glass {
  background: #282033;
  color: #eadbff;
  animation: glass-highlight .6s ease-out both;
}

@keyframes glass-highlight {
  from { opacity: .65; box-shadow: 0 0 0 #aa79d900; }
  to { opacity: 1; box-shadow: 0 0 10px #aa79d94a; }
}

@media (max-width: 650px) {
  .thumb-layout .place {
    grid-template-columns: minmax(0,1fr) var(--badge-width) 18px 51px;
    grid-template-areas: 'name bottle glass map' 'address address address map';
    column-gap: 5px;
  }
  .thumb-layout .place.place-liquor {
    --badge-width: 96px;
  }
}

@media (max-width: 650px) and (max-height: 700px) {
  .thumb-layout .place:has(> .place-badge > .spirit-silhouette[data-shape="maebyeong"]) {
    height: auto;
    grid-template-rows: auto auto;
  }
}

@media (max-width: 360px) {
  .app-header .brand {
    font-size: 21px;
  }
  .brand-row {
    gap: 5px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .detail-glass {
    animation: none;
  }
}
