/* =====================================================================
   Nunzio — gioco di carte (Frutiger Aero: tavolo in vetro, panno verde/blu)
   ===================================================================== */
.win.nunzio-win .win-body { overflow: hidden; }
.app.nunzio { height: 100%; display: flex; flex-direction: column; user-select: none; box-sizing: border-box; }

/* ---------- top glass rail ---------- */
.app.nunzio .nz-topbar {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px; flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(210,236,255,0.55));
  border-bottom: 1px solid rgba(0,60,150,0.2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset;
}
.app.nunzio .nz-wins { font: 700 0.82rem var(--font-display); color: #0b3a80; white-space: nowrap; }
.app.nunzio .nz-spacer { flex: 1; }
.app.nunzio .nz-speed { display: flex; align-items: center; gap: 5px; }
.app.nunzio .nz-speed span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #3a72b8; margin-right: 2px; }
.app.nunzio .nz-speed-btn { height: 26px; padding: 0 10px; font-size: 0.76rem; }
.app.nunzio .app-btn img { width: 16px; height: 16px; }

/* ---------- table ---------- */
.app.nunzio .nz-table {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(255,255,255,0.25), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #bfe8ff 0%, #8fd0f5 30%, #3fae7e 55%, #1f8f63 100%);
}
.app.nunzio .nz-arena { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- player zones ---------- */
.app.nunzio .nz-zone {
  flex: none; width: 130px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 8px; border-radius: 16px; position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.18));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 6px 14px rgba(0,40,80,0.25);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.app.nunzio .nz-zone.active { box-shadow: 0 0 0 2px #ffe066, 0 0 16px rgba(255,224,102,0.8), 0 6px 14px rgba(0,40,80,0.25); background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.3)); }
.app.nunzio .nz-zone.obligated { box-shadow: 0 0 0 2px #ff7a5c, 0 0 16px rgba(255,122,92,0.7), 0 6px 14px rgba(0,40,80,0.25); }
.app.nunzio .nz-zone.nz-out { opacity: 0.4; }
.app.nunzio .nz-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,20,60,0.4); flex: none; }
.app.nunzio .nz-avatar img { width: 100%; height: 100%; object-fit: cover; }
.app.nunzio .nz-name { font: 700 0.82rem var(--font-display); color: #fff; text-shadow: 0 1px 3px rgba(0,30,10,0.6); text-align: center; }

/* deck stack */
.app.nunzio .nz-stack { position: relative; width: 62px; height: 84px; margin: 2px 0; cursor: default; }
.app.nunzio .nz-teo .nz-stack { cursor: pointer; }
.app.nunzio .nz-cardback { position: absolute; width: 56px; height: 78px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,20,60,0.4)); left: 3px; top: 3px; }
.app.nunzio .nz-cardback.c1 { left: 5px; top: 1px; }
.app.nunzio .nz-cardback.c2 { left: 0; top: -1px; }
.app.nunzio .nz-count {
  position: absolute; right: -8px; bottom: -6px; min-width: 24px; text-align: center; padding: 2px 6px;
  border-radius: 999px; background: linear-gradient(180deg, #fff, #cfe6fb); border: 1px solid #7fa9d8;
  font: 800 0.78rem var(--font-display); color: #0b3a80; box-shadow: 0 2px 5px rgba(0,40,120,0.3);
}
.app.nunzio .nz-count.bump { animation: nz-bump 0.4s ease; }
@keyframes nz-bump { 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.app.nunzio .nz-oblig-badge {
  position: absolute; left: -8px; top: -8px; min-width: 20px; text-align: center; padding: 1px 5px;
  border-radius: 999px; background: linear-gradient(180deg, #ffd0c6, #e0432a); color: #fff; border: 1px solid #8f2312;
  font: 800 0.72rem var(--font-display); box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* ---------- centre pile ---------- */
.app.nunzio .nz-center { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: relative; border-radius: 18px; transition: box-shadow 0.2s ease; }
.app.nunzio .nz-center.flash { box-shadow: 0 0 0 3px #ffe066, 0 0 30px rgba(255,224,102,0.9) inset; }
.app.nunzio .nz-pile-fan { position: relative; width: 100%; height: 130px; flex: none; }
.app.nunzio .nz-pcard { position: absolute; left: 50%; top: 50%; width: 66px; height: 92px; }
.app.nunzio .nz-pcard img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 7px rgba(0,20,60,0.4)); display: block; }
.app.nunzio .nz-pcard.nz-new img { animation: nz-drop 0.35s ease-out both; }
@keyframes nz-drop { from { opacity: 0.2; transform: translateY(-18px) scale(0.85); } to { opacity: 1; transform: translateY(0) scale(1); } }
.app.nunzio .nz-pile-count-wrap {
  font: 700 0.78rem var(--font); color: #fff; text-shadow: 0 1px 3px rgba(0,30,10,0.6);
  background: rgba(0,50,20,0.25); padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4);
}
.app.nunzio .nz-pile-count { font-family: var(--font-display); }

/* ---------- status line ---------- */
.app.nunzio .nz-status {
  flex: none; text-align: center; padding: 7px 12px; border-radius: 999px; margin: 0 auto; max-width: 90%;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(230,244,255,0.6));
  border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 3px 10px rgba(0,40,120,0.25);
  font: 600 0.85rem var(--font); color: #0b3a80;
}
.app.nunzio .nz-status-text.pop { animation: nz-pop 0.28s ease; }
@keyframes nz-pop { from { opacity: 0.3; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Teo's zone ---------- */
.app.nunzio .nz-teo { flex: none; flex-direction: row; width: auto; gap: 14px; padding: 10px 22px; align-self: center; }
.app.nunzio .nz-teo .nz-name { order: 3; }
.app.nunzio .nz-play-btn { min-width: 130px; font-size: 1rem; letter-spacing: 0.04em; }
