/* ==========================================================================
   Nochmal! – Spielblock auf dem Tisch, Würfel rollen direkt daneben
   ========================================================================== */
.nmc { --g: #5a9659; --y: #e2b445; --b: #3f6fb0; --o: #d9813a; --p: #b8517a; --x: #2b231e;
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 4px 10px 12px; overflow-x: hidden; overflow-y: auto; }
.nmc.table { display: grid; grid-template-columns: minmax(280px, 30%) 1fr; grid-template-rows: auto 1fr; gap: 18px; padding: 8px 22px 20px; overflow: hidden; }

.nm-rail { margin: 0 -4px; }

/* Würfelfläche: kein Kasten – die Würfel liegen auf dem Tisch */
.nm-tray { flex: 1 0 auto; position: relative; min-height: clamp(180px, 28dvh, 250px); margin: 0 -6px; }
.die3d .nf { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; }
.die3d .nf.col { background: var(--grain), radial-gradient(120% 120% at 30% 25%, color-mix(in srgb, var(--dc) 70%, #fff), var(--dc) 60%, color-mix(in srgb, var(--dc) 75%, #000)); }
.die3d .nf.col.joker::after { content: "?"; font: 800 calc(var(--d) * .5)/1 var(--display); color: #fbf6ea; }
.die3d .nf.num { font: 800 calc(var(--d) * .56)/1 var(--display); color: var(--ink); }
.die3d .nf.num.joker { color: var(--red); }
.die3d.sel .d3-f { box-shadow: inset 0 0 0 3px var(--mustard); }
.die3d.sel { z-index: 2; }
.die3d.sel .d3-body { transform: scale(1.12) !important; transition: transform .25s var(--spring); }
.die3d.taken { opacity: .32; filter: grayscale(.6); }

.nm-ctl { flex: none; position: relative; z-index: 3; height: 50px; }
.nm-ctl .btn, .nm-pickers { animation: popIn .3s var(--spring) both; }
.nm-ctl.still .btn, .nm-ctl.still .nm-pickers { animation: none; }
/* Joker-Auswahl schwebt über den Würfeln, statt den Block nach unten zu schieben */
.nm-pickers { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.nm-pickers button { width: 36px; height: 36px; border-radius: 9px; border: 0; cursor: pointer; font: 800 17px var(--display); color: var(--ink); background: var(--grain), var(--paper); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.nm-pickers button.on { box-shadow: 0 0 0 3px var(--mustard), 0 2px 0 rgba(0, 0, 0, .3); transform: translateY(-2px); }
.nm-actions { display: flex; gap: 8px; height: 100%; }
.nm-actions .btn { flex: 1; }
.nm-actions .btn.dark { flex: none; }
.nm-actions .btn b { font: 800 14px var(--display); opacity: .85; }

/* Spielblock */
.nm-sheet { --cs: min(24px, calc((100vw - 52px) / 15)); position: relative; flex: none; padding: 10px 8px 10px; border-radius: 6px; color: var(--ink); background: var(--grain), var(--card); box-shadow: var(--shadow-1); }
.nm-sheet .head { display: flex; align-items: center; gap: 8px; padding: 0 2px 6px; font: 700 20px/1 var(--hand); }
.nm-sheet .head .av { --s: 24px; }
.nm-sheet .head .tot { margin-left: auto; font: 800 20px var(--display); color: var(--red); }
.nm-grid { display: grid; grid-template-columns: repeat(15, var(--cs)); gap: 1.5px; justify-content: center; }
.nm-colh { height: 16px; display: grid; place-items: center; font: 800 10px var(--text); color: var(--ink-3); }
.nm-colh.h { color: var(--red); }
.nm-cell { position: relative; width: var(--cs); height: var(--cs); border-radius: 3px; background: var(--grain), var(--cc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); cursor: default; transition: transform .15s; }
.nm-cell.g { --cc: var(--g); } .nm-cell.y { --cc: var(--y); } .nm-cell.b { --cc: var(--b); } .nm-cell.o { --cc: var(--o); } .nm-cell.p { --cc: var(--p); }
.nm-cell.hcol { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 1px rgba(196, 71, 47, .5); }
.nm-cell .star { position: absolute; inset: 22%; color: #fbf6ea; }
.nm-cell .star svg { width: 100%; height: 100%; fill: #fbf6ea; stroke: none; }
.nm-cell .x { position: absolute; inset: 6%; }
.nm-cell .x path { stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; fill: none; stroke-dasharray: 30; stroke-dashoffset: 0; }
.nm-cell .x.new path { animation: nmDraw .35s var(--ease) both; }
.nm-cell .x.new path:nth-child(2) { animation-delay: .15s; }
@keyframes nmDraw { from { stroke-dashoffset: 30; } }
.nm-cell.cand { cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75); }
.nm-cell.cand:hover { transform: scale(1.12); }
.nm-cell.pick { cursor: pointer; box-shadow: inset 0 0 0 2.5px #fbf6ea, 0 0 0 2px var(--ink); transform: scale(1.08); z-index: 1; }
.nm-cell.mute { filter: saturate(.25) brightness(1.15); opacity: .55; }
.nm-pts { display: grid; grid-template-columns: repeat(15, var(--cs)); gap: 1.5px; justify-content: center; margin-top: 4px; }
.nm-pt { height: 18px; display: grid; place-items: center; font: 800 10px var(--display); color: var(--ink-2); border-radius: 50%; }
.nm-pt.taken { color: var(--ink-3); text-decoration: line-through; }
.nm-pt.mine { background: var(--ink); color: var(--card); text-decoration: none; }
.nm-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--line-2); flex-wrap: wrap; }
.nm-bonus { display: flex; gap: 4px; }
.nm-bonus span { width: 22px; height: 22px; border-radius: 4px; display: grid; place-items: center; font: 800 11px var(--display); color: #fbf6ea; background: var(--cc); opacity: .35; }
.nm-bonus span.got { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.nm-bonus span.g { --cc: var(--g); } .nm-bonus span.y { --cc: var(--y); } .nm-bonus span.b { --cc: var(--b); } .nm-bonus span.o { --cc: var(--o); } .nm-bonus span.p { --cc: var(--p); }
.nm-jokers { display: flex; gap: 3px; }
.nm-jokers i { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--red); display: grid; place-items: center; font: 800 9px var(--display); font-style: normal; color: var(--red); }
.nm-jokers i.used { background: var(--red); color: var(--card); }
.nm-score { font: 600 11.5px var(--text); color: var(--ink-3); }

/* Tisch */
.nmc.table .nm-rail { grid-column: 1 / -1; }
.nmc.table .nm-left { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.nmc.table .nm-tray { flex: none; min-height: 0; height: min(48vh, 400px); margin: 0; }
.nm-boards { display: grid; gap: 14px; align-content: center; justify-content: center; min-height: 0; }
.nm-boards .nm-sheet { padding: 8px; }
.nm-boards .nm-sheet { --cs: var(--bcs, 18px); }
.nm-boards .nm-sheet.cur { box-shadow: 0 0 0 3px var(--turn-ring), var(--shadow-1); }
.nm-boards .nm-colh { height: 12px; font-size: 8px; }
