/* Tarneeb Online — shared design for every website page */
:root {
  --navy: #0B1530; --navy2: #13204a; --felt: #0f5132; --gold: #D4AF37; --gold2: #FFD54F;
  --text: #e8e8e8; --muted: #9aa3b5; --red: #e04848; --card: #ffffff0d; --line: #ffffff1a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color: var(--text); line-height: 1.8;
  background: linear-gradient(180deg, #0b1530ee, #070d1fee), url("img/table_background.jpg") center/cover fixed, var(--navy);
}
a { color: var(--gold2); }
img { max-width: 100%; }

/* navigation bar */
.topbar {
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px);
  background: #0b1530cc; border-bottom: 1px solid var(--line);
}
.topbar .in { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 8px 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.topbar nav { margin-inline-start: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a { color: var(--text); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: .95rem; }
.topbar nav a:hover, .topbar nav a.on { background: #d4af3722; color: var(--gold2); }

.wrap { max-width: 780px; margin: 0 auto; padding: 28px 20px 60px; }
.wide { max-width: 1100px; }
header.page { text-align: center; padding: 20px 0 10px; }
header.page img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 30px #d4af3733; }
h1 { color: var(--gold); margin: 10px 0 4px; }
h2 { color: var(--gold); font-size: 1.15rem; margin-top: 28px; border-bottom: 1px solid #ffffff22; padding-bottom: 6px; }
.muted { color: var(--muted); font-size: .9rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 14px 0; }
.suits { letter-spacing: 6px; font-size: 1.1rem; }
.suits .r { color: var(--red); }

/* main UI */
.hero {
  position: relative; min-height: 460px; display: grid; place-items: center; text-align: center;
  background: linear-gradient(180deg, #0b153066, #0b1530), url("img/tarneeb_hero_banner.jpg") center/cover;
  border-bottom: 2px solid #d4af3755; padding: 40px 18px;
}
.hero img.logo { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 10px 40px #000a, 0 0 0 3px #d4af3788; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: 14px 0 0; text-shadow: 0 3px 12px #000; }
.hero p { font-size: 1.15rem; max-width: 620px; margin: 8px auto 20px; text-shadow: 0 2px 8px #000; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 999px; font-weight: 800;
  background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1300; text-decoration: none;
  box-shadow: 0 6px 20px #d4af3755; transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--gold2); border: 1px solid var(--gold); box-shadow: none; }

/* number cards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: -50px auto 10px; position: relative; }
.stat {
  background: linear-gradient(160deg, #13204aee, #0b1530ee); border: 1px solid #d4af3744; border-radius: 16px;
  padding: 16px; text-align: center; box-shadow: 0 8px 24px #0006;
}
.stat .ic { width: 34px; height: 34px; object-fit: contain; }
.stat b { display: block; font-size: 1.9rem; color: var(--gold2); font-variant-numeric: tabular-nums; line-height: 1.3; }
.stat span { color: var(--muted); font-size: .9rem; }
.live { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2ecc71; margin-inline-end: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #2ecc7188; } 100% { box-shadow: 0 0 0 10px #2ecc7100; } }

/* leaderboards */
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.board { background: linear-gradient(180deg, #0f5132cc, #0a3622cc); border: 1px solid #d4af3755; border-radius: 18px; padding: 16px; }
.board h2 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
.board h2 img { width: 26px; height: 26px; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid #ffffff14; }
.row:last-child { border: 0; }
.rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #ffffff14; flex: none; }
.r1 .rank { background: linear-gradient(#ffe58a, #d4af37); color: #1a1300; }
.r2 .rank { background: linear-gradient(#f1f1f1, #9aa3b5); color: #111; }
.r3 .rank { background: linear-gradient(#f0b27a, #a0522d); color: #fff; }
.av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #0b1530; border: 1px solid #d4af3766; flex: none; }
.nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.nm small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.val { color: var(--gold2); font-weight: 800; font-variant-numeric: tabular-nums; }
.vip { color: #1a1300; background: var(--gold); border-radius: 6px; font-size: .7rem; padding: 0 5px; margin-inline-start: 4px; }
.empty { color: var(--muted); text-align: center; padding: 20px; }

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.feature img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.feature div { padding: 12px 16px; }
.feature h3 { margin: 0 0 4px; color: var(--gold); }
.feature p { margin: 0; color: #cfd3dc; font-size: .95rem; }

.cta {
  margin-top: 40px; border-radius: 22px; overflow: hidden; text-align: center; padding: 50px 20px;
  background: linear-gradient(180deg, #0b1530aa, #0b1530ee), url("img/tarneeb_download_cta.jpg") center/cover;
  border: 1px solid #d4af3755;
}
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar { display: flex; align-items: center; gap: 10px; }
.bar .lbl { width: 60px; }
.bar .track { flex: 1; height: 12px; background: #ffffff14; border-radius: 6px; overflow: hidden; }
.bar .fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 6px; }

footer.site { text-align: center; border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 16px; color: var(--muted); font-size: .9rem; }
footer.site nav a { margin: 0 10px; }
/* home page sections */
section.sec { scroll-margin-top: 70px; }
.sec-title { text-align: center; margin: 50px 0 18px; }
.sec-title h2 { border: 0; font-size: 1.7rem; margin: 0; }
.sec-title p { color: var(--muted); margin: 4px 0 0; }
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.tabs button, .pager button {
  font: inherit; cursor: pointer; border: 1px solid #d4af3766; background: transparent; color: var(--text);
  padding: 6px 18px; border-radius: 999px;
}
.tabs button.on, .pager button.on { background: var(--gold); color: #1a1300; font-weight: 800; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.pager button { padding: 4px 12px; }
.board.full { max-width: 760px; margin: 0 auto; }
.thead { display: flex; gap: 10px; padding: 4px 6px 8px; color: var(--muted); font-size: .85rem; border-bottom: 1px solid #d4af3744; }
.thead .c1 { width: 30px; } .thead .c2 { flex: 1; padding-inline-start: 46px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 14px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; position: relative; }
.step::before {
  counter-increment: s; content: counter(s); position: absolute; top: -12px; inset-inline-start: 14px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #1a1300; font-weight: 800;
  display: grid; place-items: center;
}
.step h3 { margin: 6px 0 4px; color: var(--gold2); font-size: 1.05rem; }
.step p { margin: 0; color: #cfd3dc; font-size: .95rem; }
.feature .tag { display: inline-block; font-size: .75rem; color: #1a1300; background: var(--gold2); border-radius: 6px; padding: 0 6px; margin-bottom: 4px; }
.store { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.copy { margin: 6px 0 0; }

@media (max-width: 600px) { .topbar nav a { padding: 4px 8px; font-size: .85rem; } .stats { margin-top: -30px; } }

/* play on the web section */
.webplay { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center;
  background: linear-gradient(160deg, #13204acc, #0f5132aa); border: 1px solid #d4af3755; border-radius: 22px; padding: 22px; }
.webplay-img img { width: 100%; border-radius: 14px; box-shadow: 0 10px 30px #000a; border: 3px solid #1d2a55; display: block; }
.checks { list-style: none; padding: 0; margin: 0 0 18px; }
.checks li { padding: 6px 0; padding-inline-start: 30px; position: relative; }
.checks li::before { content: "♠"; position: absolute; inset-inline-start: 4px; color: var(--gold); }
@media (max-width: 760px) { .webplay { grid-template-columns: 1fr; } }
