/* Bidding UI — fully responsive (mobile → desktop), inputs always readable */
.sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}
.bid-page{
  --bid-gap:10px;
  --bid-pad:12px;
  --bid-inp-h:48px;
  --bid-inp-fs:18px;
  box-sizing:border-box;
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:var(--bid-pad) var(--bid-pad) calc(28px + env(safe-area-inset-bottom,0px));
  background:#eef3f8;
  overflow-x:clip;
}
.bid-page *,
.bid-page *::before,
.bid-page *::after{box-sizing:border-box}

.bid-form{
  width:100%;
  background:#fff;
  border-radius:12px;
  padding:16px var(--bid-pad) 24px;
  box-shadow:0 2px 12px rgba(0,0,0,.06);
}

.bid-title{
  margin:0 0 8px;
  font-size:clamp(18px,4.5vw,26px) !important;
  font-weight:800;
  color:#0b3d6e;
  text-transform:uppercase;
  line-height:1.25;
  word-break:break-word;
}
.bid-desc{
  margin:0 0 14px;
  font-size:15px !important;
  color:#334;
  line-height:1.45;
}
.bid-sub{
  margin:0 0 12px;
  font-size:16px !important;
  color:#05386b;
  font-weight:700;
}

/* Market + date — always stack on phone, 2-col from tablet */
.bid-top{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--bid-gap);
  margin:0 0 16px;
  width:100%;
}
.bid-top .sele-area,
.bid-top .sele-date-area,
.bid-field{min-width:0;width:100%}

.sele-area select,
.sele-date-area select,
.bid-market,
.dropdownselect,
.bid-page select.form-control{
  display:block;
  width:100% !important;
  max-width:100%;
  min-height:var(--bid-inp-h);
  height:auto;
  font-size:16px !important;
  line-height:1.35;
  border:1.5px solid #cfd8e3;
  border-radius:8px;
  padding:10px 12px !important;
  margin:0;
  background:#fff;
  color:#123;
  -webkit-appearance:none;
  appearance:none;
}

/* Date is display-only (not clickable) */
.bid-date-display{
  display:flex;
  align-items:center;
  width:100%;
  min-height:var(--bid-inp-h);
  margin:0;
  padding:10px 12px !important;
  font-size:16px !important;
  line-height:1.35;
  font-weight:600;
  border:1.5px solid #cfd8e3;
  border-radius:8px;
  background:#eef2f7;
  color:#334;
  cursor:default;
  pointer-events:none;
  user-select:none;
}

.digit-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  min-height:40px;
  border:1px solid #d4af37;
  background:linear-gradient(180deg,#ffe7a0,#e5cc4e);
  color:#1a1200;
  font-size:18px !important;
  font-weight:800;
  padding:6px 14px;
  border-radius:8px;
  margin:14px 0 10px;
}

.sing-option{
  margin-bottom:12px;
  width:100%;
}

/* Number cells: ALWAYS number on top + full-width input (no clip) */
.bid-num-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(148px,1fr));
  gap:var(--bid-gap);
  width:100%;
}
.bid-num-list.bid-jodi{
  grid-template-columns:repeat(auto-fill,minmax(136px,1fr));
}
.bid-num-list li{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  gap:6px;
  min-width:0;
  width:100%;
  background:#f4f7fb;
  border:1px solid #dbe3ee;
  border-radius:10px;
  padding:10px;
}
.bid-num-list .b-num{
  display:block;
  width:100%;
  font-weight:800;
  font-size:clamp(15px,3.8vw,18px) !important;
  color:#05386b;
  text-align:center;
  line-height:1.2;
  letter-spacing:.02em;
}

/* Qty inputs — fluid, never clipped */
.bid-num-list .bid-qty,
.bid-page .nc-ch,
.bid-page .bid-qty-single,
.bid-page .sangam-box .form-control,
.bid-page .sing-half .form-control{
  display:block;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  min-height:var(--bid-inp-h) !important;
  height:var(--bid-inp-h) !important;
  border:1.5px solid #b8c5d6 !important;
  border-radius:8px !important;
  padding:8px 6px !important;
  margin:0 !important;
  font-size:var(--bid-inp-fs) !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  text-align:center !important;
  color:#0b1c2c !important;
  background:#fff !important;
  overflow:visible !important;
  -webkit-appearance:none;
  appearance:none;
  touch-action:manipulation;
}
.bid-num-list .bid-qty:focus,
.bid-page .nc-ch:focus,
.bid-page .bid-qty-single:focus,
.bid-page .sangam-box .form-control:focus,
.bid-page .sing-half .form-control:focus{
  outline:2px solid #44e18d;
  outline-offset:1px;
  border-color:#05386b !important;
}

