/* ===== Guest mobile chrome (from user iPhone screenshots) ===== */

:root {
  --mk-navy: #091840;
  --mk-navy-2: #0e2258;
  --mk-gold: #ebb058;
  --mk-red: #ca113d;
  --mk-red-grad: linear-gradient(135deg, #c2185b 0%, #8e0e3a 55%, #6a0a2c 100%);
  --mk-green: #3f8f27;
  /* exact crowned bar from user reference: 1024x278 */
  --mk-bottom-h: calc((100vw - 16px) * 278 / 1024);
}

body.guest-mode {
  padding-bottom: calc(var(--mk-bottom-h) + env(safe-area-inset-bottom) + 12px);
  background-color: #061025;
}

/*
  Mobile hero: match live mrking5019.com guest mobile (390px => ~130px = 3:1).
  Live uses app-slider--3-1 + object-fit:fill — full banner art, not cropped square.
*/
@media (max-width: 1023px) {
  .home .app-slider.app-slider--3-1 {
    padding-bottom: 33.3333333333% !important;
  }

  .home .app-slider__root,
  .home .app-slide {
    height: 100% !important;
  }

  .home .app-slide img {
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    object-position: center center !important;
  }

  .home .app-slider__pagination {
    left: 10px;
    z-index: 5;
  }

  .home .app-slider__pagination button span {
    width: 3px;
  }

  /* Guest header auth buttons — match iPhone SS */
  .mk-btn-login {
    min-width: 82px;
    height: 34px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(160, 190, 255, 0.75) !important;
    background: rgba(14, 34, 88, 0.85) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600;
  }

  .mk-btn-register {
    min-width: 96px;
    height: 34px !important;
    border-radius: 8px !important;
    border: none !important;
    background: linear-gradient(180deg, #d81b60 0%, #ad1457 55%, #880e4f 100%) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700;
  }

  .app-header__logo img {
    max-height: 48px;
  }

  .app-header__menu-toggle i,
  .app-header__menu-toggle .icon-bars,
  .app-header__menu-toggle i:before {
    color: #ebb058 !important;
  }

  .home .ticker {
    position: relative;
    z-index: 2;
  }
}

/* Guest header auth */
.app-header__auth--guest {
  display: flex !important;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.mk-btn-login {
  min-width: 78px;
  height: 32px !important;
  border-radius: 16px !important;
  border-color: rgba(120, 170, 255, 0.85) !important;
  background: transparent !important;
  color: #fff !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  font-weight: 600;
}

.mk-btn-register {
  min-width: 92px;
  height: 32px !important;
  border-radius: 16px !important;
  border: none !important;
  background: var(--mk-red-grad) !important;
  color: #fff !important;
  padding: 0 12px 0 22px !important;
  font-size: 12px !important;
  font-weight: 700;
}

.mk-btn-register .outlined-link__icon-l {
  left: 6px;
}

@media (min-width: 1024px) {
  .mk-bottom-nav,
  .floating-notification-btn,
  .mk-fab {
    display: none !important;
  }
}

/* Sticky bottom nav — exact PNG from mrking5019 mobile (crown sticking out) */
.mk-bottom-nav {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(6px + env(safe-area-inset-bottom));
  z-index: 320;
  height: var(--mk-bottom-h);
  max-height: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible;
  pointer-events: none;
}

.mk-bottom-nav__art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  background: transparent;
}

.mk-bottom-nav__hits {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72%;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr;
  pointer-events: none;
}

.mk-bottom-nav__hit {
  pointer-events: auto;
  display: block;
  height: 100%;
  text-decoration: none;
}

.mk-bottom-nav__hit--center {
  /* taller hit for crown + shield */
  margin-top: -40%;
  height: 140%;
}

/* FABs — match live floating-notification-btn above bottom nav */
.floating-notification-btn {
  bottom: calc(var(--mk-bottom-h) + env(safe-area-inset-bottom) + 4.2rem) !important;
  right: 0.85rem !important;
  z-index: 280 !important;
  cursor: pointer;
  border: none;
}

.floating-notification-btn i {
  color: #111 !important;
}

.mk-fab {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #f5a623;
  color: #111;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  position: fixed;
  right: 0.95rem;
  bottom: calc(var(--mk-bottom-h) + env(safe-area-inset-bottom) + 1.6rem);
  z-index: 280;
  cursor: pointer;
}

.mk-fab i {
  color: #111 !important;
  font-size: 20px;
}

.mk-fab--top {
  width: 40px;
  height: 40px;
  background: #d4a017;
}

/* Modal mobile polish */
#mk-modal-host[hidden] {
  display: none !important;
}

#mk-modal-host:not([hidden]) {
  display: flex !important;
}

.app-modal__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.app-notification__btn {
  cursor: pointer;
}

body.mk-modal-open {
  overflow: hidden;
}

@keyframes ripple {
  0% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.35);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.35);
  }
}

/* ===== Auth pages ===== */
.mk-auth {
  min-height: 100vh;
  background: var(--mk-navy);
  color: #fff;
  padding: calc(var(--header-height, 70px) + 8px) 12px calc(var(--mk-bottom-h) + 24px);
}

.mk-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 2px;
}

.mk-auth__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: #0e2258;
}

.mk-auth__tab.is-active {
  background: #3f8f27;
}

.mk-auth__promo {
  display: flex;
  align-items: stretch;
  min-height: 64px;
  margin-bottom: 16px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(90deg, #123a7a, #1a4f9c 55%, #2a6bb8);
  position: relative;
}

.mk-auth__promo-tag {
  background: #c2185b;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  align-self: flex-start;
  margin: 8px 0 0 8px;
}

.mk-auth__promo-text {
  flex: 1;
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 900;
  padding: 8px 12px;
  line-height: 1.15;
}

.mk-auth h1 {
  font-size: 26px;
  font-weight: 900;
  margin: 8px 0 10px;
}

.mk-auth__banner {
  background: #c2185b;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 10px;
  margin-bottom: 14px;
}

.mk-auth__field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0a1a44;
  border: 1px solid rgba(120, 160, 220, 0.45);
  border-radius: 8px;
  min-height: 46px;
  padding: 0 12px;
  margin-bottom: 10px;
}

.mk-auth__field i {
  color: #fff;
  opacity: 0.9;
}

.mk-auth__field input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.mk-auth__field input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.mk-auth__forgot {
  display: inline-block;
  color: #fff;
  font-size: 13px;
  margin: 4px 0 14px;
}

.mk-auth__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.mk-auth__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.mk-auth__btn--green {
  background: #3f8f27;
}

.mk-auth__btn--telegram {
  background: #0088cc;
}

.mk-auth__btn--full {
  grid-column: 1 / -1;
}

.mk-auth__or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  margin: 8px 0 12px;
}

.mk-auth__or::before,
.mk-auth__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

/* Cloudflare Turnstile mock */
.mk-turnstile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fafafa;
  color: #1f1f1f;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  padding: 12px 14px;
  max-width: 300px;
  margin: 8px 0 16px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 13px;
}

.mk-turnstile__box {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background: #fff;
  flex-shrink: 0;
}

.mk-turnstile__meta {
  margin-left: auto;
  text-align: right;
  font-size: 10px;
  color: #666;
  line-height: 1.2;
}

.mk-auth__slogan {
  background: #c2185b;
  color: #fff;
  text-align: center;
  font-weight: 900;
  font-size: 15px;
  padding: 12px 10px;
  letter-spacing: 0.02em;
}
