/* Shared styling additions for the saved-data Booster Pack Guide. */
@media (max-width: 768px) {
  .booster-guide-2-page .booster-guide-sort-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

.booster-guide-2-page .booster-guide-pack-card--set-art .booster-guide-pack-card-image-wrap {
  aspect-ratio: 16 / 9;
}

.booster-guide-2-detail .booster-guide-methodology-link {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--accent);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.booster-guide-2-detail .booster-guide-methodology-link:hover {
  color: var(--text);
  background: none;
  box-shadow: none;
  transform: none;
}

.booster-guide-2-detail .booster-guide-methodology-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.booster-guide-modal-open {
  overflow: hidden;
}

.booster-guide-2-detail .booster-guide-methodology-dialog {
  width: min(680px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  margin: auto;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: #171310;
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  overflow: auto;
  overscroll-behavior: contain;
}

.booster-guide-methodology-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.booster-guide-2-detail .booster-guide-methodology-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #171310;
  border-bottom: 1px solid var(--card-border);
  z-index: 1;
}

.booster-guide-2-detail .booster-guide-methodology-header h2 {
  flex: 1;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

.booster-guide-2-detail .booster-guide-methodology-close {
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: 0.8125rem;
}

.booster-guide-2-detail .booster-guide-methodology-content {
  padding: 20px 24px;
  overflow-wrap: anywhere;
}

.booster-guide-2-detail .booster-guide-methodology-content p {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #c5bbb2;
}

.booster-guide-2-detail .booster-guide-methodology-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .booster-guide-2-detail .booster-guide-methodology-header,
  .booster-guide-2-detail .booster-guide-methodology-content {
    padding: 16px;
  }
}

.booster-guide-2-detail .booster-guide-card-link {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.booster-guide-2-detail .booster-guide-card-foil.booster-effect-visible .booster-guide-card-image-wrap::after {
  animation-play-state: running;
}

.booster-guide-2-detail .booster-guide-sort-toggle-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.booster-guide-2-page .booster-guide-pack-card--product-shot,
.booster-guide-2-page .booster-guide-pack-item:hover .booster-guide-pack-card--product-shot,
.booster-guide-2-page .booster-guide-pack-item:focus-visible .booster-guide-pack-card--product-shot {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.booster-guide-2-page .booster-guide-pack-card--product-shot .booster-guide-pack-card-image-wrap {
  aspect-ratio: 3 / 4;
  padding: 0.5rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.booster-guide-2-page .booster-guide-pack-card--product-shot img {
  object-fit: contain;
}

.booster-guide-2-page .booster-guide-pack-card--product-shot.booster-guide-card-foil .booster-guide-card-image-wrap {
  -webkit-mask-image: var(--booster-product-image);
  mask-image: var(--booster-product-image);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-origin: content-box;
  mask-origin: content-box;
}
