/* Flipper-Anzeige (Kürzel): dunkles Display, leuchtende Punktmatrix. Nutzt Tokens aus style.css. Mobile-first, Touch-Ziele >= 48 px. */
.flip { display: inline-flex; gap: .5rem; padding: .75rem .7rem; max-width: 100%; background: linear-gradient(#1d1530, #0b0812); border: 4px solid var(--black); border-radius: 1rem; box-shadow: inset 0 0 0 3px #3b2d54, inset 0 6px 18px rgb(0 0 0 / .8), 3px 3px 0 var(--black); }
.flip__col { display: flex; flex-direction: column; align-items: center; gap: .4rem; width: 4.25rem; min-width: 0; }
.flip__btn { width: 100%; min-height: var(--touch); padding: 0; border: 2px solid #6b5894; border-radius: .6rem; background: #2a2040; color: #ffc61a; font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.flip__btn:active { background: #4a3a78; }
.flip__spin { width: 100%; aspect-ratio: 5 / 7; padding: .4rem; background: #08060d; border: 3px solid #3b2d54; border-radius: .5rem; cursor: pointer; touch-action: manipulation; box-sizing: border-box; }
.flip__spin:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.flip__col.is-active .flip__spin { border-color: #ffc61a; box-shadow: 0 0 12px rgb(255 160 0 / .6); }
.flip__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.flip__off circle { fill: #2e2212; }
.flip__on circle { fill: #ffc61a; }
.flip__on { filter: drop-shadow(0 0 2px #ff9800) drop-shadow(0 0 6px rgb(255 140 0 / .75)); }
.flip__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* reine Anzeige (kein Bedienelement) */
.flip--static { padding: .5rem .5rem; gap: .35rem; }
.flip--static .flip__col { width: 2.6rem; }
.flip--static .flip__spin { cursor: default; padding: .25rem; border-width: 2px; }
.flip--static .flip__col.is-active .flip__spin { box-shadow: none; }

/* Karte um die Flipper-Anzeige */
.nick-card { text-align: center; }
.nick-card h3, .nick-card h4 { text-align: center; }
.nick-card .flip { margin: .75rem auto .25rem; }
.nick-card .btn { margin-top: 1rem; }
.nick-hint { margin: .25rem 0 .5rem; }
.nick-keys { margin: .5rem 0 0; font-size: .95rem; }
.nick-done { padding: .8rem; border-radius: .8rem; background: #e5f6ec; border: 3px solid var(--green); }
.nick-done p { margin: .4rem 0 0; }
.nick-card--fertig { border: 4px solid var(--black); background: #fff8e1; margin: 1rem 0; box-shadow: 4px 4px 0 var(--black); }
.nick-card .error { text-align: center; }
.nick-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1rem; margin: .5rem 0; }
.nick-row .btn { margin-top: 0; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes flipblink { 0%, 62% { opacity: 1; } 63%, 100% { opacity: .2; } }
  .flip:not(.flip--static) .flip__col.is-active .flip__on { animation: flipblink 1.2s steps(1, end) infinite; }
}
@media (min-width: 48rem) {
  .flip__btn:hover { background: #4a3a78; }
}
