/* ==========================================================================
   6. INLINE VICTORY / SUMMARY PANEL (RIGHT COLUMN)
   ========================================================================== */
.inline-summary-panel {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  background: var(--primary-950);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  box-sizing: border-box;
  contain: layout style;
}

#bc-arcade-root.showing-summary .right-play-area,
#bc-arcade-root.showing-summary .footer-btns {
  display: none !important;
}

#bc-arcade-root.showing-summary .inline-summary-panel {
  display: flex;
  min-height: 0;
  animation: bcSummaryPanelIn 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bcSummaryPanelIn {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

#bc-arcade-root.showing-summary .inline-summary-panel .lb-box {
  min-height: 0;
}

/* Summary Hero Showcase Card (Hero Solve Time/Score + Style Chips + 3x3 Woven Mini-Cards) */
.summary-hero-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: linear-gradient(155deg, #2b1c3d, #160f20);
  border: 1px solid rgba(229, 169, 60, 0.42);
  border-radius: 11px;
  padding: 9px 11px;
  box-sizing: border-box;
}

.summary-hero-card.is-pb {
  background: linear-gradient(145deg, #3c2938, #241634, #160f20);
  border-color: var(--accent);
}

.summary-hero-card.is-walkthrough {
  border-color: rgba(208, 189, 148, 0.35);
}

.summary-style-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.weave-style-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(229, 169, 60, 0.48);
  background: rgba(229, 169, 60, 0.15);
  color: #ffd573;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: pbShimmerPop 0.34s cubic-bezier(0.22, 1, 0.36, 1) var(--chip-delay, 0ms) both;
}

.weave-style-chip .wsc-icon {
  font-size: 0.7rem;
  line-height: 1;
}

.weave-style-chip.tone-gold-solid {
  background: linear-gradient(135deg, #f0b949, #c9881b);
  border-color: #ffe082;
  color: #140E1D;
  font-weight: 900;
}

.weave-style-chip.tone-gold {
  background: rgba(229, 169, 60, 0.16);
  border-color: rgba(229, 169, 60, 0.56);
  color: #ffd573;
}

.weave-style-chip.tone-emerald,
.weave-style-chip.tone-earth {
  background: rgba(60, 168, 97, 0.18);
  border-color: rgba(92, 230, 139, 0.52);
  color: #72f29d;
}

.weave-style-chip.tone-water {
  background: rgba(43, 125, 233, 0.2);
  border-color: rgba(96, 165, 250, 0.55);
  color: #93c5fd;
}

.weave-style-chip.tone-fire {
  background: rgba(232, 93, 42, 0.2);
  border-color: rgba(251, 146, 60, 0.55);
  color: #fdba74;
}

.weave-style-chip.tone-air {
  background: rgba(140, 155, 165, 0.22);
  border-color: rgba(203, 213, 225, 0.5);
  color: #e2e8f0;
}

.weave-style-chip.tone-aether {
  background: rgba(155, 81, 224, 0.22);
  border-color: rgba(214, 180, 252, 0.58);
  color: #e5ccff;
}

.weave-style-chip.tone-neutral {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(208, 189, 148, 0.4);
  color: var(--text);
}

.summary-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-metric-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.hero-eyebrow {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  line-height: 1.1;
}

.hero-metric-val {
  font-family: 'Courier New', Courier, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.56rem;
  font-weight: 900;
  line-height: 1.05;
  color: var(--accent);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-metric-val.walkthrough-val {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: #5ce68b;
}

.hero-sub-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.hero-sub-item {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  white-space: nowrap;
}

.hero-sub-item b {
  color: var(--text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hero-sub-dot {
  opacity: 0.55;
  font-size: 0.64rem;
}

.hero-right-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.woven-crests-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.woven-mini-card {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 5px 4px 5px;
  border-radius: 8px;
  background: var(--primary-950);
  border: 1px solid rgba(229, 169, 60, 0.34);
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  animation: pbShimmerPop 0.36s cubic-bezier(0.22, 1, 0.36, 1) var(--crest-delay, 0ms) both;
}

.woven-mini-card.el-W {
  border-color: rgba(43, 125, 233, 0.55);
}

.woven-mini-card.el-F {
  border-color: rgba(232, 93, 42, 0.55);
}

.woven-mini-card.el-E {
  border-color: rgba(60, 168, 97, 0.55);
}

.woven-mini-card.el-A {
  border-color: rgba(163, 178, 188, 0.5);
}

.woven-mini-card.interactive {
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.14s ease, border-color 0.14s ease, opacity 0.14s ease;
}

.woven-mini-card.interactive:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.woven-mini-card.is-spotlighted {
  border-color: #ffe082;
  background: var(--primary-900);
  transform: translateY(-2px) scale(1.05);
}

.woven-mini-card.is-dimmed {
  opacity: 0.46;
}

.woven-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  grid-template-rows: repeat(3, 8px);
  gap: 2px;
}

.wmc-cell {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  box-sizing: border-box;
  display: block;
}

.wmc-cell.excl {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wmc-cell.req.gold {
  background: linear-gradient(135deg, #f0b949, #b87b14);
}

.wmc-el-pip {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wmc-el-pip .el-icon {
  width: 72%;
  height: 72%;
}

.wmc-card-num {
  font-size: 0.56rem;
  font-weight: 800;
  color: var(--muted);
  line-height: 1;
}

.summary-weave-again-btn {
  padding: 7px 13px;
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes pbShimmerPop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }

  70% {
    transform: scale(1.08);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.summary-actions-grid {
  display: flex;
  gap: 6px;
}

.summary-actions-grid .action-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px 6px;
  font-size: 0.72rem;
  line-height: 1.15;
  text-align: center;
}

.practice-cta-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8px;
  gap: 8px;
  margin: auto 0;
  font-size: 0.76rem;
  color: var(--text);
}

.practice-cta-box p {
  margin: 0;
  line-height: 1.35;
}

.share-card-preview-box {
  background: var(--primary-950);
  border: 1px solid rgba(229, 169, 60, 0.35);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-card-preview-img {
  width: auto;
  max-width: min(332px, 100%);
  max-height: min(332px, calc(52dvh / var(--ui-scale, 1)));
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  display: block;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.72);
}

