/* Money Flow V1.4 — larger card backs, sculpted filigree, updated intro.
   Built on top of approved V1.3; game rules and front images unchanged. */
.deck-zone .back-grid {
  grid-template-columns:repeat(11,minmax(0,1fr));
  grid-auto-flow:row;
  gap:11px 9px;
  width:100%;
  max-width:100%;
}
.deck-zone .back-card {
  display:grid;
  place-items:center;
  width:100%;
  height:auto;
  min-width:0;
  aspect-ratio:100/144;
  padding:0;
  border:0;
  border-radius:9px;
  background: url("./assets/deck-back-v14.svg") center center / 100% 100% no-repeat, #201a1e;
  box-shadow:
     0 2px 0 rgba(255,238,185,.72),
     0 5px 9px rgba(72,41,24,.45),
     0 0 0 1px #a77739;
  transform-origin:center center;
  transition: transform .19s ease,filter .19s ease,box-shadow .19s ease;
  -webkit-tap-highlight-color:transparent;
}
.deck-zone .back-card .back-mark {display:none}
.deck-zone .back-card:not(:disabled):hover,
.deck-zone .back-card:not(:disabled):focus-visible {
  transform:translateY(-5px) scale(1.035);
  box-shadow:0 6px 15px #50331f66,0 0 0 2px #e3c47b;
}
.deck-zone .back-card:not(:disabled):active {
  transform:translateY(-2px) scale(1.04);
}
.deck-zone .back-card.used {
  opacity:.14;
  border:1px dashed #a98754;
  box-shadow:none;
  background:transparent;
}
.deck-zone.inactive .back-card:not(.used) {
  filter:saturate(.87);
}
.author-intro .author-copy p {
  line-height:1.43;
  max-width:64ch;
}
@media(min-width:601px) and (max-width:900px) {
  .deck-zone .back-grid {
    grid-template-columns:repeat(10,minmax(0,1fr));
    gap:10px 8px;
  }
}
@media(max-width:600px) {
  .deck-zone .back-grid {
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:8px 6px;
  }
  .deck-zone .back-scroll {
    padding:9px 3px 12px;
    overflow:visible;
  }
  .deck-zone .back-card {
    border:0;
    padding:0;
    border-radius:6px;
    aspect-ratio:100/144;
    box-shadow:0 2px 0 rgba(255,238,185,.8),0 3px 5px #62412b66,0 0 0 1px #ba8845;
  }
  .deck-zone { padding:17px 13px 20px; }
  .author-intro .author-copy p {
    font-size:clamp(12px,3.2vw,14px);
    line-height:1.39;
  }
}
@media(max-width:360px) {
  .deck-zone .back-grid {
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:7px 5px;
  }
  .author-intro .author-copy p{
    font-size:11.8px;
    line-height:1.32;
  }
}
@media(prefers-reduced-motion:reduce) {
  .deck-zone .back-card {transition:none}
}