.ug-screen { padding: 0 0 calc(var(--bh) + 24px); }
.ug-panel { margin-bottom: 8px; }
.ug-hero {
  background: linear-gradient(145deg, rgba(26,31,58,0.95), rgba(45,27,78,0.9));
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.06);
}
.ug-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text2); margin-bottom: 12px; }
.ug-top strong { color: var(--white); }
.ug-stage {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 28px;
}
.ug-panel { background: var(--card); border-radius: 14px; padding: 14px; }
.ug-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ug-pick {
  flex: 1 1 calc(50% - 8px);
  min-width: 100px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}
.ug-pick.on { border-color: var(--gold); background: rgba(255,215,0,0.08); }
.ug-result { margin-top: 12px; padding: 12px; border-radius: 10px; font-weight: 700; text-align: center; }
.ug-result.win { background: rgba(34,197,94,0.12); color: #4ade80; }
.ug-result.lose { background: rgba(239,68,68,0.12); color: #f87171; }
.ug-slots { display: flex; gap: 8px; justify-content: center; }
.ug-slot-reel {
  width: 64px; height: 72px;
  background: #111827;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  border: 2px solid rgba(255,215,0,0.2);
}
.ug-mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  max-width: 280px;
  margin: 0 auto;
}
.ug-mine-tile {
  aspect-ratio: 1;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
}
.ug-mine-tile.revealed { background: rgba(34,197,94,0.2); }
.ug-mine-tile.bomb { background: rgba(239,68,68,0.3); }
.ug-keno-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
}
.ug-keno-num {
  padding: 6px 0;
  text-align: center;
  font-size: 11px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text2);
  cursor: pointer;
}
.ug-keno-num.on { background: rgba(255,215,0,0.15); color: var(--gold); border-color: var(--gold); }
.ug-meta { font-size: 12px; color: var(--text2); text-align: center; margin-top: 8px; }

/* ── Enhanced game visuals ── */
.ug-slots-frame { background: linear-gradient(180deg, #1a1f3a, #0d1117); border-radius: 14px; padding: 16px; border: 2px solid rgba(255,215,0,0.15); }
.ug-slot-reel { transition: transform 0.1s; box-shadow: inset 0 2px 8px rgba(0,0,0,0.5); }
.ug-wheel-wrap { position: relative; width: 180px; height: 180px; margin: 0 auto; }
.ug-wheel { width: 100%; height: 100%; border-radius: 50%; position: relative; border: 4px solid var(--gold); overflow: hidden; transition: transform 1.4s cubic-bezier(.17,.67,.12,1); }
.ug-wheel.spinning { transform: rotate(1080deg); }
.ug-wheel-seg { position: absolute; width: 50%; height: 50%; top: 0; left: 50%; transform-origin: 0 100%; clip-path: polygon(0 0, 100% 0, 0 100%); }
.ug-wheel-hub { position: absolute; inset: 35%; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #111; z-index: 2; }
.ug-roulette-wrap { position: relative; width: 160px; height: 160px; margin: 0 auto; }
.ug-roulette-wheel { width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(#ef4444 0deg 180deg, #1f2937 180deg 360deg); border: 3px solid var(--gold); }
.ug-roulette-ball { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; transition: top 1s ease-in; }
.ug-roulette-ball.rolling { animation: ug-ball-spin 0.7s linear infinite; }
.ug-roulette-num { text-align: center; font-size: 28px; font-weight: 800; color: var(--gold); margin-top: 10px; }
@keyframes ug-ball-spin { to { transform: translateX(-50%) rotate(360deg); } }
.ug-plinko-board { position: relative; min-height: 140px; background: rgba(0,0,0,0.2); border-radius: 12px; overflow: hidden; }
.ug-plinko-pegs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; padding: 12px; }
.ug-plinko-peg { width: 8px; height: 8px; background: rgba(255,255,255,0.4); border-radius: 50%; margin: 0 auto; }
.ug-plinko-ball { position: absolute; top: 4px; left: 50%; color: var(--gold); font-size: 16px; transform: translateX(-50%); }
.ug-plinko-ball.drop { animation: ug-plinko-drop 1.2s ease-in forwards; }
@keyframes ug-plinko-drop { to { top: 85%; left: calc(50% + 30px); } }
.ug-cards-stage { display: flex; flex-direction: column; gap: 12px; }
.ug-cards-stage.dt { flex-direction: row; justify-content: space-around; }
.ug-hand-lbl { font-size: 11px; color: var(--text2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.ug-hand-cards { display: flex; gap: 6px; justify-content: center; }
.ug-card { width: 48px; height: 68px; background: #fff; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.ug-card.red { color: #dc2626; }
.ug-card-back { background: linear-gradient(135deg, #1e3a5f, #0f172a); color: var(--gold); font-size: 20px; }
.ug-card-r { font-size: 16px; line-height: 1; }
.ug-card-s { font-size: 18px; }
.ug-dice-row { display: flex; gap: 10px; justify-content: center; }
.ug-dice { width: 56px; height: 56px; background: linear-gradient(145deg, #fff, #e5e7eb); border-radius: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.35); border: 2px solid #d1d5db; }
.ug-dice-face { font-size: 22px; font-weight: 800; color: #111; }
.cg-dice-roll { animation: ug-dice-shake 0.5s ease; }
@keyframes ug-dice-shake { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-8deg)} 75%{transform:rotate(8deg)} }
.ug-scratch { position: relative; width: 200px; height: 100px; margin: 0 auto; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.ug-scratch-cover { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, #9ca3af, #9ca3af 4px, #6b7280 4px, #6b7280 8px); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; transition: opacity 0.5s; }
.ug-scratch.revealed .ug-scratch-cover { opacity: 0; pointer-events: none; }
.ug-scratch-prize { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 24px; font-weight: 800; color: #111; }
.ug-guess-dial { text-align: center; }
.ug-guess-num { font-size: 48px; font-weight: 800; color: var(--gold); text-shadow: 0 0 20px rgba(255,215,0,0.3); }
.ug-lotto-balls { display: flex; gap: 8px; justify-content: center; }
.ug-lotto-ball { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(145deg, var(--gold), #b8860b); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #111; font-size: 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.ug-stage-glow { flex-direction: column; gap: 8px; }
.ug-stage-icon { font-size: 48px; filter: drop-shadow(0 0 12px rgba(255,215,0,0.4)); }
.ug-stage-name { font-size: 14px; color: var(--text2); font-weight: 600; }
.ug-mine-tile { transition: transform 0.15s, background 0.15s; }
.ug-mine-tile:not(:disabled):hover { transform: scale(1.05); background: rgba(255,215,0,0.12); }
