/* Fantasy Cricket Games - Clean CSS, single @media block
   Brand: Deep Navy #0F3460 + Vivid Red #E94560
   Built 2026-07-06 - Rule #52.203: single-line menu
*/

:root {
  --primary: #0F3460;
  --accent: #E94560;
  --highlight: #FFD93D;
  --bg: #FFFFFF;
  --text: #0A1931;
  --muted: #6B7280;
  --surface: #FAFAFA;
  --surface-2: #F5F5F5;
  --border: #E5E7EB;
  --primary-dark: #0A1931;
  --primary-active: #1E5288;
  --shadow: 0 4px 12px rgba(15,52,96,0.12);
  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
h1 { font-size: clamp(34px, 5vw, 64px); font-weight: 900; margin-bottom: 16px; color: var(--text); line-height: 1.05; letter-spacing: -2px; }
h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 900; margin-bottom: 16px; margin-top: 32px; color: var(--text); line-height: 1.15; letter-spacing: -1px; text-transform: uppercase; }
h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; color: var(--text); line-height: 1.3; }
p { margin-bottom: 14px; line-height: 1.7; color: var(--text); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: absolute !important; left: 0 !important; top: 0 !important; background: var(--accent) !important; color: #fff !important; padding: 12px 20px !important; z-index: 9999; }

/* TOPBAR - fixed top, single line */
.topbar {
  background: var(--primary-dark);
  color: #fff;
  padding: 8px 0;
  font-size: 12px;
  border-bottom: 2px solid var(--accent);
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  height: 32px;
  display: flex;
  align-items: center;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 100%; padding: 0 16px; }
.topbar .promo { color: #fff !important; display: flex; align-items: center; gap: 8px; font-weight: 500; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .badge { background: var(--accent); color: #fff !important; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 900; flex-shrink: 0; }
.topbar .social { display: flex; gap: 10px; flex-shrink: 0; }
.topbar .social a { color: #fff; padding: 2px 8px; border: 1px solid rgba(255,255,255,0.3); border-radius: 3px; font-size: 11px; text-decoration: none; }

/* HEADER - fixed under topbar, single line */
header.site {
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(15,52,96,0.12);
  padding: 8px 0;
  position: fixed !important;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 4px solid var(--accent);
}
header.site .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  max-width: 100%;
  padding: 0 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--text);
  font-size: 22px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo .mark { background: var(--primary); color: #fff; padding: 6px 10px; border-radius: 4px; font-size: 16px; font-weight: 900; flex-shrink: 0; }
.logo .cs { color: var(--accent); font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-family: 'Inter', sans-serif; margin-left: 4px; flex-shrink: 0; }

nav.main { display: flex; gap: 12px; flex: 1; justify-content: flex-end; flex-wrap: nowrap; overflow: hidden; min-width: 0; }
nav.main a { color: var(--text); padding: 6px 8px; font-weight: 800; font-size: 12px; border-bottom: 2px solid transparent; text-decoration: none; font-family: 'Inter', sans-serif; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
nav.main a:hover, nav.main a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-icon { margin-right: 4px; }

/* CTA BUTTON IN HEADER */
.btn { display: inline-block; padding: 12px 24px; border-radius: 4px; font-weight: 900; text-decoration: none; font-size: 14px; cursor: pointer; transition: all 0.2s; letter-spacing: 1px; text-transform: uppercase; font-family: 'Inter', sans-serif; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: #fff !important; font-weight: 900; }
.btn-primary:hover { background: #D63750; transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--text); color: var(--text) !important; background: transparent; font-weight: 700; }

/* STICKY CTA BAR - hidden on desktop, shown on mobile */
.cta-bar {
  position: fixed !important;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
  background: #0A1931;
  border-bottom: 2px solid #E94560;
  padding: 0;
  display: none;
  width: 100%;
}
.cta-bar .container { display: flex; gap: 0; flex-wrap: wrap; padding: 0; max-width: 100%; margin: 0; }
.cta-bar a {
  flex: 1 1 50%;
  text-align: center;
  padding: 14px 16px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  border-right: 1px solid #333;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cta-bar a:last-child { border-right: 0; }
.cta-bar a:hover { background: #333; }
.cta-bar a.primary-cta { background: #E94560; color: #fff !important; }
.cta-bar a.primary-cta:hover { background: #D63750; }
.cta-bar a.secondary-cta { background: #FFD93D; color: #0A1931 !important; }
.cta-bar a.secondary-cta:hover { background: #FFE082; }

/* BREADCRUMB */
.breadcrumb { background: var(--surface-2); padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--border); font-family: Inter, sans-serif; }
.breadcrumb .container { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); }
.breadcrumb a { color: var(--accent) !important; text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep, .breadcrumb span:last-child { color: var(--text) !important; font-weight: 800; }

/* HERO */
.hero { background: var(--bg); color: var(--text); padding: 80px 0; }

section { padding: 48px 0; }

.longform { font-size: 17px; line-height: 1.75; color: var(--text); }
.longform h2 { margin-top: 40px; color: var(--primary); font-weight: 900; text-transform: uppercase; }
.longform p { margin-bottom: 18px; color: #444; }
.longform img { margin: 24px 0; border-radius: 8px; }

/* INLINE CTA */
.inline-cta { color: #fff; padding: 40px; border-radius: 8px; text-align: center; margin: 40px 0; box-shadow: var(--shadow); background: var(--primary); }
.inline-cta h3 { color: #fff; font-size: 24px; margin-bottom: 12px; font-weight: 900; }
.inline-cta p { color: rgba(255,255,255,0.95); margin-bottom: 20px; }
.inline-cta .cta-pair { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* DISCLAIMER */
.disclaimer { background: var(--surface); color: var(--muted); border-left: 4px solid var(--accent); padding: 12px 18px; font-size: 12px; margin: 0; text-align: center; }

/* STICKY CTA BOTTOM */
.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary); padding: 12px 16px; z-index: 90; box-shadow: 0 -2px 8px rgba(233,69,96,0.2); gap: 10px; justify-content: center; border-top: 2px solid var(--accent); }

/* FOOTER */
footer { background: var(--primary); color: rgba(255,255,255,0.85); padding: 56px 0 24px; margin-top: 0; border-top: 4px solid var(--accent); font-family: 'Inter', sans-serif; }
footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; }
footer .footer-brand p { color: rgba(255,255,255,0.75); font-size: 13px; line-height: 1.7; margin: 12px 0 18px; }
footer .logo { color: #fff; }
footer .footer-heading { color: var(--highlight); font-weight: 900; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 8px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 13px; }
footer ul li a:hover { color: var(--highlight); text-decoration: underline; }
footer .legal-bar { grid-column: 1 / -1; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 12px; color: rgba(255,255,255,0.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ACCESSIBILITY */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* HAMBURGER */
.hamburger {
  display: none;
  background: #fff;
  border: 2px solid var(--text);
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
  border-radius: 4px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px auto; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* MAIN CONTENT - add padding-top for fixed elements */
body { display: block; margin: 0; padding: 0; padding-top: 102px; min-height: 100vh; }
body > main { min-height: calc(100vh - 200px); }

/* === SINGLE COMPREHENSIVE @media (max-width: 768px) === */
@media (max-width: 768px) {
  body { padding-top: 102px; }
  .topbar { font-size: 11px; height: 28px; }
  .topbar .container { padding: 0 8px; gap: 6px; }
  .topbar .social { display: none !important; }
  header.site { padding: 6px 0; top: 28px; }
  header.site .container { padding: 0 8px; gap: 6px; }
  .logo { font-size: 12px; gap: 6px; max-width: 50vw; }
  .logo .mark { padding: 3px 6px; font-size: 10px; }
  .logo .cs { display: none !important; }
  .hamburger { display: flex !important; }
  nav.main { display: none !important; }
  nav.main.open {
    display: flex !important;
    position: fixed;
    top: 108px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(15,52,96,0.15);
    z-index: 100;
    overflow-y: auto;
    max-height: calc(100vh - 108px);
    white-space: normal;
    align-items: stretch;
    border-bottom: 4px solid var(--accent);
  }
  nav.main.open a {
    padding: 12px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    width: 100%;
    text-align: left;
    white-space: normal;
  }
  nav.main.open a:last-child { border-bottom: 0; }
  body.menu-open { overflow: hidden !important; position: fixed !important; width: 100% !important; height: 100% !important; top: 0 !important; left: 0 !important; }

  .cta-bar { display: flex !important; top: 88px; }
  .cta-bar a { font-size: 11px; padding: 10px 8px; letter-spacing: 0.5px; }

  .breadcrumb { margin-top: 0; padding: 8px 0; font-size: 11px; }

  header.site .container > .btn { font-size: 11px; padding: 6px 10px; }
  @media (max-width: 768px) {
    header.site .container > .btn { display: none !important; }
  }

  section { padding: 40px 0; }
  .container { padding: 0 16px; }
  h1 { font-size: 30px !important; line-height: 1.1; }
  h2 { font-size: 22px; }
  p { font-size: 14px; }
  [style*="grid-template-columns:repeat(5"] { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  [style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; gap: 14px; }
  [style*="grid-template-columns:repeat(2"] { grid-template-columns: 1fr !important; gap: 14px; }
  [style*="grid-template-columns:2fr 1fr"] { grid-template-columns: 1fr !important; gap: 20px; }
  [style*="grid-template-columns:50px 1fr auto auto auto"] { grid-template-columns: 40px 1fr auto !important; gap: 12px; font-size: 12px; }
  [style*="grid-template-columns:60px 1fr auto auto"] { grid-template-columns: 40px 1fr auto !important; gap: 12px; font-size: 12px; }
  [style*="grid-template-columns:1fr auto 1fr"] { grid-template-columns: 1fr !important; text-align: center; gap: 16px; }

  .inline-cta { padding: 26px 18px; }
  .breadcrumb { padding: 8px 0; font-size: 11px; }

  footer .container { grid-template-columns: 1fr 1fr !important; gap: 24px; }
  .footer-brand { grid-column: 1 / -1 !important; }
  form { flex-direction: column; }
  form input, form button { width: 100%; }

  .sticky-cta { display: flex !important; }
  body.has-sticky { padding-bottom: 80px; }
  .sticky-cta .btn { flex: 1; max-width: 200px; }
}
