/*!
 * Sun win - sun-win.cyou
 * Common stylesheet (shared across all pages)
 * All custom classes use the dynamic prefix "gccb-".
 * Mobile-first: main container capped at max-width: 430px.
 */

:root {
  --gccb-bg: #273746;          /* deep navy background */
  --gccb-bg-alt: #1c2a36;      /* darker panel */
  --gccb-surface: #2f4356;     /* card surface */
  --gccb-primary: #40E0D0;     /* turquoise accent */
  --gccb-secondary: #E65100;   /* orange */
  --gccb-accent: #FF4500;      /* red-orange */
  --gccb-gold: #FFB74D;        /* amber highlight */
  --gccb-text: #f3faf8;        /* near-white text */
  --gccb-text-muted: #b8c6cf;
  --gccb-border: rgba(64, 224, 208, 0.25);
  --gccb-radius: 14px;
  --gccb-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  --gccb-header-h: 58px;
  --gccb-bottombar-h: 62px;
}

/* Root font sizing: 62.5% makes 1rem = 10px for easy rem math */
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, "Noto Sans", Arial, sans-serif;
  background: var(--gccb-bg);
  color: var(--gccb-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.gccb-body-locked { overflow: hidden; }

a { color: var(--gccb-primary); text-decoration: none; }
a:hover, a:focus { color: var(--gccb-gold); }
img { max-width: 100%; display: block; }

/* Layout primitives */
.gccb-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0;
  position: relative;
}
.gccb-container {
  width: 100%;
  padding: 0 14px;
}
main { display: block; padding-bottom: 90px; }

/* ---------- Header ---------- */
.gccb-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--gccb-header-h);
  background: linear-gradient(90deg, #1c2a36 0%, #273746 55%, #2f4356 100%);
  border-bottom: 2px solid var(--gccb-primary);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
  z-index: 1000;
}
.gccb-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.gccb-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gccb-text);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.4px;
}
.gccb-brand img { width: 30px; height: 30px; border-radius: 8px; }
.gccb-brand span b { color: var(--gccb-gold); }

