/* CASINO QUINI — white-label pilot site
   Hosted at casino.quini.com.
   Iframes jogodobicho.com games with ?op=quini.

   Brand palette pulled from quini.com main site:
     --navy   #0a0e1a   (deep background)
     --navy-2 #131a2e   (card surface)
     --celeste #4db8ff  (primary accent)
     --gold   #FFD700   (CTA / highlights)
     --text   #e8f0fe   (body)
*/

:root {
  --navy: #0a0e1a;
  --navy-2: #131a2e;
  --navy-3: #1a2347;
  --celeste: #4db8ff;
  --celeste-glow: rgba(77, 184, 255, 0.35);
  --gold: #FFD700;
  --gold-2: #FFA500;
  --text: #e8f0fe;
  --text-muted: #94a3c4;
  --border: rgba(77, 184, 255, 0.22);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--navy);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────── */
.cq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.cq-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.cq-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--celeste) 0%, var(--gold) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--navy);
  box-shadow: 0 0 14px var(--celeste-glow);
}

.cq-title {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.cq-title em {
  color: var(--celeste);
  font-style: normal;
}

.cq-lang {
  display: flex;
  gap: 6px;
}
.cq-lang button {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
}
.cq-lang button.active {
  color: var(--gold);
  border-color: var(--gold);
}
.cq-lang button:hover { color: var(--gold); }

/* ── Hero ───────────────────────────────────────────── */
.cq-hero {
  text-align: center;
  padding: 56px 24px 32px;
  max-width: 920px;
  margin: 0 auto;
}
.cq-hero h1 {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 44px);
  margin: 0 0 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.cq-hero h1 .accent { color: var(--celeste); }

.cq-hero p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 640px;
}

.cq-fun-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 14px;
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Game grid ──────────────────────────────────────── */
.cq-games {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.cq-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cq-card:hover {
  transform: translateY(-4px);
  border-color: var(--celeste);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 18px var(--celeste-glow);
}

.cq-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-3) 0%, var(--navy-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 1px solid var(--border);
  margin-bottom: 6px;
}

.cq-card-name {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

.cq-card-sub {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ── Footer ─────────────────────────────────────────── */
.cq-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}
.cq-footer a { color: var(--celeste); text-decoration: none; }
.cq-footer a:hover { text-decoration: underline; }

/* ── Game (iframe) page ─────────────────────────────── */
.cq-play-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

.cq-play-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--navy-2);
  border-bottom: 1px solid var(--border);
}
.cq-play-bar a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cq-play-bar a:hover { color: var(--gold); }
.cq-play-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

.cq-play-frame {
  flex: 1;
  border: none;
  width: 100%;
  background: var(--navy);
}

/* Refill 100 FUN — sits to the right of the title in the play bar.
   Mirrors the gold accent so it pops as the obvious next-action when
   the GUEST hits zero (and stays unobtrusive otherwise). */
.cq-refill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: var(--navy);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s, opacity 0.15s;
}
.cq-refill-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cq-refill-btn:active { transform: translateY(0); }
.cq-refill-btn:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

@media (max-width: 600px) {
  .cq-header { padding: 12px 16px; }
  .cq-title { font-size: 18px; letter-spacing: 2px; }
  .cq-hero { padding: 32px 16px 16px; }
  .cq-games { padding: 8px 16px 40px; gap: 14px; }
  .cq-card { padding: 18px 14px; }
  .cq-play-bar { padding: 8px 10px; gap: 8px; }
  .cq-play-bar a { font-size: 11px; }
  .cq-play-title { display: none; } /* hide title on mobile to make room for refill */
  .cq-refill-btn { font-size: 11px; padding: 5px 10px; }
}
