/*
 * Live Covenant Visual System v1 — B-class game validation
 * Veiled Choice proves the system can leave Story without reverting to
 * purple modal + equal-card UI. No game mechanics are changed here.
 */

#phase2VeiledChoiceOverlay {
  padding: 16px;
  background:
    radial-gradient(circle at 52% 14%, rgba(116, 31, 49, 0.14), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(168, 117, 66, 0.07), transparent 26%),
    rgba(7, 5, 7, 0.90);
  backdrop-filter: blur(16px) saturate(106%);
}

#phase2VeiledChoiceOverlay .p2-vc-card {
  width: min(100%, 760px);
  max-height: 92dvh;
  padding: 24px;
  border: 1px solid var(--lc-border-subtle);
  border-radius: 28px;
  color: var(--lc-text-primary);
  background:
    linear-gradient(180deg, rgba(245, 239, 231, 0.035), transparent 28%),
    rgba(17, 13, 16, 0.96);
  box-shadow: var(--lc-shadow-deep);
}

#phase2VeiledChoiceOverlay .p2-vc-head {
  gap: 20px;
}

#phase2VeiledChoiceOverlay .p2-vc-kicker {
  color: var(--lc-accent-decorative);
  font-family: var(--lc-font-decorative);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

#phase2VeiledChoiceOverlay .p2-vc-title {
  margin-top: 4px;
  color: var(--lc-text-primary);
  font-family: var(--lc-font-narrative);
  font-size: clamp(1.72rem, 5vw, 2.3rem);
  font-weight: 600;
  line-height: 1.25;
}

#phase2VeiledChoiceOverlay .p2-vc-copy {
  max-width: 38rem;
  margin-top: 8px;
  color: var(--lc-text-secondary);
  font: 400 0.84rem/1.7 var(--lc-font-ui);
}

#phase2VeiledChoiceOverlay [data-vc-close] {
  min-width: 44px;
  min-height: 44px;
  border-color: var(--lc-border-subtle);
  border-radius: var(--lc-radius-pill-token);
  color: var(--lc-text-secondary);
  background: rgba(245, 239, 231, 0.035);
}

#phase2VeiledChoiceOverlay .p2-vc-meta {
  gap: 8px;
  margin-top: 18px;
}

#phase2VeiledChoiceOverlay .p2-vc-pill {
  padding: 5px 8px;
  border: 0;
  border-radius: 0;
  color: var(--lc-text-muted);
  background: transparent;
  font: 500 0.68rem/1.4 var(--lc-font-code);
  letter-spacing: 0.04em;
}

#phase2VeiledChoiceOverlay .p2-vc-pill + .p2-vc-pill {
  border-left: 1px solid var(--lc-border-subtle);
}

#phase2VeiledChoiceOverlay .p2-vc-stage {
  margin-top: 20px;
  padding: 14px 0 14px 16px;
  border: 0;
  border-left: 1px solid rgba(168, 117, 66, 0.62);
  border-radius: 0;
  background: transparent;
}

#phase2VeiledChoiceOverlay .p2-vc-phase {
  color: var(--lc-accent-decorative);
  font: 500 0.68rem/1.4 var(--lc-font-code);
  letter-spacing: 0.08em;
}

#phase2VeiledChoiceOverlay .p2-vc-status {
  margin-top: 6px;
  color: var(--lc-text-primary);
  font-family: var(--lc-font-narrative);
  font-size: 1.05rem;
  font-weight: 600;
}

#phase2VeiledChoiceOverlay .p2-vc-note {
  max-width: 42rem;
  margin-top: 7px;
  color: var(--lc-text-muted);
  font: 400 0.74rem/1.55 var(--lc-font-ui);
}

/* Three choices are objects on a table, not generic product cards. */
#phase2VeiledChoiceOverlay .p2-vc-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
  align-items: stretch;
}

#phase2VeiledChoiceOverlay .p2-vc-option {
  position: relative;
  min-height: 190px;
  padding: 20px 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(83, 58, 40, 0.30);
  border-radius: 14px 14px 24px 14px;
  color: var(--lc-text-on-artifact);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.28), transparent 25%),
    linear-gradient(145deg, #ecdfc9 0%, #dfceb2 55%, #c7b08e 100%);
  box-shadow: 0 13px 26px rgba(0, 0, 0, 0.22), var(--lc-glow-artifact);
  transform: rotate(-0.45deg);
  transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

#phase2VeiledChoiceOverlay .p2-vc-option:nth-child(2) {
  transform: rotate(0.3deg) translateY(4px);
}

#phase2VeiledChoiceOverlay .p2-vc-option:nth-child(3) {
  transform: rotate(-0.15deg) translateY(1px);
}

#phase2VeiledChoiceOverlay .p2-vc-option::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background:
    repeating-linear-gradient(3deg, rgba(82, 59, 40, 0.08) 0 1px, transparent 1px 6px),
    linear-gradient(90deg, transparent 0 74%, rgba(84, 50, 34, 0.07) 76%, transparent 80%);
  mix-blend-mode: multiply;
}

