/* shared card look for the card games */
.cg { max-width: 820px; }
.table { background: radial-gradient(ellipse at 50% 40%, #3cb46a, #1f7a44); border-radius: 28px; padding: 1rem; border: 8px solid #8a5a3c; box-shadow: 0 14px 30px rgba(30,12,70,.3); color: #fff; }
.hand { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; min-height: 120px; }
.card { width: 76px; height: 108px; border-radius: 12px; background: #fff; color: #3d2a5c; border: 3px solid #fff; box-shadow: 0 5px 10px rgba(0,0,0,.3); display: grid; place-items: center;
  font-size: 2.6rem; font-weight: 700; cursor: pointer; position: relative; transition: transform .15s; font-family: inherit; padding: 0; }
.card:hover { transform: translateY(-6px); }
.card.back { background: repeating-linear-gradient(45deg, #9b5cf0 0 10px, #7b3fc4 10px 20px); cursor: default; font-size: 1.6rem; }
.card.back::after { content: "★"; color: #ffd23f; }
.card.big { width: 120px; height: 170px; font-size: 3.6rem; }
.card .n { position: absolute; top: 6px; left: 8px; font-size: 1.1rem; }
.card .dots { position: absolute; bottom: 8px; left: 0; right: 0; font-size: .8rem; color: #e8414a; letter-spacing: 1px; text-align: center; line-height: 1.1; padding: 0 4px; }
.card.flip { animation: flip .4s ease; } @keyframes flip { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
.card.win { box-shadow: 0 0 0 5px #ffd23f, 0 5px 10px rgba(0,0,0,.3); }
.label { text-align: center; font-weight: 700; margin: .4rem 0; }
.msg { min-height: 3rem; margin: .8rem 0; background: #fff; color: #3d2a5c; border-radius: 20px; padding: .6rem 1rem; font-weight: 700; font-size: 1.15rem; text-align: center; box-shadow: 0 6px 16px rgba(61,26,110,.12); }
.pairs { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; font-size: 1.6rem; min-height: 2rem; }
.cg .btn { font-family: inherit; cursor: pointer; }
