:root {
  --mml6-primary: #3f8829;
  --mml6-primary-dark: #2c611d;
  --mml6-accent: #ba3448;
  --mml6-bg: #f4f6f9;
  --mml6-surface: rgba(255, 255, 255, 0.75);
  --mml6-surface-hover: rgba(255, 255, 255, 0.95);
  --mml6-border: rgba(63, 136, 41, 0.15);
  --mml6-text: #1a1f24;
  --mml6-text-muted: #536471;
  --mml6-radius: 16px;
  --mml6-radius-sm: 12px;
  --mml6-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --mml6-font-display: 'Kanit', sans-serif;
  --mml6-font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body.mml6-body {
  font-family: var(--mml6-font-body);
  background-color: var(--mml6-bg);
  color: var(--mml6-text);
  line-height: 1.5;
  font-size: 16px;
}

.mml6-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Typography Constraints */
h1, h2, h3, h4, h5, h6, .mml6-logo, .mml6-section-title {
  font-family: var(--mml6-font-display);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Structural / Utility */
.mml6-glass-panel {
  background: var(--mml6-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--mml6-radius);
  box-shadow: var(--mml6-shadow);
  transition: all 0.2s ease;
}

/* Header */
.mml6-header {
  background: var(--mml6-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mml6-border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem 0;
}

.mml6-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.mml6-logo {
  font-size: 1.5rem;
  color: var(--mml6-primary);
  font-weight: 700;
}

.mml6-nav {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.mml6-nav::-webkit-scrollbar { display: none; }

.mml6-nav-link {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--mml6-text);
  padding: 6px 12px;
  border-radius: var(--mml6-radius-sm);
  background: rgba(0,0,0,0.03);
  transition: background 0.2s;
}
.mml6-nav-link:hover {
  background: var(--mml6-primary);
  color: #fff;
}

/* Ticker */
.mml6-ticker-wrapper {
  background: var(--mml6-primary-dark);
  color: #fff;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  height: 36px;
  overflow: hidden;
  position: relative;
}

.mml6-ticker-label {
  background: var(--mml6-accent);
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  font-weight: 700;
  font-family: var(--mml6-font-display);
}

.mml6-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: mml6-ticker 25s linear infinite;
  gap: 2rem;
  padding-left: 1rem;
}

@keyframes mml6-ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.mml6-ticker-item {
  color: #fff;
  display: inline-block;
}
.mml6-ticker-item:hover { text-decoration: underline; }

/* Main Content */
.mml6-main {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.mml6-section-title {
  font-size: 1.75rem;
  color: var(--mml6-primary-dark);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}
.mml6-section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--mml6-accent);
  margin-top: 4px;
  border-radius: 2px;
}

/* Hero Section */
.mml6-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.mml6-hero-content {
  padding: 2.5rem;
}

.mml6-hero-title {
  font-size: 2.5rem;
  color: var(--mml6-primary-dark);
  margin-bottom: 1rem;
}

.mml6-hero-desc {
  color: var(--mml6-text-muted);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.mml6-stats-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.mml6-stat-item {
  display: flex;
  flex-direction: column;
}

.mml6-stat-val {
  font-family: var(--mml6-font-display);
  font-size: 1.75rem;
  color: var(--mml6-accent);
  line-height: 1;
}

.mml6-stat-lbl {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--mml6-text-muted);
  font-weight: 600;
  margin-top: 4px;
}

.mml6-hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--mml6-radius);
  box-shadow: var(--mml6-shadow);
  object-fit: cover;
  max-height: 400px;
}

/* Features Section */
.mml6-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.mml6-feature-card {
  padding: 1.5rem;
}

.mml6-feature-title {
  font-size: 1.25rem;
  color: var(--mml6-primary);
  margin-bottom: 0.75rem;
}

.mml6-feature-text {
  font-size: 0.9375rem;
  color: var(--mml6-text-muted);
}

/* Cards & Tabs */
.mml6-cards-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mml6-cards-header .mml6-section-title { margin-bottom: 0; }

