/* ==========================================================================
   Mira777 App-Download Landing Page Stylesheet
   ========================================================================== */

:root {
  --green-50: #effef4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-400: #4ade80;
  --green-500: #22d35e;
  --green-600: #17bd4e;
  --green-700: #15803d;
  --footer-bg: #0c3b20;
  --ink-900: #111827;
  --ink-700: #374151;
  --ink-500: #6b7280;
  --surface: #ffffff;
  --border-subtle: #e5e7eb;
  --status-closed: #dc2626;
  --status-open: #16a34a;
  --link-blue: #0369a1;
  --shell-max: 480px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 6px 22px rgba(17, 24, 39, 0.06);
  --shadow-green: 0 8px 22px rgba(34, 197, 94, 0.28);
  --font-sans: 'Poppins', 'Plus Jakarta Sans', 'Noto Sans Gujarati', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: #ffffff;
  line-height: 1.5;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-inline-size: 100%;
}

button,
a {
  font-family: inherit;
}

[hidden] {
  display: none !important;
}

:where(a:any-link, button, summary):focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Visually Hidden Utility */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  background: var(--ink-900);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* Shared Layout Container */
.container {
  inline-size: 100%;
  max-inline-size: var(--shell-max);
  margin-inline: auto;
  padding-inline: 16px;
}

.text-green {
  color: var(--green-500);
}

/* Shared Green Pill Button */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #2be46a 0%, #26db63 50%, #19c352 100%);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.btn-pill:hover {
  filter: brightness(1.03);
}

.btn-pill:active {
  transform: scale(0.985);
}

/* ==========================================================================
   Sticky Top Bar
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.topbar-inner {
  inline-size: 100%;
  max-inline-size: var(--shell-max);
  margin-inline: auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-inline-size: 0;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 38px;
  min-block-size: 38px;
  padding: 6px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  touch-action: manipulation;
}

.menu-toggle:hover {
  background: var(--green-50);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-inline-size: 0;
  text-decoration: none;
}

.header-logo-img {
  display: block;
  block-size: clamp(24px, 7.8vw, 32px);
  inline-size: auto;
  max-inline-size: 100%;
  object-fit: contain;
}

.brand-mark {
  inline-size: 32px;
  block-size: 32px;
  flex-shrink: 0;
}

.brand-mark svg {
  inline-size: 100%;
  block-size: 100%;
}

.brand-wordmark {
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.6px;
  line-height: 1;
}

.brand-mira {
  color: #24d760;
}

.brand-777 {
  color: var(--ink-900);
}

.brand-777-light {
  color: #ffffff;
}

.btn-header-download {
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.26);
  white-space: nowrap;
}

/* ==========================================================================
   Navigation Drawer (<dialog>)
   ========================================================================== */
