/* Augenblick: Würfel, Block, Vorschau. Würfel selbst kommen aus dice.css. Farben aus den Paletten in app.css. */

.yz-game { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.yz-main { flex: 0 0 auto; padding: .7rem; display: flex; flex-direction: column; gap: .7rem; }
.yz-side { flex: 0 0 auto; padding: 0 .7rem .7rem; }
@media (min-width: 960px) {
    .yz-game { flex-direction: row; overflow: hidden; }
    .yz-main { flex: 1 1 auto; min-width: 0; overflow-y: auto; max-width: 960px; margin: 0 auto; }
    .yz-side { flex: 0 0 320px; overflow-y: auto; padding: .8rem .8rem .8rem 0; }
}

.yz-head { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; font-size: 1.05rem; }

.yz-dice-area {
    display: flex; flex-direction: column; gap: .6rem; align-items: center;
    padding: .9rem; border-radius: 14px;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent-2) 30%, var(--surface-3)) 0%, var(--surface-3) 100%);
    border: 1px solid var(--line);
}
.yz-dice { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.yz-roll { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; justify-content: center; text-align: center; }

.yz-sheet { width: 100%; border-collapse: collapse; font-size: .9rem; }
.yz-sheet th, .yz-sheet td { padding: .3rem .4rem; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.yz-sheet th:first-child, .yz-sheet td:first-child { text-align: left; }
.yz-sheet th.active { color: var(--accent); }
.yz-sheet th.me, .yz-sheet td.me { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.yz-sheet td.scratched { color: var(--muted); }
.yz-sheet td.hit { color: var(--accent-2); font-weight: 700; }
.yz-sum td { color: var(--muted); font-size: .8rem; background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.yz-total td { border-top: 2px solid var(--line); font-size: 1rem; }
.yz-cat { display: block; font-weight: 600; }
.yz-hint { display: block; font-size: .68rem; color: var(--muted); }
@media (max-width: 599.98px) { .yz-hint { display: none; } .yz-sheet th, .yz-sheet td { padding: .25rem .3rem; } }

.yz-pick {
    margin: 0; min-height: 34px; padding: .1rem .55rem; min-width: 2.6rem;
    border-color: var(--accent); color: var(--accent); background: transparent; font-weight: 800;
}
.yz-pick:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); }
.yz-pick.zero { border-style: dashed; color: var(--muted); font-weight: 500; }
.yz-pick.zero:hover { background: var(--error); border-color: var(--error); color: #fff; }

.yz-log ul { list-style: none; padding: 0; margin: 0; font-size: .85rem; max-height: 50vh; overflow-y: auto; }
.yz-log li { padding: .2rem 0; border-top: 1px solid var(--line); }
.yz-log li:first-child { border-top: 0; }
.yz-log li .muted { display: inline-block; min-width: 1.6em; }
