/* ==========================================================================
   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: #0284c7;
  --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;
}

: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;
}

.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;
  text-decoration: none;
}

.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-gujarati {
  margin: 0 0 8px;
  font-family: 'Noto Sans Gujarati', var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  color: #14532d;
}

.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;
}

.winners-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 6px 16px 14px;
  touch-action: pan-x pan-y;
}

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

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

.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: #22c55e;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

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

.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: #22c55e;
}

/* ==========================================================================
   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 {
  border: 0;
  background: transparent;
  padding: 4px 2px;
  color: var(--link-blue);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

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

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

/* ==========================================================================
   FAQ Accordion Section
   ========================================================================== */
.faq-section {
  padding-top: 18px;
  padding-bottom: 34px;
  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;
}

