/* ============ Minijuegos + aviso global de títulos (dv-juegos) ============ */

/* ---------- paneles ---------- */
.gm-sub { margin: 0 0 10px; color: var(--dv-text2); font-size: .84rem; }
.gm-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; margin: 8px 0; min-height: 34px; font-size: .84rem; color: var(--dv-text2); }
.gm-chip { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: .72rem; font-weight: 800;
  background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b); color: #78350f; border: 2px dashed #92400e; box-shadow: 0 2px 0 #92400e; }
.gm-chip.off { background: var(--dv-bg3, #0003); color: var(--dv-text3); border-color: var(--dv-border); box-shadow: none; opacity: .55; }
.gm-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.gm-rules { margin-top: 12px; font-size: .8rem; color: var(--dv-text3); } .gm-rules summary { cursor: pointer; font-weight: 700; }
.gm-rules ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.7; }
.gm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 6px; margin-top: 14px; }
.gm-stats div { text-align: center; padding: 6px 4px; border-radius: 10px; background: var(--dv-bg3, #0002); }
.gm-stats b { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--dv-accent); } .gm-stats small { color: var(--dv-text3); font-size: .66rem; }
.msg.push, .msg.tie { color: #f59e0b; } .msg.blackjack { color: #ec4899; }

/* ---------- blackjack ---------- */
.bj-table { background: radial-gradient(ellipse at 50% 0, #15803d, #14532d); border: 2px solid #166534; border-radius: 16px; padding: 12px; margin: 8px 0; }
.bj-row { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; } .bj-row + .bj-row { border-top: 1px dashed rgba(255,255,255,.25); }
.bj-lbl { font-size: .74rem; font-weight: 800; color: #dcfce7; text-transform: uppercase; letter-spacing: .6px; } .bj-lbl b { margin-left: 6px; font-size: .95rem; color: #fff; }
.bj-cards { display: flex; gap: 6px; flex-wrap: wrap; min-height: 74px; align-items: center; }
.pcard { display: inline-grid; place-items: center; width: 50px; height: 72px; border-radius: 8px; background: #fff; color: #111827; font-weight: 800; font-size: 1.05rem;
  border: 1px solid #d1d5db; box-shadow: 0 3px 8px rgba(0,0,0,.35); animation: dealin .25s ease-out; }
.pcard.red { color: #dc2626; } .pcard.back { background: repeating-linear-gradient(45deg, #1d4ed8, #1d4ed8 6px, #1e40af 6px, #1e40af 12px); color: #bfdbfe; border-color: #bfdbfe; }
@keyframes dealin { from { transform: translateY(-10px) scale(.9); opacity: 0; } }

/* ---------- dados ---------- */
.dice-ch { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin: 8px 0; }
.dice-opt { text-align: left; cursor: pointer; padding: 9px 10px; border-radius: 12px; border: 2px solid var(--dv-border); background: var(--dv-bg3, #0002); color: inherit; font: inherit; }
.dice-opt i { font-style: normal; font-size: 1.3rem; display: block; } .dice-opt b { display: block; font-size: .8rem; } .dice-opt small { display: block; color: var(--dv-text3); font-size: .7rem; line-height: 1.35; }
.dice-opt.on { border-color: var(--dv-accent); background: rgba(255,90,31,.10); } .dice-opt:disabled { opacity: .6; cursor: default; }
.dice-board { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 12px 0 4px; }
.die { width: 62px; height: 62px; padding: 8px; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); background: #fff; border-radius: 12px; border: 2px solid #d1d5db; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.die span { width: 10px; height: 10px; border-radius: 50%; background: #111827; place-self: center; }
.die.rolling { animation: spin .12s infinite; }
.dice-sum { font-family: var(--font-head); font-size: 1.5rem; min-width: 52px; color: var(--dv-accent); }

/* ---------- aviso flotante global ---------- */
#dv-ann { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 600; display: flex; flex-direction: column; gap: 10px; width: min(460px, calc(100vw - 24px)); pointer-events: none; }
.ann { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 38px 12px 14px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,41,59,.96)); border: 2px solid var(--ac); box-shadow: 0 0 0 3px var(--ag), 0 18px 48px rgba(0,0,0,.55);
  animation: annin .45s cubic-bezier(.2,1.3,.4,1); overflow: hidden; }
.ann::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, var(--ag) 50%, transparent 70%); background-size: 250% 100%; animation: annshine 2.4s linear infinite; pointer-events: none; }
.ann-ico { position: relative; flex: none; width: 52px; height: 52px; display: grid; place-items: center; font-size: 2rem; border-radius: 14px; background: var(--ag); }
.ann-ico img { max-width: 48px; max-height: 48px; object-fit: contain; }
.ann-tx { position: relative; min-width: 0; font-size: .86rem; line-height: 1.35; } .ann-tx small { display: block; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ac); font-size: .66rem; }
.ann-tx b { color: #fff; } .ann-tx em { font-style: normal; font-weight: 800; color: var(--ac); }
.ann-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: #cbd5e1; font-size: 1.2rem; cursor: pointer; line-height: 1; z-index: 1; }
.ann.mitico { animation: annin .45s cubic-bezier(.2,1.3,.4,1), annpulse 1.6s ease-in-out .5s infinite; }
.ann.out { animation: annout .35s ease-in forwards; }
@keyframes annin { from { transform: translateY(-40px) scale(.9); opacity: 0; } }
@keyframes annout { to { transform: translateY(-30px); opacity: 0; } }
@keyframes annshine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes annpulse { 50% { box-shadow: 0 0 0 7px var(--ag), 0 18px 56px rgba(236,72,153,.45); } }
@media (prefers-reduced-motion: reduce) { .ann, .ann::before, .ann.mitico, .pcard, .die.rolling { animation: none !important; } }