.Drawer {
  --drawer-width: min(20em, 82dvw, 100dvw - 24px);
  --drawer-backdrop: 0;
  inset: 0;
  inline-size: auto;
  block-size: auto;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.Drawer::backdrop {
  background: #000000;
  opacity: calc(var(--drawer-backdrop) / 2);
  overflow: hidden;
  overscroll-behavior: contain;
}

.Drawer-scroller {
  position: relative;
  display: grid;
  grid-template-columns: var(--drawer-width) 100%;
  overflow-x: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.Drawer-scroller::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .Drawer-scroller {
    scroll-behavior: smooth;
  }
}

.Drawer-scroller::after {
  content: "";
  scroll-snap-align: end;
  scroll-initial-target: nearest;
}

.Drawer-sheet {
  display: flex;
  flex-direction: column;
  block-size: 100svh;
  background: #ffffff;
  color: var(--ink-900);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-align: start;
  scrollbar-width: none;
  padding: 18px 16px 24px;
  box-shadow: 8px 0 28px rgba(0, 0, 0, 0.14);
}

@supports (animation-timeline: scroll()) {
  .Drawer {
    timeline-scope: --drawer-fade;
    animation: fade-drawer-backdrop linear both;
    animation-timeline: --drawer-fade;
  }

  .Drawer-scroller {
    scroll-timeline: --drawer-fade x;
  }

  @property --drawer-backdrop {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
  }

  @keyframes fade-drawer-backdrop {
    0% { --drawer-backdrop: 1; }
    100% { --drawer-backdrop: 0; }
  }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 38px;
  min-block-size: 38px;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  color: var(--ink-900);
  border-radius: 10px;
  cursor: pointer;
}

.drawer-links,
.drawer-sublinks {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-links a,
.drawer-sublinks a {
  display: flex;
  align-items: center;
  min-block-size: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink-900);
  font-size: 14.5px;
  font-weight: 500;
}

.drawer-links a:hover,
.drawer-sublinks a:hover {
  background: var(--green-50);
  color: var(--green-700);
}

.drawer-sublinks a {
  font-size: 13.5px;
  color: var(--ink-700);
}

.drawer-divider {
  block-size: 1px;
  background: var(--border-subtle);
  margin-block: 12px;
}

.drawer-cta-wrap {
  margin-top: auto;
  padding-top: 16px;
}

.drawer-dl-btn {
  inline-size: 100%;
  min-block-size: 48px;
  font-size: 15px;
}

/* ==========================================================================
   Hero & Conversion Fold
   ========================================================================== */
.hero-section {
  background:
    radial-gradient(circle at 50% 46%, #d9fce6 0%, #ebfef2 42%, #f7fff9 72%, #ffffff 100%);
  padding-top: 18px;
  padding-bottom: 18px;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #eceff3;
  border-radius: var(--radius-pill);
  padding: 6px 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}

.flag-icon {
  inline-size: 19px;
  block-size: 13px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}

.hero-badge-text {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.35px;
  color: var(--ink-900);
}

.hero-welcome {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.8px;
  color: #4b5563;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(42px, 11.5vw, 52px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.04;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #32ea72 0%, #18c151 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (forced-colors: active) {
  .hero-title {
    background: none;
    color: CanvasText;
  }
}

.hero-tagline {
  margin: 4px 0 8px;
  font-size: clamp(22px, 6vw, 25px);
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
  color: var(--ink-900);
}

.hero-rotating-wrap {
  margin: 0 0 8px;
  display: flex;
  justify-content: center;
  inline-size: 100%;
}

.hero-rotating-viewport {
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: clip;
  inline-size: 100%;
  min-inline-size: 0;
}

.hero-greeting {
  grid-area: 1 / 1;
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(13.5px, 3.6vw, 17px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--green-700);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-greeting:lang(hi),
.hero-greeting:lang(mr) {
  font-family: 'Noto Sans Devanagari', var(--font-sans);
}

.hero-greeting:lang(gu) {
  font-family: 'Noto Sans Gujarati', var(--font-sans);
}

.hero-greeting:lang(kn) {
  font-family: 'Noto Sans Kannada', var(--font-sans);
}

.hero-greeting:lang(te) {
  font-family: 'Noto Sans Telugu', var(--font-sans);
}

.hero-greeting.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

@media (forced-colors: active) {
  .hero-greeting {
    color: CanvasText;
  }
}

.hero-media-stack {
  inline-size: 100%;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-girl-img {
  inline-size: min(350px, 92%);
  block-size: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.btn-hero-download {
  inline-size: 100%;
  min-block-size: 54px;
  padding: 12px 24px;
  font-size: 19px;
  font-weight: 500;
  box-shadow: var(--shadow-green);
  position: relative;
  z-index: 2;
  margin-top: -1px;
}

.android-icon {
  inline-size: 25px;
  block-size: 25px;
  flex-shrink: 0;
}

/* User Count Image Strip */
.user-count-wrap {
  inline-size: 100%;
  margin-top: 22px;
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}

.user-count-img {
  inline-size: 100%;
  max-inline-size: 366px;
  block-size: auto;
}

/* 4-Feature White Card */
.trust-card {
  list-style: none;
  margin: 0 0 22px;
  padding: 18px 10px;
  inline-size: 100%;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.065);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-icon-box {
  inline-size: 46px;
  block-size: 46px;
  border-radius: 13px;
  background: linear-gradient(145deg, #c6f9d8 0%, #dcfce7 100%);
  box-shadow: 0 6px 14px rgba(34, 197, 94, 0.2);
  color: #16a34a;
  display: grid;
  place-items: center;
}

.trust-icon-box svg {
  inline-size: 21px;
  block-size: 21px;
}

.trust-label {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.28;
  color: var(--ink-900);
}

/* Call Now & WhatsApp Row */
.contact-cta-row {
  inline-size: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-support-action {
  min-block-size: 46px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.24);
}

/* ==========================================================================
   Section Headings & Shared Page Sections
   ========================================================================== */
.page-section {
  padding-block: 16px;
}

.section-heading {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink-900);
  text-align: center;
}

.heading-star {
  inline-size: 22px;
  block-size: 22px;
  color: #4be87e;
  flex-shrink: 0;
}

/* ==========================================================================
   Today's Top Winners Carousel
   ========================================================================== */
.winners-section {
  background: linear-gradient(180deg, #ffffff 0%, #f6fef9 100%);
}

.winners-carousel-wrap {
  inline-size: 100%;
  max-inline-size: var(--shell-max);
  margin-inline: auto;
  overflow: clip;
  padding: 6px 0 14px;
}

.winners-track {
  display: flex;
  gap: 12px;
  will-change: transform;
  touch-action: pan-y;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .winners-carousel-wrap {
    overflow: visible;
    padding: 0;
  }

  .winners-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 6px 16px 14px;
    will-change: auto;
    user-select: auto;
  }

  .winners-track::-webkit-scrollbar {
    display: none;
  }
}

.winner-card {
  flex: 0 0 168px;
  scroll-snap-align: center;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.045);
}

.winner-rank {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.winner-rank svg {
  inline-size: 14px;
  block-size: 14px;
}

.winner-name {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-amount {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--green-700);
}

/* ==========================================================================
   Game Rates Section
   ========================================================================== */
.rates-section {
  background: linear-gradient(180deg, #f6fef9 0%, #ecfdf2 60%, #f5fef8 100%);
}

.rates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rate-card {
  background: #ffffff;
  border: 1.25px solid #4ade80;
  border-radius: 14px;
  padding: 13px 16px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.06);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rate-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
}

.rate-value {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink-900);
}

/* ==========================================================================
   Available Games Section
   ========================================================================== */
.games-section {
  background: linear-gradient(180deg, #f5fef8 0%, #ffffff 100%);
}

.games-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-card);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-card);
}

.game-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.game-info {
  min-inline-size: 0;
}

.game-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.game-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: 0.2px;
}

.info-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 28px;
  min-block-size: 28px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #16a34a;
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
}

