/* Uno de tonalidades: las cartas (las usan el juego y la pizarra del profe) */
.uc { --w: 84px; --uc: #e2483d; position: relative; flex: none; width: var(--w); height: calc(var(--w) * 1.5); border-radius: calc(var(--w) * .12);
  border: calc(var(--w) * .05) solid #fff; background: var(--uc); color: #fff; font: inherit; padding: 0; overflow: hidden;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .18), 0 6px 14px rgba(40, 10, 0, .25); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.uc-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.uc-in:has(.uc-arm) { justify-content: flex-start; padding-top: 17%; }
.uc-in:has(.uc-arm) .uc-abajo { display: none; }
.uc-m { --uc: #2f6fd6; }
.uc-comodin { --uc: #1d1410; }
button.uc { cursor: pointer; touch-action: manipulation; }
.uc-esq { position: absolute; top: 3%; left: 6%; font-weight: 900; font-size: max(calc(var(--w) * .16), 11px); line-height: 1; }
.uc-abajo { top: auto; left: auto; bottom: 3%; right: 6%; transform: rotate(180deg); }
.uc-nom { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 80%; aspect-ratio: 1.5;
  border-radius: 50%; background: #fff; color: var(--uc); font-weight: 900; font-size: calc(var(--w) * .27); line-height: 1; transform: rotate(-12deg); }
.uc-nom small { font-size: max(.45em, 11px); font-weight: 700; margin-top: 2px; }
.uc-ico { position: absolute; z-index: 2; top: 30%; right: 4%; min-width: 34%; padding: 2% 4%; border-radius: 999px; background: var(--uc); border: 2px solid #fff;
  font-weight: 900; font-size: calc(var(--w) * .17); line-height: 1.1; text-align: center; }
.uc-comodin .uc-ico { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); font-size: calc(var(--w) * .2); }
.uc-que { display: none; }
.uc-accion .uc-nom { width: 74%; font-size: calc(var(--w) * .2); }
.uc-arm { width: 74%; margin-top: 4%; background: #fff; border-radius: calc(var(--w) * .07); line-height: 0; }
.uc-arm .staff { margin: 0; max-width: none; width: 100%; height: auto; color: #1d1410; }
.uc-rueda { position: relative; width: 70%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; transform: rotate(-12deg); border: 3px solid #fff; display: grid; grid-template-columns: 1fr 1fr; }
.uc-rueda i:nth-child(1) { background: #e2483d; } .uc-rueda i:nth-child(2) { background: #2f6fd6; }
.uc-rueda i:nth-child(3) { background: #e0a91b; } .uc-rueda i:nth-child(4) { background: #2f9e57; }
.uc-mini { --w: 56px; }
.uc-mini .uc-abajo { display: none; }
.uc-dorso { --uc: #1d1410; background: repeating-linear-gradient(45deg, #1d1410 0 8px, #3a2a22 8px 16px); }
.uc-dorso span { background: #d8682a; color: #fff; font-weight: 900; padding: 6px 10px; border-radius: 50%; transform: rotate(-12deg); font-size: calc(var(--w) * .18); }
.uc-dorso:disabled { opacity: .85; cursor: default; }
.uc-dorso.puede { outline: 4px solid #ffd54a; outline-offset: 2px; }

.uc-pila { position: relative; }
.uc-elegida { position: absolute; right: -26px; bottom: -14px; }
.uc-elegida .uc { --w: 54px; transform: rotate(8deg); }
/* la carta que llega a la mesa (solo transform y opacity, a saltos) */
.uc-entra { animation: uc-entra .32s steps(4) both; }
@keyframes uc-entra { from { transform: translateY(-30px) rotate(-14deg) scale(1.15); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .uc-entra { animation: none; } }
.uc-in:has(.uc-arm) .uc-ico { top: 52%; }

/* ---------- Navidad (28/10): dorso de las cartas verde acebo (navidad.js) ---------- */
html.navidad .uc-dorso { --uc: #24592d; background: var(--nv-copo) 82% 18% / 26% no-repeat, repeating-linear-gradient(45deg, #2f7a3b 0 8px, #3d8f47 8px 16px); }
html.navidad .uc-dorso span { background: #c8312a; }
