/* MEGA888 landing: white page, red/blue accents only */
body.page-mega888,
body.page-mega888.custom-background {
  background: #fff !important;
  background-color: #fff !important;
}

.m8 {
  --m8-red: #c8102e;
  --m8-red-deep: #8e0b1f;
  --m8-red-hot: #e31b3d;
  --m8-blue: #1a8cff;
  --m8-blue-deep: #0b5fbf;
  --m8-ink: #1b1214;
  --m8-muted: #5c4549;
  --m8-soft: #fff6f7;
  --m8-white: #fff;
  --m8-max: 1180px;
  color: var(--m8-ink);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}

.m8 * { box-sizing: border-box; }
.m8 img { max-width: 100%; height: auto; }

.m8-wrap {
  width: min(var(--m8-max), calc(100% - 40px));
  margin: 0 auto;
}

.m8 h1, .m8 h2, .m8 h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--m8-red-deep);
  margin: 0 0 0.55em;
}

.m8 h1 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.m8 h2 { font-size: clamp(1.35rem, 2.6vw, 1.95rem); }
.m8 h3 { font-size: 1.08rem; margin-bottom: 0.35em; }

.m8 p { margin: 0 0 0.9em; font-size: 1.02rem; }
.m8 p:last-child { margin-bottom: 0; }
.m8 strong { font-weight: 800; color: var(--m8-red-deep); }

.m8-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--m8-blue-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.m8-kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--m8-blue);
  border-radius: 99px;
}

.m8-hero {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.m8-hero img {
  display: block;
  width: 100%;
  height: clamp(260px, 38vw, 480px);
  object-fit: cover;
  object-position: 70% center;
}

.m8-hero-shade { display: none; }

.m8 a[href="/mega888/"] {
  color: var(--m8-red);
  font-weight: 800;
  text-decoration: none;
}
.m8 a[href="/mega888/"]:hover { color: var(--m8-blue-deep); }

.m8-dl {
  background: #fff;
  color: var(--m8-ink);
  padding: 36px 0 20px;
}

.m8-dl h2 { color: var(--m8-red-deep); }
.m8-dl-lead {
  max-width: 640px;
  margin-bottom: 20px;
  color: var(--m8-muted);
}

.m8-dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.m8-card {
  background: transparent;
  color: var(--m8-ink);
  border: 0;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  padding: 8px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}

.m8-card h3 {
  color: var(--m8-red-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}
.m8-card p { font-size: 0.94rem; color: var(--m8-muted); flex: 1; }

.m8-os {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  display: block;
}

.m8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--m8-red);
  color: var(--m8-white) !important;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 999px;
  padding: 12px 18px;
  min-height: 44px;
  border: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.m8-btn:hover { background: var(--m8-red-hot); transform: translateY(-1px); }
.m8-btn.blue { background: var(--m8-blue); }
.m8-btn.blue:hover { background: var(--m8-blue-deep); }
.m8-btn.ghost {
  background: var(--m8-red);
  color: var(--m8-white) !important;
}
.m8-btn.ghost:hover { background: var(--m8-red-hot); }

.m8-btn.is-off {
  pointer-events: none;
  cursor: default;
}
.m8-btn.is-off:hover { background: var(--m8-red); transform: none; }

.m8-about {
  position: relative;
  padding: 48px 0 12px;
  background: #fff;
}

.m8-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(200px, 0.65fr);
  gap: 20px 28px;
  align-items: end;
}

.m8-article {
  background: #fff;
  border-radius: 16px;
  padding: 8px 0 24px;
}

.m8-article + .m8-article { margin-top: 8px; }

.m8-hostess {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.m8-hostess img {
  width: min(100%, 360px);
  height: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: bottom center;
}

.m8-section {
  padding: 20px 0 48px;
  background: #fff;
}

.m8-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.m8-pill {
  background: var(--m8-soft);
  border-radius: 14px;
  padding: 18px 16px;
}

.m8-pill .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 10px;
  background: #fff1f3;
  color: var(--m8-red);
}

.m8-pill.blue .mark { color: var(--m8-blue-deep); background: #eaf4ff; }

.m8-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.m8-panel {
  background: var(--m8-soft);
  border-radius: 16px;
  padding: 22px 20px;
}

.m8-panel h2,
.m8-panel h3 {
  font-size: 1.15rem !important;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.m8-panel p {
  font-size: 0.95rem;
}

.m8-panel.tint {
  background: var(--m8-soft);
  color: var(--m8-ink);
}

.m8-panel.tint h2,
.m8-panel.tint h3,
.m8-panel.tint strong { color: var(--m8-red-deep); }

.m8-creds {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.m8-cred {
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

.m8-cred span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--m8-blue-deep);
}

.m8-cred strong {
  display: block;
  font-size: 1.2rem;
  margin: 4px 0 2px;
}

.m8-cred small {
  color: var(--m8-muted);
  font-weight: 600;
}

.m8-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.m8-list li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.m8-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--m8-blue);
}

.m8-discover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.m8-disc {
  background: var(--m8-soft);
  border-radius: 14px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m8-disc a { margin-top: auto; align-self: flex-start; }

.m8-note {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--m8-soft);
  border-radius: 10px;
  color: var(--m8-muted);
  font-size: 0.9rem;
}

.m8-brandline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.m8-brandline img { height: 40px; width: auto; }

@media (max-width: 980px) {
  .m8-dl-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }
  .m8-dl-grid .m8-card:first-child {
    grid-column: 1 / -1;
  }

  .m8-pills,
  .m8-split,
  .m8-discover { grid-template-columns: 1fr; }

  .m8-about-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .m8-hostess {
    order: -1;
    margin: 0 auto 8px;
    max-width: 220px;
  }

  .m8-hostess img { max-height: 280px; }

  .m8-hero img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 640px) {
  .m8-wrap { width: calc(100% - 24px); }

  .m8 h1 { font-size: 1.45rem; }
  .m8 h2 { font-size: 1.22rem; }
  .m8 p { font-size: 0.95rem; }
  .m8-list li {
    font-size: 0.84rem !important;
    font-weight: 600;
    line-height: 1.4;
  }

  .m8-dl { padding: 22px 0 12px; }
  .m8-about { padding: 20px 0 4px; }
  .m8-section { padding: 12px 0 28px; }

  .m8-article { padding: 4px 0 16px; }
  .m8-panel, .m8-disc, .m8-pill, .m8-card { padding: 16px 14px; }

  .m8-btn { width: 100%; }

  .m8-hostess { max-width: 170px; }
  .m8-hostess img { max-height: 220px; }

  .m8-hero img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }

  .m8-brandline img { height: 32px; }

  .m8-dl-lead { margin-bottom: 14px; }
}
