/*
 * FaucetPay product UI cards (ui.js): FPv3's dark surfaces, blue actions, mono
 * amounts. Sizes are design px; the banner / video scales the card's parent.
 */
.ui {
  position: relative; overflow: hidden; border-radius: 22px; color: #fff; text-align: start;
  font-family: 'Inter', var(--cjk, 'Inter'), 'Noto Sans', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans Arabic', 'Noto Sans Devanagari', system-ui, sans-serif;
  background: linear-gradient(180deg, #20242c 0%, #191c22 55%, #16181d 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09) inset, 0 1px 0 0 rgba(255, 255, 255, 0.12) inset, 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(91, 141, 239, 0.16);
}
.ui > * { position: absolute; }
.ui-sheen { inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 70% at 85% -10%, rgba(91, 141, 239, 0.22), rgba(91, 141, 239, 0) 60%), radial-gradient(90% 60% at 0% 110%, rgba(70, 181, 249, 0.10), rgba(70, 181, 249, 0) 70%); }
.ui svg { display: block; width: 100%; height: 100%; }

.ui-head { left: 16px; right: 16px; top: 16px; height: 30px; display: flex; align-items: center; gap: 8px; }
.ui-title { flex: 1; min-width: 0; font-family: 'Inter Tight', var(--cjk, 'Inter Tight'), 'Inter', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-title.ui-sm { font-family: 'Inter', var(--cjk, 'Inter'), sans-serif; font-weight: 600; font-size: 12.5px; color: #ced3dc; letter-spacing: 0; }
.ui-badge { flex: none; width: 30px; height: 30px; padding: 7px; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, #46b5f9, #434be9); box-shadow: 0 6px 16px rgba(67, 75, 233, 0.45); }
.ui-badge-sm { width: 22px; height: 22px; padding: 5px; border-radius: 7px; }
.ui-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px 0 4px; border-radius: 999px;
  font-weight: 700; font-size: 11.5px; background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset; }
.ui-coin { display: inline-block; flex: none; border-radius: 50%; overflow: hidden; background: #0d0f13; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.ui-coin img { width: 100%; height: 100%; display: block; }

/* claim */
.ui-bal { left: 16px; right: 16px; top: 56px; height: 86px; padding: 11px 14px; border-radius: 16px;
  background: rgba(13, 15, 19, 0.55); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.ui-label { font-size: 10.5px; font-weight: 600; color: #8b919c; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-amount { margin-top: 6px; white-space: nowrap; transform-origin: 0 50%; }
.ui[dir="rtl"] .ui-amount { transform-origin: 100% 50%; text-align: right; }
.ui-num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-ligatures: none; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.ui-unit { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 600; font-size: 11px; color: #8b919c; }
.ui-bar { margin-top: 10px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.ui-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(0.79);
  background: linear-gradient(90deg, #46b5f9, #5b8def, #434be9); }
.ui[dir="rtl"] .ui-bar i { transform-origin: 100% 50%; }
.ui-toast { left: 0; right: 0; margin: 0 auto; width: fit-content; top: 146px; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 5px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.22), rgba(74, 222, 128, 0.12)); box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.55) inset, 0 8px 22px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px); }
.ui-plus { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-ligatures: none; font-weight: 700; font-size: 12.5px; color: #4ade80; }

.ui-btn { left: 16px; right: 16px; bottom: 16px; height: 54px; border-radius: 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #5b8def 0%, #434be9 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 10px 26px rgba(67, 75, 233, 0.5); }
.ui-btn.is-done { background: linear-gradient(135deg, #34c76f 0%, #1f9d55 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 10px 26px rgba(31, 157, 85, 0.45); }
.ui-btn-label, .ui-btn-done { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 10px;
  font-family: 'Inter Tight', var(--cjk, 'Inter Tight'), 'Inter', sans-serif; font-weight: 800; font-size: 19px; white-space: nowrap; }
.ui-btn-label { opacity: 0; }
.ui-btn-done svg { width: 20px; height: 20px; flex: none; }
.ui-ripple { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); opacity: 0; transform: scale(0); }
.ui-btn-sm { left: 14px; right: 14px; bottom: 12px; height: 32px; border-radius: 11px; }
.ui-btn-sm .ui-btn-label, .ui-btn-sm .ui-btn-done { font-size: 12.5px; gap: 5px; }
.ui-btn-sm .ui-btn-done svg { width: 13px; height: 13px; }

.ui-cursor { left: 0; top: 0; width: 30px; height: 30px; margin: -3px 0 0 -5px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55)); transform-origin: 20% 15%; }

/* stake */
.ui-seg { left: 16px; right: 16px; top: 58px; height: 34px; border-radius: 999px; display: flex; padding: 3px; background: rgba(13, 15, 19, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.ui-seg span { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #8b919c; white-space: nowrap; overflow: hidden; }
.ui-seg span.is-on { color: #fff; }
.ui-seg-knob { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc(50% - 3px); border-radius: 999px;
  background: linear-gradient(135deg, #5b8def, #434be9); box-shadow: 0 4px 12px rgba(67, 75, 233, 0.5); }
.ui[dir="rtl"] .ui-seg-knob { left: auto; right: 3px; }
.ui-row { left: 16px; right: 16px; top: 104px; height: 58px; border-radius: 16px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: rgba(255, 255, 255, 0.04); box-shadow: 0 0 0 1px rgba(91, 141, 239, 0.35) inset; }
.ui-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ui-row-text b { font-size: 14px; font-weight: 800; }
.ui-row-text small { font-size: 10.5px; font-weight: 600; color: #8b919c; white-space: nowrap; }
.ui-pool { margin-inline-start: auto; width: 54px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ui-pool i { display: block; height: 100%; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(0.68); background: linear-gradient(90deg, #46b5f9, #5b8def); }
.ui[dir="rtl"] .ui-pool i { transform-origin: 100% 50%; }
.ui-pos { left: 16px; right: 16px; top: 100px; height: 70px; }
.ui-pos-chip { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 7px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; color: #4ade80; background: rgba(74, 222, 128, 0.13); box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.45) inset; }
.ui[dir="rtl"] .ui-pos-chip { left: auto; right: 0; }
.ui-pos-chip svg { width: 13px; height: 13px; }
.ui-spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40px; overflow: visible; }

/* faas */
.ui-chrome { left: 0; right: 0; top: 0; height: 30px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: rgba(13, 15, 19, 0.55); box-shadow: 0 -1px 0 0 rgba(255, 255, 255, 0.06) inset; }
.ui-dots { display: flex; gap: 5px; flex: none; }
.ui-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ef5a5a; }
.ui-dots i:nth-child(2) { background: #f5b75e; }
.ui-dots i:nth-child(3) { background: #4ade80; }
.ui-url { flex: 1; min-width: 0; height: 19px; border-radius: 999px; display: flex; align-items: center; gap: 5px; padding: 0 9px;
  background: rgba(255, 255, 255, 0.06); font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-ligatures: none; font-size: 10px; font-weight: 500; color: #ced3dc; white-space: nowrap; overflow: hidden; }
.ui-lock { width: 9px; height: 9px; flex: none; color: #4ade80; }
.ui-site { left: 0; top: 30px; bottom: 0; width: 192px; }
.ui[dir="rtl"] .ui-site { left: auto; right: 0; }
.ui-site > * { position: absolute; }
.ui-site-head { left: 14px; right: 12px; top: 12px; height: 24px; display: flex; align-items: center; gap: 7px; }
.ui-site-name { flex: 1; min-width: 0; font-family: 'Inter Tight', var(--cjk, 'Inter Tight'), 'Inter', sans-serif; font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-live { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 9.5px; font-weight: 800; color: #4ade80;
  background: rgba(74, 222, 128, 0.14); box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.5) inset; }
.ui-live i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); }
.ui-skel { left: 14px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.10); }
.ui[dir="rtl"] .ui-skel { left: auto; right: 14px; }
.ui-skel-1 { top: 50px; width: 132px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)); }
.ui-skel-2 { top: 66px; width: 96px; }
.ui-site-coins { left: 14px; top: 86px; display: flex; gap: 5px; }
.ui[dir="rtl"] .ui-site-coins { left: auto; right: 14px; }
.ui-mini-btn { left: 14px; top: 114px; height: 24px; padding: 0 14px; border-radius: 8px; display: flex; align-items: center; font-size: 11px; font-weight: 800;
  background: linear-gradient(135deg, #5b8def, #434be9); }
.ui[dir="rtl"] .ui-mini-btn { left: auto; right: 14px; }
.ui-panel { right: 0; top: 30px; bottom: 0; width: 142px; padding: 10px 9px; display: flex; flex-direction: column; gap: 7px;
  background: rgba(13, 15, 19, 0.38); box-shadow: 1px 0 0 0 rgba(255, 255, 255, 0.06) inset; }
.ui[dir="rtl"] .ui-panel { right: auto; left: 0; box-shadow: -1px 0 0 0 rgba(255, 255, 255, 0.06) inset; }
.ui-feat { position: relative; display: flex; align-items: center; gap: 5px; height: 35px; padding: 0 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.ui-feat-ico { width: 16px; height: 16px; flex: none; color: #8b919c; }
.ui-feat-label { flex: 1; min-width: 0; font-size: 9px; font-weight: 700; color: #8b919c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-switch { flex: none; width: 22px; height: 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); position: relative; }
.ui-switch i { position: absolute; left: 2px; top: 2px; width: 9px; height: 9px; border-radius: 50%; background: #fff; transition: none; }
.ui-feat.is-on { background: rgba(91, 141, 239, 0.12); box-shadow: 0 0 0 1px rgba(91, 141, 239, 0.4) inset; }
.ui-feat.is-on .ui-feat-ico { color: #46b5f9; }
.ui-feat.is-on .ui-feat-label { color: #fff; }
.ui-feat.is-on .ui-switch { background: linear-gradient(135deg, #5b8def, #434be9); }
.ui-feat.is-on .ui-switch i { left: 11px; }
.ui[dir="rtl"] .ui-switch i { left: auto; right: 2px; }
.ui[dir="rtl"] .ui-feat.is-on .ui-switch i { right: 11px; }

/* plinko */
.ui-fair { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 6px; border-radius: 999px; font-size: 9.5px; font-weight: 800; color: #4ade80;
  background: rgba(74, 222, 128, 0.13); box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.45) inset; white-space: nowrap; }
.ui-fair svg { width: 11px; height: 11px; }
.ui-board { left: 0; right: 0; top: 44px; bottom: 30px; }
.ui-peg { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: rgba(255, 255, 255, 0.78); box-shadow: 0 0 6px rgba(127, 168, 255, 0.55); }
.ui-slot { position: absolute; width: 18px; height: 14px; border-radius: 4px; background: #2b4fd6; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset; }
.ui-slot[data-tier="1"] { background: #3d6ff0; }
.ui-slot[data-tier="2"] { background: #7a5cf0; }
.ui-slot[data-tier="3"] { background: #f5b75e; }
.ui-slot.is-hit { box-shadow: 0 0 0 2px #fff inset, 0 0 16px 4px rgba(127, 168, 255, 0.9); }
.ui-ball { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #ffd889 35%, #f5a623 75%, #c97a0a 100%); box-shadow: 0 0 12px 3px rgba(245, 183, 94, 0.7); z-index: 2; }
.ui-seed { left: 16px; right: 16px; bottom: 10px; height: 16px; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-ligatures: none; font-size: 9px; color: #8b919c; white-space: nowrap; }
.ui-seed span { color: #46b5f9; font-weight: 700; }