.info-icon-btn svg {
  inline-size: 17px;
  block-size: 17px;
}

.info-icon-btn:hover {
  background: var(--green-50);
}

.game-digits {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: 0.4px;
}

.game-play-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.game-status {
  font-size: 12px;
  font-weight: 600;
}

.status-closed {
  color: var(--status-closed);
}

.status-open {
  color: var(--status-open);
}

.btn-play {
  min-block-size: 36px;
  padding: 6px 18px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.24);
}

.game-card-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 14px;
}

.btn-chart {
  min-block-size: 36px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.18);
}

/* Quick Special Charts Card (above FAQ) */
.quick-charts-box {
  margin-top: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
}

.quick-chart-link {
  display: inline-block;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  color: var(--link-blue);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.quick-chart-link:hover,
.quick-chart-link:focus-visible {
  text-decoration: underline;
}

.quick-chart-sep {
  color: #cbd5e1;
}

/* ==========================================================================
   FAQ Accordion Section
   ========================================================================== */
.faq-section {
  padding-top: 18px;
  padding-bottom: 24px;
  background: #ffffff;
}

.faq-heading {
  margin: 0 0 18px;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-900);
}

.faq-heading strong {
  font-weight: 700;
}

.faq-box {
  background: #ffffff;
  border: 1.5px solid #1f2937;
  border-radius: 26px;
  padding: 8px 18px;
}

.faq-item {
  border-bottom: 1px solid #f1f5f9;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-block-size: 52px;
  padding: 14px 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-900);
  cursor: pointer;
  touch-action: manipulation;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  inline-size: 14px;
  block-size: 14px;
  flex-shrink: 0;
  position: relative;
}

.faq-chevron::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-right: 1.8px solid #1f2937;
  border-bottom: 1.8px solid #1f2937;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] > .faq-summary .faq-chevron::before {
  transform: translateY(2px) rotate(-135deg);
}

.faq-item::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.faq-item:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.26s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.faq-answer {
  padding: 0 4px 16px 26px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-700);
}

.faq-answer p {
  margin: 0;
}

/* ==========================================================================
   Dark Green Footer
   ========================================================================== */
