@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Exo+2:wght@400;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
  --mt-bg:          #0D0D0D;
  --mt-bg2:         #141414;
  --mt-surface:     #1A1A1A;
  --mt-card:        #1E1E1E;
  --mt-card2:       #242424;
  --mt-border:      #2A2A2A;
  --mt-border2:     #333333;
  --mt-green:       #4CC935;
  --mt-green-light: #6EE053;
  --mt-green-dark:  #35A022;
  --mt-white:       #F2F2F2;
  --mt-muted:       #8A8A8A;
  --mt-muted2:      #666666;
  --mt-font-display:'Exo 2', sans-serif;
  --mt-font-body:   'Inter', sans-serif;
  --mt-radius-sm:   6px;
  --mt-radius-md:   10px;
  --mt-radius-lg:   14px;
  --mt-gap:         12px;
  --mt-speed:       0.22s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--mt-font-body);
  background: var(--mt-bg);
  color: var(--mt-white);
  line-height: 1.6;
  overflow-x: hidden;
}

[id] { scroll-margin-top: 62px; }

a { color: var(--mt-green); text-decoration: none; transition: color var(--mt-speed); }
a:hover { color: var(--mt-green-light); }

img { max-width: 100%; height: auto; display: block; }

/* ── Layout Shell ── */
.mt-page {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  max-width: 100vw;
}

/* ── Header ── */
.mt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 58px;
  background: var(--mt-surface);
  border-bottom: 1px solid var(--mt-border);
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
}
.mt-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mt-font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--mt-white);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.mt-logo:hover { color: var(--mt-white); }
.mt-logo-img {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}
.mt-logo-text em {
  font-style: normal;
  color: var(--mt-green);
}
.mt-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mt-game-filter {
  background: var(--mt-card);
  border: 1px solid var(--mt-border2);
  color: var(--mt-muted);
  padding: 5px 10px;
  border-radius: var(--mt-radius-sm);
  font-family: var(--mt-font-body);
  font-size: 0.8rem;
  cursor: pointer;
}
.mt-game-filter:focus { border-color: var(--mt-green); outline: none; }

.mt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--mt-font-body);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  border: none;
  transition: background var(--mt-speed), transform var(--mt-speed), box-shadow var(--mt-speed);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.mt-btn:hover { transform: translateY(-1px); }
.mt-btn--primary {
  background: var(--mt-green);
  color: #0D0D0D;
}
.mt-btn--primary:hover {
  background: var(--mt-green-light);
  color: #0D0D0D;
  box-shadow: 0 4px 16px rgba(76, 201, 53, 0.35);
}
.mt-btn--outline {
  background: transparent;
  border: 1.5px solid var(--mt-border2);
  color: var(--mt-white);
}
.mt-btn--outline:hover {
  border-color: var(--mt-green);
  color: var(--mt-green);
}
.mt-btn--sm { padding: 6px 14px; font-size: 0.78rem; }

.mt-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--mt-white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}

/* ── Sidebar ── */
.mt-sidebar {
  background: var(--mt-surface);
  border-right: 1px solid var(--mt-border);
  padding: 16px 0;
  overflow-y: auto;
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  min-width: 0;
}
.mt-sidebar-nav { list-style: none; padding: 0 8px; }
.mt-sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--mt-muted);
  border-radius: var(--mt-radius-sm);
  font-size: 0.86rem;
  font-weight: 500;
  transition: background var(--mt-speed), color var(--mt-speed);
}
.mt-sidebar-nav li a:hover {
  background: rgba(76, 201, 53, 0.08);
  color: var(--mt-white);
}
.mt-sidebar-widget {
  margin: 16px 8px;
  padding: 12px 14px;
  background: var(--mt-card2);
  border-radius: var(--mt-radius-md);
  border: 1px solid var(--mt-border);
}
.mt-sidebar-widget-title {
  font-family: var(--mt-font-display);
  font-size: 0.72rem;
  color: var(--mt-green);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}
.mt-strategy-tip {
  font-size: 0.8rem;
  color: var(--mt-muted);
  line-height: 1.5;
  font-style: italic;
}
.mt-sidebar-bottom { padding: 12px 8px; }
.mt-lang-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--mt-muted);
  font-size: 0.84rem;
  border-radius: var(--mt-radius-sm);
  transition: color var(--mt-speed);
}
.mt-lang-link:hover { color: var(--mt-green); }

/* ── Main Content ── */
.mt-main {
  padding: 20px;
  min-width: 0;
  overflow-x: hidden;
}

