/* ==========================================================================
   MATKA KING PAGE  (matka.html)
   ========================================================================== */

/* ==========================================================================
   SHARED GAME-PAGE LAYOUT (banner, date strip, promo blocks)
   ========================================================================== */

/* ================================================================
   LUCKY 10 - GAME PAGE
   Updated typography / sizing to match the scale of your existing
   Lucky 10 CSS. Add this file AFTER your main css/style.css.
   ================================================================ */

:root {
  --l10-navy: #061630;
  --l10-dark-blue: #030f24;
  --l10-deep-blue: #091e3d;
  --l10-blue: #0b3b7c;
  --l10-gold: #f5b316;
  --l10-gold-dark: #e5a914;
  --l10-gold-border: #e6b022;
  --l10-yellow: #ffc928;
  --l10-text: #0a1931;
  --l10-muted: #4c5665;
}

/* ==========================================================================
   MATKA KING
   ========================================================================== */

/* ==========================================================================
   MATKA KING PAGE  (matka.html)
   Built from Game-matka-new.psd — 1440px canvas, 1280px content width.
   All classes prefixed "mk-" so they never collide with style.css / game-page.css
   ========================================================================== */

:root {
  --mk-navy: #142958;
  --mk-navy-deep: #041c41;
  --mk-ink: #111111;
  --mk-panel: #d3d3d3;
  --mk-page: #ededed;
  --mk-sidebar: #191c1e;
  --mk-pick: #ffb546;
  --mk-yellow: #faca43;
  --mk-gold: #f5b316;
  --mk-gold-text: #f2c14e;
  --mk-bet: #312783;
  --mk-red: #cb0505;

  /* market colours */
  --mk-disawar: #9c1006;
  --mk-disawar-day: #006b2d;
  --mk-disawar-noon: #f39200;
  --mk-delhi: #004899;
  --mk-delhi-bazar: #a14102;
  --mk-shree-ganesh: #6a0f5a;
  --mk-punjab-day: #009fe3;
  --mk-faridabad: #f32d01;
  --mk-ghaziabad: #119180;
  --mk-gali: #e50051;
}

.mk-page {
  font-family: "Montserrat", sans-serif;
  color: var(--mk-ink);
}

.mk-container {
  max-width: 1310px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- Shared section heading ---------- */

.mk-heading {
  text-align: center;
  margin-bottom: 78px;
}

.mk-heading h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  color: #000;
  letter-spacing: .3px;
}

.mk-heading > span {
  display: block;
  width: 520px;
  max-width: 80%;
  height: 1px;
  background: #9a9a9a;
  margin: 22px auto 18px;
}

.mk-heading p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.5;
  color: #222;
}

/* market colour helpers */

.mk-c-disawar {
  --mk-c: var(--mk-disawar);
}

.mk-c-disawar-day {
  --mk-c: var(--mk-disawar-day);
}

.mk-c-disawar-noon {
  --mk-c: var(--mk-disawar-noon);
}

.mk-c-delhi {
  --mk-c: var(--mk-delhi);
}

.mk-c-delhi-bazar {
  --mk-c: var(--mk-delhi-bazar);
}

.mk-c-shree-ganesh {
  --mk-c: var(--mk-shree-ganesh);
}

.mk-c-punjab-day {
  --mk-c: var(--mk-punjab-day);
}

.mk-c-faridabad {
  --mk-c: var(--mk-faridabad);
}

.mk-c-ghaziabad {
  --mk-c: var(--mk-ghaziabad);
}

.mk-c-gali {
  --mk-c: var(--mk-gali);
}

/* ==========================================================================
   1. WELCOME + PLAY BOARD
   ========================================================================== */

.mk-play {
  background: var(--mk-page);
  padding: 64px 0 48px;
  border-bottom: 1px solid #c4c4c4;
}

.mk-board {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 4px;
  align-items: stretch;
}

/* ---- Left market sidebar ---- */

.mk-markets {
  background: var(--mk-sidebar);
  border-radius: 8px;
  padding: 152px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mk-market-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border: 0;
  padding: 0 6px;
  background: var(--mk-c);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2px;
  cursor: pointer;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}

.mk-market-btn:hover {
  filter: brightness(1.08);
}

.mk-market-btn.is-active {
  box-shadow: inset 0 0 0 2px #fff;
}

.mk-market-btn.is-active::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-left-color: var(--mk-c);
  border-right: 0;
}

/* ---- Main grey panel ---- */

.mk-panel {
  background: var(--mk-panel);
  border-radius: 8px;
  padding: 0 12px 37px;
  min-width: 0;
}

.mk-panel-title {
  margin: 0 -12px 20px;
  background: var(--mk-navy);
  color: #fff;
  border-radius: 8px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .2px;
}

