/* 2048 (E114) — ruhig, flach, Kacheln dezent abgestuft; die Platte ist selbst
   getönt und trägt in Hell und Dunkel. */
.hero-kacheln { display: flex; gap: 8px; justify-content: center; font-size: 28px; font-weight: 800; }
.hero-kacheln span { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 8px; background: #eee4da; color: #776e65; }
.hero-kacheln span:nth-child(2) { background: #ede0c8; }
.hero-kacheln span:nth-child(3) { background: #f2b179; color: #fff; }

.zw-kopf { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin: 2px 0 10px; font-size: 14px; color: var(--muted); }
.zw-punkte { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); font-size: 16px; }
.zw-uhr { font-variant-numeric: tabular-nums; }
.zw-hinweis { text-align: center; margin: 8px 0 0; }

.zw-brett {
    --zelle: min(calc((100vw - 80px) / 4), calc((100dvh - 330px) / 4), 100px);
    --zelle-sicher: max(var(--zelle), 48px);
    display: grid; grid-template-columns: repeat(4, var(--zelle-sicher)); grid-auto-rows: var(--zelle-sicher);
    gap: 8px; padding: 8px; width: max-content; margin: 0 auto; border-radius: 12px;
    background: var(--panel); border: 1px solid var(--panel-border);
    user-select: none; -webkit-user-select: none;
    touch-action: none;   /* Wischen darf die Seite nicht scrollen */
}
.zw-brett.aus { opacity: .6; }
.zw-feld {
    display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .06);
    font-weight: 800; font-size: calc(var(--zelle-sicher) * .4); line-height: 1; font-variant-numeric: tabular-nums;
    color: #776e65;
}
/* Abgestufte, gedeckte Töne; ab 8 heller Text */
.zw-feld.w2 { background: #eee4da; }
.zw-feld.w4 { background: #ede0c8; }
.zw-feld.w8 { background: #f2b179; color: #fff; }
.zw-feld.w16 { background: #f59563; color: #fff; }
.zw-feld.w32 { background: #f67c5f; color: #fff; }
.zw-feld.w64 { background: #e8604a; color: #fff; }
.zw-feld.w128 { background: #edcf72; color: #fff; font-size: calc(var(--zelle-sicher) * .34); }
.zw-feld.w256 { background: #edcc61; color: #fff; font-size: calc(var(--zelle-sicher) * .34); }
.zw-feld.w512 { background: #edc850; color: #fff; font-size: calc(var(--zelle-sicher) * .34); }
.zw-feld.w1024 { background: #edc53f; color: #fff; font-size: calc(var(--zelle-sicher) * .28); }
.zw-feld.w2048 { background: #edc22e; color: #fff; font-size: calc(var(--zelle-sicher) * .28); }
.zw-feld.w4096, .zw-feld.gross { background: #3c3a32; color: #fff; font-size: calc(var(--zelle-sicher) * .28); }

@keyframes zw-pop { from { transform: scale(.82); } to { transform: scale(1); } }
.zw-feld.pop { animation: zw-pop .12s ease-out; }
@media (prefers-reduced-motion: reduce) { .zw-feld.pop { animation: none; } }

.zw-tabelle { display: grid; gap: 6px; margin: 12px 0; text-align: left; }
.zw-zeile { display: grid; grid-template-columns: 2.2em 1fr auto auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 10px; background: var(--panel); }
.zw-zeile span:last-child { color: var(--muted); font-size: 12.5px; }