/* ── Hero ── */
.mt-hero {
  background: linear-gradient(135deg, #111111 0%, #1A1A1A 50%, #0F1A0F 100%);
  border-radius: var(--mt-radius-lg);
  padding: 36px 28px;
  margin-bottom: 24px;
  border: 1px solid var(--mt-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(76,201,53,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.mt-hero-suits {
  font-size: 1.5rem;
  letter-spacing: 14px;
  margin-bottom: 14px;
  color: var(--mt-green);
  opacity: 0.7;
}
.mt-hero h1 {
  font-family: var(--mt-font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--mt-white);
  margin-bottom: 16px;
  line-height: 1.15;
  position: relative;
}
.mt-hero h1 em { font-style: normal; color: var(--mt-green); }
.mt-hero-cta { margin-bottom: 18px; position: relative; }
.mt-hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  position: relative;
}
.mt-hero-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--mt-border2);
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.76rem;
  color: var(--mt-muted);
}
.mt-hero-badge strong { color: var(--mt-white); }
.mt-hero-tagline {
  color: var(--mt-muted);
  font-size: 0.92rem;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

/* ── Section Titles ── */
.mt-section-title {
  font-family: var(--mt-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mt-white);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

/* ── Game Grid ── */
.mt-game-section { margin-bottom: 26px; }
.mt-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--mt-gap);
}
.mt-game-card {
  background: var(--mt-card);
  border-radius: var(--mt-radius-md);
  overflow: hidden;
  border: 1px solid var(--mt-border);
  transition: transform var(--mt-speed), border-color var(--mt-speed), box-shadow var(--mt-speed);
}
.mt-game-card:hover {
  border-color: var(--mt-green);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(76, 201, 53, 0.15);
}
.mt-game-card.mt-daily-pick {
  border-color: var(--mt-green);
  box-shadow: 0 0 16px rgba(76, 201, 53, 0.25);
}
.mt-game-card.mt-daily-pick::after {
  content: '⭐ Pick of the Day';
  display: block;
  text-align: center;
  background: var(--mt-green);
  color: #0D0D0D;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.mt-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--mt-bg2);
}
.mt-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.mt-game-card:hover .mt-thumb img {
  transform: scale(1.05);
}
.mt-thumb-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #1a1a1a, #242424, #141414);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--mt-muted2);
  text-align: center;
  padding: 8px;
}
.mt-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity var(--mt-speed);
}
.mt-game-card:hover .mt-thumb-overlay { opacity: 1; }
.mt-thumb-overlay .mt-btn--primary { padding: 7px 18px; font-size: 0.76rem; }
.mt-thumb-overlay .mt-rules-link {
  color: var(--mt-muted);
  font-size: 0.7rem;
  border-bottom: 1px dotted var(--mt-muted2);
  transition: color var(--mt-speed);
}
.mt-thumb-overlay .mt-rules-link:hover { color: var(--mt-green); border-color: var(--mt-green); }
.mt-card-info { padding: 9px 10px; }
.mt-card-info h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mt-white);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mt-card-info .mt-provider-label {
  font-size: 0.66rem;
  color: var(--mt-muted2);
  font-weight: 500;
}

/* ── Provider Bar ── */
.mt-providers {
  margin: 24px 0;
  padding: 14px 18px;
  background: var(--mt-surface);
  border-radius: var(--mt-radius-md);
  border: 1px solid var(--mt-border);
}
.mt-provider-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  line-height: 1.9;
}
.mt-provider-list li {
  font-size: 0.8rem;
  color: var(--mt-muted);
  transition: color var(--mt-speed);
  font-weight: 500;
}
.mt-provider-list li:hover { color: var(--mt-green); }
.mt-provider-list li:not(:last-child)::after {
  content: ' · ';
  color: var(--mt-border2);
}

/* ── SEO Content ── */
.mt-seo-content { margin-top: 30px; }
.mt-seo-content > section { margin-bottom: 24px; }

.mt-toc {
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-left: 3px solid var(--mt-green);
  border-radius: var(--mt-radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.mt-toc-title {
  font-family: var(--mt-font-display);
  font-size: 0.78rem;
  color: var(--mt-green);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.mt-toc-list {
  list-style: none;
  columns: 2;
  column-gap: 18px;
}
.mt-toc-list li {
  margin-bottom: 5px;
  break-inside: avoid;
}
.mt-toc-list li a {
  color: var(--mt-muted);
  font-size: 0.84rem;
  display: flex;
  align-items: baseline;
  gap: 6px;
  transition: color var(--mt-speed);
}
.mt-toc-list li a::before {
  content: '▸';
  color: var(--mt-green);
  font-size: 0.6rem;
  flex-shrink: 0;
}
.mt-toc-list li a:hover { color: var(--mt-white); }

.mt-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: var(--mt-surface);
  border-radius: var(--mt-radius-md);
  overflow: hidden;
  border: 1px solid var(--mt-border);
}
.mt-info-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--mt-border);
  font-size: 0.86rem;
}
.mt-info-table tr:last-child td { border-bottom: none; }
.mt-info-table td:first-child {
  color: var(--mt-muted);
  width: 40%;
  font-weight: 500;
}
.mt-info-table td:last-child {
  color: var(--mt-white);
  font-weight: 600;
}