.site-footer {
  background: var(--footer-bg);
  color: #e5f3ea;
  padding: 34px 0 98px;
}

.site-footer.subpage-footer {
  padding-bottom: 36px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.footer-wordmark {
  font-size: 25px;
}

.footer-age-notice {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #e2f2e8;
}

.compliance-logos {
  inline-size: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.compliance-svg {
  inline-size: 158px;
  block-size: auto;
}

.footer-legal-copy {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.68;
  color: #d7ece0;
  max-inline-size: 400px;
}

.dmca-badge-wrap {
  margin-bottom: 20px;
}

.dmca-svg {
  inline-size: 152px;
  block-size: auto;
}

.footer-divider {
  inline-size: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 0 0 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-bottom: 16px;
  max-inline-size: 380px;
}

.footer-nav a {
  color: #b7d7c4;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copyright {
  margin: 0;
  font-size: 13px;
  color: #e2f2e8;
}

/* ==========================================================================
   Sticky Floating Bottom App CTA Bar
   ========================================================================== */
.sticky-cta-bar {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  inline-size: min(calc(100% - 28px), 452px);
  z-index: 35;
}

.btn-sticky-download {
  inline-size: 100%;
  min-block-size: 54px;
  padding: 12px 20px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #32e570 0%, #48ec80 50%, #24cf5d 100%);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.22);
}

.download-tray-icon {
  inline-size: 21px;
  block-size: 21px;
  flex-shrink: 0;
}

/* ==========================================================================
   Native Modal Dialogs (<dialog>)
   ========================================================================== */
dialog.app-dialog {
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  max-inline-size: min(440px, calc(100dvw - 28px));
  inline-size: 100%;
  border-radius: 22px;
  overflow: visible;
}

dialog.app-dialog:modal {
  overscroll-behavior: contain;
}

dialog.app-dialog::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dialog-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.dialog-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
}

.dialog-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 36px;
  min-block-size: 36px;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  color: var(--ink-900);
  border-radius: 10px;
  cursor: pointer;
}

.dialog-body {
  padding-top: 14px;
}

.dl-modal-hero {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.dl-modal-badge {
  display: inline-block;
  background: var(--green-600);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.dl-modal-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-900);
}

.dl-steps {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--ink-700);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dl-confirm-btn {
  inline-size: 100%;
  min-block-size: 48px;
  font-size: 15.5px;
}

.dl-status-msg {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--ink-500);
  text-align: center;
  min-block-size: 18px;
}

.market-meta-list {
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.market-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 12px;
  font-size: 13.5px;
}

.market-meta-row dt {
  color: var(--ink-500);
  font-weight: 500;
}

.market-meta-row dd {
  margin: 0;
  color: var(--ink-900);
  font-weight: 700;
}

.chart-subtitle {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--ink-700);
}

.chart-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 16px;
}

.chart-table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
}

.chart-table th,
.chart-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
}

.chart-table th {
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 700;
}

.chart-table tr:last-child td {
  border-bottom: 0;
}

.chart-table td:last-child,
.chart-table th:last-child {
  border-right: 0;
}

.chart-red {
  color: var(--status-closed);
  font-weight: 700;
}

.rates-list[aria-busy="true"],
.games-list[aria-busy="true"] {
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.empty-market-state {
  background: #ffffff;
  border: 1px dashed var(--green-400);
  border-radius: var(--radius-card);
  padding: 24px 16px;
  text-align: center;
  color: var(--ink-500);
  font-size: 14px;
}

/* ==========================================================================
   Subpages (About, Terms, Privacy, Data Deletion, Game Rules)
   ========================================================================== */
.subpage-main {
  background: linear-gradient(180deg, #effef4 0%, #ffffff 220px);
  padding: 24px 0 44px;
  min-block-size: calc(100svh - 240px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-700);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 14px;
}

.back-link:hover {
  text-decoration: underline;
}

.subpage-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
}

.subpage-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-900);
}

.subpage-updated {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: var(--ink-500);
}

.subpage-card h2 {
  margin: 18px 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
}

.subpage-card p,
.subpage-card li {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-700);
}

.subpage-card ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

/* ==========================================================================
   Jodi Chart, Pana Chart & Chart Hub Pages
   ========================================================================== */
