/* Generated by scripts/build-global-dialogs-css.php from maikaja-game-hub.css – do not edit by hand. */
@font-face {
  font-family: 'Great Vibes';
  src: url('fonts/seasonal/great-vibes-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@keyframes mkFlamePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); filter: drop-shadow(0 0 6px #ff5722); }
}
@keyframes mkPulseBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.mk-quest-hub {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--mk-game-radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 #ffffff;
}
.mk-quest-hub-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.mk-quest-hub-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 850;
  color: #0f172a;
}
.mk-quest-hub-title i {
  color: #ea580c;
}
.mk-quest-counter {
  padding: 3px 9px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
}
.mk-quest-bonus-claimed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  color: #15803d;
}
.mk-quest-bonus-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid #d97706;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  animation: mkChestGlow 2s infinite ease-in-out;
  transition: transform 0.15s ease, background 0.15s ease;
}
.mk-quest-bonus-btn:hover {
  transform: scale(1.04);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}
@keyframes mkChestGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.25); }
  50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.6); }
}
.mk-quest-bonus-hint {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.mk-quest-bonus-hint i {
  color: #f59e0b;
}
.mk-quest-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mk-quest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--mk-game-radius-sm);
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.mk-quest-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.09);
  color: #0f172a;
}
.mk-quest-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
  background: #ffedd5;
  color: #ea580c;
  border: 1px solid #fed7aa;
}
.mk-quest-icon-daily_pantry {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}
.mk-quest-icon-daily_learn {
  background: #fef3c7;
  color: #d97706;
  border-color: #fde68a;
}
.mk-quest-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: transparent;
  transition: all 0.2s ease;
}
.mk-quest-body b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
.mk-quest-body small {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}
.mk-quest-reward {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  color: #c2410c;
  font-size: 11.5px;
  font-weight: 850;
  white-space: nowrap;
}
.mk-quest-item.is-completed {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.mk-quest-item.is-completed .mk-quest-check {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}
.mk-quest-item.is-completed .mk-quest-body b {
  color: #15803d;
}
.mk-quest-item.is-completed .mk-quest-reward {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}
.mk-fridge-close-btn {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.mk-fridge-close-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.mk-floating-cooking {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 24px));
  z-index: 9998;
  animation: mkSlideUpFloating 0.3s cubic-bezier(0.2, 0, 0, 1);
}
@media (min-width: 769px) {
.mk-floating-cooking {
    bottom: 24px;
    right: 24px;
    left: auto;
    transform: none;
    width: 380px;
  }
}
@keyframes mkSlideUpFloating {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.mk-floating-cooking-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid #ea580c;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(234, 88, 12, 0.15);
  color: #172b38;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mk-floating-cooking-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}
.mk-floating-cooking-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff0e6;
  color: #ea580c;
  border: 1px solid #ffd6be;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
  animation: mkPulseCooking 1.8s infinite;
}
@keyframes mkPulseCooking {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.mk-floating-cooking-body {
  flex: 1;
  min-width: 0;
}
.mk-floating-cooking-body strong {
  display: block;
  font-size: 13px;
  font-weight: 750;
  color: #172b38;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mk-floating-cooking-body small {
  display: block;
  font-size: 11px;
  color: #64748b;
}
.mk-floating-cooking-action {
  font-size: 12px;
  font-weight: 800;
  color: #ea580c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
.mk-quest-list {
    grid-template-columns: 1fr;
  }
}
@keyframes mkToastIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroTabProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}
@keyframes mkHeroTitleRise {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes mkHeroMetaRise {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes mkHeroDescRise {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes mkHeroActionsRise {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes mkHeroImgIn {
  0% {
    opacity: 0.65;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.mk-quest-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mk-quest-hub-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mk-quest-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.mk-quest-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}
.mk-quest-xp-pill {
  padding: 3px 10px;
  border-radius: 6px;
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #a16207;
  font-size: 12px;
  font-weight: 800;
}
.mk-quest-progress-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mk-quest-progress-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
}
.mk-quest-progress-track {
  width: 140px;
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.mk-quest-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
  transition: width 0.35s ease;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}
.mk-quest-steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.mk-quest-step-tile {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}
.mk-quest-step-tile:hover {
  border-color: #86efac;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.08);
}
.mk-quest-step-tile.is-done {
  border-color: #22c55e;
  background: #f0fdf4;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.12);
}
.mk-quest-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.mk-quest-step-num {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mk-quest-step-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  transition: all 0.2s ease;
  padding: 0;
}
.mk-quest-step-check:hover {
  border-color: #16a34a;
  color: #16a34a;
  background: #ecfdf5;
}
.mk-quest-step-check.is-checked {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.4);
}
.mk-quest-step-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mk-quest-step-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mk-quest-step-icon-row i {
  color: #ea580c;
  font-size: 14px;
}
.mk-quest-step-title {
  font-size: 14px;
  font-weight: 750;
  color: #0f172a;
}
.mk-quest-step-hint {
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}
.mk-quest-step-foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mk-quest-step-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 750;
  color: #ea580c;
  text-decoration: none;
  transition: color 0.16s ease;
}
.mk-quest-step-link:hover {
  color: #c2410c;
  text-decoration: underline;
}
.mk-quest-step-link i {
  font-size: 10px;
}

.mk-quest-step-tile.is-reward {
  border-color: #fde68a;
  background: #fffdf5;
}
.mk-quest-step-tile.is-reward.is-unlocked {
  border-color: #f59e0b;
  background: #fefce8;
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.2);
}
.mk-quest-reward-badge {
  color: #d97706;
  font-size: 17px;
}
.mk-quest-reward-xp {
  font-size: 12px;
  font-weight: 800;
  color: #b45309;
}
.mk-quest-claim-btn {
  width: 100%;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 750;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.mk-quest-claim-btn.is-ready {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fbbf24;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}
.mk-quest-claim-btn.is-ready:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.mk-quest-celebration-banner {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1.5px solid #86efac;
  animation: mkQuestCelebFade 0.35s ease;
}
@keyframes mkQuestCelebFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.mk-quest-celebration-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mk-quest-celebration-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.mk-quest-celebration-text {
  flex: 1;
}
.mk-quest-celebration-text strong {
  display: block;
  font-size: 14px;
  color: #065f46;
}
.mk-quest-celebration-text p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #047857;
}
.mk-quest-celebration-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 6px;
  background: #16a34a;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.mk-quest-celebration-cta:hover {
  background: #15803d;
  transform: translateX(2px);
}
@keyframes mkDotPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@media (max-width: 900px) {
.mk-quest-steps-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
.mk-quest-steps-row {
    grid-template-columns: 1fr;
  }
.mk-quest-hub-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
.mk-dark .mk-quest-title,
[data-theme="dark"] .mk-quest-title {
  color: #f1f5f9;
}
.mk-dark .mk-quest-step-tile,
[data-theme="dark"] .mk-quest-step-tile {
  background: #141f2e;
  border-color: rgba(255, 255, 255, 0.1);
}
.mk-dark .mk-quest-step-tile.is-done,
[data-theme="dark"] .mk-quest-step-tile.is-done {
  background: rgba(20, 55, 35, 0.6);
  border-color: #22c55e;
}
.mk-dark .mk-quest-step-title,
[data-theme="dark"] .mk-quest-step-title {
  color: #f1f5f9;
}
@keyframes mkBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.mk-dark .mk-quest-hub,
[data-theme="dark"] .mk-quest-hub {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.mk-dark .mk-quest-hub-title,
[data-theme="dark"] .mk-quest-hub-title {
  color: #ffffff;
}
.mk-dark .mk-quest-item,
[data-theme="dark"] .mk-quest-item {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.mk-dark .mk-quest-body b,
[data-theme="dark"] .mk-quest-body b {
  color: #ffffff;
}
.mk-dark .mk-quest-body small,
[data-theme="dark"] .mk-quest-body small {
  color: #94a3b8;
}

.mk-quests-dialog {
  border: 0;
  border-radius: 20px;
  padding: 0;
  background: transparent;
  max-width: 580px;
  width: min(92vw, 580px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}
.mk-quests-dialog::backdrop {
  background: rgba(5, 15, 25, 0.7);
  backdrop-filter: blur(8px);
}
.mk-quests-modal-shell {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 26px;
  color: #0f172a;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}
.mk-quests-modal-shell .mk-quest-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mk-quests-modal-shell .mk-quest-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.mk-quests-modal-shell .mk-quest-item:hover {
  background: #ffffff;
  border-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.12);
}
.mk-quests-modal-shell .mk-quest-body b {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.mk-quests-modal-shell .mk-quest-body small {
  font-size: 12px;
  color: #64748b;
}
.mk-quests-modal-shell .mk-quest-reward {
  font-size: 12px;
  padding: 4px 11px;
}
.mk-dark .mk-quests-modal-shell,
[data-theme="dark"] .mk-quests-modal-shell {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.mk-dark .mk-quests-modal-shell .mk-quest-item,
[data-theme="dark"] .mk-quests-modal-shell .mk-quest-item {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.mk-dark .mk-quests-modal-shell .mk-quest-item:hover,
[data-theme="dark"] .mk-quests-modal-shell .mk-quest-item:hover {
  background: #334155;
  border-color: rgba(255, 255, 255, 0.25);
}
.mk-dark .mk-quests-modal-shell .mk-quest-body b,
[data-theme="dark"] .mk-quests-modal-shell .mk-quest-body b {
  color: #ffffff;
}
.mk-dark .mk-quests-modal-shell .mk-quest-body small,
[data-theme="dark"] .mk-quests-modal-shell .mk-quest-body small {
  color: #94a3b8;
}
.mk-dark .mk-quest-icon-badge,
[data-theme="dark"] .mk-quest-icon-badge {
  background: rgba(234, 88, 12, 0.25);
  border-color: rgba(249, 115, 22, 0.4);
  color: #fdba74;
}
.mk-dark .mk-quest-icon-daily_pantry,
[data-theme="dark"] .mk-quest-icon-daily_pantry {
  background: rgba(14, 165, 233, 0.25);
  border-color: rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}
.mk-dark .mk-quest-icon-daily_learn,
[data-theme="dark"] .mk-quest-icon-daily_learn {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}
.mk-quests-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.mk-dark .mk-quests-modal-head,
[data-theme="dark"] .mk-quests-modal-head {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.mk-quests-modal-head h2 {
  font-size: 18px;
  font-weight: 850;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mk-quests-modal-bonus {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
}
.mk-dark .mk-quests-modal-bonus,
[data-theme="dark"] .mk-quests-modal-bonus {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fef08a;
}
.mk-quests-modal-bonus p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
@keyframes mk-gentle-swing {
  0% { transform: rotate(-4deg); }
  100% { transform: rotate(4deg); }
}
@keyframes mkChestReveal {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mkPsMarqueeUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes mkPsMarqueeDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}
@keyframes mkFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.mk-auth-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 500px;
  width: min(92vw, 500px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  box-shadow: none;
  overflow: hidden;
}
.mk-auth-dialog::backdrop {
  background: rgba(5, 10, 18, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: mkAuthBackdropFade 0.2s ease;
}
@keyframes mkAuthBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.mk-auth-dialog-card {
  border-radius: 26px;
  padding: 28px 28px 24px;
  position: relative;
  animation: mkAuthModalSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.mk-auth-dialog .mk-auth-dialog-card {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
@keyframes mkAuthModalSlide {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

html:not(.mk-dark) .mk-auth-dialog-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

html.mk-dark .mk-auth-dialog-card,
[data-theme="dark"] .mk-auth-dialog-card {
  background: linear-gradient(135deg, rgba(20, 29, 41, 0.95), rgba(14, 21, 31, 0.98));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e6edf5;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mk-auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.mk-auth-modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mk-auth-modal-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.16), rgba(255, 77, 0, 0.24));
  border: 1px solid rgba(255, 122, 0, 0.35);
  color: #ff7a00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.mk-auth-modal-brand-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  line-height: 1.1;
  display: block;
}
html:not(.mk-dark) .mk-auth-modal-brand-name { color: #0f172a; }
html.mk-dark .mk-auth-modal-brand-name, [data-theme="dark"] .mk-auth-modal-brand-name { color: #ffffff; }
.mk-auth-modal-brand-sub {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
html:not(.mk-dark) .mk-auth-modal-brand-sub { color: #64748b; }
html.mk-dark .mk-auth-modal-brand-sub, [data-theme="dark"] .mk-auth-modal-brand-sub { color: #94a3b8; }
.mk-auth-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s ease;
}
html:not(.mk-dark) .mk-auth-modal-close {
  color: #64748b;
  background: #f1f5f9;
}
html:not(.mk-dark) .mk-auth-modal-close:hover {
  color: #0f172a;
  background: #e2e8f0;
}
html.mk-dark .mk-auth-modal-close, [data-theme="dark"] .mk-auth-modal-close {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
}
html.mk-dark .mk-auth-modal-close:hover, [data-theme="dark"] .mk-auth-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.mk-auth-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 22px;
}
html:not(.mk-dark) .mk-auth-modal-tabs {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
html.mk-dark .mk-auth-modal-tabs, [data-theme="dark"] .mk-auth-modal-tabs {
  background: rgba(11, 17, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mk-auth-modal-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.15s ease;
}
html:not(.mk-dark) .mk-auth-modal-tab {
  color: #64748b;
}
html:not(.mk-dark) .mk-auth-modal-tab.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
html.mk-dark .mk-auth-modal-tab, [data-theme="dark"] .mk-auth-modal-tab {
  color: #94a3b8;
}
html.mk-dark .mk-auth-modal-tab.is-active, [data-theme="dark"] .mk-auth-modal-tab.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.mk-auth-tab-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.16);
  color: #ff7a00;
}

.mk-auth-modal-intro h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
html:not(.mk-dark) .mk-auth-modal-intro h2 { color: #0f172a; }
html.mk-dark .mk-auth-modal-intro h2, [data-theme="dark"] .mk-auth-modal-intro h2 { color: #ffffff; }
.mk-auth-modal-intro p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}
html:not(.mk-dark) .mk-auth-modal-intro p { color: #64748b; }
html.mk-dark .mk-auth-modal-intro p, [data-theme="dark"] .mk-auth-modal-intro p { color: #94a3b8; }

.mk-auth-modal-quest-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 16px;
  background: rgba(255, 122, 0, 0.08);
  border: 1px solid rgba(255, 122, 0, 0.25);
}
.mk-auth-quest-icon {
  font-size: 18px;
  color: #ff7a00;
}
.mk-auth-quest-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mk-auth-quest-text b {
  font-size: 13px;
  font-weight: 750;
  color: #ff7a00;
}
.mk-auth-quest-text small {
  font-size: 11.5px;
}
html:not(.mk-dark) .mk-auth-quest-text small { color: #64748b; }
html.mk-dark .mk-auth-quest-text small, [data-theme="dark"] .mk-auth-quest-text small { color: #cbd5e1; }
.mk-auth-quest-xp {
  font-size: 13px;
  font-weight: 900;
  color: #ffb800;
  background: rgba(255, 184, 0, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.mk-auth-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mk-auth-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mk-auth-modal-field label {
  font-size: 13px;
  font-weight: 700;
}
html:not(.mk-dark) .mk-auth-modal-field label { color: #334155; }
html.mk-dark .mk-auth-modal-field label, [data-theme="dark"] .mk-auth-modal-field label { color: #cbd5e1; }
.mk-auth-modal-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mk-auth-modal-forgot {
  font-size: 12.5px;
  font-weight: 600;
  color: #ff7a00;
  text-decoration: none;
}
.mk-auth-modal-forgot:hover {
  text-decoration: underline;
}
.mk-auth-modal-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.mk-auth-modal-input-wrap > i:first-child {
  position: absolute;
  left: 14px;
  font-size: 15px;
  color: #94a3b8;
  pointer-events: none;
}
.mk-auth-modal-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 40px;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.15s ease;
  outline: none;
}
html:not(.mk-dark) .mk-auth-modal-input-wrap input {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
}
html:not(.mk-dark) .mk-auth-modal-input-wrap input:focus {
  border-color: #ff7a00;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
}
html.mk-dark .mk-auth-modal-input-wrap input,
[data-theme="dark"] .mk-auth-modal-input-wrap input {
  background: rgba(10, 16, 23, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
html.mk-dark .mk-auth-modal-input-wrap input:focus,
[data-theme="dark"] .mk-auth-modal-input-wrap input:focus {
  border-color: #ff7a00;
  background: rgba(10, 16, 23, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.25);
}
.mk-auth-modal-eye {
  position: absolute;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}
.mk-auth-modal-eye:hover {
  color: #ff7a00;
}
.mk-auth-modal-legal {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}
html:not(.mk-dark) .mk-auth-modal-legal { color: #64748b; }
html.mk-dark .mk-auth-modal-legal, [data-theme="dark"] .mk-auth-modal-legal { color: #94a3b8; }
.mk-auth-modal-legal a {
  color: #ff7a00;
  text-decoration: underline;
}

.mk-auth-modal-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  width: 100%;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #ff7a00 0%, #ff4d00 100%);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 94, 0, 0.35);
  transition: all 0.16s ease;
  margin-top: 4px;
}
.mk-auth-modal-submit:hover {
  background: linear-gradient(135deg, #ff8a1a 0%, #ff5e1a 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 94, 0, 0.45);
}
.mk-auth-modal-submit:active {
  transform: translateY(1px);
}

.mk-auth-modal-divider {
  display: flex;
  align-items: center;
  margin: 18px 0 14px;
  text-align: center;
}
.mk-auth-modal-divider::before,
.mk-auth-modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid;
}
html:not(.mk-dark) .mk-auth-modal-divider::before,
html:not(.mk-dark) .mk-auth-modal-divider::after { border-color: #e2e8f0; }
html.mk-dark .mk-auth-modal-divider::before,
html.mk-dark .mk-auth-modal-divider::after,
[data-theme="dark"] .mk-auth-modal-divider::before,
[data-theme="dark"] .mk-auth-modal-divider::after { border-color: rgba(255, 255, 255, 0.1); }
.mk-auth-modal-divider span {
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
html:not(.mk-dark) .mk-auth-modal-divider span { color: #94a3b8; }
html.mk-dark .mk-auth-modal-divider span,
[data-theme="dark"] .mk-auth-modal-divider span { color: #64748b; }

.mk-auth-modal-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  width: 100%;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
html:not(.mk-dark) .mk-auth-modal-google {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
html:not(.mk-dark) .mk-auth-modal-google:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}
html.mk-dark .mk-auth-modal-google,
[data-theme="dark"] .mk-auth-modal-google {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: #e6edf5;
}
html.mk-dark .mk-auth-modal-google:hover,
[data-theme="dark"] .mk-auth-modal-google:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.mk-auth-modal-switch-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13.5px;
}
html:not(.mk-dark) .mk-auth-modal-switch-box { color: #64748b; }
html.mk-dark .mk-auth-modal-switch-box, [data-theme="dark"] .mk-auth-modal-switch-box { color: #94a3b8; }
.mk-auth-modal-link {
  border: 0;
  background: transparent;
  color: #ff7a00;
  font-weight: 750;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.mk-auth-modal-link:hover {
  color: #ff4d00;
}
@keyframes mkMosaicPanelFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mk-auth-modal-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mk-auth-modal-brand-logo img {
  height: 32px;
  width: auto;
  display: block;
}
@keyframes mkMagnetRaysSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