.mt-seo-content h2 {
  font-family: var(--mt-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mt-white);
  margin-bottom: 10px;
}
.mt-seo-content h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--mt-green);
  margin: 14px 0 7px;
}
.mt-seo-content p { margin-bottom: 11px; line-height: 1.7; color: var(--mt-muted); }
.mt-seo-content p a { color: var(--mt-green); }
.mt-seo-content ul, .mt-seo-content ol { margin: 0 0 13px 20px; }
.mt-seo-content li { margin-bottom: 5px; color: var(--mt-muted); font-size: 0.9rem; }

/* ── RTP Table ── */
.mt-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.84rem;
}
.mt-rtp-table th {
  background: var(--mt-card2);
  color: var(--mt-green);
  padding: 9px 12px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--mt-border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mt-rtp-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--mt-border);
  color: var(--mt-muted);
}
.mt-rtp-table tr:hover td { background: rgba(255,255,255,0.02); }
.mt-rtp-table tr:last-child td { border-bottom: none; }
.mt-rtp-table .mt-rtp-high { color: var(--mt-green); font-weight: 700; }
.mt-rtp-table .mt-rtp-mid  { color: #C8E840; font-weight: 600; }

/* ── Payment Groups ── */
.mt-pay-group { margin-bottom: 15px; }
.mt-pay-group h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mt-white);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--mt-border);
}
.mt-pay-group ul { list-style: disc; margin-left: 20px; }
.mt-pay-group li { margin-bottom: 4px; font-size: 0.86rem; color: var(--mt-muted); }

/* ── Screenshot Blocks ── */
.mt-screenshot-placeholder {
  background: var(--mt-card2);
  border: 2px dashed var(--mt-border2);
  border-radius: var(--mt-radius-md);
  padding: 32px 18px;
  text-align: center;
  color: var(--mt-muted2);
  font-size: 0.8rem;
  margin: 14px 0;
}
.mt-screenshot-img {
  width: 100%;
  max-width: 800px;
  border-radius: var(--mt-radius-md);
  border: 1px solid var(--mt-border);
  display: block;
  margin: 14px auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

/* ── VIP Tiers ── */
.mt-vip-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.mt-vip-tier {
  background: var(--mt-card2);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius-md);
  padding: 12px 10px;
  text-align: center;
  transition: border-color var(--mt-speed);
}
.mt-vip-tier:hover { border-color: var(--mt-green); }
.mt-vip-tier-icon { font-size: 1.3rem; margin-bottom: 5px; }
.mt-vip-tier-name {
  font-family: var(--mt-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mt-white);
  margin-bottom: 3px;
}
.mt-vip-tier-detail { font-size: 0.67rem; color: var(--mt-muted2); }

/* ── Footer ── */
.mt-footer {
  background: var(--mt-surface);
  border-top: 1px solid var(--mt-border);
  padding: 26px 22px;
}
.mt-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.mt-footer-col h4 {
  font-family: var(--mt-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mt-white);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mt-footer-col ul { list-style: none; }
.mt-footer-col li { margin-bottom: 5px; }
.mt-footer-col li a { color: var(--mt-muted2); font-size: 0.8rem; transition: color var(--mt-speed); }
.mt-footer-col li a:hover { color: var(--mt-green); }
.mt-footer-copy {
  text-align: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--mt-border);
  color: var(--mt-muted2);
  font-size: 0.73rem;
  line-height: 1.55;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .mt-page { grid-template-columns: 1fr; }
  .mt-sidebar {
    position: fixed;
    top: 58px;
    left: 0;
    width: 240px;
    height: calc(100vh - 58px);
    z-index: 800;
    box-shadow: 4px 0 20px rgba(0,0,0,0.6);
  }
  .mt-sidebar[data-state="closed"] { display: none; }
  .mt-sidebar[data-state="open"] { display: block; }
  .mt-hamburger { display: block; }
  .mt-game-filter { display: none; }
  .mt-hero h1 { font-size: 1.7rem; }
  .mt-toc-list { columns: 1; }
  .mt-footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .mt-game-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .mt-rtp-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 600px) {
  .mt-main { padding: 12px; }
  .mt-hero { padding: 22px 12px; }
  .mt-hero h1 { font-size: 1.45rem; }
  .mt-hero-suits { font-size: 1.1rem; letter-spacing: 10px; }
  .mt-game-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .mt-vip-tiers { grid-template-columns: repeat(2, 1fr); }
  .mt-info-table tr { display: flex; flex-direction: column; }
  .mt-info-table td { display: block; padding: 7px 12px; }
  .mt-info-table td:first-child { width: auto; }
}

@media (max-width: 380px) {
  .mt-hero h1 { font-size: 1.2rem; }
  .mt-game-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .mt-card-info h3 { font-size: 0.73rem; }
}