.total-point{
  margin:18px 0 14px;
  font-size:clamp(16px,4vw,20px) !important;
  font-weight:800;
  color:#0b3d6e;
  text-align:center;
}
.play-butt{
  margin-top:8px;
  display:flex;
  justify-content:center;
}

/* Sticky bid summary — bidding screens only */
.bid-sticky{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:1050;
  padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));
  background:#05386b;
  border-top:2px solid #d4af37;
  box-shadow:0 -4px 14px rgba(5,56,107,.3);
}
.bid-sticky-inner{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr auto;
  gap:6px;
  align-items:stretch;
}
.bid-sticky-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  min-width:0;
}
.bid-stat{
  min-width:0;
  background:#0f2a44;
  border:1px solid rgba(212,175,55,.45);
  border-radius:8px;
  padding:4px 6px;
  text-align:center;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.bid-stat-label{
  display:block;
  font-size:9px !important;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:#b8c9db;
  margin-bottom:0;
  line-height:1.2;
}
.bid-stat-value{
  display:block;
  font-size:14px !important;
  font-weight:800;
  color:#ffe7a0;
  line-height:1.15;
}
.inp-play-butt{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-width:104px;
  max-width:100%;
  min-height:44px;
  height:100%;
  padding:0 12px;
  border:0;
  border-radius:8px;
  background:#44e18d;
  color:#05301a;
  font-size:13px !important;
  font-weight:800;
  cursor:pointer;
  touch-action:manipulation;
  box-shadow:none;
  white-space:nowrap;
}
.inp-play-butt:hover{background:#3ad182}
.inp-play-butt:active{opacity:.92;transform:translateY(1px)}
.inp-play-butt:focus-visible{
  outline:2px solid #ffe7a0;
  outline-offset:2px;
}
.bid-submit-full{display:none}
.bid-submit-short{display:inline}

/* Space so content isn't hidden under sticky bar */
body.bid-screen,
body.inner-body:has(.bid-page){
  padding-bottom:calc(72px + env(safe-area-inset-bottom,0px)) !important;
}
body.bid-screen .bid-page,
body.inner-body:has(.bid-page) .bid-page{
  padding-bottom:8px;
}
body.bid-screen .site-footer,
body.inner-body:has(.bid-page) .site-footer{
  margin-bottom:4px;
}

/* Hide FABs on bidding screens (no flash / glitch) */
body.bid-screen .contact-fab-stack,
body.bid-screen .top-fab,
body.inner-body:has(.bid-page) .contact-fab-stack,
body.inner-body:has(.bid-page) .top-fab{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
  opacity:0 !important;
}

@media(min-width:560px){
  .bid-sticky{
    padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));
  }
  .bid-sticky-inner{gap:12px}
  .bid-sticky-stats{max-width:360px;gap:8px}
  .bid-stat{padding:8px 10px;border-radius:10px}
  .bid-stat-label{font-size:11px !important;margin-bottom:2px}
  .bid-stat-value{font-size:18px !important}
  .inp-play-butt{
    min-width:180px;
    min-height:48px;
    padding:0 22px;
    font-size:16px !important;
    border-radius:10px;
  }
  .bid-submit-full{display:inline}
  .bid-submit-short{display:none}
  body.bid-screen,
  body.inner-body:has(.bid-page){
    padding-bottom:calc(96px + env(safe-area-inset-bottom,0px)) !important;
  }
}

@media(min-width:900px){
  .bid-sticky{padding:12px 20px}
  .bid-stat-value{font-size:20px !important}
  .inp-play-butt{min-height:52px;min-width:200px;font-size:17px !important;padding:0 28px}
}