#phase2VeiledChoiceOverlay .p2-vc-option.selectable:hover,
#phase2VeiledChoiceOverlay .p2-vc-option.selectable:focus-visible {
  border-color: rgba(116, 31, 49, 0.54);
  outline: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.30), transparent 25%),
    linear-gradient(145deg, #f0e4d0 0%, #e4d2b8 55%, #ccb594 100%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28), 0 0 30px rgba(116, 31, 49, 0.12);
  transform: translateY(-3px) rotate(0deg);
}

#phase2VeiledChoiceOverlay .p2-vc-option.selected {
  border-color: rgba(116, 31, 49, 0.72);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.30), inset 0 0 0 2px rgba(116, 31, 49, 0.12);
}

#phase2VeiledChoiceOverlay .p2-vc-symbol {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(116, 31, 49, 0.42);
  border-radius: 50%;
  color: var(--lc-accent-strong);
  background: rgba(116, 31, 49, 0.055);
  font-family: var(--lc-font-narrative);
  font-size: 1.25rem;
}

#phase2VeiledChoiceOverlay .p2-vc-option-label {
  position: relative;
  z-index: 1;
  color: #281b1f;
  font-family: var(--lc-font-narrative);
  font-size: 1.05rem;
  font-weight: 600;
}

#phase2VeiledChoiceOverlay .p2-vc-mapped-title {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: var(--lc-accent-strong);
  font-family: var(--lc-font-narrative);
  font-size: 0.84rem;
  font-weight: 600;
}

#phase2VeiledChoiceOverlay .p2-vc-mapped-copy,
#phase2VeiledChoiceOverlay .p2-vc-covered {
  position: relative;
  z-index: 1;
  color: rgba(40, 27, 31, 0.66);
  font: 400 0.73rem/1.55 var(--lc-font-ui);
}

#phase2VeiledChoiceOverlay .p2-vc-covered {
  margin-top: auto;
}

#phase2VeiledChoiceOverlay .p2-vc-reveal {
  margin-top: 24px;
  padding: 18px 18px 18px 20px;
  border: 0;
  border-left: 2px solid var(--lc-accent-primary);
  border-radius: 0;
  background: rgba(116, 31, 49, 0.08);
}

#phase2VeiledChoiceOverlay .p2-vc-reveal-title {
  color: var(--lc-text-primary);
  font-family: var(--lc-font-narrative);
  font-size: 1.12rem;
  font-weight: 600;
}

#phase2VeiledChoiceOverlay .p2-vc-reveal-copy {
  margin-top: 8px;
  color: var(--lc-text-secondary);
  font: 400 0.88rem/1.7 var(--lc-font-ui);
}

#phase2VeiledChoiceOverlay .p2-vc-actions {
  gap: 10px;
  margin-top: 22px;
}

#phase2VeiledChoiceOverlay .p2-vc-actions .btn-study-micro {
  min-height: 46px;
  padding: 10px 15px;
  border-color: var(--lc-border-subtle);
  border-radius: var(--lc-radius-control);
  color: var(--lc-text-secondary);
  background: rgba(245, 239, 231, 0.035);
  font-family: var(--lc-font-ui);
}

#phase2VeiledChoiceOverlay .p2-vc-actions .p2-vc-primary {
  border-color: rgba(194, 148, 95, 0.42);
  color: var(--lc-text-primary);
  background: linear-gradient(180deg, #81283c 0%, var(--lc-accent-strong) 100%);
  box-shadow: var(--lc-shadow-soft-lift);
}

#phase2VeiledChoiceOverlay .p2-vc-actions .p2-vc-danger {
  border-color: rgba(169, 52, 66, 0.42);
  color: #efc6cc;
  background: rgba(169, 52, 66, 0.06);
}

#phase2VeiledChoiceOverlay [data-vc-protego] {
  border-radius: var(--lc-radius-pill-token);
}

#phase2VeiledChoiceOverlay .p2-vc-error {
  color: #e8aeb6;
  font-family: var(--lc-font-ui);
}

@media (max-width: 599px) {
  #phase2VeiledChoiceOverlay {
    padding: 8px;
    align-items: flex-end;
  }

  #phase2VeiledChoiceOverlay .p2-vc-card {
    padding: 20px 15px calc(18px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 14px 14px;
  }

  #phase2VeiledChoiceOverlay .p2-vc-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #phase2VeiledChoiceOverlay .p2-vc-option,
  #phase2VeiledChoiceOverlay .p2-vc-option:nth-child(2),
  #phase2VeiledChoiceOverlay .p2-vc-option:nth-child(3) {
    min-height: 124px;
    transform: none;
  }

  #phase2VeiledChoiceOverlay .p2-vc-option {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-content: center;
    column-gap: 12px;
  }

  #phase2VeiledChoiceOverlay .p2-vc-symbol {
    grid-row: 1 / span 3;
    margin: 0;
  }

  #phase2VeiledChoiceOverlay .p2-vc-option-label,
  #phase2VeiledChoiceOverlay .p2-vc-mapped-title,
  #phase2VeiledChoiceOverlay .p2-vc-mapped-copy,
  #phase2VeiledChoiceOverlay .p2-vc-covered {
    grid-column: 2;
  }

  #phase2VeiledChoiceOverlay .p2-vc-actions {
    flex-direction: column;
  }

  #phase2VeiledChoiceOverlay .p2-vc-actions .btn-study-micro {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #phase2VeiledChoiceOverlay .p2-vc-option {
    transition: none;
  }
}
