/* Tavolo 21 — tavolo di blackjack gratis (/gratis/ e anteprima). Caricato dopo site.css. */
.tg { --cw: 72px; --ch: 101px; --cfs: 1.02rem; background: #fff; border: 1px solid var(--linea); border-radius: 18px; box-shadow: var(--ombra); overflow: hidden; margin: .4rem 0 1.4rem; }
.tg-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.4rem; padding: .7rem 1rem; background: var(--petrolio); color: #cfe1dd; font-size: .86rem; }
.tg-top b { color: #fff; font: 800 1.1rem/1 var(--f-tit); margin-left: .35rem; font-variant-numeric: tabular-nums; }
.tg-conti { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.tg-sabot.scarso { color: var(--ambra); font-weight: 700; }
.tg-panno { position: relative; display: flex; flex-direction: column; gap: .5rem; min-height: 390px; padding: 1.1rem .9rem 1.3rem;
  background: radial-gradient(ellipse at 50% 10%, #1d6a63 0, #12504a 48%, #0b3934 100%);
  box-shadow: inset 0 -10px 0 #6b4724, inset 0 -12px 0 #b88a4a; }
.tg-panno::after { content: ""; position: absolute; left: 10%; right: 10%; top: 52%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); pointer-events: none; }
.tg-lab { display: flex; justify-content: center; align-items: center; gap: .5rem; margin: 0; font: 700 .68rem/1 var(--f-tit); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.tg-tot { display: inline-block; min-height: 22px; padding: 3px 9px; border-radius: 6px; background: rgba(0, 0, 0, .38); color: #fff; font: 800 .8rem/1.2 var(--f-tit); letter-spacing: 0; text-transform: none; }
.tg-tot:empty { display: none; }
.tg-carte { display: flex; justify-content: center; min-height: var(--ch); }
.tg-carte .ct + .ct { margin-left: calc(var(--cw) * -.4); }
.tg-arco { margin: .1rem 0 0; text-align: center; font: 700 .7rem/1.3 var(--f-tit); letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 166, 42, .75); }
.tg-msg { margin: 0; min-height: 1.6em; text-align: center; color: #fff; font: 700 1.1rem/1.35 var(--f-txt); }
.tg-msg.win { color: #8ff0bf; } .tg-msg.lose { color: #ffc2b5; } .tg-msg.push { color: #e3eeec; } .tg-msg.warn { color: var(--ambra); }
.tg-mani { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem; min-height: calc(var(--ch) + 68px); }
.tg-mano { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .55rem .6rem .65rem; border-radius: 12px; border: 2px dashed transparent; }
.tg-mano.attiva { border-color: var(--ambra); background: rgba(0, 0, 0, .16); }
.tg-meta { display: flex; align-items: center; gap: .45rem; min-height: 22px; }
.tg-esito { color: #fff; font-weight: 700; font-size: .85rem; }
.tg-esito.win { color: #8ff0bf; } .tg-esito.lose { color: #ffc2b5; } .tg-esito.push { color: #e3eeec; }
.tg-pila { display: inline-flex; align-items: center; gap: .45rem; min-height: 30px; }
.tg-pila b { color: #fff; font-size: .9rem; font-variant-numeric: tabular-nums; }
.tg-pila .tg-gettone + .tg-gettone { margin-left: -21px; }
.tg-ass { font-size: .74rem; color: rgba(255, 255, 255, .75); }
.tg-gettone { --g: #e7e1d3; --g2: #fbf8f1; position: relative; display: inline-block; width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; background: radial-gradient(circle, var(--g2) 0 52%, var(--g) 53% 100%); box-shadow: 0 2px 4px rgba(0, 0, 0, .45), inset 0 0 0 3px rgba(255, 255, 255, .35); }
.tg-gettone.c1 { --g: #cfc8b6; --g2: #f5f1e6; } .tg-gettone.c5 { --g: #c9472f; --g2: #e66a50; } .tg-gettone.c25 { --g: #1f7a55; --g2: #33a377; }
.tg-gettone.c100 { --g: #0d3b44; --g2: #24606b; } .tg-gettone.c500 { --g: #b77a0a; --g2: #f4a62a; }
.tg-ctrl { display: grid; gap: .7rem; padding: .85rem 1rem 1rem; }
.tg-fiches { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.tg-fiches > span { font: 700 .74rem/1 var(--f-tit); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-right: .2rem; }
.tg-fiche { width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; font: 800 .88rem/1 var(--f-tit); color: #fff; transition: transform .12s, opacity .2s; }
.tg-fiche span { position: relative; z-index: 1; }
.tg-fiche.c1 { color: #2a2a2a; }
.tg-fiche:hover:not(:disabled) { transform: translateY(-3px); }
.tg-fiche:disabled { opacity: .35; cursor: not-allowed; }
.tg-azioni { display: flex; flex-wrap: wrap; gap: .45rem; }
.tg-b { min-height: 44px; min-width: 110px; padding: .5rem .9rem; border-radius: 10px; border: 2px solid var(--petrolio); background: #fff; color: var(--petrolio); font: 700 .95rem/1.1 var(--f-txt); cursor: pointer; }
.tg-b.pieno { background: var(--ambra); border-color: var(--ambra); color: #1d1503; }
.tg-b:hover { filter: brightness(.97); }
.tg-b kbd { margin-left: .45rem; font: 600 .66rem/1 var(--f-txt); opacity: .7; padding: 1px 4px; border: 1px solid currentColor; border-radius: 4px; }
.tg-b[hidden] { display: none !important; }
.tg-b.consiglio { box-shadow: 0 0 0 3px var(--corallo); }
.tg-piede { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding: .65rem 1rem; border-top: 1px solid var(--linea); font-size: .82rem; color: var(--ink-3); }
.tg-piede .tg-stat { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.tg-piede .tg-stat b { color: var(--ink); margin-left: .3rem; }
.tg-piede button { background: none; border: 0; padding: 0; color: var(--link); font: inherit; cursor: pointer; text-decoration: underline; }
.tg-nojs { margin: 0; padding: 1rem; color: var(--ink-2); }

/* carte */
.ct { position: relative; flex: 0 0 auto; width: var(--cw); height: var(--ch); perspective: 700px; transition: transform .36s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.ct.nuova { transform: translate(-180px, -150px) rotate(-14deg); opacity: 0; }
.ct-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s; }
.ct.coperta .ct-in { transform: rotateY(180deg); }
.ct-v { position: absolute; inset: 0; border-radius: 7px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, .38); }
.ct-fr { background: #fffaf0; color: #17202a; border: 1px solid #e7dcc6; }
.ct.rossa .ct-fr { color: #c22c2c; }
.ct-dr { transform: rotateY(180deg); background: repeating-linear-gradient(135deg, #f4a62a 0 4px, #0d3b44 4px 10px); box-shadow: inset 0 0 0 4px #fffaf0, 0 4px 10px rgba(0, 0, 0, .38); }
.ct-i { position: absolute; top: 5px; left: 6px; display: flex; flex-direction: column; align-items: center; font: 800 var(--cfs)/1 var(--f-tit); }
.ct-i i { font-style: normal; font-size: .85em; margin-top: 1px; }
.ct-i.giu { top: auto; left: auto; right: 6px; bottom: 5px; transform: rotate(180deg); }
.ct-p { position: absolute; inset: 15px 16px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(7, 1fr); font-size: calc(var(--ch) / 8.5); line-height: 1; }
.ct-p i { font-style: normal; display: flex; align-items: center; justify-content: center; }
.q-11 { grid-area: 1 / 1; } .q-21 { grid-area: 1 / 2; } .q-31 { grid-area: 1 / 3; } .q-22 { grid-area: 2 / 2; } .q-13 { grid-area: 3 / 1; } .q-33 { grid-area: 3 / 3; }
.q-14 { grid-area: 4 / 1; } .q-24 { grid-area: 4 / 2; } .q-34 { grid-area: 4 / 3; } .q-15 { grid-area: 5 / 1; } .q-35 { grid-area: 5 / 3; } .q-26 { grid-area: 6 / 2; }
.q-17 { grid-area: 7 / 1; } .q-27 { grid-area: 7 / 2; } .q-37 { grid-area: 7 / 3; }
.q-15, .q-35, .q-26, .q-17, .q-27, .q-37 { transform: rotate(180deg); }
.ct-a { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: calc(var(--ch) / 2.3); line-height: 1; }
.ct-fig { position: absolute; inset: 17px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid currentColor; border-radius: 4px; background: rgba(244, 166, 42, .1); }
.ct-fig svg { width: 42%; fill: var(--ambra-2); }
.ct-fig b { font: 800 calc(var(--ch) / 3.1)/1 var(--f-tit); }
.ct-fig i { font-style: normal; font-size: calc(var(--ch) / 7); line-height: 1; }

@media (max-width: 600px) {
  .tg { --cw: 56px; --ch: 79px; --cfs: .86rem; }
  .tg-panno { min-height: 330px; padding: .9rem .5rem 1.2rem; }
  .tg-fiche { width: 44px; height: 44px; font-size: .78rem; }
  .tg-b { min-width: 0; flex: 1 1 45%; }
  .tg-b kbd { display: none; }
  .tg-msg { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .ct, .ct-in { transition: none; } .ct.nuova { transform: none; opacity: 1; } }