.mk-panel-body {
  display: grid;
  grid-template-columns: 690px minmax(0, 1fr);
  gap: 16px;
}

/* left: number picker */

.mk-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 47px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  margin: 0 29px;
  text-align: center;
  padding: 0 12px;
}

.mk-pill-navy {
  background: var(--mk-navy);
  color: #fff;
}

.mk-pill-yellow {
  background: var(--mk-yellow);
  color: #111;
  font-weight: 600;
  margin: 0 40px;
  border-radius: 10px;
}

.mk-note {
  font-size: 14px;
  line-height: 1.6;
  margin: 18px 0 40px 20px;
  color: #111;
}

.mk-note strong {
  color: var(--mk-red);
  font-weight: 600;
}

.mk-amount-note {
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  margin: 18px 10px 40px;
  color: #111;
}

.mk-grid {
  display: grid;
  grid-template-columns: repeat(10, 60px);
  gap: 12px 10px;
}

.mk-num {
  width: 60px;
  height: 60px;
  border: 1px solid #c9c9c9;
  background: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  padding: 0;
  transition: background-color .12s ease, transform .12s ease;
}

.mk-num:hover {
  background: #fff3df;
}

.mk-num.is-picked {
  background: var(--mk-pick);
  border-color: #e9a43c;
}

.mk-grid-foot {
  font-size: 14px;
  line-height: 2.1;
  margin: 50px 0 0 17px;
  max-width: 640px;
  color: #111;
}

/* right: amount table */

.mk-table-wrap {
  background: #fff;
  border: 1px solid #555;
  max-height: 712px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.mk-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 17px;
}

.mk-table th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  height: 52px;
  padding: 4px 2px;
  text-align: center;
  border-bottom: 1px solid #bdbdbd;
}

.mk-table td {
  height: 62px;
  text-align: center;
  font-weight: 700;
  border-bottom: 1px solid #d5d5d5;
  padding: 0 4px;
}

.mk-table th + th,
.mk-table td + td {
  border-left: 1px solid #bdbdbd;
}

.mk-table th:nth-child(4),
.mk-table td:nth-child(4) {
  border-left: 0;
}

.mk-table col.c-idx {
  width: 13%;
}

.mk-table col.c-num {
  width: 21%;
}

.mk-table col.c-enter {
  width: 31%;
}

.mk-table col.c-check {
  width: 19%;
}

.mk-table col.c-act {
  width: 16%;
}

.mk-amt {
  display: inline-flex;
  align-items: center;
  width: 92px;
  max-width: 100%;
  height: 46px;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  gap: 2px;
}

.mk-amt span {
  font-size: 14px;
}

.mk-amt input {
  width: 100%;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  background: transparent;
  padding: 0;
  -moz-appearance: textfield;
}

.mk-amt input::-webkit-outer-spin-button,
.mk-amt input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}

.mk-amt.is-invalid {
  border-color: var(--mk-red); box-shadow: 0 0 0 2px rgba(203,5,5,.15);
}

.mk-check {
  font-size: 17px; white-space: nowrap;
}

.mk-check small {
  font-size: 13px;
}

.mk-del {
  border: 0;
  background: none;
  color: #e60000;
  font-size: 17px;
  cursor: pointer;
  padding: 4px;
}

.mk-del:hover {
  color: #9c0000;
}

.mk-empty td {
  height: 120px;
  font-weight: 500;
  font-size: 14px;
  color: #666;
}

.mk-summary {
  padding: 18px 46px 0 16px;
}

.mk-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.mk-summary-row strong {
  font-size: 30px; font-weight: 700;
}

.mk-place-bet {
  display: block;
  width: 318px;
  max-width: 100%;
  height: 67px;
  margin: 26px 27px 0 auto;
  background: var(--mk-bet);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s ease;
}

.mk-place-bet:hover {
  filter: brightness(1.15);
}

.mk-msg {
  min-height: 20px;
  margin: 10px 27px 0 0;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Bet timing (bet starts / closes / result) ---------- */
.mk-timing {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 8px;
  margin: 14px 0 0;
}

.mk-time-box {
  background: #fff;
  border-radius: 6px;
  border-left: 4px solid #0a7d3b;
  padding: 6px 10px;
  line-height: 1.25;
}

.mk-time-box span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #555;
}

.mk-time-box strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.mk-time-box.is-close  { border-left-color: var(--mk-red); }
.mk-time-box.is-close strong { color: var(--mk-red); }
.mk-time-box.is-result { border-left-color: var(--mk-navy); }

.mk-status {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  padding: 6px 10px;
}

