/* Shout Chorus 21 — table styles (loaded on / and /ol-game/) */
.table {
  position: relative; border-radius: 26px; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 42%, #1E3068 0%, var(--night-700) 62%, var(--night-900) 100%);
  border: 2px solid var(--brass-700);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), inset 0 0 0 6px var(--night-900), inset 0 0 0 7px rgba(217, 168, 69, .35);
}
.table::before, .table::after {
  content: ""; position: absolute; top: 6px; width: 84px; height: 84px; pointer-events: none;
  background: var(--bell) no-repeat right top / contain;
}
.table::before { right: 6px; }
.table::after { left: 6px; transform: scaleX(-1); }
.table__inner { padding: 30px clamp(16px, 3vw, 36px) 26px; }

.table__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; padding: 0 60px; }
.table__title { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--cream-100); line-height: 1; }
.table__title small { display: block; font-family: var(--body); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-500); font-weight: 800; margin-top: 8px; }
.free-tag { font-size: .8rem; font-weight: 700; color: var(--night-900); background: var(--cream-200); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 600px) { .table__top { padding: 0 42px; } .table::before, .table::after { width: 56px; height: 56px; } }

.hand { margin: 18px 0; }
.hand__label { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.hand__score { font-family: var(--display); font-weight: 400; letter-spacing: 0; font-size: 1.05rem; color: var(--night-900); background: var(--brass-500); border-radius: 999px; min-width: 38px; text-align: center; padding: 1px 10px; }
.hand__score:empty { display: none; }
.cards { display: flex; flex-wrap: wrap; gap: 10px; min-height: 124px; }

.card { width: 84px; height: 120px; perspective: 700px; flex: none; }
.card__in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3, .7, .3, 1); transform: rotateY(180deg); }
.card.is-up .card__in { transform: rotateY(0); }
.card__face, .card__back { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card__face {
  background: linear-gradient(160deg, var(--cream-100), var(--cream-200));
  border: 1px solid var(--cream-400); color: var(--night-800);
  display: grid; place-items: center; font-weight: 800;
}
.card__face.red { color: #A8352B; }
.card__corner { position: absolute; left: 7px; top: 5px; line-height: 1; text-align: center; font-size: 1.05rem; }
.card__corner span { display: block; font-size: .9rem; margin-top: 2px; }
.card__corner--b { left: auto; top: auto; right: 7px; bottom: 5px; transform: rotate(180deg); }
.card__pip { font-size: 2.3rem; line-height: 1; }
.card__back {
  transform: rotateY(180deg); border: 2px solid var(--brass-500);
  background:
    url("../img/bell.svg") center / 38px no-repeat,
    repeating-linear-gradient(90deg, var(--night-600) 0 6px, var(--night-800) 6px 12px);
}
.card.is-up .card__face { animation: flourish .8s ease-out .28s; }
@keyframes flourish {
  0% { box-shadow: 0 0 0 0 rgba(243, 208, 122, 0); }
  30% { box-shadow: 0 0 0 4px rgba(243, 208, 122, .95), 0 0 26px 8px rgba(243, 208, 122, .6); }
  100% { box-shadow: 0 0 0 0 rgba(243, 208, 122, 0); }
}
@media (max-width: 520px) { .card { width: 62px; height: 90px; } .cards { min-height: 94px; gap: 7px; } .card__pip { font-size: 1.7rem; } .card__corner { font-size: .85rem; } }
@media (prefers-reduced-motion: reduce) { .card__in { transition: none; } .card.is-up .card__face { animation: none; } }

.callout {
  min-height: 58px; margin: 6px 0 18px; display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 14px; padding: 10px 16px; font-weight: 700; color: var(--cream-200);
  background: rgba(7, 13, 34, .55); border: 1px dashed var(--night-400);
}
.callout b { font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin-right: 10px; }
.callout.win { border: 2px solid var(--brass-500); color: var(--brass-300); background: rgba(217, 168, 69, .1); }
.callout.chorus { border: 2px solid var(--brass-300); color: var(--night-900); background: linear-gradient(90deg, var(--brass-500), var(--brass-300), var(--brass-500)); animation: chorus 1s ease-out; }
.callout.chorus b { color: var(--night-900); }
.callout.lose { border: 2px solid var(--rouge-500); color: #F0B3A5; background: rgba(200, 99, 79, .1); }
.callout.push { border: 2px solid var(--cream-400); color: var(--cream-100); }
@keyframes chorus { 0% { transform: scale(.94); filter: brightness(1.6); } 100% { transform: none; filter: none; } }

.purse { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.purse__cell { background: rgba(7, 13, 34, .6); border: 1px solid var(--night-400); border-radius: 12px; padding: 10px 14px; text-align: center; }
.purse__cell span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.purse__cell .glow-num { font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.3; }

.controls { display: grid; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.chip {
  width: 58px; height: 58px; border-radius: 50%; cursor: pointer; font: 800 .95rem var(--body);
  color: var(--night-900); background: var(--cream-200); border: 4px dashed var(--brass-700);
  box-shadow: 0 0 0 2px var(--cream-200); transition: transform .12s;
}
.chip:hover:not(:disabled) { transform: translateY(-2px); }
.chip--gold { background: var(--brass-500); box-shadow: 0 0 0 2px var(--brass-500); border-color: var(--night-800); }
.chip:disabled { opacity: .35; cursor: not-allowed; }
.chip-clear { background: none; border: 1px solid var(--night-400); color: var(--text-dim); border-radius: 999px; padding: 8px 14px; font: 700 .85rem var(--body); cursor: pointer; }
.chip-clear:disabled { opacity: .4; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.actions .btn { min-width: 112px; }
.notice { text-align: center; font-size: .92rem; color: var(--text-dim); margin: 0; min-height: 1.5em; }
.notice.warn { color: #F0B3A5; font-weight: 700; }
.table__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: .82rem; color: var(--text-dim); border-top: 1px solid var(--night-600); margin-top: 18px; padding-top: 14px; }
.table__foot button { background: none; border: 0; color: var(--brass-300); font: 700 .82rem var(--body); cursor: pointer; text-decoration: underline; padding: 0; }
@media (max-width: 520px) { .purse { gap: 6px; } .purse__cell { padding: 8px 6px; } .chip { width: 50px; height: 50px; } .actions .btn { min-width: 0; flex: 1 1 40%; padding: 12px 10px; } }

/* rules panel on /ol-game/ */
.rules dl { margin: 0; display: grid; gap: 14px; }
.rules dt { font-weight: 800; color: var(--cream-100); }
.rules dd { margin: 2px 0 0; color: var(--text-dim); }
.rule-num { font-size: 1.25rem; }

/* empty card slots before the first deal */
.cards:empty::before, .cards:empty::after {
  content: ""; width: 84px; height: 120px; border-radius: 10px;
  border: 2px dashed rgba(217, 168, 69, .35); background: rgba(7, 13, 34, .25);
}
@media (max-width: 520px) { .cards:empty::before, .cards:empty::after { width: 62px; height: 90px; } }
