#home-games-stage {
  position: relative;
}

.mk-guide-entry {
  z-index: 900000;
  min-width: 172px;
  height: 44px;
  padding: 0 18px;

  display: inline-flex;
align-items: center;
justify-content: center;

  border: 3px solid #e5bd45;
  border-radius: 16px;

  background:
    linear-gradient(180deg, #1d6fbc, #0b3869);

  color: #fff8c9;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: .2px;

  cursor: pointer;
  box-shadow:
    0 8px 0 rgba(0,0,0,.35),
    0 10px 22px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.28);

  text-shadow:
    0 2px 2px rgba(0,0,0,.55);

  touch-action: manipulation;
}

.mk-guide-entry:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.mk-guide-home {
  position: static;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 14px 34px 0 auto;
}

.mk-guide-lobby {
  position: fixed;
  right: 18px;
  bottom: 18px;
}

.mk-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999990;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 18px;

  background: rgba(0,0,0,.72);
  backdrop-filter: blur(5px);
}

.mk-guide-overlay.show {
  display: flex;
}

.mk-guide-panel {
  width: min(860px, calc(100vw - 34px));
  max-height: min(82vh, 680px);

  display: flex;
  flex-direction: column;

  border: 3px solid #e5bd45;
  border-radius: 22px;

  background:
    radial-gradient(circle at top, rgba(255,220,100,.16), transparent 36%),
    linear-gradient(180deg, rgba(15,43,67,.98), rgba(5,19,34,.98));

  color: #fff;

  box-shadow:
    0 20px 70px rgba(0,0,0,.72),
    0 0 28px rgba(229,189,69,.35);

  overflow: hidden;
}