.gccb-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gccb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  color: #fff;
  text-decoration: none;
}
.gccb-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.gccb-btn-primary { background: linear-gradient(135deg, #FF4500, #E65100); box-shadow: 0 4px 10px rgba(255, 69, 0, 0.4); }
.gccb-btn-ghost   { background: transparent; border: 1.5px solid var(--gccb-primary); color: var(--gccb-primary); }
.gccb-btn-gold    { background: linear-gradient(135deg, #FFB74D, #E65100); color: #273746; }

.gccb-menu-toggle {
  background: transparent;
  border: 0;
  color: var(--gccb-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.gccb-menu-toggle:hover { background: rgba(64, 224, 208, 0.12); }

/* Expandable mobile menu */
.gccb-mobilemenu {
  position: fixed;
  top: var(--gccb-header-h);
  right: 0;
  width: 80%;
  max-width: 340px;
  height: calc(100vh - var(--gccb-header-h));
  background: #1c2a36;
  border-left: 2px solid var(--gccb-border);
  transform: translateX(110%);
  transition: transform 0.28s ease;
  z-index: 9999;
  padding: 16px 14px;
  overflow-y: auto;
}
.gccb-mobilemenu.gccb-menu-open { transform: translateX(0); }
.gccb-mobilemenu h4 {
  margin: 14px 4px 6px;
  color: var(--gccb-gold);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.gccb-mobilemenu a {
  display: block;
  padding: 11px 12px;
  margin: 4px 0;
  border-radius: 10px;
  background: rgba(64, 224, 208, 0.06);
  color: var(--gccb-text);
  font-size: 1.4rem;
  border: 1px solid transparent;
}
.gccb-mobilemenu a:hover { background: rgba(64, 224, 208, 0.14); border-color: var(--gccb-border); }
.gccb-mobilemenu .gccb-menu-cta {
  background: linear-gradient(135deg, #FF4500, #E65100);
  color: #fff;
  font-weight: 700;
  text-align: center;
  margin-top: 12px;
}

.gccb-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.gccb-overlay.gccb-menu-open { opacity: 1; pointer-events: auto; }

/* ---------- Hero / Carousel ---------- */
.gccb-hero {
  margin-top: var(--gccb-header-h);
  padding: 12px 0 0;
}
.gccb-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--gccb-radius);
  box-shadow: var(--gccb-shadow);
  margin: 0 14px;
}
.gccb-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.gccb-carousel-track a {
  flex: 0 0 100%;
  display: block;
}
.gccb-carousel-track img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.gccb-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.gccb-carousel-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}
.gccb-carousel-dots span.gccb-dot-active { background: var(--gccb-primary); }

/* ---------- Section / Headings ---------- */
.gccb-section {
  margin: 18px 0;
  padding: 0 14px;
}
.gccb-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gccb-gold);
  margin: 0 0 10px;
  display: flex; align-items: center; gap: 8px;
  border-left: 4px solid var(--gccb-primary);
  padding-left: 10px;
}
.gccb-section-title i { color: var(--gccb-primary); }
.gccb-lead {
  color: var(--gccb-text-muted);
  font-size: 1.35rem;
  margin: 0 0 12px;
}
.gccb-p {
  font-size: 1.32rem;
  color: var(--gccb-text);
  margin: 0 0 10px;
}

/* H1 */
.gccb-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 14px 14px 6px;
  line-height: 1.25;
}
.gccb-h1 b { color: var(--gccb-gold); }

/* ---------- Game grid (compact icon tiles) ---------- */
.gccb-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px 14px 8px;
}
.gccb-cat-head h2 {
  font-size: 1.55rem; color: var(--gccb-primary);
  margin: 0; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.gccb-cat-head .gccb-cat-more { color: var(--gccb-gold); font-size: 1.2rem; font-weight: 700; }

.gccb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 14px;
}
.gccb-grid-4 { grid-template-columns: repeat(4, 1fr); }
.gccb-game {
  background: var(--gccb-surface);
  border-radius: 12px;
  border: 1px solid var(--gccb-border);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
  color: var(--gccb-text);
}
.gccb-game:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.35); }
.gccb-game img { width: 100%; height: 84px; object-fit: cover; }
.gccb-game-name {
  display: block;
  padding: 6px 4px;
  font-size: 1.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--gccb-text);
}

/* ---------- Cards ---------- */
.gccb-card {
  background: var(--gccb-surface);
  border-radius: var(--gccb-radius);
  padding: 14px;
  margin: 10px 14px;
  border: 1px solid var(--gccb-border);
  box-shadow: var(--gccb-shadow);
}
.gccb-card h3 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  color: var(--gccb-gold);
}
.gccb-card p { margin: 0; font-size: 1.28rem; color: var(--gccb-text-muted); }

.gccb-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 14px;
}
.gccb-feature {
  background: var(--gccb-surface);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--gccb-border);
  text-align: center;
}
.gccb-feature i { font-size: 2.4rem; color: var(--gccb-primary); margin-bottom: 6px; }
.gccb-feature h4 { margin: 4px 0; font-size: 1.3rem; color: var(--gccb-gold); }
.gccb-feature span { font-size: 1.15rem; color: var(--gccb-text-muted); }

