/* Abay Fast Keno — same brand family as Abay Bingo (cyan + gold, deep teal) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-deep: #0a1218;
  --bg-main: #0c1618;
  --bg-panel: #121a2e;
  --bg-panel-2: #1a2830;
  --bg-tile: #162028;

  --accent-cyan: #00d1ff;
  --accent-cyan-soft: #38bdf8;
  --accent-gold: #facc15;
  --accent-gold-bright: #ffb800;
  --accent-green: #22c55e;
  --accent-red: #ef4444;

  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 209, 255, 0.35);
  --glow-cyan: 0 0 14px rgba(0, 209, 255, 0.28);
  --glow-gold: 0 0 14px rgba(250, 204, 21, 0.28);

  --radius: 12px;
  --font: 'Outfit', 'Segoe UI', system-ui, sans-serif;

  /* legacy aliases used in templates */
  --bg: var(--bg-deep);
  --panel: var(--bg-panel);
  --panel-2: var(--bg-panel-2);
  --tile: var(--bg-tile);
  --lime: var(--accent-cyan);
  --lime-dim: rgba(0, 209, 255, 0.14);
  --orange: var(--accent-gold);
  --orange-dim: rgba(250, 204, 21, 0.18);
  --danger: var(--accent-red);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at top, #12202a 0%, var(--bg-deep) 48%, #060a10 100%);
  color: var(--text);
  font-family: var(--font);
}
a { color: var(--accent-cyan); text-decoration: none; }
button, input { font: inherit; }

.app-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  padding-bottom: 0;
  padding-top: env(safe-area-inset-top, 0px);
}
.app-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(255, 255, 255, 0.14) 8px,
    rgba(255, 255, 255, 0.14) 9px
  );
  z-index: 0;
}
.app-shell > * { position: relative; z-index: 1; }

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--accent-gold);
}
.brand .back {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-cyan);
  background: var(--bg-panel);
  color: var(--accent-cyan);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #041018;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  box-shadow: var(--glow-cyan);
}
.brand .name { font-size: 15px; }
.top-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.top-link:hover { color: var(--accent-cyan); }

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 14px 10px;
}
.bal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-panel);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 12px;
  padding: 8px 10px 8px 14px;
  font-weight: 800;
  color: var(--accent-gold);
  box-shadow: var(--glow-gold);
}
.bal-pill .plus {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bright));
  color: #061018;
  border: none;
  font-weight: 900;
  cursor: pointer;
}
.draw-meta { text-align: right; }
.draw-meta .timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 14px;
}
.draw-meta .draw-no {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 600;
}
.draw-meta .draw-no .dot { color: var(--accent-green); }