/* Sangam */
.sangam-box{margin:8px 0 12px;width:100%}
.sangam-row{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-bottom:14px;
  padding:14px 12px;
  background:#f4f7fb;
  border-radius:10px;
  border:1px solid #dbe3ee;
}
/* display:grid overrides native [hidden] — force hide */
.sangam-row[hidden],
.sangam-row.is-hidden{
  display:none !important;
}
.sangam-session-label{
  grid-column:1 / -1;
  margin:0 0 2px;
  font-size:13px !important;
  font-weight:700;
  color:#05386b;
}
.bid-closed-msg{
  margin:10px 0 0;
  padding:10px 12px;
  border-radius:8px;
  background:#fff4e5;
  border:1px solid #f0c36d;
  color:#5c3b00;
  font-size:14px !important;
  font-weight:600;
}
.sing-half{min-width:0;width:100%}
.sing-half label{
  display:block;
  font-size:14px !important;
  font-weight:700;
  margin-bottom:6px;
  color:#05386b;
}

/* Play-option chooser */
.play-option-page{
  max-width:960px;
  margin:0 auto;
  padding:16px 12px 32px;
}
.play-option-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 8px;
}
.play-option-page h1{
  margin:0;
  color:#0b3d6e;
  font-size:clamp(20px,5vw,28px) !important;
}
.play-option-sub{
  margin:0 0 12px;
  font-size:16px !important;
  color:#0b3d6e;
}
.play-option-meta{
  margin:0 0 18px;
  color:#445;
  font-size:15px !important;
}
.play-option-closed{
  margin:0 0 16px;
  padding:12px 14px;
  border-radius:10px;
  background:#fff4f4;
  border:1px solid #f0c0c0;
  color:#8a1f1f;
  font-size:15px !important;
  line-height:1.45;
}
.play-option-page .mkt-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:4px 10px;
  border-radius:6px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.03em;
  line-height:1.15;
  white-space:nowrap;
}
.play-option-page .mkt-badge.is-running{background:rgba(16,140,70,.14);color:#0d7a3d}
.play-option-page .mkt-badge.is-running-close{background:rgba(180,120,0,.14);color:#9a6400}
.play-option-page .mkt-badge.is-closed{background:rgba(180,40,40,.12);color:#a03030}
.play-option-page .mkt-badge.is-holiday{background:rgba(40,80,160,.12);color:#2a4f9a}
.play-option-grid{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.play-option-grid a,
.play-option-disabled{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 14px;
  border-radius:10px;
  font-weight:800;
  font-size:16px !important;
  text-align:center;
}
.play-option-grid a{
  background:#05386b;
  color:#fff !important;
  text-decoration:none !important;
}
.play-option-disabled{
  background:#e8ecf1;
  color:#6a7585;
  cursor:not-allowed;
}
.play-option-grid a:hover,
.play-option-grid a:focus-visible{
  background:#0b4f8f;
  outline:2px solid #44e18d;
  outline-offset:2px;
}

/* ===== Breakpoints ===== */
@media(max-width:359px){
  .bid-num-list,
  .bid-num-list.bid-jodi{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(min-width:560px){
  .bid-page{
    --bid-pad:16px;
    --bid-gap:12px;
  }
  .bid-top{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
  .bid-num-list{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
  .bid-num-list.bid-jodi{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
  .sangam-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .play-option-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(min-width:768px){
  .bid-page{
    --bid-inp-h:50px;
    --bid-inp-fs:17px;
    padding:20px 20px 48px;
  }
  .bid-form{padding:22px 20px 28px}
  .bid-num-list{grid-template-columns:repeat(auto-fill,minmax(152px,1fr))}
  .bid-num-list.bid-jodi{grid-template-columns:repeat(auto-fill,minmax(142px,1fr))}
  .play-option-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(min-width:992px){
  .bid-page{
    --bid-inp-h:48px;
    --bid-inp-fs:16px;
  }
  .bid-form{padding:24px 28px 32px}
  .bid-num-list{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:12px}
  .bid-num-list.bid-jodi{grid-template-columns:repeat(auto-fill,minmax(136px,1fr))}
  .bid-num-list li{padding:12px}
  .play-option-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
