/* Jodi Digit only; the active tenant supplies the palette. */
.mobile-shell .mp-shell.game-jodi_digit {
  --jd-brand: var(--theme-primary,#007c76);
  --jd-deep: var(--theme-primary-deep,#00615d);
  --jd-ink: #173447;
  --jd-muted: #607581;
  --jd-surface: #fff;
  --jd-soft: color-mix(in srgb,var(--jd-brand) 6%,white);
  --jd-line: color-mix(in srgb,var(--jd-brand) 19%,white);
  --jd-shadow: color-mix(in srgb,var(--jd-deep) 12%,transparent);
  background: linear-gradient(var(--jd-soft),#f6f9fb);
  color: var(--jd-ink);
}
html[data-app-theme=neon] .mobile-shell .mp-shell.game-jodi_digit {
  --jd-ink: #e6f3fc; --jd-muted: #adc2d2; --jd-surface: #142332;
  --jd-soft: #1a2d40; --jd-line: color-mix(in srgb,var(--jd-brand) 40%,#203043);
  background: #0e1824;
}
.mobile-shell .game-jodi_digit .mp-header {
  min-height: 56px; padding: 7px 10px !important; gap: 7px;
  border-radius: 0 0 17px 17px;
  background: radial-gradient(ellipse at 12% 0,#ffffff26,transparent 65%),linear-gradient(120deg,var(--jd-brand),var(--jd-deep)) !important;
  box-shadow: 0 4px 12px var(--jd-shadow);
}
.mobile-shell .game-jodi_digit .mp-header h1 {
  font: 900 clamp(14px,4vw,18px)/1.15 Arial,sans-serif;
  color: white !important;
  white-space: normal; overflow: visible; overflow-wrap: anywhere; letter-spacing: .01em;
}
.mobile-shell .game-jodi_digit .mp-back { width: 30px; height: 32px; }
.mobile-shell .game-jodi_digit .mp-back::before { font-size: 25px !important; }
.mobile-shell .game-jodi_digit .mp-wallet-pill { min-height: 32px !important; padding: 0 8px; gap: 4px; font-size: 11px; background: color-mix(in srgb,var(--jd-deep) 78%,black); }
.mobile-shell .game-jodi_digit .mp-wallet-mark { width: 21px; height: 21px; font-size: 12px; }
.mobile-shell .game-jodi_digit .mp-content { padding: 10px 10px 105px !important; }
.mobile-shell .game-jodi_digit .mp-mode-tabs { gap: 8px; padding: 0 0 9px; }
.mobile-shell .game-jodi_digit .mp-mode-tab { min-height: 43px; padding: 5px 8px; gap: 6px; color: var(--jd-ink); border: 1px solid var(--jd-line); border-radius: 12px; background: var(--jd-surface); box-shadow: 0 3px 8px var(--jd-shadow); }
.mobile-shell .game-jodi_digit .mp-mode-tab.active { color: white; border-color: transparent; background: linear-gradient(120deg,var(--jd-brand),var(--jd-deep)) !important; }
.mobile-shell .game-jodi_digit .mp-mode-icon { font-size: 19px; color: var(--jd-brand); }
.mobile-shell .game-jodi_digit .mp-mode-tab.active .mp-mode-icon { color: white; }
.mobile-shell .game-jodi_digit .mp-mode-tab.active strong,
.mobile-shell .game-jodi_digit .mp-mode-tab.active small { color: white !important; }
.mobile-shell .game-jodi_digit .mp-mode-tab strong { font-size: 11px; }
.mobile-shell .game-jodi_digit .mp-mode-tab small { font-size: 9px; margin-top: 2px; }
.mobile-shell .game-jodi_digit .mp-row-2 { gap: 8px; margin: 0 0 9px; }
.mobile-shell .game-jodi_digit .mp-field-box { min-height: 35px; padding: 6px 9px; border: 1px solid var(--jd-line); background: var(--jd-surface); color: var(--jd-ink); font-size: 11px; }
.mobile-shell .game-jodi_digit .mp-jodi-filter-panel { position: relative; padding: 6px; margin-bottom: 10px; border: 1px solid var(--jd-line); border-radius: 13px; background: var(--jd-surface); box-shadow: 0 4px 12px var(--jd-shadow); }
.mobile-shell .game-jodi_digit .mp-jodi-filter-heading { display: none; }
.mobile-shell .game-jodi_digit .mp-jodi-filter-heading strong { font: 800 12px Arial,sans-serif; }
.mobile-shell .game-jodi_digit .mp-jodi-filter-heading > span { font: 500 10px Arial,sans-serif; color: var(--jd-muted); }
.mobile-shell .game-jodi_digit .mp-jodi-filters { display: grid; grid-template-columns: 1.35fr repeat(10,minmax(0,1fr)); gap: 3px; }
.mobile-shell .game-jodi_digit .mp-jodi-filter { min-width: 0; min-height: 34px; padding: 5px 0; border: 1px solid var(--jd-line); border-radius: 8px; background: linear-gradient(var(--jd-surface),var(--jd-soft)); color: var(--jd-brand); font: 800 13px Arial,sans-serif; box-shadow: 0 2px 0 var(--jd-line); cursor: pointer; transition: transform 120ms ease,box-shadow 120ms ease; }
.mobile-shell .game-jodi_digit .mp-jodi-filter:first-child { font-size: 11px; }
.mobile-shell .game-jodi_digit .mp-jodi-filter.active { background: linear-gradient(140deg,var(--jd-brand),var(--jd-deep)); color: white; border-color: transparent; box-shadow: 0 3px 9px var(--jd-shadow),inset 0 1px 0 #ffffff55; }
.mobile-shell .game-jodi_digit .mp-jodi-filter:active { transform: translateY(1px) scale(.96); }
.mobile-shell .game-jodi_digit .mp-jodi-filter:focus-visible { outline: 2px solid var(--jd-brand); outline-offset: 2px; }
.mobile-shell .game-jodi_digit .mp-jodi-filter-note { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; font-size: 10px; }
.mobile-shell .game-jodi_digit .mp-jodi-filter-note span { font-weight: 700; color: var(--jd-ink); }
.mobile-shell .game-jodi_digit .mp-jodi-grid { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: none !important; grid-auto-flow: row; grid-auto-rows: 45px; gap: 7px; margin: 0 0 12px; }
.mobile-shell .game-jodi_digit .mp-jodi-row { min-width: 0; min-height: 45px; border: 1px solid var(--jd-line); border-radius: 11px; background: var(--jd-surface); box-shadow: 0 3px 8px var(--jd-shadow); }
.mobile-shell .game-jodi_digit .mp-jodi-label { width: 31px; min-width: 31px; border-radius: 9px; background: linear-gradient(140deg,var(--jd-brand),var(--jd-deep)); color: white; font: 800 16px Arial,sans-serif; }
.mobile-shell .game-jodi_digit .mp-jodi-points { width: 0; min-width: 0; height: 35px; margin: 4px; padding: 0 2px; border: 1px solid var(--jd-line); background: var(--jd-soft); color: var(--jd-ink); font: 700 16px Arial,sans-serif; text-align: center; }
.mobile-shell .game-jodi_digit .mp-jodi-points::placeholder { font-size: 10px; color: var(--jd-muted); opacity: 1; }
.mobile-shell .game-jodi_digit .mp-jodi-points { appearance: textfield; -moz-appearance: textfield; }
.mobile-shell .game-jodi_digit .mp-jodi-points::-webkit-inner-spin-button,
.mobile-shell .game-jodi_digit .mp-jodi-points::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mobile-shell .game-jodi_digit .mp-jodi-points:focus-visible { outline: 2px solid var(--jd-brand); outline-offset: 1px; }
.mobile-shell .game-jodi_digit .mp-jodi-points.invalid { border-color: #c5374d; background: #fff0f2; color: #991b35; }
.mobile-shell .game-jodi_digit .mp-jodi-row:has(input:not(:placeholder-shown)) { border-color: var(--jd-brand); }
.mobile-shell .game-jodi_digit .mp-bottom-bar { min-height: 60px; padding: 8px 10px; background: var(--jd-surface); color: var(--jd-ink); border-top: 1px solid var(--jd-line); }
.mobile-shell .game-jodi_digit .mp-bottom-bar .mp-stat strong { color: var(--jd-ink); }
.mobile-shell .game-jodi_digit .mp-submit-btn { min-height: 43px; border-radius: 12px; background: linear-gradient(120deg,var(--jd-brand),var(--jd-deep)) !important; box-shadow: 0 4px 10px var(--jd-shadow); }
.mobile-shell .game-jodi_digit .mp-plain-field { min-height: 45px; color: var(--jd-ink); background: var(--jd-surface); border-color: var(--jd-line); }
@media (min-width:480px) { .mobile-shell .game-jodi_digit .mp-jodi-grid { gap: 9px; } }
.mobile-shell .game-jodi_digit .mp-jodi-groups[data-grouped=true] { display: grid; gap: 13px; margin-bottom: 12px; }
.mobile-shell .game-jodi_digit .mp-jodi-groups[data-grouped=true] .mp-jodi-series {
  position: relative; min-width: 0; padding: 7px; overflow: hidden;
  border: 1px solid var(--jd-line); border-left: 3px solid var(--jd-brand);
  border-radius: 16px; background: var(--jd-surface); box-shadow: 0 4px 12px var(--jd-shadow);
  animation: jd-series-enter 260ms ease-out both; animation-delay: var(--jd-series-delay,0ms);
}
.mobile-shell .game-jodi_digit .mp-jodi-groups[data-grouped=true] .mp-jodi-series:nth-child(even) { background: var(--jd-soft); border-left-color: var(--jd-deep); }
.mobile-shell .game-jodi_digit .mp-jodi-groups[data-grouped=true] .mp-jodi-grid { margin-bottom: 0; }
.mobile-shell .game-jodi_digit .mp-jodi-series-heading { display: flex; align-items: center; gap: 8px; min-height: 34px; margin-bottom: 9px; color: var(--jd-ink); }
.mobile-shell .game-jodi_digit .mp-jodi-series-badge { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border-radius: 10px; background: linear-gradient(145deg,var(--jd-brand),var(--jd-deep)); color: white; font: 900 19px Arial,sans-serif; box-shadow: inset 0 1px 0 #ffffff66,0 3px 7px var(--jd-shadow); }
.mobile-shell .game-jodi_digit .mp-jodi-series-heading div { display: flex; flex-direction: column; gap: 2px; }
.mobile-shell .game-jodi_digit .mp-jodi-series-heading small { color: var(--jd-muted); font: 700 9px Arial,sans-serif; letter-spacing: .08em; }
.mobile-shell .game-jodi_digit .mp-jodi-series-heading strong { color: var(--jd-ink); font: 800 13px Arial,sans-serif; }
.mobile-shell .game-jodi_digit .mp-jodi-series-heading i { position: relative; overflow: hidden; flex: 1; height: 2px; margin-left: 6px; background: linear-gradient(90deg,var(--jd-line),transparent); }
.mobile-shell .game-jodi_digit .mp-jodi-series-heading i::after { content: ''; position: absolute; width: 40%; height: 100%; background: linear-gradient(90deg,transparent,var(--jd-brand),transparent); animation: jd-series-sweep 650ms ease-out both; animation-delay: var(--jd-series-delay,0ms); }
@keyframes jd-series-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes jd-series-sweep { from { transform: translateX(-110%); } to { transform: translateX(360%); } }
@media (prefers-reduced-motion:reduce) { .mobile-shell .game-jodi_digit .mp-jodi-filter { transition: none; } }
@media (prefers-reduced-motion:reduce) { .mobile-shell .game-jodi_digit .mp-jodi-series,.mobile-shell .game-jodi_digit .mp-jodi-series-heading i::after { animation: none !important; } }