/* Live call-out stage */
.callout-stage {
  padding: 4px 10px 8px;
}
.callout-arena {
  position: relative;
  height: min(42vw, 210px);
  margin: 0 0 8px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 209, 255, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, #0c1820 0%, #070d12 100%);
}
.radar-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.radar-bg .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 209, 255, 0.28);
}
.radar-bg .r1 { width: 88%; height: 88%; }
.radar-bg .r2 { width: 68%; height: 68%; border-color: rgba(0, 209, 255, 0.34); }
.radar-bg .r3 { width: 48%; height: 48%; border-color: rgba(0, 209, 255, 0.4); }
.radar-bg .r4 { width: 28%; height: 28%; border-color: rgba(0, 209, 255, 0.5); border-style: solid; }
.callout-count {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.callout-count .cc-sep { color: var(--accent-cyan); }
.fly-ball {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-size: 34px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.45), transparent 34%),
    radial-gradient(circle at 50% 55%, #1e3a55 0%, #0b1724 70%, #050a10 100%);
  border: 2px solid rgba(186, 230, 253, 0.35);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(0, 209, 255, 0.35);
  transform: translate(-50%, -50%) scale(0.2);
  will-change: transform, opacity;
}
.fly-ball.is-hit {
  border-color: rgba(74, 222, 128, 0.7);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(34, 197, 94, 0.55);
}
.win-banner {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  place-content: center;
  text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.win-banner.on {
  display: grid;
  animation: winIn 0.35s ease;
}
.wb-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #f8fafc;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.wb-title.win { color: #f8fafc; }
.wb-title.lose { color: #cbd5e1; font-size: 26px; }
.wb-amt {
  margin-top: 4px;
  font-size: 52px;
  font-weight: 900;
  color: #4ade80;
  line-height: 1;
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.45);
}
@keyframes winIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.drawn-strip {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  background: rgba(10, 18, 24, 0.85);
  border: 1px solid rgba(0, 209, 255, 0.18);
  border-radius: 14px;
  padding: 8px;
}
.drawn-strip .orb {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  border: 1.5px solid transparent;
  color: transparent;
  background: rgba(8, 14, 20, 0.5);
}
.drawn-strip .orb.filled {
  border-color: rgba(125, 211, 252, 0.35);
  color: #e0f2fe;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.28), transparent 36%),
    #132230;
}
.drawn-strip .orb.hit {
  border-color: rgba(34, 197, 94, 0.75);
  color: #041018;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.45), transparent 36%),
    linear-gradient(145deg, #4ade80, #16a34a);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}
.drawn-strip .orb.landing {
  border-color: rgba(0, 209, 255, 0.7);
  color: #e0f2fe;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.35), transparent 36%),
    #163044;
  animation: pop 0.3s ease;
}
@keyframes pop {
  from { transform: scale(0.6); opacity: 0.3; }
  to { transform: scale(1); opacity: 1; }
}

/* Grid */
.board-card {
  margin: 0 12px;
  background: rgba(18, 26, 46, 0.92);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 10px;
  position: relative;
}
.keno-board { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.ball {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--bg-tile);
  color: #e0f2fe;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.12s, background 0.12s, color 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.ball:active { transform: scale(0.94); }
.ball.pick {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 209, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 209, 255, 0.2);
}
.ball.hit {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bright)) !important;
  color: #061018 !important;
  border-color: #ffe566 !important;
  box-shadow: var(--glow-gold);
}
.ball.miss-drawn {
  border-color: rgba(0, 209, 255, 0.4);
  color: var(--accent-cyan-soft);
  opacity: 0.75;
}
.tickets-tab {
  position: absolute;
  right: -2px;
  top: 12px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--bg-panel-2);
  border: 1px solid var(--border-cyan);
  border-radius: 10px 0 0 10px;
  padding: 10px 6px;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-cyan-soft);
  cursor: pointer;
}

/* Ticket tabs */
.ticket-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 14px 0;
  overflow-x: auto;
}
.ticket-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--muted);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.ticket-tab.on {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 209, 255, 0.12);
  box-shadow: var(--glow-cyan);
}
.ticket-tab.add { width: 40px; padding: 8px 0; text-align: center; }

/* Controls */
.controls {
  margin: 12px 12px 0;
  background: rgba(18, 26, 46, 0.92);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 12px;
}
.stake-row { display: flex; gap: 10px; margin-bottom: 10px; }
.stake-box, .rounds-box {
  flex: 1;
  background: #0a1418;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}
.stake-box .lbl, .rounds-box .lbl {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.4px;
}
.stake-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.stake-ctrl button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border-cyan);
  background: var(--bg-tile);
  color: var(--accent-cyan);
  font-weight: 900;
  cursor: pointer;
}
.stake-ctrl .val { font-weight: 900; color: var(--accent-gold); }
.action-row { display: grid; grid-template-columns: 1fr 0.7fr 1fr; gap: 8px; }
.btn {
  border-radius: 12px;
  border: 1px solid var(--border-cyan);
  background: var(--bg-panel-2);
  color: var(--text);
  font-weight: 800;
  padding: 12px 10px;
  cursor: pointer;
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.btn.ticket {
  border-color: rgba(250, 204, 21, 0.45);
  color: var(--accent-gold);
  background: rgba(250, 204, 21, 0.08);
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bright));
  color: #061018;
  border: none;
  box-shadow: var(--glow-gold);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.status-bar {
  margin-top: 10px;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  background: #0a1418;
  border: 1px solid var(--line);
}
.status-bar .main { font-weight: 800; font-size: 14px; }
.status-bar .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.status-bar.drawing .main { color: var(--accent-cyan); }
.status-bar.win .main { color: var(--accent-gold); }
.status-bar.lose .main { color: var(--muted); }

