/* farkle board */
.f-board { display: grid; grid-template-columns: 300px 1fr; gap: 1.2rem; }
@media (max-width: 760px) { .f-board { grid-template-columns: 1fr; } }

.f-score-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .95rem;
}
.f-score-row b { font-family: 'Orbitron', sans-serif; font-size: 1.15rem; }
.f-score-row--turn { color: var(--accent-red, #8A0303); }
.f-score-target { opacity: .6; font-size: .8rem; }
.f-score-target b { font-size: .9rem; }

.f-turn-score {
    font-family: 'Orbitron', sans-serif; font-size: 2.6rem; margin: 1.2rem 0 .2rem;
    color: #fff; text-shadow: 0 0 18px rgba(138,3,3,.6);
}

.f-table { text-align: center; }

.f-dice {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    padding: 1.5rem 0; min-height: 5.5rem;
}

.die {
    width: 64px; height: 64px; border-radius: 12px;
    background: linear-gradient(145deg, #f5f5f5, #c9c9c9);
    display: grid; grid-template: repeat(3,1fr) / repeat(3,1fr);
    padding: 8px; cursor: pointer; user-select: none;
    box-shadow: 0 4px 10px rgba(0,0,0,.5), inset 0 1px 0 #fff;
    transition: transform .12s ease, box-shadow .12s ease, opacity .2s ease;
}
.die .pip { width: 10px; height: 10px; border-radius: 50%; background: #1a1a1a;
            place-self: center; opacity: 0; }
.die .pip.on { opacity: 1; }
.die[data-sel="1"] { transform: translateY(-10px);
    box-shadow: 0 8px 18px rgba(138,3,3,.55), inset 0 1px 0 #fff; }
.die--held { opacity: .25; cursor: default; transform: none; }
.die--rolling { animation: fshake .4s ease; }
@keyframes fshake {
    0%,100% { transform: rotate(0) } 25% { transform: rotate(18deg) translateY(-6px) }
    50% { transform: rotate(-14deg) } 75% { transform: rotate(8deg) translateY(-4px) }
}
@media (max-width: 480px) { .die { width: 52px; height: 52px; padding: 6px } .die .pip { width: 8px; height: 8px } }

.f-held-info { min-height: 1.4em; color: rgba(255,255,255,.6); font-size: .85rem; }
.f-active-rules { margin-top: 1.2rem; color: rgba(255,255,255,.35); font-size: .7rem;
                  line-height: 1.6; }

.f-flash { animation: fflash 1s ease; }
@keyframes fflash { 0% { color: var(--accent-red,#8A0303) } 100% { color: #fff } }
