/* BKS Creations | SAGE TAROT V8 SIMPLIFIED | 2026-11-13
   Additive, presentation-only. V4 deck and V5/V6 room styles remain intact.
*/
/* The reading intelligence still owns this control; V8 triggers it automatically. */
#read-button { display: none !important; }
#copy-free-reading { display: none !important; }
#reveal-button:not([disabled]) {
  background: linear-gradient(120deg, #e3a948, #ffe3a4) !important;
  color: #211022 !important;
  font-weight: 800 !important;
  border-color: #eac67f !important;
  box-shadow: 0 2px 14px rgba(201,135,44,.22);
}
#reveal-button:disabled { display: none !important; }
#clear-button:disabled { display: none !important; }
.free-reading-stage .free-reading-actions {
  gap: 8px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}
.free-reading-stage #sage-v7-feedback:not(:empty) { flex-basis: 100%; }
.sage-v7-history-panel {width: min(900px, 100%);}
.sage-v8-history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 17px;
}
.sage-v8-history-grid:has(> :only-child) {
  grid-template-columns: minmax(0, 290px);
  justify-content: center;
}
.sage-v8-history-card {
  border: 1px solid rgba(231,187,125,.5);
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
  background: rgba(72,31,85,.4);
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align:center;
}
.sage-v8-history-card img {
  width: min(100%, 126px);
  height: 181px;
  object-fit: contain;
  border: 1px solid rgba(245,199,113,.65);
  background: #160c22;
  border-radius: 6px;
}
.sage-v8-history-card strong {
  color: #ffe0a5;
  font: 600 17px/1.2 Georgia,serif;
}
.sage-v8-history-card small {font-size: 11px;color:#e8c9ef;}
.sage-v8-history-position {text-transform:uppercase;letter-spacing:.1em;}
.sage-v8-history-card p {font: 12px/1.45 system-ui,sans-serif;color:#f0e2eb;text-align:left;margin-top:5px;}
.sage-v8-history-summary {
  padding: 15px 16px;
  background: rgba(75,35,85,.3);
  border: 1px solid rgba(231,187,125,.4);
  border-radius: 12px;
}
.sage-v8-history-summary h3 {font:600 21px Georgia,serif;color:#ffe0a5;margin:0 0 6px;}
.sage-v8-history-summary p {font: 14px/1.55 system-ui,sans-serif;}
.sage-v8-history-full {margin-top:12px;border:1px solid rgba(231,187,125,.4);border-radius:11px;padding:10px;}
.sage-v8-history-full summary {color:#ffe0a5;cursor:pointer;font-weight:700;}
.sage-v8-history-full pre {font:13px/1.55 system-ui,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;color:#f5e4f3;}
@media(max-width:620px) {
  .sage-v8-history-grid{gap:7px;}
  .sage-v8-history-card{padding:7px;}
  .sage-v8-history-card img{height:120px;width:min(100%,78px);}
  .sage-v8-history-card strong{font-size:12px;overflow-wrap:anywhere;}
  .sage-v8-history-card p{font-size:11px;}
  .sage-v8-history-summary{padding:11px;}
  .sage-v7-history-panel{max-height:92dvh;}
  .free-reading-stage .free-reading-actions button{font-size:10px!important;}
}