.mml6-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mml6-tab-btn {
  border: none;
  background: rgba(0,0,0,0.05);
  padding: 8px 16px;
  border-radius: var(--mml6-radius-sm);
  font-family: var(--mml6-font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: var(--mml6-text);
  transition: all 0.2s;
  white-space: nowrap;
}

.mml6-tab-btn.mml6-active, .mml6-tab-btn:hover {
  background: var(--mml6-accent);
  color: #fff;
}

/* Masonry Cards */
.mml6-cards-masonry {
  column-count: 4;
  column-gap: 1.5rem;
}

.mml6-game-card {
  display: block;
  background: var(--mml6-surface);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--mml6-radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  box-shadow: var(--mml6-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mml6-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.mml6-card-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.mml6-card-body {
  padding: 1rem;
}

.mml6-card-badge {
  display: inline-block;
  background: var(--mml6-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.mml6-card-title {
  font-family: var(--mml6-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--mml6-text);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.mml6-card-sub {
  font-size: 13px;
  color: var(--mml6-text-muted);
}

/* Guide Steps */
.mml6-guide-panel {
  padding: 2rem;
}

.mml6-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.mml6-step {
  display: flex;
  gap: 1rem;
}

.mml6-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--mml6-accent);
  color: #fff;
  font-family: var(--mml6-font-display);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.mml6-step-title {
  font-size: 1.125rem;
  color: var(--mml6-primary-dark);
  margin-bottom: 0.5rem;
}

.mml6-step-text {
  font-size: 0.9375rem;
  color: var(--mml6-text-muted);
}

/* Compare Table */
.mml6-compare-table-wrap {
  padding: 1rem;
  overflow-x: auto;
}

.mml6-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.mml6-compare-table th, .mml6-compare-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--mml6-border);
  font-size: 0.9375rem;
}

.mml6-compare-table th {
  font-family: var(--mml6-font-display);
  color: var(--mml6-primary-dark);
  background: rgba(0,0,0,0.02);
}

.mml6-highlight-cell {
  color: var(--mml6-primary);
  font-weight: 600;
}

/* Payments */
.mml6-payments-wrap {
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.mml6-pay-badge {
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--mml6-border);
  color: var(--mml6-primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
}

/* Article Formatting */
.mml6-article {
  padding: 2rem;
  font-size: 1rem;
  color: var(--mml6-text);
}

.mml6-article h2, .mml6-article h3, .mml6-article h4 {
  color: var(--mml6-primary-dark);
  margin: 1.5rem 0 1rem;
}

.mml6-article p {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.mml6-article ul, .mml6-article ol {
  margin: 0 0 1rem 1.5rem;
  font-size: 0.9375rem;
}

.mml6-article li {
  margin-bottom: 0.5rem;
}

.mml6-article blockquote {
  border-left: 4px solid var(--mml6-accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--mml6-text-muted);
}

/* Page Specifics */
.mml6-breadcrumbs-wrap {
  margin-bottom: -1rem;
}
.mml6-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 13px;
  color: var(--mml6-text-muted);
}
.mml6-crumb::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--mml6-border);
}
.mml6-crumb:last-child::after { content: none; }

.mml6-page-header-glass {
  padding: 2rem;
  text-align: center;
}

.mml6-page-title {
  font-size: 2.25rem;
  color: var(--mml6-primary-dark);
}

.mml6-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.mml6-page-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* FAQ */
.mml6-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mml6-faq-item {
  background: var(--mml6-surface);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--mml6-radius-sm);
  padding: 1rem;
  box-shadow: var(--mml6-shadow);
}

.mml6-faq-q {
  font-weight: 600;
  font-family: var(--mml6-font-display);
  cursor: pointer;
  color: var(--mml6-primary-dark);
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
  font-size: 1.125rem;
}
.mml6-faq-q::-webkit-details-marker { display: none; }
.mml6-faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mml6-accent);
  font-size: 1.25rem;
}
.mml6-faq-item[open] .mml6-faq-q::after { content: '-'; }

.mml6-faq-a {
  margin-top: 1rem;
  color: var(--mml6-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Pager */
.mml6-pager {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  gap: 1rem;
}

.mml6-pager-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--mml6-primary);
  padding: 8px 16px;
  border-radius: var(--mml6-radius-sm);
  background: rgba(63, 136, 41, 0.1);
  text-transform: uppercase;
  transition: all 0.2s;
}
.mml6-pager-btn:hover {
  background: var(--mml6-primary);
  color: #fff;
}

/* Sidebar Related */
.mml6-sidebar-widget {
  padding: 1.5rem;
}

.mml6-widget-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--mml6-primary-dark);
}

.mml6-related-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mml6-related-list a {
  font-size: 13px;
  color: var(--mml6-text-muted);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 0.5rem;
  display: block;
}
.mml6-related-list a:hover {
  color: var(--mml6-accent);
}

/* Footer */
.mml6-footer {
  background: #fff;
  border-top: 1px solid var(--mml6-border);
  margin-top: auto;
  padding-top: 3rem;
}

.mml6-footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.mml6-footer-desc {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--mml6-text-muted);
}

.mml6-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.mml6-footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--mml6-text-muted);
}
.mml6-footer-links a:hover {
  color: var(--mml6-primary);
}

.mml6-footer-legal {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 13px;
  color: var(--mml6-text-muted);
}
.mml6-footer-legal p { margin-bottom: 0.5rem; }

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .mml6-cards-masonry { column-count: 3; }
  .mml6-page-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mml6-hero-grid { grid-template-columns: 1fr; }
  .mml6-hero-visual { order: -1; }
  .mml6-cards-masonry { column-count: 2; }
  .mml6-footer-inner { grid-template-columns: 1fr; }
  .mml6-stats-row { justify-content: center; }
  .mml6-hero-content { text-align: center; padding: 1.5rem; }
}

@media (max-width: 480px) {
  .mml6-cards-masonry { column-count: 1; }
  .mml6-hero-title { font-size: 2rem; }
  .mml6-article, .mml6-page-header-glass { padding: 1.5rem 1rem; }
  .mml6-article p, .mml6-feature-text, .mml6-step-text { font-size: 15px; }
}