/* Lobby */
.lobby-hero { padding: 18px 16px 8px; }
.lobby-hero h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  color: var(--accent-gold);
}
.lobby-hero p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.room-list { display: grid; gap: 10px; padding: 8px 14px 20px; }
.room-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(18, 26, 46, 0.92);
  border: 1px solid var(--border-cyan);
  color: inherit;
  box-shadow: var(--glow-cyan);
}
.room-row .stake {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent-gold);
}
.room-row .stake span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}
.room-row .mid .cd { font-weight: 800; color: var(--accent-cyan); }
.room-row .mid .meta { font-size: 12px; color: var(--muted); }
.room-row .cta { color: var(--accent-cyan); font-weight: 900; }

/* Auth */
.auth-card {
  margin: 40px 16px;
  background: rgba(18, 26, 46, 0.95);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--glow-cyan);
}
.auth-card h1 { margin: 0 0 6px; color: var(--text); }
.stack { display: grid; gap: 10px; margin-top: 14px; }
label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-cyan);
  background: #0a1418;
  color: var(--text);
}
.err {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-red);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.okmsg { color: var(--accent-cyan); font-size: 13px; text-align: center; min-height: 18px; }

/* Drawer */
.drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 40;
}
.drawer-bg.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: #0c1618;
  border-left: 1px solid var(--border-cyan);
  transform: translateX(105%);
  transition: 0.25s;
  z-index: 50;
  padding: 16px;
  overflow-y: auto;
}
.drawer.on { transform: translateX(0); }
.drawer h3 { margin: 0 0 10px; color: var(--accent-gold); }
.ticket-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  background: var(--bg-panel);
}
.ticket-item strong { color: var(--accent-cyan); }

/* Onboarding */
.onboard {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(6, 10, 16, 0.92);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.onboard.on { display: flex; }
.onboard .sheet {
  width: min(430px, 100%);
  background: var(--bg-panel);
  border-radius: 24px 24px 0 0;
  padding: 22px 18px 28px;
  border: 1px solid var(--border-cyan);
}
.onboard .sample {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  max-width: 220px;
  margin: 0 auto 16px;
}
.onboard .sample span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--bg-tile);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.onboard .sample span.on {
  background: var(--accent-cyan);
  color: #041018;
}
.onboard .step {
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}
.onboard h2 { margin: 6px 0; font-size: 28px; color: var(--accent-gold); }
.onboard p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.dots { display: flex; gap: 6px; justify-content: center; margin: 16px 0; }
.dots i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #334155;
  display: block;
}
.dots i.on { width: 22px; background: var(--accent-cyan); }

.fab {
  position: fixed;
  right: calc(50% - 200px + 18px);
  bottom: 110px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #041018;
  border: none;
  font-size: 20px;
  font-weight: 900;
  box-shadow: var(--glow-cyan);
  cursor: pointer;
  z-index: 30;
}
@media (max-width: 430px) { .fab { right: 18px; } }

.pay-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.muted { color: var(--muted); }