.chart-page-main {
  background: linear-gradient(180deg, #effef4 0%, #ffffff 190px);
  padding: 20px 0 42px;
  min-block-size: calc(100svh - 240px);
}

.chart-page-container {
  text-align: center;
}

/* Breadcrumbs */
.breadcrumb {
  margin: 0 0 12px;
}

.breadcrumb > ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: clamp(12px, 3.2vw, 13.5px);
}

.breadcrumb > ol > li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb > ol > li + li::before {
  content: "›" / "";
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1;
}

.breadcrumb > ol > li > a {
  color: var(--link-blue);
  font-weight: 500;
  text-decoration: none;
}

.breadcrumb > ol > li > a:hover,
.breadcrumb > ol > li > a:focus-visible {
  text-decoration: underline;
  position: relative;
  z-index: 1;
}

.breadcrumb > ol > li > a[aria-current="page"] {
  color: var(--ink-700);
  font-weight: 600;
  text-decoration: none;
}

@media (forced-colors: active) {
  .breadcrumb > ol > li > a[aria-current="page"] {
    text-decoration: underline;
  }
}

.chart-page-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 6.2vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-900);
  letter-spacing: -0.3px;
}

.chart-page-subtitle {
  margin: 0 auto 20px;
  max-inline-size: 400px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-700);
}

.chart-top-jump {
  margin-bottom: 20px;
}

.btn-chart-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 140px;
  min-block-size: 42px;
  padding: 9px 22px;
  border: 1px solid #86efac;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink-900);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-go-bottom {
  min-inline-size: 184px;
}

.btn-chart-outline:hover {
  background: var(--green-50);
  border-color: var(--green-500);
}

.btn-chart-outline:active {
  transform: scale(0.985);
}

.chart-source-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--ink-500);
}

/* Weekly Chart Table Grid (Mon - Sun) */
.chart-grid-frame {
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  overflow: clip;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.04);
}

.chart-grid-wrap {
  overflow-x: auto;
  max-inline-size: 100%;
}

.chart-grid-wrap:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: -2px;
}

.chart-grid-table {
  inline-size: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-style: hidden;
  font-variant-numeric: tabular-nums;
  background: #ffffff;
}

.chart-grid-table th {
  padding: 9px 2px;
  border: 1px solid #a7f3d0;
  background: #ffffff;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.chart-cell {
  border: 1px solid #a7f3d0;
  text-align: center;
  vertical-align: middle;
  color: var(--ink-900);
}

.chart-cell-jodi {
  padding: 10px 2px;
}

.chart-jodi-val {
  display: inline-block;
  font-size: clamp(14.5px, 4.1vw, 17px);
  font-weight: 700;
  line-height: 1.2;
}

.chart-cell-pana {
  padding: 6px 2px;
}

.pana-cell-grid {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.8vw, 4px);
}

.pana-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(8.5px, 2.35vw, 10.5px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink-700);
}

.pana-mid {
  font-size: clamp(12.5px, 3.4vw, 15px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink-900);
}

.chart-cell.chart-red,
.chart-cell.chart-red .pana-col,
.chart-cell.chart-red .pana-mid {
  color: #dc2626;
}

.chart-bottom-block {
  margin-top: 22px;
}

.chart-crosslinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13.5px;
}

.chart-crosslink {
  color: var(--link-blue);
  font-weight: 500;
  text-decoration: none;
}

.chart-crosslink:hover,
.chart-crosslink:focus-visible {
  text-decoration: underline;
}

.chart-cross-sep {
  color: var(--ink-500);
}

.chart-bottom-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-inline-size: 296px;
  margin-inline: auto;
}

.chart-bottom-actions .btn-chart-outline {
  min-inline-size: 0;
  inline-size: 100%;
  padding-inline: 12px;
}

/* Chart Hub Page */
.hub-markets-list {
  text-align: left;
  margin-top: 8px;
}

.hub-market-card {
  border-color: #dcfce7;
}

.hub-market-name {
  margin: 0;
}

.hub-market-meta {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-500);
}

.hub-special-box {
  justify-content: center;
}

/* ==========================================================================
   Homepage SEO Information Section
   ========================================================================== */
.seo-section {
  padding-top: 6px;
  padding-bottom: 34px;
  background: #ffffff;
}

.homepage-seo-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-card);
  padding: 20px 16px;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
  text-align: start;
}

.homepage-seo-content {
  max-inline-size: 62ch;
}

