/* v12.59: when Discover or Seek offers 4 cards, the whole row — including
   cost and Strength/Heart gems, which hang 11px off the card — stays inside
   the panel's gold border. 2- and 3-card layouts are left as they were. */

.chbox[data-n="4"]{
  max-width:1080px;
  box-sizing:border-box;
  padding:28px 40px 32px;
  overflow:visible;
}
.chbox[data-n="4"] .chopts{
  gap:12px;
  margin:0;
  align-items:flex-start;
}
.chbox[data-n="4"] .chopt{
  padding:16px 16px;
}
.chbox[data-n="4"] .chopt .card{
  transform:scale(1);
  margin:0;
  transform-origin:center center;
}
/* a slightly smaller lift so a hover cannot carry a gem over the gold border */
.chbox[data-n="4"] .chopt:hover{
  transform:translateY(-4px) scale(1.02);
}

/* Phone / adapt: the stage is the real viewport (often ~873x393), so the
   four cards have to shrink to leave room for gems and the title. */
html.adapt .chbox[data-n="4"],
html.compact-land .chbox[data-n="4"]{
  max-width:calc(100% - 16px);
  padding:16px 20px 18px;
}
html.adapt .chbox[data-n="4"] .chopts,
html.compact-land .chbox[data-n="4"] .chopts{
  gap:6px;
}
html.adapt .chbox[data-n="4"] .chopt,
html.compact-land .chbox[data-n="4"] .chopt{
  padding:14px 12px;
}
html.adapt .chbox[data-n="4"] .chopt .card,
html.compact-land .chbox[data-n="4"] .chopt .card{
  transform:scale(0.78);
  transform-origin:center center;
}
html.adapt .chbox[data-n="4"] .chopt:hover,
html.compact-land .chbox[data-n="4"] .chopt:hover{
  transform:translateY(-2px) scale(1.02);
}