/* —— Fast Keno shell (sample layout; Abay cyan/gold/yellow) —— */
.fk-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}
.fk-top-sticky {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(10, 18, 24, 0.96);
  backdrop-filter: blur(8px);
}
.fk-scroll {
  flex: 1;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.fk-wallet-bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 10px 8px;
  border-bottom: 1px solid rgba(250, 204, 21, 0.18);
}
.fk-brand-split {
  font-weight: 900;
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.brand-abay { color: var(--accent-gold); }
.brand-keno { color: var(--accent-cyan); margin-left: 3px; }
.fk-bal-pill {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 26, 46, 0.95);
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 13px;
  color: var(--accent-gold);
  box-shadow: var(--glow-gold);
}
.eye-btn, .profile-btn, .fk-burger {
  background: transparent;
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: var(--accent-gold);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 15px;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
}
.dep-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bright));
  color: #061018 !important;
  font-weight: 900;
  font-size: 12px;
  padding: 8px 11px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: var(--glow-gold);
  white-space: nowrap;
}
.fk-id-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 209, 255, 0.12);
}
.fk-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 26, 46, 0.9);
  border: 1px solid var(--border-cyan);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
}
.fk-id-pill strong { color: var(--text); }
.id-sep { opacity: 0.45; }
.ok-dot { color: #22c55e; }
.fk-timer {
  display: inline;
  font-size: 12px;
  font-weight: 800;
  color: #7ee9ff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  font-family: 'Outfit', ui-monospace, monospace;
  padding: 0;
  text-shadow: none;
}
/* Pick progress (replaces old “choose N numbers” card) */
.fk-pickbar {
  position: relative;
  margin: 4px 12px 10px;
  padding: 10px 42px 10px 12px;
  border-radius: 14px;
  background: linear-gradient(105deg, rgba(0, 209, 255, 0.10), rgba(250, 204, 21, 0.06));
  border: 1px solid rgba(0, 209, 255, 0.28);
  display: flex;
  align-items: center;
  gap: 14px;
}
.fk-pick-count {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  line-height: 1;
}
.fk-pick-count .pc-num {
  font-size: 34px;
  font-weight: 900;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(250, 204, 21, 0.35);
}
.fk-pick-count .pc-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 4px;
}
.fk-pick-meta { flex: 1; min-width: 0; }
.fk-pick-meta .pm-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.fk-pick-meta .pm-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 6px;
}
.pm-track {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}
.pm-track i {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}
.pm-track i.on {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
  box-shadow: 0 0 8px rgba(0, 209, 255, 0.35);
}
.fk-help {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: rgba(10, 18, 24, 0.7);
  color: var(--accent-gold);
  font-weight: 900;
  cursor: pointer;
}
.board-wrap { padding: 0 6px; }
.keno-board.cols-10 { grid-template-columns: repeat(10, 1fr); gap: 4px; }
.keno-board.cols-10 .ball {
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
  /* Unselected — cool slate */
  background: #1a2433;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.28);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  min-height: 0;
  aspect-ratio: 1;
}
/* Others bet this number */
.keno-board.cols-10 .ball.other {
  background: rgba(250, 204, 21, 0.16);
  color: #fde68a;
  border-color: rgba(250, 204, 21, 0.55);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.12);
}
/* My pick (selected or ticketed) */
.keno-board.cols-10 .ball.pick,
.keno-board.cols-10 .ball.mine {
  border-color: var(--accent-cyan);
  color: #041018;
  background: linear-gradient(145deg, var(--accent-cyan), #38bdf8);
  font-weight: 900;
  box-shadow: var(--glow-cyan);
  text-shadow: none;
}
.keno-board.cols-10 .ball.hit {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bright)) !important;
  color: #061018 !important;
  border-color: #ffe566 !important;
  box-shadow: var(--glow-gold);
}
.keno-board.cols-10 .ball.miss-drawn {
  border-color: rgba(0, 209, 255, 0.45);
  color: var(--accent-cyan-soft);
  opacity: 0.9;
}
.fk-controls { padding: 10px 12px 8px; }
.fk-stake-row {
  display: grid;
  grid-template-columns: 44px 1fr 44px 52px 52px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.fk-round {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-cyan);
  background: #0a1418;
  color: var(--accent-cyan);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}
