/* Manga Casino — Official Stylesheet (100% Unique Design System) */
:root {
  --mg-bg-main: #0c0e17;
  --mg-bg-surface: #141824;
  --mg-bg-card: #1b2032;
  --mg-bg-card-hover: #22293f;
  --mg-border: #29314c;
  --mg-border-accent: #ff2a5f;
  --mg-text-primary: #f0f3fc;
  --mg-text-secondary: #9aa5c4;
  --mg-text-muted: #6b7799;
  --mg-accent-red: #ff2a5f;
  --mg-accent-red-hover: #e01b4c;
  --mg-accent-gold: #ffb800;
  --mg-accent-cyan: #00e5ff;
  --mg-accent-purple: #9d4edd;
  --mg-radius-sm: 8px;
  --mg-radius-md: 14px;
  --mg-radius-lg: 20px;
  --mg-radius-full: 9999px;
  --mg-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --mg-glow-red: 0 0 25px rgba(255, 42, 95, 0.35);
  --mg-glow-gold: 0 0 25px rgba(255, 184, 0, 0.35);
  --mg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-family: var(--mg-font);
  background-color: var(--mg-bg-main);
  color: var(--mg-text-primary);
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% -20%, #251838 0%, #0c0e17 65%);
}

a {
  color: var(--mg-accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #5cf0ff;
  text-decoration: underline;
}

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

/* Layout Container */
.mg-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.mg-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 14, 23, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mg-border);
}

.mg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.mg-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.mg-brand-logo span {
  color: var(--mg-accent-red);
  text-shadow: var(--mg-glow-red);
}

.mg-nav-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mg-nav-bar::-webkit-scrollbar {
  display: none;
}

.mg-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--mg-radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--mg-text-secondary);
  background: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.mg-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.mg-nav-link.mg-active {
  color: #fff;
  background: linear-gradient(135deg, var(--mg-accent-red) 0%, #bd103b 100%);
  box-shadow: 0 2px 10px rgba(255, 42, 95, 0.4);
}

.mg-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--mg-radius-full);
  background: linear-gradient(135deg, var(--mg-accent-gold) 0%, #e08b00 100%);
  color: #0c0e17;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  box-shadow: var(--mg-glow-gold);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.mg-header-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  color: #000;
  text-decoration: none;
}

/* Breadcrumbs (Pompage) */
.mg-breadcrumbs {
  padding: 14px 0;
  font-size: 13.5px;
  color: var(--mg-text-muted);
}

.mg-breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.mg-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mg-breadcrumbs li:not(:last-child)::after {
  content: "›";
  color: var(--mg-text-muted);
  font-weight: bold;
}

.mg-breadcrumbs a {
  color: var(--mg-text-secondary);
  text-decoration: none;
}

.mg-breadcrumbs a:hover {
  color: var(--mg-accent-cyan);
}

.mg-breadcrumbs span[aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

/* Hero Section */
.mg-hero {
  position: relative;
  padding: 40px 0 30px;
}

.mg-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.mg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--mg-radius-full);
  background: rgba(255, 42, 95, 0.15);
  border: 1px solid rgba(255, 42, 95, 0.4);
  color: #ff6b8b;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

h1.mg-h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.mg-direct-answer {
  font-size: 17px;
  line-height: 1.65;
  color: #dce3f5;
  background: linear-gradient(180deg, rgba(27, 32, 50, 0.8) 0%, rgba(20, 24, 36, 0.8) 100%);
  border-left: 4px solid var(--mg-accent-red);
  border-radius: 0 var(--mg-radius-md) var(--mg-radius-md) 0;
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.mg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.mg-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--mg-radius-full);
  background: linear-gradient(135deg, var(--mg-accent-red) 0%, #c40e3a 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: var(--mg-glow-red);
  transition: all 0.2s ease;
  text-decoration: none;
}

.mg-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  color: #fff;
  text-decoration: none;
}

.mg-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--mg-radius-full);
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  color: var(--mg-text-primary);
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mg-btn-secondary:hover {
  background: var(--mg-bg-card-hover);
  border-color: var(--mg-accent-cyan);
  color: #fff;
  text-decoration: none;
}

.mg-hero-banner-wrap {
  position: relative;
  border-radius: var(--mg-radius-lg);
  overflow: hidden;
  border: 1px solid var(--mg-border);
  box-shadow: var(--mg-shadow);
  aspect-ratio: 16 / 9;
}

.mg-hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quick Facts Badges Bar */
.mg-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 30px 0 50px;
}

.mg-stat-pill {
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease;
}

.mg-stat-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 42, 95, 0.4);
}

.mg-stat-icon {
  font-size: 28px;
  line-height: 1;
}

.mg-stat-title {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--mg-text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.mg-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

/* Section Common Styling */
.mg-section {
  padding: 40px 0;
}

h2.mg-h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

h3.mg-h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 24px 0 12px;
}

.mg-prose p {
  font-size: 16px;
  color: var(--mg-text-secondary);
  margin-bottom: 18px;
}

.mg-prose strong {
  color: #fff;
}

.mg-prose ul, .mg-prose ol {
  margin: 16px 0 24px 22px;
  color: var(--mg-text-secondary);
}

.mg-prose li {
  margin-bottom: 8px;
}

/* Anti-Lockout GIST Callout Box */
.mg-edge-card {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.08) 0%, rgba(20, 24, 36, 0.9) 100%);
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-left: 5px solid var(--mg-accent-gold);
  border-radius: var(--mg-radius-md);
  padding: 22px 24px;
  margin: 28px 0;
}

.mg-edge-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--mg-accent-gold);
  margin-bottom: 10px;
}