.mk-guide-head {
  min-height: 58px;
  padding: 12px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  background:
    linear-gradient(90deg, #7b0000, #b91515, #7b0000);

  border-bottom: 2px solid #e5bd45;
}

.mk-guide-title {
  color: #fff3a8;
  font-size: 20px;
  font-weight: 1000;
  text-shadow: 0 3px 3px rgba(0,0,0,.55);
}

.mk-guide-close {
  width: 38px;
  height: 38px;

  border: 2px solid rgba(255,255,255,.6);
  border-radius: 12px;

  background: rgba(0,0,0,.35);
  color: #fff;

  font-size: 20px;
  font-weight: 1000;
  cursor: pointer;
}

.mk-guide-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.mk-guide-tabs {
  padding: 12px;

  display: flex;
  flex-direction: column;
  gap: 8px;

  background: rgba(0,0,0,.24);
  border-right: 1px solid rgba(229,189,69,.35);
}

.mk-guide-tab {
  min-height: 42px;
  padding: 8px 10px;

  border: 2px solid rgba(229,189,69,.38);
  border-radius: 13px;

  background: rgba(0,0,0,.35);
  color: #fff;

  font-size: 13px;
  font-weight: 1000;
  text-align: left;

  cursor: pointer;
}

.mk-guide-tab.active {
  background:
    linear-gradient(180deg, #f6d95a, #c99b15);

  color: #281700;
  border-color: #fff0a0;
}

.mk-guide-content {
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mk-guide-content h3 {
  margin: 0 0 10px;
  color: #ffe879;
  font-size: 20px;
  font-weight: 1000;
}

.mk-guide-content p {
  margin: 0 0 10px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.mk-guide-content ul {
  margin: 8px 0 12px 18px;
  padding: 0;
}

.mk-guide-content li {
  margin: 6px 0;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.mk-guide-note {
  margin-top: 12px;
  padding: 10px 12px;

  border: 1px solid rgba(229,189,69,.5);
  border-radius: 12px;

  background: rgba(229,189,69,.12);
  color: #fff3a8;

  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.mk-guide-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;

  overflow: hidden;
  border-radius: 12px;
}

.mk-guide-table th,
.mk-guide-table td {
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,.18);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.mk-guide-table th {
  color: #2a1800;
  background: #e5bd45;
}

.mk-guide-table td {
  color: #fff;
  background: rgba(255,255,255,.06);
}

@media (max-width: 760px), (max-height: 520px) {
  .mk-guide-overlay {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }

  .mk-guide-panel {
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;

    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  .mk-guide-head {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 20 !important;

    min-height: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border-bottom: none !important;
  }

  .mk-guide-title {
    display: none !important;
  }

  .mk-guide-close {
    width: 38px !important;
    height: 38px !important;
    font-size: 22px !important;
  }

  /* MOBİLDE SEKMELER SOLDA YUKARIDAN AŞAĞI */
  .mk-guide-body {
    height: 100% !important;
    min-height: 0 !important;

    display: grid !important;
    grid-template-columns: 142px minmax(0, 1fr) !important;
  }

  .mk-guide-tabs {
    height: 100% !important;
    min-height: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    padding: 10px 7px !important;

    border-right: 1px solid rgba(229,189,69,.35) !important;
    border-bottom: none !important;

    background: rgba(0,0,0,.28) !important;
  }

  .mk-guide-tab {
    width: 100% !important;
    min-height: 38px !important;

    flex: 0 0 auto !important;

    font-size: 11px !important;
    text-align: left !important;
    white-space: normal !important;

    padding: 7px 8px !important;
  }

  .mk-guide-content {
    min-width: 0 !important;
    height: 100% !important;

    padding: 48px 12px 12px !important;

    overflow-y: auto !important;
  }

  .mk-guide-content h3 {
    font-size: 17px !important;
  }

  .mk-guide-content p,
  .mk-guide-content li {
    font-size: 13px !important;
  }
}

/* ANA SAYFA REHBER BUTONU */
.mk-guide-home {
  position: static !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 14px 34px 0 auto !important;
}

/* LOBİ SAYFASI REHBER BUTONU */
.mk-guide-lobby {
  position: fixed !important;

  right: 18px !important;
  bottom: 18px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* MOBİLDE AYRI KONUMLAR */
@media (max-width: 900px), (max-height: 560px) {

  /* Mobil ana sayfa */
  .mk-guide-home {
    position: fixed !important;

    right: 14px !important;
    bottom: 120px !important;

    z-index: 900000 !important;
  }

  /* Mobil lobi sayfaları */
  .mk-guide-lobby {
    position: fixed !important;

    right: 40px !important;
    bottom: 55px !important;

    z-index: 900000 !important;
  }
}

/* REHBER ÜST KIRMIZI BAŞLIĞI KALDIR */
.mk-guide-panel {
  position: relative !important;
}

.mk-guide-head {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 5 !important;

  min-height: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border-bottom: none !important;

  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;

  pointer-events: none !important;
}

.mk-guide-title {
  display: none !important;
}

.mk-guide-close {
  pointer-events: auto !important;

  width: 42px !important;
  height: 42px !important;

  border: 2px solid rgba(255,255,255,.75) !important;
  border-radius: 14px !important;

  background: rgba(120,0,0,.85) !important;
  color: #fff !important;

  font-size: 24px !important;
  font-weight: 1000 !important;

  box-shadow: 0 6px 18px rgba(0,0,0,.45) !important;
}

/* KIRMIZI BAŞLIK KALKTIĞI İÇİN PANEL İÇERİĞİ ÜSTE OTURSUN */
.mk-guide-body {
  flex: 1 !important;
  min-height: 0 !important;
}

/* Rehber açıkken alttaki Oyun Rehberi butonunu gizle */
body.mk-guide-open #mk-game-guide-btn {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* REHBER YAZI ALANI HAFİF DARALTMA */
.mk-guide-content {
  box-sizing: border-box !important;
  padding-left: 22px !important;
  padding-right: 34px !important;
}

.mk-guide-content p,
.mk-guide-content li,
.mk-guide-content h3,
.mk-guide-content h4,
.mk-guide-note {
  max-width: calc(100% - 12px) !important;
  overflow-wrap: break-word !important;
}

/* LOBİDE OYUN REHBERİ BUTONU MENÜ / MAĞAZA ÜSTÜNE ÇIKMASIN */
.mk-guide-entry.mk-guide-lobby {
  z-index: 900 !important;
}

/* Mobil lobi için de yüksek z-index'i ez */
@media (max-width: 900px), (max-height: 560px) {
  .mk-guide-entry.mk-guide-lobby {
    z-index: 900 !important;
  }
}