.fk-stake-val {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
}
.fk-chip {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-cyan);
  background: transparent;
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.fk-bet {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  color: #061018;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bright));
  box-shadow: var(--glow-gold);
}
.fk-quick {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.fk-quick .spots-lbl { margin-left: auto; font-size: 12px; font-weight: 700; }
.fk-section {
  padding: 8px 12px 18px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 8px;
}
.fk-sec-title {
  margin: 4px 0 10px;
  font-size: 14px;
  font-weight: 900;
  color: var(--accent-gold);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
/* In-flow tabs — scroll with BET / feed (not viewport-fixed) */
.fk-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(10, 18, 24, 0.92);
  border-top: 1px solid rgba(250, 204, 21, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 2px;
  margin-top: 4px;
}
.fk-tabs button {
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 800;
  font-size: 10px;
  padding: 10px 2px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  justify-items: center;
}
.fk-tabs button span { font-size: 14px; color: inherit; }
.fk-tabs button.on { color: var(--accent-gold); }
.fk-panel { display: none; }
.fk-panel.on { display: block; }

/* Hot / cold stats */
.stats-wrap { padding: 10px 12px 16px; }
.stats-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.stats-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stats-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.stats-label.hot { color: var(--accent-gold); }
.stats-label.cold { color: var(--accent-cyan-soft); }
.stats-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stat-chip {
  border: 1px solid var(--line);
  background: var(--bg-tile);
  color: var(--text);
  border-radius: 10px;
  min-width: 42px;
  padding: 6px 4px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 2px;
}
.stat-chip small { font-size: 9px; color: var(--muted); font-weight: 600; }
.stat-chip.hot { border-color: rgba(250, 204, 21, 0.45); }
.stat-chip.cold { border-color: rgba(0, 209, 255, 0.4); }

.fair-verify-label {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.fair-verify-row {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
.fair-verify-row input {
  flex: 1;
  background: var(--bg-tile);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 8px 10px;
}
.fair-verify-out {
  margin: 0;
  padding: 10px;
  background: rgba(0,0,0,.35);
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  max-height: 220px;
  overflow: auto;
}
.feed-stats {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 10px 4px;
}
.feed-filter {
  flex: 1;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}
.feed-filter strong {
  color: inherit;
  font-weight: 800;
  margin-left: 2px;
}
.feed-filter.on {
  color: var(--accent-cyan);
  border-color: rgba(0, 209, 255, 0.4);
  background: rgba(0, 209, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 209, 255, 0.08);
}
.feed-filter.on strong { color: var(--accent-gold); }
.fk-fair-foot {
  text-align: center;
  padding: 28px 12px 36px;
  opacity: 0.92;
}
.fair-shield {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  color: #041018;
  background: linear-gradient(145deg, #e2e8f0, #94a3b8);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}
.fair-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #f8fafc;
}
.fair-brand {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--muted);
}

/* Rules / Fairness drawer */
.side-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none; transition: 0.2s; z-index: 40;
}
.side-bg.on { opacity: 1; pointer-events: auto; }
.side-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 320px);
  background: #0c1618;
  border-left: 1px solid rgba(250, 204, 21, 0.35);
  transform: translateX(105%);
  transition: 0.25s;
  z-index: 50;
  padding: 14px;
  overflow-y: auto;
}
.side-drawer.on { transform: translateX(0); }
.side-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; color: var(--accent-gold);
}
.side-head button {
  background: transparent; border: none; color: var(--text);
  font-size: 18px; cursor: pointer;
}
.side-link {
  display: block; width: 100%; text-align: left;
  background: rgba(18,26,46,0.9); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 12px;
  font-weight: 800; margin-bottom: 8px; cursor: pointer;
}
.side-panel { display: none; margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.side-panel.on { display: block; }
.side-panel h4 { margin: 0 0 8px; color: var(--accent-cyan); }
.side-panel p { margin: 0 0 8px; }
.fk-feed { padding: 8px 12px 20px; display: grid; gap: 8px; }
.pad { padding: 16px; text-align: center; }
.hist-note {
  padding: 8px 14px 0;
  font-size: 11px;
  font-weight: 600;
}
.ticket-card {
  background: rgba(18, 26, 46, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ticket-card.mine { border-color: rgba(0, 209, 255, 0.35); }
.ticket-card.hitting {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.18);
}
.ticket-card.won {
  background: rgba(22, 101, 52, 0.28);
  border-color: rgba(74, 222, 128, 0.55);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.2);
}
.tc-top { display: flex; justify-content: space-between; margin-bottom: 8px; align-items: center; }
.tc-user { color: var(--accent-cyan); font-weight: 800; font-size: 13px; }
.tc-draw { color: var(--muted); font-size: 11px; font-weight: 700; }
.tc-status { color: var(--accent-gold); font-weight: 800; font-size: 12px; }
.tc-status.win { color: #4ade80; font-size: 14px; }
.tc-status.lost { color: var(--muted); }
.tc-slots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.tc-slots .slot {
  aspect-ratio: 1;
  border-radius: 6px;
  background: #0a1418;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}
.tc-slots .slot.on { color: #e0f2fe; background: #162028; border: 1px solid rgba(0,209,255,0.25); }
.tc-slots .slot.hit {
  background: linear-gradient(145deg, #4ade80, #22c55e);
  color: #041018;
  border: none;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
}
.tc-bot {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
}

/* Results tab — Draw ID + combination grid */
.results-head {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.2px;
}
.results-list { padding-top: 4px; gap: 10px; }
.result-row {
  display: grid;
  grid-template-columns: minmax(96px, 118px) 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.result-row .rid {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.rid-ico {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(0, 209, 255, 0.15);
  border: 1px solid rgba(0, 209, 255, 0.45);
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.rid-no {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
}
.rid-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.combo-wait {
  height: 36px;
  border-radius: 8px;
  background: #2a3340;
  color: #e2e8f0;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
  display: grid;
  place-items: center;
}
.combo-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
}
.combo-cell {
  aspect-ratio: 1.15;
  border-radius: 5px;
  background: #1a2433;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.combo-cell.empty { opacity: 0.25; }

/* �� Wallet / Profile (Abay cyan+gold) �� */
.w-shell { min-height: 100dvh; padding-bottom: 28px; }
.w-top {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  position: sticky; top: 0; z-index: 12;
  background: rgba(10,18,24,0.96);
  border-bottom: 1px solid rgba(250,204,21,0.2);
}
.w-back, .w-mini-link {
  color: var(--accent-cyan); font-weight: 800; text-decoration: none; font-size: 14px;
}
.w-back {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid rgba(0,209,255,0.35); border-radius: 10px; background: rgba(18,26,46,0.9);
}
.w-title { font-weight: 900; text-align: center; color: var(--accent-gold); font-size: 16px; }
.w-body { padding: 12px; }
.w-flash-wrap { padding: 8px 12px 0; }
.w-flash {
  border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 700; margin-bottom: 8px;
  border: 1px solid var(--line); background: rgba(18,26,46,0.9);
}
.w-flash.ok, .w-flash.message { border-color: rgba(34,197,94,0.45); color: #86efac; }
.w-flash.err, .w-flash.error { border-color: rgba(239,68,68,0.45); color: #fca5a5; }
.w-flash.warn { border-color: rgba(250,204,21,0.45); color: #fde68a; }
.w-card {
  background: rgba(18,26,46,0.92); border: 1px solid rgba(0,209,255,0.22);
  border-radius: 14px; padding: 12px; margin-bottom: 12px;
}
.payee-head { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.4px; }
.payee-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.payee-row.thin { padding-top: 10px; }
.payee-label { font-size: 11px; color: var(--muted); font-weight: 700; }
.payee-value { font-size: 18px; font-weight: 900; color: var(--accent-cyan); letter-spacing: 0.3px; }
.payee-value.gold { color: var(--accent-gold); font-size: 16px; }
.payee-value.sm { font-size: 14px; color: var(--text); }
.w-copy {
  border: 1px solid rgba(250,204,21,0.45); background: rgba(250,204,21,0.12);
  color: var(--accent-gold); font-weight: 800; border-radius: 10px; padding: 8px 12px; cursor: pointer;
}
.w-steps { margin: 0 0 14px; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.w-form label { display: block; font-size: 12px; font-weight: 800; color: var(--muted); margin: 10px 0 6px; }
.chip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.chip {
  border: 1px solid rgba(0,209,255,0.3); background: #0a1418; color: var(--accent-cyan);
  border-radius: 10px; padding: 10px 4px; font-weight: 800; cursor: pointer;
}
.chip.on { background: rgba(0,209,255,0.16); border-color: var(--accent-cyan); box-shadow: var(--glow-cyan); color: #fff; }
.field { display: flex; align-items: center; gap: 8px; background: #0a1418; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 0 12px; }
.field .prefix { color: var(--muted); font-weight: 800; font-size: 12px; }
.field input { flex: 1; background: transparent; border: none; color: var(--text); padding: 14px 0; font-size: 16px; font-weight: 700; outline: none; width: 100%; }
.field.readonly { opacity: 0.85; }
.w-btn {
  display: block; width: 100%; margin-top: 16px; border: none; border-radius: 12px;
  padding: 15px; font-size: 16px; font-weight: 900; cursor: pointer;
}
.w-btn.primary {
  color: #061018;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bright));
  box-shadow: var(--glow-gold);
}
.w-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.w-support { font-size: 12px; margin-top: 14px; line-height: 1.4; }
.w-hero-block { text-align: center; padding: 8px 0 14px; }
.w-hero-block h1 { margin: 6px 0 4px; font-size: 26px; color: var(--text); }
.w-ico {
  width: 56px; height: 56px; margin: 0 auto; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; background: rgba(0,209,255,0.12); border: 1px solid rgba(0,209,255,0.35);
}
.bal-strip { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.bal-strip strong { color: var(--accent-gold); font-size: 16px; }

.prof-card {
  display: flex; gap: 12px; align-items: center; padding: 12px;
  background: rgba(18,26,46,0.92); border: 1px solid rgba(250,204,21,0.25); border-radius: 14px; margin-bottom: 12px;
}
.prof-avatar {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 22px; font-weight: 900; color: #061018;
  background: linear-gradient(145deg, var(--accent-gold), var(--accent-cyan));
}
.prof-name { font-size: 18px; font-weight: 900; color: var(--accent-gold); }
.prof-phone { font-size: 12px; margin-top: 2px; }
.bal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.bal-box {
  background: rgba(18,26,46,0.92); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 12px;
}
.bal-box.accent { border-color: rgba(0,209,255,0.35); }
.bal-label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.bal-num { margin-top: 6px; font-size: 20px; font-weight: 900; color: var(--text); }
.bal-num span { font-size: 11px; color: var(--muted); }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.act-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 10px; border-radius: 12px; font-weight: 900; text-decoration: none; font-size: 14px;
}
.act-btn.ghost { background: #162028; color: var(--text); border: 1px solid rgba(255,255,255,0.12); }
.act-btn.solid {
  color: #061018;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bright));
  box-shadow: var(--glow-gold);
}
.prof-menu {
  display: grid; gap: 8px; margin-bottom: 16px;
}
.prof-menu a {
  display: flex; align-items: center; gap: 10px; padding: 14px 12px;
  background: rgba(0,209,255,0.08); border: 1px solid rgba(0,209,255,0.28);
  border-radius: 12px; color: var(--text); font-weight: 800; text-decoration: none;
}
.prof-menu a span { color: var(--accent-cyan); width: 22px; text-align: center; }
.prof-support { padding: 8px 4px; font-size: 12px; line-height: 1.4; }
.tx-block h3 { margin: 0 0 10px; font-size: 14px; color: var(--accent-gold); }
.tx-row {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tx-ico {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 12px;
}
.tx-ico.win { background: rgba(34,197,94,0.2); color: #4ade80; border: 1px solid rgba(34,197,94,0.45); }
.tx-ico.bet { background: rgba(239,68,68,0.18); color: #f87171; border: 1px solid rgba(239,68,68,0.4); }
.tx-title { font-weight: 800; font-size: 13px; }
.tx-pill {
  display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px;
  background: rgba(255,255,255,0.08); font-size: 10px; color: var(--muted);
}
.tx-meta { font-size: 11px; margin-top: 2px; }
.tx-right { text-align: right; }
.tx-amt { font-weight: 900; font-size: 13px; }
.tx-amt.pos { color: #4ade80; }
.tx-amt.neg { color: #f87171; }
.tx-badge {
  display: inline-block; margin-top: 4px; padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 800;
}
.tx-badge.ok { background: rgba(34,197,94,0.2); color: #86efac; }
.tx-badge.bad { background: rgba(239,68,68,0.18); color: #fca5a5; }

.field.field-area { padding: 10px 12px; align-items: flex-start; }
.field.field-area textarea {
  flex: 1; width: 100%; min-height: 88px; resize: vertical;
  background: transparent; border: none; color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; outline: none;
}
.bal-grid-4 { grid-template-columns: 1fr 1fr; }
.prof-card { position: relative; }
.prof-card .eye-btn { margin-left: auto; flex-shrink: 0; }
.w-btn.ghost-load {
  margin-top: 12px;
  background: transparent;
  border: 1px solid rgba(0,209,255,0.35);
  color: var(--accent-cyan);
  box-shadow: none;
}
.w-btn.ghost-load[hidden] { display: none; }
