/* ── Club Keno — ck-styles.css ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --surface2: #222;
  --border: #2a2a2a;
  --gold: #f5c518;
  --gold-dim: #b8941a;
  --text: #e8e8e8;
  --muted: #888;
  --accent: #fb7185;
  --radius: 12px;
  --font: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
}

/* ── Ad slots ── */
.ad-banner {
  background: #111;
  border: 1px dashed #333;
  text-align: center;
  color: #555;
  font-size: .75rem;
  letter-spacing: .05em;
  padding: .6rem;
  width: 100%;
}
.ad-banner-top { min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ad-sidebar {
  width: 160px;
  min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: #111;
  border: 1px dashed #333;
  color: #555;
  font-size: .75rem;
  letter-spacing: .05em;
}
.ad-inline {
  min-height: 90px;
  margin: 1.5rem 0;
  display: flex; align-items: center; justify-content: center;
  background: #111;
  border: 1px dashed #333;
  color: #555;
  font-size: .75rem;
  letter-spacing: .05em;
  border-radius: 8px;
}
.ad-below-tabs {
  min-height: 90px;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  background: #111;
  border: 1px dashed #333;
  color: #555;
  font-size: .75rem;
  letter-spacing: .05em;
  border-radius: 8px;
}

/* ── Layout ── */
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.main-row {
  display: flex;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  width: 100%;
  flex: 1;
}
.ck-sidebar-left, .ck-sidebar-right { display: none; }
@media (min-width: 1100px) {
  .ck-sidebar-left, .ck-sidebar-right { display: flex; }
}
.content { flex: 1; min-width: 0; }

/* ── Header ── */
header {
  background: linear-gradient(135deg, #0d0d0d 0%, #111 100%);
  padding: 1.5rem 1rem 1rem;
  text-align: center;
  border-bottom: 3px solid #fb7185;
}
header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fb7185;
  letter-spacing: -.02em;
  line-height: 1.1;
}
header p { color: #aaa; font-size: .9rem; margin-top: .35rem; }

/* ── Back link ── */
.ck-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: .5rem 0;
  margin-bottom: .75rem;
  transition: color .2s;
}
.ck-back:hover { color: var(--gold); }

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  padding: .6rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.tab-btn.active, .tab-btn:hover {
  color: #fb7185;
  border-bottom-color: #fb7185;
}

/* ── Tab panes ── */
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Jackpot banner ── */
.jackpot-banner {
  background: var(--surface);
  border: 1px solid #fb7185;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.jackpot-banner .label { font-size: .75rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.jackpot-banner .amount { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; color: #fb7185; line-height: 1.1; }
.jackpot-banner .next-draw { font-size: .8rem; color: #aaa; margin-top: .25rem; }

/* ── Number picker ── */
.pick-area { margin-bottom: 1.25rem; }
.pick-label { font-size: .75rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6rem; }
.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: .4rem;
}
.num-btn {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  display: flex; align-items: center; justify-content: center;
}
.num-btn:hover { border-color: #fb7185; }
.num-btn.selected {
  background: #fb7185;
  border-color: #fb7185;
  color: #000;
  transform: scale(1.08);
}

/* ── Action buttons ── */
.action-row {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.btn {
  padding: .55rem 1.1rem;
  border-radius: 6px;
  border: none;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn-primary { background: #fb7185; color: #000; }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }

/* ── Draw result ── */
.draw-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  display: none;
}
.draw-result.show { display: block; }
.result-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.balls {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: .75rem;
}
.ball {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fb7185;
  color: #000;
  font-weight: 700;
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ball.match { background: #22c55e; color: #fff; box-shadow: 0 0 10px rgba(34,197,94,.5); }
.ball.no-match { background: #333; color: #666; }
.ball.bonus { background: #ef4444; color: #fff; }
.win-message { font-size: 1.2rem; font-weight: 700; color: #fb7185; margin-top: .5rem; }
.win-message.no-win { color: var(--muted); font-size: .9rem; }

/* ── Stats cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.stat-card .val { font-size: 1.6rem; font-weight: 700; color: #fb7185; }
.stat-card .lbl { font-size: .7rem; color: var(--muted); margin-top: .2rem; }

/* ── Frequency bars ── */
.freq-list { display: flex; flex-direction: column; gap: .4rem; }
.freq-row {
  display: grid;
  grid-template-columns: 42px 1fr 40px;
  gap: .5rem;
  align-items: center;
}
.freq-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
}
.freq-bar-wrap { background: #222; border-radius: 4px; height: 8px; overflow: hidden; }
.freq-bar { height: 100%; background: #fb7185; border-radius: 4px; transition: width .6s ease; }
.freq-pct { font-size: .75rem; color: var(--muted); text-align: right; }

/* ── History table ── */
.history-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.history-table th {
  padding: .5rem .75rem;
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
}
.history-table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid #1e1e1e;
  color: var(--text);
}
.history-table tr:hover td { background: #1e1e1e; }
.mini-balls { display: flex; gap: .25rem; flex-wrap: wrap; }
.mini-ball {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid #444;
  font-size: .7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mini-ball.bonus { background: #7f1d1d; border-color: #ef4444; color: #fca5a5; }

/* ── Info box ── */
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.info-box h3 { font-size: .95rem; font-weight: 700; color: #fb7185; margin-bottom: .65rem; }
.info-box p, .info-box li { font-size: .85rem; color: var(--muted); line-height: 1.7; }
.info-box ul { padding-left: 1.2rem; }
.prize-table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.prize-table th {
  font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
  padding: .4rem .6rem; border-bottom: 1px solid var(--border); text-align: left;
}
.prize-table td { padding: .45rem .6rem; font-size: .82rem; border-bottom: 1px solid #1e1e1e; }
.prize-table tr:hover td { background: #1e1e1e; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.8;
}
footer a { color: var(--gold); text-decoration: none; }