.mk-status:empty { display: none; }
.mk-status i { margin-right: 4px; }
.mk-status.is-open   { background: #e3f4e9; color: #075d2c; }
.mk-status.is-closed { background: #fde6e6; color: #9c0000; }

.mk-timing + .mk-status + .mk-note,
.mk-timing ~ .mk-note { margin: 10px 0 22px 4px; font-size: 13px; line-height: 1.5; }

/* closed state */
.mk-place-bet.is-closed {
  background: #8a8a99;
  cursor: not-allowed;
  font-size: 26px;
}
.mk-place-bet.is-closed:hover { filter: none; }

.mk-market-btn.is-closed::before {
  content: "\F47B";               /* bootstrap-icons lock-fill */
  font-family: "bootstrap-icons";
  position: absolute;
  top: 3px;
  right: 5px;
  font-size: 10px;
  font-weight: 400;
  opacity: .85;
}

/* keep the right column's table level with the number grid */
@media (min-width: 1300px) {
  .mk-amount-note { margin-bottom: 0; min-height: 127px; }
}

@media (max-width: 767px) {
  .mk-timing { grid-template-columns: 1fr 1fr; }
  .mk-time-box.is-result { grid-column: 1 / -1; }
}


/* ==========================================================================
   2. RESULTS
   ========================================================================== */

.mk-results {
  padding: 66px 0 86px;
  background-color: #fff;
  background-image:
  linear-gradient(30deg, rgba(0,0,0,.018) 12%, transparent 12.5%, transparent 87%, rgba(0,0,0,.018) 87.5%),
  linear-gradient(150deg, rgba(0,0,0,.018) 12%, transparent 12.5%, transparent 87%, rgba(0,0,0,.018) 87.5%),
  linear-gradient(60deg, rgba(0,0,0,.02) 25%, transparent 25.5%, transparent 75%, rgba(0,0,0,.02) 75%);
  background-size: 80px 140px;
}

.mk-results .mk-heading {
  margin-bottom: 40px;
}

.mk-result-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.mk-result-card {
  background: var(--mk-c);
  border: 1px solid #e1a700;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  padding: 12px 10px 11px;
  min-height: 210px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.mk-result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.mk-result-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.mk-result-date {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.mk-result-declare {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 9px;
}

.mk-result-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 58px;
  background: #fff;
  color: #000;
  font-size: 34px;
  font-weight: 700;
}

.mk-more {
  text-align: center;
  margin-top: 57px;
}

.mk-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 195px;
  height: 47px;
  border-radius: 6px;
  background: #223040;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background-color .15s ease;
}

.mk-more a:hover {
  background: var(--mk-navy); color: #fff;
}

/* ==========================================================================
   3. HOW IT WORKS
   ========================================================================== */

.mk-how {
  padding: 46px 0 50px;
  background-color: #f9f9f9;
  background-image: url("../images/how-it-works-bg.jpg");
  background-size: cover;
  background-position: center;
  border-top: 1px solid #eee;
}

.mk-how-layout {
  display: grid;
  grid-template-columns: minmax(0, 958px) 296px;
  justify-content: space-between;
  align-items: start;
  gap: 28px;
}

.mk-how .mk-heading {
  margin-bottom: 48px;
}

.mk-how .mk-heading h2 {
  color: #0b1d40;
  font-weight: 600;
}

.mk-how .mk-heading > span {
  width: 258px;
  background: #d4a531;
  margin: 18px auto 0;
}

.mk-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mk-step {
  min-height: 272px;
  border-radius: 22px;
  background: linear-gradient(180deg, #041c41 0%, #0d2a5c 45%, #1a4383 100%);
  color: #fff;
  text-align: center;
  padding: 34px 14px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.mk-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(4,28,65,.35);
}

.mk-step-icon {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 62px;
  line-height: 1;
  color: var(--mk-gold);
  margin-bottom: 24px;
}

.mk-step h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--mk-gold-text);
  margin: 0 0 14px;
  text-transform: uppercase;
}

.mk-step p {
  font-size: 12px;
  line-height: 1.85;
  margin: 0;
  font-weight: 500;
}

.mk-learn {
  text-align: center;
  margin-top: 66px;
}

.mk-learn a {
  color: #0b1d40;
  font-size: 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.mk-learn a i {
  font-size: 26px; transition: transform .2s ease;
}

.mk-learn a:hover i {
  transform: translateX(5px);
}

.mk-promo-tile {
  display: block;
  margin-top: 64px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

.mk-promo-tile img {
  display: block; width: 100%; height: auto;
}

/* ==========================================================================
   4. FULL-WIDTH BANNER
   ========================================================================== */

.mk-banner {
  display: block;
  background: #00061d;
  border-top: 2px solid #b8872a;
  line-height: 0;
}

.mk-banner img {
  display: block;
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   5. 18+ STRIP
   ========================================================================== */

.mk-age {
  position: relative;
  background: #fff url("../images/background-18.jpg") center / cover no-repeat;
  border-top: 1px solid #c5a24a;
  overflow: hidden;
}

.mk-age::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 15%; right: 15%;
  background: rgba(255,255,255,.95);
  box-shadow: -40px 0 40px rgba(255,255,255,.9), 40px 0 40px rgba(255,255,255,.9);
}

.mk-age-inner {
  position: relative;
  z-index: 1;
  min-height: 133px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 12px 150px 12px 165px;
}

.mk-age-left {
  display: flex;
  align-items: center;
  gap: 38px;
}

.mk-age-left img {
  width: 94px; height: auto; display: block;
}

.mk-age-title {
  white-space: nowrap;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
}

.mk-age-title .g {
  color: #e5a900;
}

.mk-age-title .n {
  color: #102345;
}

.mk-age-sub {
  white-space: nowrap;
  font-size: 18px;
  color: #444;
  letter-spacing: 1.5px;
  margin-top: 12px;
}

.mk-age-desc {
  max-width: 350px;
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
  letter-spacing: 1px;
  color: #222;
  margin: 0;
}

.mk-age-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 241px;
  height: 52px;
  border-radius: 8px;
  background: #0b1a3c;
  color: #e8b83f;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.mk-age-btn i {
  font-size: 24px;
}

.mk-age-btn:hover {
  background: #142958; color: #f5c94f;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1299px) {
  .mk-panel-body {
    grid-template-columns: 1fr;
  }

  .mk-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .mk-num {
    width: 100%; height: auto; aspect-ratio: 1 / 1;
  }

  .mk-pill,
  .mk-pill-yellow {
    margin: 0;
  }

  .mk-right {
    max-width: 560px; width: 100%; margin: 24px auto 0;
  }

  .mk-grid-foot {
    margin: 30px 0 0;
  }

  .mk-age-inner {
    padding: 12px 20px;
  }

  .mk-how-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

}

@media (max-width: 1199px) {
  .mk-result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mk-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mk-banner img {
    height: auto;
  }

}

@media (max-width: 991px) {
  .mk-board {
    grid-template-columns: 1fr; gap: 10px;
  }

  .mk-markets {
    padding: 10px;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
  }

  .mk-market-btn {
    width: auto; flex: 0 0 auto; height: 44px; padding: 0 16px; border-radius: 6px;
  }

  .mk-market-btn.is-active::after {
    display: none;
  }

  .mk-how-layout {
    grid-template-columns: 1fr;
  }

  .mk-promo-tile {
    max-width: 296px; margin: 30px auto 0;
  }

  .mk-age-inner {
    flex-direction: column; text-align: center; padding: 24px 16px; gap: 18px;
  }

  .mk-age::before {
    left: 0; right: 0;
  }

  .mk-heading {
    margin-bottom: 40px;
  }

}

@media (max-width: 767px) {
  .mk-play {
    padding: 40px 0 32px;
  }

  .mk-heading h2 {
    font-size: 24px;
  }

  .mk-panel-title {
    font-size: 16px; height: 50px;
  }

  .mk-pill {
    font-size: 15px; height: auto; min-height: 44px; padding: 8px 12px;
  }

  .mk-grid {
    gap: 6px;
  }

  .mk-num {
    font-size: 14px;
  }

  .mk-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  }

  .mk-result-card h3 {
    font-size: 17px; white-space: normal;
  }

  .mk-result-date {
    font-size: 14px;
  }

  .mk-result-declare {
    font-size: 12px;
  }

  .mk-steps {
    grid-template-columns: 1fr 1fr;
  }

  .mk-step {
    min-height: 0; padding: 24px 10px; border-radius: 16px;
  }

  .mk-step h3 {
    font-size: 15px;
  }

  .mk-step-icon {
    font-size: 44px; height: 52px; margin-bottom: 14px;
  }

  .mk-summary {
    padding: 18px 8px 0;
  }

  .mk-place-bet {
    margin: 20px auto 0; font-size: 24px; height: 56px;
  }

  .mk-msg {
    text-align: center; margin-right: 0;
  }

  .mk-age-left {
    gap: 18px;
  }

  .mk-age-title {
    font-size: 28px;
  }

}

@media (max-width: 479px) {
  .mk-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .mk-steps {
    grid-template-columns: 1fr;
  }

  .mk-table {
    font-size: 14px;
  }

  .mk-table th {
    font-size: 11px;
  }

  .mk-amt {
    width: 78px;
    padding: 0 5px;
  }

}