.seo-heading {
  margin: 1.15rem 0 0.4rem;
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.0625rem);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
  color: var(--ink-900);
}

.seo-heading-primary {
  margin-top: 0;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.15rem);
}

.homepage-seo-content p {
  margin: 0 0 0.75rem;
  font-size: 0.84375rem;
  line-height: 1.65;
  text-wrap: pretty;
  overflow-wrap: break-word;
  color: var(--ink-700);
}

.chart-links-nav {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.chart-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.84375rem;
  line-height: 1.6;
}

.chart-links li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-links li + li::before {
  content: "|" / "";
  color: #cbd5e1;
}

.chart-links a {
  display: inline-block;
  padding-block: 0.125rem;
  color: var(--link-blue);
  font-weight: 500;
  text-decoration: none;
}

.chart-links a:hover,
.chart-links a:focus-visible {
  text-decoration: underline;
}

/* ==========================================================================
   API Loading, Empty States & Unconfigured Controls
   ========================================================================== */
.support-status-msg {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: var(--ink-700);
  text-align: center;
}

.btn-support-action[aria-disabled="true"],
.dl-confirm-btn[aria-disabled="true"] {
  opacity: 0.78;
}

.api-loading-state,
.api-empty-state {
  inline-size: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 16px;
  background: #ffffff;
  border: 1px dashed #a7f3d0;
  border-radius: var(--radius-card);
  color: var(--ink-700);
  font-size: 0.875rem;
  text-align: center;
}

.chart-status-cell {
  padding: 20px 12px;
  border: 1px solid #a7f3d0;
  color: var(--ink-700);
  font-size: 0.875rem;
  text-align: center;
}

.chart-status-cell .api-loading-state {
  border: 0;
  padding: 8px 4px;
}

/* Accessible Indeterminate <progress> Spinner */
progress.loading-spinner:indeterminate::-webkit-progress-bar {
  display: none;
  background: none;
}

progress.loading-spinner:indeterminate::-webkit-progress-value {
  display: none;
  background: none;
}

progress.loading-spinner:indeterminate::-moz-progress-bar {
  display: none;
  background: none;
}

progress.loading-spinner:indeterminate::slider-fill {
  display: none;
  background: none;
}

@property --arc-start {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@property --arc-end {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@property --progress-dash-animation {
  syntax: "*";
  inherits: false;
  initial-value: , progress-dash 3s ease-in-out infinite;
}

progress.loading-spinner:indeterminate {
  --_from: calc(90deg + var(--arc-start, 0deg));
  --_to: calc(90deg + var(--arc-end, 158deg));
  --size: 28px;
  --thickness: 3px;
  --spinner-color: var(--green-600);
  --track-color: #dcfce7;
  --spinner-duration: 1.5s;
  --_used-spinner-duration: var(--spinner-duration);

  position: relative;
  display: block;
  inline-size: var(--size);
  block-size: var(--size);
  border-radius: 50%;
  appearance: none;
  background: conic-gradient(
      from var(--_from),
      var(--spinner-color) calc(var(--_to) - var(--_from)),
      transparent 0
    )
    var(--track-color);

  @supports (background-clip: border-area) {
    background-clip: border-area;
    border: var(--thickness) solid transparent;
    background-origin: border-box;
  }

  @supports not (background-clip: border-area) {
    --clip-boundary: calc(100% - var(--thickness));
    mask-image: radial-gradient(
      farthest-side,
      transparent var(--clip-boundary),
      black var(--clip-boundary)
    );
    border: 0;
  }

  @media (forced-colors: active) {
    forced-color-adjust: none;
    --spinner-color: CanvasText;
    --track-color: Canvas;
  }

  animation:
    progress-spin var(--_used-spinner-duration) linear infinite
    var(--progress-dash-animation, );
}

@media (prefers-reduced-motion: reduce) {
  progress.loading-spinner:indeterminate {
    --_used-spinner-duration: 6s;
    --progress-dash-animation: ;
    --arc-end: 158deg;
  }
}

@keyframes progress-spin {
  to {
    rotate: 1turn;
  }
}

@keyframes progress-dash {
  from {
    --arc-start: 0deg;
    --arc-end: 3deg;
  }
  50% {
    --arc-start: 100deg;
    --arc-end: 358deg;
  }
  to {
    --arc-start: 360deg;
    --arc-end: 363deg;
  }
}