/* ---------- Promo CTA strip ---------- */
.gccb-cta {
  margin: 16px 14px;
  padding: 18px 16px;
  border-radius: var(--gccb-radius);
  background: linear-gradient(135deg, #E65100 0%, #FF4500 60%, #FFB74D 100%);
  color: #fff;
  text-align: center;
  box-shadow: var(--gccb-shadow);
}
.gccb-cta h3 { margin: 0 0 6px; font-size: 1.7rem; color: #fff; }
.gccb-cta p { margin: 0 0 12px; font-size: 1.28rem; color: #fff8e8; }
.gccb-cta .gccb-btn { background: #273746; color: var(--gccb-gold); }

/* Inline promo link */
.gccb-promolink {
  color: var(--gccb-gold);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed var(--gccb-gold);
}

/* ---------- Testimonials ---------- */
.gccb-testimonials { padding: 0 14px; display: grid; gap: 10px; }
.gccb-testi {
  background: var(--gccb-bg-alt);
  border-left: 3px solid var(--gccb-primary);
  border-radius: 10px;
  padding: 10px 12px;
}
.gccb-testi p { margin: 0 0 6px; font-size: 1.25rem; color: var(--gccb-text); }
.gccb-testi b { color: var(--gccb-gold); font-size: 1.2rem; }

/* ---------- Payment / Winners ---------- */
.gccb-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px; }
.gccb-chip {
  background: var(--gccb-surface);
  border: 1px solid var(--gccb-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 1.18rem;
  color: var(--gccb-text);
  display: inline-flex; align-items: center; gap: 6px;
}
.gccb-chip i { color: var(--gccb-primary); }

.gccb-winners { padding: 0 14px; }
.gccb-winner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; margin-bottom: 6px;
  background: var(--gccb-bg-alt);
  border-radius: 8px;
  font-size: 1.2rem;
}
.gccb-winner b { color: var(--gccb-gold); }

/* ---------- RTP table ---------- */
.gccb-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 14px;
  background: var(--gccb-surface);
  border-radius: 10px;
  overflow: hidden;
  max-width: calc(100% - 28px);
}
.gccb-table th, .gccb-table td {
  padding: 8px 10px;
  font-size: 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gccb-table th { color: var(--gccb-gold); background: var(--gccb-bg-alt); }
.gccb-table td b { color: var(--gccb-primary); }

/* ---------- Footer ---------- */
.gccb-footer {
  background: #1c2a36;
  border-top: 2px solid var(--gccb-primary);
  padding: 18px 14px 24px;
  margin-top: 20px;
}
.gccb-footer p { font-size: 1.22rem; color: var(--gccb-text-muted); margin: 0 0 10px; }
.gccb-footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 12px;
  margin: 8px 0 14px;
}
.gccb-footer-links a {
  font-size: 1.18rem;
  color: var(--gccb-text-muted);
  text-decoration: underline;
}
.gccb-footer-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.gccb-copy { font-size: 1.1rem; color: var(--gccb-text-muted); border-top: 1px solid rgba(255,255,255,0.08); padding-top: 10px; }

/* ---------- Bottom mobile nav ---------- */
.gccb-bottombar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--gccb-bottombar-h);
  background: linear-gradient(180deg, #2f4356 0%, #1c2a36 100%);
  border-top: 2px solid var(--gccb-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.4);
}
.gccb-bottombar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  color: var(--gccb-text-muted);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.18s ease, transform 0.18s ease;
  position: relative;
}
.gccb-bottombar a i { font-size: 2.2rem; }
.gccb-bottombar a:active { transform: scale(0.92); }
.gccb-bottombar a.gccb-nav-active { color: var(--gccb-gold); }
.gccb-bottombar a.gccb-nav-active::before {
  content: "";
  position: absolute; top: 0;
  width: 30px; height: 3px;
  background: var(--gccb-gold);
  border-radius: 0 0 4px 4px;
}
.gccb-bottombar a.gccb-promo { color: var(--gccb-primary); }

/* ---------- Desktop: hide bottom bar, widen wrapper ---------- */
@media (min-width: 769px) {
  .gccb-bottombar { display: none; }
  main { padding-bottom: 30px; }
  .gccb-wrapper { max-width: 430px; }
}

/* Small phone safety */
@media (max-width: 360px) {
  .gccb-grid { grid-template-columns: repeat(2, 1fr); }
  .gccb-game img { height: 96px; }
}
