/* Paleta calcada del paño físico y del sitio senderodelaatencion.com (#951B81) */
:root {
    --s-gris: #6B6567;   --s-gris-pale: #E2DEDF;   --s-gris-dark: #B5A7A2;
    --s-amarillo: #EDB93F; --s-amarillo-pale: #F8E7B4; --s-amarillo-dark: #C79A35;
    --s-azul: #1F8DDE;   --s-azul-pale: #C5E0F6;   --s-azul-dark: #1D63AE;
    --s-naranja: #EA6A42; --s-naranja-pale: #F9D6C4; --s-naranja-dark: #B9503A;
    --s-morado: #7A3B72; --s-morado-pale: #DCC1E2;  --s-brand: #951B81;
    --s-verde: #77B646;
    --s-papel: #F7F5F2;
}
body { font-family: 'Noto Sans', system-ui, sans-serif; }
.font-serif-s { font-family: 'Noto Serif', Georgia, serif; }

/* Carta física */
.sendero-card {
    --suit: var(--s-naranja);
    position: relative; width: 100%; max-width: 210px; aspect-ratio: 5 / 7; margin: 0 auto;
    background: #fff; border-radius: 14px; color: #3d3a3b;
    box-shadow: 0 10px 28px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.08);
    padding: 12% 10%; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    font-family: 'Noto Sans', sans-serif; text-align: center; transition: transform .5s;
}
.sendero-card[data-suit=tierra] { --suit: var(--s-naranja); }
.sendero-card[data-suit=luna] { --suit: var(--s-azul); }
.sendero-card[data-suit=sol] { --suit: var(--s-amarillo-dark); }
.sendero-card[data-suit=viento] { --suit: var(--s-gris); }
.sendero-card[data-suit=estrella] { --suit: var(--s-morado); }
.sendero-card[data-suit=aro_iris] { --suit: var(--s-verde); }
.sendero-card .sc-main { font-weight: 800; font-size: clamp(11px, 2.4vw, 15px); letter-spacing: .01em; text-transform: uppercase; line-height: 1.1; }
.sendero-card .sc-sub { font-weight: 700; font-size: clamp(8px, 1.8vw, 11px); color: var(--suit); text-transform: uppercase; letter-spacing: .04em; }
.sendero-card .sc-big { width: 46%; aspect-ratio: 1; color: var(--suit); }
.sendero-card .sc-foot { transform: rotate(180deg); }
.sendero-card .sc-corner { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--suit); font-size: 12px; }
.sendero-card .sc-corner .sc-mini { width: 14px; height: 14px; }
.sendero-card .sc-tl { top: 6%; left: 6%; }
.sendero-card .sc-br { bottom: 6%; right: 6%; transform: rotate(180deg); }
.sendero-card.sc-flip { animation: sc-flip .7s ease; }
@keyframes sc-flip { 0% { transform: rotateY(90deg) scale(.9); opacity: .2 } 100% { transform: none; opacity: 1 } }

/* Ficha en el lobby */
.token-chip { width: 44px; height: 44px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; border: 2px solid #E6DCE6; background: #fff; transition: .15s; }
.token-chip:hover { transform: scale(1.08); border-color: #951B81; }
.token-chip.on { border-color: #951B81; background: #F8E6F4; box-shadow: 0 0 0 3px rgba(149,27,129,.25); }

/* ---------- Dados (se tiran de a uno) ---------- */
.die {
    --elem: #5DB5B5;
    position: relative; width: clamp(68px, 17vw, 96px); aspect-ratio: 1; border: 0; border-radius: 26%;
    display: flex; align-items: center; justify-content: center; color: #fff; cursor: default;
    font-family: 'Noto Serif', Georgia, serif; font-weight: 800; font-size: clamp(24px, 6vw, 36px);
    box-shadow: 0 7px 0 rgba(60, 20, 60, .22), 0 14px 22px rgba(60, 20, 60, .18), inset 0 3px 6px rgba(255,255,255,.35), inset 0 -6px 10px rgba(0,0,0,.18);
    transition: filter .2s, box-shadow .2s, opacity .2s;
}
.die-d28 { background: linear-gradient(145deg, #F2C14D, #C98A12); border-radius: 30%; }
.die-polarity { background: linear-gradient(145deg, #B8349F, #6E1060); }
.die-element { background: linear-gradient(145deg, var(--elem), color-mix(in srgb, var(--elem) 62%, #000)); }
.die.empty { opacity: .6; filter: grayscale(.35); }
.die:disabled { cursor: not-allowed; }
.die.ready { cursor: pointer; animation: dieReady 1.6s ease-in-out infinite; }
.die.ready:hover { filter: brightness(1.08); transform: translateY(-4px); }
.die.is-active { box-shadow: 0 0 0 4px rgba(34,160,90,.55), 0 7px 0 rgba(60,20,60,.22), 0 14px 22px rgba(60,20,60,.18), inset 0 3px 6px rgba(255,255,255,.35); }
.die-face { display: flex; align-items: center; justify-content: center; line-height: 1; text-shadow: 0 2px 3px rgba(0,0,0,.3); white-space: nowrap; }
.die-polarity .die-face { font-size: clamp(20px, 5vw, 30px); }

.die.throwing { animation: dieToss 1.25s linear both; }
.die.landed { animation: dieLand .4s ease-out; }
@keyframes dieReady { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-5px) } }
@keyframes dieToss {
    0%   { transform: translate(-46px, -120px) rotate(-40deg) scale(1.25); animation-timing-function: cubic-bezier(.5, 0, 1, .6); }
    32%  { transform: translate(0, 0) rotate(330deg) scale(1);             animation-timing-function: cubic-bezier(0, .5, .5, 1); }
    48%  { transform: translate(10px, -46px) rotate(470deg) scale(1.06);   animation-timing-function: cubic-bezier(.5, 0, 1, .6); }
    62%  { transform: translate(0, 0) rotate(600deg) scale(1);             animation-timing-function: cubic-bezier(0, .5, .5, 1); }
    74%  { transform: translate(-5px, -18px) rotate(670deg);               animation-timing-function: cubic-bezier(.5, 0, 1, .6); }
    85%  { transform: translate(0, 0) rotate(705deg);                      animation-timing-function: cubic-bezier(0, .5, .5, 1); }
    93%  { transform: translate(0, -5px) rotate(716deg);                   animation-timing-function: ease-in; }
    100% { transform: translate(0, 0) rotate(720deg); }
}
@keyframes dieLand { 0% { transform: scale(1.14) } 60% { transform: scale(.96) } 100% { transform: scale(1) } }

.die-badge { font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 9999px; min-height: 18px; }
.die-badge.on { background: #D8F3E4; color: #0B7A45; }
.die-badge.off { background: #EEE7EE; color: #85728A; }
.dot { width: 14px; height: 14px; border-radius: 9999px; border: 2px solid #CDBFD0; background: transparent; }
.dot.on { background: #22A05A; border-color: #22A05A; }
.dot.off { background: #CDBFD0; border-color: #CDBFD0; }