.mg-edge-desc {
  font-size: 15px;
  color: #e0e5f5;
  line-height: 1.6;
}

/* Games Showcase Grid (8 games) */
.mg-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.mg-game-card {
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.mg-game-card:hover {
  transform: translateY(-5px);
  border-color: var(--mg-accent-red);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.mg-game-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.mg-game-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mg-game-card:hover .mg-game-thumb {
  transform: scale(1.05);
}

.mg-game-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.mg-game-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.mg-game-meta {
  font-size: 13px;
  color: var(--mg-text-muted);
  margin-bottom: 12px;
}

.mg-game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--mg-radius-full);
  background: rgba(255, 42, 95, 0.15);
  border: 1px solid rgba(255, 42, 95, 0.4);
  color: #ff6b8b;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mg-game-btn:hover {
  background: var(--mg-accent-red);
  color: #fff;
  text-decoration: none;
}

/* Data Tables */
.mg-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 32px;
  border-radius: var(--mg-radius-md);
  border: 1px solid var(--mg-border);
  box-shadow: var(--mg-shadow);
  -webkit-overflow-scrolling: touch;
}

.mg-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
  min-width: 600px;
}

.mg-table th {
  background: #10131f;
  color: #fff;
  font-weight: 700;
  padding: 16px 20px;
  border-bottom: 2px solid var(--mg-border);
  white-space: nowrap;
}

.mg-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(41, 49, 76, 0.5);
  color: var(--mg-text-secondary);
}

.mg-table tr:nth-child(even) td {
  background: rgba(20, 24, 36, 0.5);
}

.mg-table tr:hover td {
  background: rgba(255, 42, 95, 0.05);
  color: #fff;
}

/* Interactive Wagering Calculator */
.mg-calc-box {
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-lg);
  padding: 30px;
  margin: 30px 0;
  box-shadow: var(--mg-shadow);
}

.mg-calc-header {
  margin-bottom: 24px;
}

.mg-calc-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.mg-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.mg-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mg-field-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mg-text-secondary);
}

.mg-field-input {
  width: 100%;
  background: var(--mg-bg-surface);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-sm);
  padding: 12px 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease;
}

.mg-field-input:focus {
  border-color: var(--mg-accent-red);
}

.mg-calc-results {
  background: rgba(12, 14, 23, 0.7);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-md);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.mg-res-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mg-res-label {
  font-size: 12.5px;
  text-transform: uppercase;
  color: var(--mg-text-muted);
  font-weight: 700;
}

.mg-res-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--mg-accent-gold);
}

/* Semantic Bridge Cards */
.mg-bridge-box {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(20, 24, 36, 0.9) 100%);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--mg-radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.mg-bridge-text {
  font-size: 15.5px;
  color: #fff;
  flex-grow: 1;
}

.mg-bridge-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--mg-radius-full);
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--mg-accent-cyan);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.mg-bridge-link:hover {
  background: var(--mg-accent-cyan);
  color: #0c0e17;
  text-decoration: none;
}

/* FAQ Items (Always Open: details[open]) */
.mg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
}

.mg-faq-card {
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.mg-faq-card[open] {
  border-color: rgba(255, 42, 95, 0.4);
}

.mg-faq-summary {
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

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

.mg-faq-summary::after {
  content: "▾";
  font-size: 20px;
  color: var(--mg-accent-red);
  transition: transform 0.2s ease;
}

.mg-faq-card[open] .mg-faq-summary::after {
  transform: rotate(180deg);
}

.mg-faq-body {
  padding: 0 22px 20px;
  font-size: 15.5px;
  color: var(--mg-text-secondary);
  line-height: 1.65;
  border-top: 1px solid rgba(41, 49, 76, 0.4);
  padding-top: 14px;
}

/* E-E-A-T Official Support Contacts Block */
.mg-support-panel {
  background: var(--mg-bg-surface);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-lg);
  padding: 30px;
  margin: 36px 0;
}

.mg-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.mg-support-card {
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-md);
  padding: 18px 20px;
}

.mg-support-card h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 6px;
}

.mg-support-card p {
  font-size: 14px;
  color: var(--mg-text-secondary);
}

/* Sticky Floating Conversion Bar */
.mg-sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.mg-sticky-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--mg-radius-full);
  background: linear-gradient(135deg, var(--mg-accent-red) 0%, #c40e3a 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(255, 42, 95, 0.55);
  transition: all 0.25s ease;
  text-decoration: none;
}

.mg-sticky-btn:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.15);
  color: #fff;
  text-decoration: none;
}

/* Footer */
.mg-footer {
  margin-top: auto;
  background: #080910;
  border-top: 1px solid var(--mg-border);
  padding: 50px 0 30px;
}

.mg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.mg-footer-brand {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.mg-footer-brand span {
  color: var(--mg-accent-red);
}

.mg-footer-text {
  font-size: 14px;
  color: var(--mg-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.mg-age-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 42, 95, 0.2);
  border: 1px solid var(--mg-accent-red);
  color: #ff6b8b;
  font-weight: 800;
  font-size: 12px;
  margin-right: 6px;
}

.mg-footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.mg-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mg-footer-links a {
  color: var(--mg-text-secondary);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mg-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.mg-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(41, 49, 76, 0.5);
  font-size: 13.5px;
  color: var(--mg-text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .mg-hero-grid {
    grid-template-columns: 1fr;
  }
  .mg-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mg-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .mg-games-grid {
    grid-template-columns: 1fr;
  }
  .mg-sticky-cta {
    bottom: 14px;
    right: 14px;
    left: 14px;
  }
  .mg-sticky-btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 14.5px;
  }
  .mg-header-inner {
    height: 64px;
  }
  .mg-brand-logo {
    font-size: 20px;
  }
}
