.official-lottery-page-shell {
  background: #07152b;
  color: #f6f8ff;
}

.official-lottery-page-shell .page-titlebar {
  border-bottom: 1px solid #203453;
  background: #0b1b35;
}

.official-lottery-page-shell .page-body {
  padding: 0 10px 24px;
  overflow-x: hidden;
}

.official-lottery {
  width: 100%;
  padding-top: 8px;
}

.lottery-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  min-height: 142px;
  overflow: hidden;
  border: 1px solid #2b4775;
  border-radius: 7px;
  background-position: center;
  background-size: cover;
}

.lottery-hero[style*="ssqxc-hero"] {
  background-color: #3a1c05;
  background-position: right center;
}

.lottery-hero-copy {
  align-self: center;
  min-width: 0;
  padding: 14px 12px 58px;
}

.lottery-hero-copy span {
  display: block;
  margin-bottom: 4px;
  color: #49dfb5;
  font-size: 10px;
  font-weight: 800;
}

.lottery-hero-copy h1 {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: 19px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lottery-hero-copy p {
  max-width: 190px;
  margin: 7px 0 0;
  color: #b8c6dc;
  font-size: 11px;
  line-height: 1.55;
}

.lottery-issue-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 6px;
  border-left: 1px solid rgba(129, 160, 208, .28);
  background: rgba(4, 15, 33, .72);
  text-align: center;
}

.lottery-issue-card span,
.lottery-issue-card small {
  color: #aebbd0;
  font-size: 10px;
}

.lottery-issue-card strong {
  margin-top: 3px;
  color: #fff;
  font-size: 13px;
}

.lottery-issue-card b {
  margin: 8px 0 3px;
  color: #ffd76a;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.lottery-latest-result {
  position: absolute;
  right: 112px;
  left: 12px;
  bottom: 10px;
}

.lottery-latest-result > span {
  display: block;
  margin-bottom: 4px;
  color: #9fb0ca;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.lottery-latest-balls {
  display: flex;
  gap: 6px;
}

.lottery-latest-balls i,
.lottery-record-balls i {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: #102038;
  background:
    radial-gradient(circle at 34% 23%, #fff5c9 0%, #ffdf86 39%, #e9b247 76%, #c78b26 100%);
  font-style: normal;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: none;
  box-shadow: inset 0 0 0 1px #ffe8a1, inset 0 -2px 0 #bd842c, 0 2px 3px rgba(0, 0, 0, .26);
}

.lottery-latest-balls i::after,
.lottery-record-balls i::after {
  position: absolute;
  top: 13%;
  left: 22%;
  width: 22%;
  height: 8%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  content: "";
  pointer-events: none;
  transform: rotate(-25deg);
}

.lottery-latest-balls i {
  width: 26px;
  height: 26px;
  font-size: 14px;
}

.lottery-main-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px;
  border: 1px solid #263e65;
  border-radius: 7px;
  background: #10213e;
}

.lottery-main-tabs button {
  position: relative;
  display: flex;
  min-width: 0;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  color: #aebbd0;
  background: transparent;
  font-size: 11px;
}

.lottery-main-tabs button:not(:last-child) {
  border-right: 1px solid #213755;
}

.lottery-main-tabs button.active {
  color: #4be0b4;
  background: #173454;
}

.lottery-main-tabs button.active::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 2px;
  content: "";
  background: #42d7ad;
}

.lottery-main-tabs svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lottery-tab-panel {
  margin-top: 8px;
}

.lottery-bet-layout {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.lottery-play-menu {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #263e65;
  border-radius: 7px;
  background: #0e1d37;
}

.lottery-play-menu header {
  display: flex;
  height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  border-bottom: 1px solid #263e65;
}

.lottery-play-menu header strong {
  font-size: 12px;
}

.lottery-play-menu header span {
  color: #7188ad;
  font-size: 8px;
}

.lottery-play-menu > div {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: visible;
  scrollbar-width: none;
}

.lottery-play-menu > div::-webkit-scrollbar {
  display: none;
}

.lottery-play-menu button {
  width: 100%;
  min-height: 38px;
  padding: 5px 4px;
  border: 0;
  border-bottom: 1px solid #223a5d;
  border-radius: 0;
  color: #b9c6da;
  background: #10213d;
  font-size: 10px;
  line-height: 1.3;
  white-space: normal;
}

.lottery-play-menu button.active {
  box-shadow: inset 3px 0 #45ddb1;
  color: #07241e;
  background: #45ddb1;
  font-weight: 800;
}

.lottery-play-menu-group {
  display: block;
  border-bottom: 1px solid #223a5d;
}

.lottery-play-menu-group > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-bottom: 0;
}

.lottery-play-menu-group > button i {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}

.lottery-play-menu-group.expanded > button i {
  transform: rotate(225deg) translate(-1px, -1px);
}

.lottery-play-submenu {
  padding: 3px 0 5px;
  background: #09182e;
}

.lottery-play-submenu button {
  min-height: 30px;
  padding: 4px 3px 4px 9px;
  border-bottom: 0;
  color: #8297b6;
  background: transparent;
  font-size: 8px;
  text-align: left;
}

.lottery-play-submenu button.active {
  box-shadow: inset 2px 0 #45ddb1;
  color: #45ddb1;
  background: rgba(69, 221, 177, .08);
}

.lottery-bet-workspace,
.lottery-record-panel,
.lottery-rules-panel,
.lottery-login-state {
  overflow: hidden;
  border: 1px solid #263e65;
  border-radius: 7px;
  background: #0e1d37;
}

.lottery-bet-workspace {
  min-width: 0;
}

.lottery-play-scroll {
  min-width: 0;
}

.lottery-play-scroll > .lottery-rebate-control {
  margin: 10px;
}

.lottery-bet-layout > .lottery-bet-footer {
  grid-column: 2;
}

.lottery-play-heading {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-bottom: 1px solid #263e65;
}

.lottery-play-heading > div {
  min-width: 0;
}

.lottery-play-heading strong {
  display: block;
  font-size: 14px;
}

.lottery-play-heading p {
  margin: 4px 0 0;
  color: #8298ba;
  font-size: 10px;
  line-height: 1.45;
}

.lottery-play-heading > button {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #3b5784;
  border-radius: 5px;
  color: #dce5f4;
  background: #1b3153;
  font-size: 10px;
}

.lottery-position-board {
  padding: 2px 10px 10px;
}

.lottery-fixed-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding-top: 7px;
}

.lottery-fixed-presets button {
  min-height: 30px;
  border: 1px solid #304a73;
  border-radius: 5px;
  color: #aebdd2;
  background: #10213d;
  font-size: 9px;
}

.lottery-fixed-presets button.active {
  border-color: #45ddb1;
  color: #07241e;
  background: #45ddb1;
  font-weight: 800;
}

.lottery-position-limit {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #1d3151;
  color: #91a5c3;
  font-size: 9px;
}

.lottery-position-limit b {
  color: #45ddb1;
}

.lottery-position-row.selected .lottery-position-label strong {
  color: #45ddb1;
}

.lottery-position-row.locked {
  opacity: .48;
}

.lottery-position-row button:disabled {
  cursor: not-allowed;
}

.lottery-position-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 6px;
  row-gap: 8px;
  padding: 10px 0 12px;
  border-bottom: 1px solid #1d3151;
}

.lottery-position-row:last-child {
  border-bottom: 0;
}

.lottery-position-label {
  display: flex;
  min-height: 22px;
  align-items: center;
  justify-content: flex-start;
}

.lottery-position-label strong {
  font-size: 13px;
}

.lottery-position-label span {
  display: none;
}

.lottery-number-area {
  display: contents;
}

.lottery-number-tools,
.lottery-present-tools {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 7px;
}

.lottery-number-tools button,
.lottery-present-tools button {
  width: 100%;
  min-width: 0;
  height: 22px;
  border: 1px solid #314b74;
  border-radius: 4px;
  color: #9fb0ca;
  background: #172a48;
  font-size: 9px;
}

.lottery-position-row .lottery-number-tools {
  margin-bottom: 0;
}

.lottery-number-grid,
.lottery-present-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.lottery-position-row .lottery-number-grid {
  grid-column: 1 / -1;
}

.lottery-number-grid button,
.lottery-present-grid button {
  aspect-ratio: 1;
  min-width: 0;
  max-height: 38px;
  border: 1px solid #36517d;
  border-radius: 50%;
  color: #e8edf6;
  background: #182b49;
  font-size: 13px;
  font-weight: 800;
}

.lottery-number-grid button {
  width: min(100%, 44px);
  height: auto;
  max-height: none;
  justify-self: center;
  font-size: 15px;
}

.lottery-number-grid button.active,
.lottery-present-grid button.active {
  border-color: #f4cc67;
  color: #06182d;
  background: #f4cc67;
  box-shadow: 0 0 0 2px rgba(244, 204, 103, .12);
}

.lottery-inline-play-select {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  overflow-x: auto;
  border-bottom: 1px solid #203553;
  scrollbar-width: none;
}

.lottery-inline-play-select::-webkit-scrollbar {
  display: none;
}

.lottery-inline-play-select span,
.lottery-inline-play-select button {
  flex: 0 0 auto;
}

.lottery-inline-play-select span {
  color: #8da0bd;
  font-size: 10px;
}

.lottery-inline-play-select button {
  height: 29px;
  padding: 0 9px;
  border: 1px solid #344e76;
  border-radius: 5px;
  color: #b9c6d9;
  background: #152946;
  font-size: 10px;
}

.lottery-inline-play-select button.active {
  border-color: #48dcb2;
  color: #08231e;
  background: #48dcb2;
  font-weight: 800;
}

.lottery-present-board {
  padding: 12px 10px 18px;
}

.lottery-double-present {
  display: grid;
  gap: 1px;
  background: #203553;
}

.lottery-double-present section {
  padding: 12px 10px 16px;
  background: #0e1d37;
}

.lottery-double-present section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lottery-double-present section > header strong {
  color: #f4cc67;
  font-size: 12px;
}

.lottery-double-present section > header span {
  color: #7187a8;
  font-size: 9px;
}

.lottery-present-grid {
  grid-template-columns: repeat(5, 42px);
  justify-content: center;
  gap: 10px 13px;
  padding-top: 8px;
}

.lottery-option-groups {
  padding: 10px;
}

.lottery-option-groups section + section {
  margin-top: 12px;
}

.lottery-option-groups h3 {
  margin: 0 0 7px;
  color: #b9c8de;
  font-size: 11px;
}

.lottery-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.lottery-option-grid button {
  display: flex;
  min-width: 0;
  min-height: 56px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 3px;
  border: 1px solid #304a73;
  border-radius: 6px;
  color: #ecf1f8;
  background: #142641;
}

.lottery-option-grid button.active {
  border-color: #f4cc67;
  background: #243751;
  box-shadow: inset 0 0 0 1px rgba(244, 204, 103, .22);
}

.lottery-option-grid span {
  overflow-wrap: anywhere;
  font-size: 10px;
}

.lottery-option-grid strong {
  color: #f4cc67;
  font-size: 13px;
}

.lottery-input-tool {
  padding: 10px;
}

.lottery-input-tool > p {
  margin: 0 0 8px;
  color: #8fa1bd;
  font-size: 10px;
  line-height: 1.5;
}

.lottery-input-tool textarea {
  display: block;
  width: 100%;
  min-height: 176px;
  padding: 10px;
  resize: vertical;
  border: 1px solid #304a73;
  border-radius: 5px;
  outline: 0;
  color: #f4f7fb;
  background: #07152a;
  font: 12px/1.7 Consolas, monospace;
}

.lottery-input-actions {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}

.lottery-input-actions button,
.lottery-file-button {
  display: inline-flex;
  height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #38547e;
  border-radius: 5px;
  color: #dbe3ef;
  background: #1b3153;
  font-size: 10px;
}

.lottery-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lottery-file-button { cursor: pointer; }
.lottery-file-button:focus-within { outline: 2px solid #45ddb1; outline-offset: 2px; }

.lottery-entry-tool {
  min-width: 0;
  background: #0d1c34;
}

.lottery-entry-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 8px 10px 0;
  background: #10213c;
}

.lottery-entry-mode-tabs-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 8px;
}

.lottery-entry-mode-tabs button {
  min-width: 0;
  min-height: 34px;
  padding: 5px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #8499b8;
  background: #132641;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.lottery-entry-mode-tabs button.active {
  border-bottom-color: #45ddb1;
  color: #45ddb1;
  background: #18344b;
  font-weight: 800;
}

.lottery-quick-add {
  margin: 10px 10px 0;
  padding: 9px;
  border: 1px solid #2f4b74;
  border-radius: 6px;
  background: #09182e;
}

.lottery-quick-add header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.lottery-quick-add header strong { font-size: 11px; }
.lottery-quick-add header span { color: #7187a7; font-size: 8px; text-align: right; }

.lottery-quick-add > div {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(92px, .7fr) 82px;
  gap: 6px;
}
.lottery-filter-tool .lottery-quick-entry.embedded {
  margin-top: 14px;
  border: 1px solid rgba(77, 150, 255, .2);
  border-radius: 6px;
  background: rgba(8, 20, 43, .34);
}
.lottery-filter-tool > .lottery-rebate-control {
  margin: 14px 0 0;
}
.lottery-filter-tool .lottery-quick-entry.embedded .lottery-tool-title {
  border-bottom-color: rgba(77, 150, 255, .16);
}

.lottery-quick-add label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0 7px;
  border: 1px solid #344f78;
  border-radius: 5px;
  background: #10213d;
}

.lottery-quick-add label span { color: #8398b7; font-size: 8px; white-space: nowrap; }
.lottery-quick-add input { width: 100%; min-width: 0; height: 34px; border: 0; outline: 0; color: #fff; background: transparent; font-size: 11px; }
.lottery-quick-add button { min-width: 0; border: 0; border-radius: 5px; color: #06231d; background: #45ddb1; font-size: 10px; font-weight: 800; }

.lottery-entry-diagnostics {
  margin-top: 9px;
  border-top: 1px solid #243b5d;
}

.lottery-entry-diagnostics > ul {
  margin: 8px 0 0;
  padding: 8px 10px 8px 26px;
  border: 1px solid rgba(255, 104, 113, .36);
  border-radius: 5px;
  color: #ff9aa2;
  background: rgba(255, 80, 92, .07);
  font-size: 9px;
  line-height: 1.65;
}

.lottery-entry-diagnostics > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 210px;
  padding-top: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.lottery-entry-diagnostics article {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #294469;
  border-radius: 5px;
  background: #0a1930;
}

.lottery-entry-diagnostics article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.lottery-entry-diagnostics article strong,
.lottery-entry-diagnostics article span {
  font-size: 9px;
}

.lottery-entry-diagnostics article strong {
  color: #f4cc67;
}

.lottery-entry-diagnostics article span {
  flex: 0 0 auto;
  color: #45ddb1;
}

.lottery-entry-diagnostics article p {
  margin: 5px 0 0;
  color: #a9b9ce;
  font-size: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.lottery-entry-diagnostics > small {
  display: block;
  margin-top: 7px;
  color: #7187a8;
  font-size: 8px;
  text-align: center;
}

.lottery-entry-empty {
  grid-column: 1 / -1;
  margin: 10px 0;
  color: #7187a8;
  font-size: 9px;
  text-align: center;
}

.lottery-legacy-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 10px;
  border-bottom: 1px solid #203553;
}

.lottery-legacy-rules label {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #294469;
  border-radius: 5px;
  background: #0a1930;
}

.lottery-legacy-rules label > span {
  color: #d4deeb;
  font-size: 10px;
  font-weight: 700;
}

.lottery-legacy-rules input[type="text"],
.lottery-legacy-rules input:not([type]) {
  min-width: 0;
}

.lottery-legacy-rules input[data-legacy-filter] {
  width: 100%;
  height: 31px;
  padding: 0 7px;
  border: 1px solid #344f78;
  border-radius: 4px;
  outline: 0;
  color: #e2e9f3;
  background: #10213d;
  font-size: 10px;
}

.lottery-legacy-rules small {
  color: #687f9f;
  font-size: 8px;
  line-height: 1.35;
}

.lottery-legacy-check {
  align-content: center;
  grid-template-columns: 18px minmax(0, 1fr) !important;
}

.lottery-legacy-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #45ddb1;
}

.lottery-legacy-check small {
  grid-column: 1 / -1;
}

.lottery-upload-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-bottom: 1px solid #203553;
}

.lottery-upload-picker > div {
  min-width: 0;
}

.lottery-upload-picker strong,
.lottery-upload-picker span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lottery-upload-picker strong {
  color: #dce5f1;
  font-size: 10px;
}

.lottery-upload-picker span {
  margin-top: 3px;
  color: #7188aa;
  font-size: 8px;
}

.lottery-upload-picker > button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid #3a547d;
  border-radius: 5px;
  color: #c5d1e1;
  background: #172c4b;
  font-size: 9px;
}

.lottery-upload-empty {
  display: grid;
  min-height: 150px;
  place-content: center;
  gap: 5px;
  padding: 20px;
  color: #7188aa;
  text-align: center;
}

.lottery-upload-empty strong {
  color: #b9c8da;
  font-size: 12px;
}

.lottery-upload-empty span {
  font-size: 9px;
}

.lottery-upload-list {
  padding: 0 10px 10px;
}

.lottery-upload-list > header,
.lottery-upload-list > article {
  display: grid;
  grid-template-columns: 72px 86px minmax(0, 1fr) minmax(90px, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.lottery-upload-list > header {
  min-height: 36px;
  color: #7188aa;
  font-size: 8px;
}

.lottery-upload-list > article {
  min-height: 50px;
  padding: 6px 0;
  border-top: 1px solid #203553;
}

.lottery-upload-list label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #a9b9cf;
  font-size: 9px;
}

.lottery-upload-list input {
  accent-color: #45ddb1;
}

.lottery-upload-list article > strong {
  min-width: 0;
  color: #f3f6fa;
  font: 11px/1.35 Consolas, monospace;
  overflow-wrap: anywhere;
}

.lottery-upload-list article > div span,
.lottery-upload-list article > div small,
.lottery-upload-list article > div em {
  display: block;
  font-size: 8px;
  font-style: normal;
}

.lottery-upload-list article > div span,
.lottery-upload-list article > div em {
  color: #45ddb1;
}

.lottery-upload-list article > div small {
  margin-top: 3px;
  color: #7188aa;
}

.lottery-upload-list article > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
}

.lottery-upload-list article > div:last-child button {
  flex: 0 0 auto;
  height: 25px;
  padding: 0 7px;
  border: 1px solid rgba(255, 99, 111, .4);
  border-radius: 4px;
  color: #ff929a;
  background: rgba(255, 81, 95, .08);
  font-size: 8px;
}

.lottery-upload-list article.invalid {
  opacity: .72;
}

.lottery-upload-list article.invalid > div em {
  color: #ff929a;
}

.lottery-upload-list {
  padding: 0 12px 12px;
}

.lottery-upload-toolbar,
.lottery-upload-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 44px;
  color: #a9b9cf;
  font-size: 11px;
}

.lottery-upload-toolbar label {
  font-size: 11px;
  cursor: pointer;
}

.lottery-upload-toolbar input,
.lottery-upload-table input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
}

.lottery-upload-table {
  overflow-x: auto;
  border: 1px solid #294469;
  border-radius: 8px;
  background: #101f37;
}

.lottery-upload-table > header,
.lottery-upload-table > article {
  display: grid;
  min-width: 580px;
  grid-template-columns: 66px minmax(92px, 1.2fr) minmax(86px, 1fr) minmax(104px, .8fr) minmax(122px, 1.1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
}

.lottery-upload-table > header {
  min-height: 39px;
  color: #a9b9cf;
  background: #182c4c;
  font-size: 11px;
}

.lottery-upload-table > article {
  min-height: 57px;
  border-top: 1px solid #263954;
}

.lottery-upload-table > article:nth-child(odd) {
  background: rgba(39, 63, 96, .2);
}

.lottery-upload-table > article > strong {
  min-width: 0;
  overflow: hidden;
  color: #f4cc67;
  font: 700 13px/1.35 Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lottery-upload-play { color: #dbe5f1; font-size: 12px; }

.lottery-upload-amount input {
  width: 100%;
  max-width: 132px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #416088;
  border-radius: 5px;
  color: #f3f6fa;
  background: #0b1930;
  font-size: 12px;
}

.lottery-upload-amount input:focus-visible {
  outline: 2px solid #45ddb1;
  outline-offset: 1px;
}

.lottery-upload-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.lottery-upload-status em {
  min-width: 0;
  color: #45ddb1;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.lottery-upload-status button,
.lottery-upload-pages button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #3a547d;
  border-radius: 5px;
  color: #dbe5f1;
  background: #1b3153;
  cursor: pointer;
}

.lottery-upload-status button { color: #ff9ca4; }
.lottery-upload-pages button:disabled { opacity: .45; cursor: default; }
.lottery-upload-table > article.invalid { background: rgba(147, 52, 67, .13); }
.lottery-upload-table > article.invalid .lottery-upload-status em { color: #ff9ca4; }

.desktop-game .lottery-upload-tool .lottery-tool-title strong { font-size: 16px; }
.desktop-game .lottery-upload-tool .lottery-tool-title span { font-size: 12px; }
.desktop-game .lottery-upload-picker strong { font-size: 13px; }
.desktop-game .lottery-upload-picker span { font-size: 11px; }
.desktop-game .lottery-upload-picker { padding: 12px; }
.desktop-game .lottery-upload-table > header { font-size: 12px; }

.lottery-bet-footer {
  padding: 10px;
  border-top: 1px solid #263e65;
  background: #0a1930;
}

.lottery-bet-summary {
  display: flex;
  height: 31px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 8px;
  border-radius: 5px;
  color: #b5c3d8;
  background: #172c4d;
  font-size: 10px;
}

.lottery-bet-summary strong,
.lottery-bet-summary em {
  color: #f4cc67;
  font-style: normal;
}

.lottery-bet-summary em {
  margin-left: 7px;
}

.lottery-amount-row {
  display: block;
}

.lottery-rebate-control {
  display: grid;
  gap: 7px;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid #38547d;
  border-radius: 5px;
  background: #08162b;
}

.lottery-rebate-control > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lottery-rebate-control span { color: #879bb9; font-size: 9px; }
.lottery-rebate-control strong { color: #f4cc67; font-size: 11px; }
.lottery-rebate-control small { color: #60789b; font-size: 8px; }
.lottery-rebate-control.disabled { opacity: .72; }

.lottery-rebate-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: center;
  gap: 8px;
}

.lottery-rebate-inputs > input { width: 100%; accent-color: #45ddb1; }
.lottery-rebate-inputs label { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; height: 30px; padding: 0 7px; border: 1px solid #344f78; border-radius: 4px; background: #10213d; }
.lottery-rebate-inputs label input { width: 100%; min-width: 0; border: 0; outline: 0; color: #fff; background: transparent; font-size: 10px; text-align: right; }
.lottery-rebate-inputs label b { color: #45ddb1; font-size: 9px; }

.lottery-amount-row label {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid #38547d;
  border-radius: 5px;
  background: #08162b;
}

.lottery-amount-row label > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lottery-amount-row label span,
.lottery-amount-row label b {
  color: #879bb9;
  font-size: 9px;
  white-space: nowrap;
}

.lottery-amount-row label b {
  color: #4cddb3;
}

.lottery-amount-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.lottery-bet-actions {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 7px;
  margin-top: 7px;
}

.lottery-bet-actions > button {
  min-width: 0;
  height: 38px;
  border: 1px solid #3a557e;
  border-radius: 5px;
  color: #dce4f0;
  background: #1b3153;
  font-size: 11px;
  font-weight: 700;
}

.lottery-bet-actions > button.primary {
  border-color: #f4cc67;
  color: #122039;
  background: #f4cc67;
}

.lottery-bet-actions > button:disabled {
  opacity: .55;
}

.lottery-quick-launch {
  display: grid;
  min-height: 260px;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 24px;
  color: #8398b8;
  text-align: center;
}

.lottery-quick-launch > span {
  color: #45ddb1;
  font-size: 8px;
}

.lottery-quick-launch > strong {
  color: #eef3fa;
  font-size: 16px;
}

.lottery-quick-launch > p {
  margin: 0 0 8px;
  font-size: 10px;
}

.lottery-quick-launch > button {
  min-width: 140px;
  height: 38px;
  border: 0;
  border-radius: 5px;
  color: #06231d;
  background: #45ddb1;
  font-weight: 800;
}

.lottery-bet-footer > small {
  display: block;
  margin-top: 7px;
  color: #60789b;
  font-size: 9px;
  line-height: 1.45;
}

.lottery-record-panel > header {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #263e65;
}

.lottery-record-panel > header strong,
.lottery-record-panel > header span {
  display: block;
}

.lottery-record-panel > header strong {
  font-size: 13px;
}

.lottery-record-panel > header span {
  margin-top: 3px;
  color: #8196b6;
  font-size: 9px;
}

.lottery-record-panel > header button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #38547e;
  border-radius: 5px;
  color: #cbd6e7;
  background: #1a3051;
  font-size: 10px;
}

.lottery-record-head-actions,
.lottery-order-actions > div {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
}

.lottery-history-list article,
.lottery-order-list article {
  padding: 11px 10px;
  border-bottom: 1px solid #1d3150;
}

.lottery-history-list article:last-child,
.lottery-order-list article:last-child {
  border-bottom: 0;
}

.lottery-history-list article {
  display: grid;
  grid-template-columns: 80px 112px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.lottery-record-issue strong,
.lottery-record-issue span {
  display: block;
}

.lottery-record-issue strong {
  font-size: 11px;
}

.lottery-record-issue span {
  margin-top: 3px;
  color: #748bad;
  font-size: 8px;
}

.lottery-record-balls {
  display: flex;
  gap: 4px;
}

.lottery-record-balls i {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

.lottery-record-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.lottery-record-tags span {
  padding: 3px 5px;
  border-radius: 4px;
  color: #9fb0ca;
  background: #1a2e4c;
  font-size: 8px;
}

.lottery-draw-proof {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(69, 221, 177, .18);
  border-radius: 5px;
  color: #8da3c3;
  background: rgba(69, 221, 177, .05);
  font-size: 8px;
  text-decoration: none;
}

.lottery-draw-proof b {
  min-width: 0;
  overflow: hidden;
  color: #b8c8db;
  font-family: Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lottery-draw-proof em {
  color: #45ddb1;
  font-style: normal;
}

.lottery-order-list article > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lottery-order-list article > div:first-child strong {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lottery-order-list article > div:first-child span {
  flex: 0 0 auto;
  color: #7187a8;
  font-size: 8px;
}

.lottery-order-list dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 9px 0 0;
  padding: 8px;
  border-radius: 5px;
  background: #142744;
}

.lottery-order-list dl div {
  min-width: 0;
  padding: 0 6px;
  border-right: 1px solid #263d60;
}

.lottery-order-list dl div:last-child {
  border-right: 0;
}

.lottery-order-list dt,
.lottery-order-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.lottery-order-list dt {
  color: #7389aa;
  font-size: 8px;
}

.lottery-order-list dd {
  margin-top: 3px;
  color: #edf2f9;
  font-size: 10px;
}

.lottery-order-list dd.is-won {
  color: #48ddb2;
}

.lottery-order-list dd.is-lost {
  color: #ff7280;
}

.lottery-order-list article > p {
  margin: 8px 0 0;
  color: #8ca0bf;
  font-size: 9px;
}

.lottery-order-list article > p b {
  color: #f4cc67;
}

.lottery-order-selection,
.lottery-order-result {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.lottery-order-selection span,
.lottery-order-result span {
  flex: 0 0 auto;
  color: #7187a8;
}

.lottery-order-selection b,
.lottery-order-result b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lottery-order-result em {
  color: #48ddb2;
  font-style: normal;
}

.lottery-order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed #294266;
}

.lottery-order-actions span {
  min-width: 0;
  color: #8298b8;
  font-size: 8px;
}

.lottery-order-actions button {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #3a557e;
  border-radius: 5px;
  color: #dce5f2;
  background: #1a3152;
  font-size: 10px;
}

.lottery-order-actions button.danger,
.lottery-chase-list button.danger {
  border-color: #92505d;
  color: #ff8791;
  background: #321d2c;
}

.lottery-chase-list article {
  padding: 11px 10px;
  border-bottom: 1px solid #1d3150;
}

.lottery-chase-list article > header,
.lottery-chase-list article > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lottery-chase-list header strong,
.lottery-chase-list header span {
  display: block;
}

.lottery-chase-list header strong {
  font-size: 11px;
}

.lottery-chase-list header span,
.lottery-chase-list footer span {
  margin-top: 3px;
  color: #7187a8;
  font-size: 8px;
}

.lottery-chase-list header > b {
  color: #45ddb1;
  font-size: 10px;
}

.lottery-chase-list header > b.is-cancelled,
.lottery-chase-list header > b.is-failed {
  color: #ff8791;
}

.lottery-chase-list article > p {
  margin: 9px 0 0;
  color: #d7c277;
  font-size: 9px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.lottery-chase-list dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 9px 0;
  padding: 8px;
  border-radius: 5px;
  background: #142744;
}

.lottery-chase-list dt,
.lottery-chase-list dd {
  margin: 0;
  text-align: center;
}

.lottery-chase-list dt {
  color: #7187a8;
  font-size: 8px;
}

.lottery-chase-list dd {
  margin-top: 3px;
  font-size: 9px;
}

.lottery-chase-list footer {
  padding-top: 8px;
  border-top: 1px dashed #294266;
}

.lottery-chase-list footer button {
  height: 28px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: 9px;
}

.lottery-pager {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid #263e65;
}

.lottery-pager button {
  height: 28px;
  padding: 0 12px;
  border: 1px solid #38547e;
  border-radius: 5px;
  color: #d6e0ef;
  background: #1a3051;
  font-size: 10px;
}

.lottery-pager button:disabled {
  opacity: .4;
}

.lottery-pager span {
  color: #8398b7;
  font-size: 10px;
}

.lottery-rules-copy {
  padding: 12px;
  color: #b8c6da;
  font-size: 11px;
  line-height: 1.7;
}

.lottery-rules-copy p:first-child {
  margin-top: 0;
}

.lottery-rules-table {
  border-top: 1px solid #263e65;
}

.lottery-rules-table > div {
  display: grid;
  grid-template-columns: 80px 54px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 9px;
  border-bottom: 1px solid #1d3150;
}

.lottery-rules-table > div:first-child {
  min-height: 34px;
  color: #91a5c2;
  background: #172b49;
  font-size: 10px;
}

.lottery-rules-table span,
.lottery-rules-table b,
.lottery-rules-table p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 9px;
}

.lottery-rules-table b {
  color: #f4cc67;
}

.lottery-rules-table p {
  color: #7f95b5;
  line-height: 1.45;
}

.lottery-login-state {
  padding: 24px 14px;
  text-align: center;
}

.lottery-login-state > button {
  width: 160px;
  height: 38px;
  margin-top: 12px;
  border: 0;
  border-radius: 5px;
  color: #102039;
  background: #f4cc67;
  font-weight: 800;
}

.lottery-tool-title {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-bottom: 1px solid #263e65;
  background: #10213c;
}

.lottery-tool-title strong,
.lottery-tool-title span {
  display: block;
}

.lottery-tool-title strong {
  font-size: 13px;
}

.lottery-tool-title span {
  margin-top: 3px;
  color: #8195b4;
  font-size: 9px;
}

.lottery-tool-title b {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(69, 221, 177, .35);
  border-radius: 5px;
  color: #45ddb1;
  background: rgba(69, 221, 177, .08);
  font-size: 11px;
}

.lottery-input-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.lottery-input-intro strong {
  font-size: 12px;
}

.lottery-input-intro span {
  color: #45ddb1;
  font-size: 9px;
}

.lottery-filter-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-bottom: 1px solid #203553;
}

.lottery-filter-mode > span {
  color: #91a5c3;
  font-size: 10px;
}

.lottery-filter-mode > div {
  display: grid;
  grid-template-columns: repeat(2, 82px);
  padding: 2px;
  border-radius: 5px;
  background: #08162b;
}

.lottery-filter-mode button {
  height: 29px;
  border: 0;
  border-radius: 4px;
  color: #8398b7;
  background: transparent;
  font-size: 10px;
}

.lottery-filter-mode button.active {
  color: #07231d;
  background: #45ddb1;
  font-weight: 800;
}

.lottery-filter-section {
  padding: 10px;
  border-bottom: 1px solid #203553;
}

.lottery-filter-section > header {
  display: flex;
  min-height: 26px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.lottery-filter-section > header strong {
  font-size: 11px;
}

.lottery-filter-section > header span {
  color: #f4cc67;
  font-size: 9px;
  text-align: right;
}

.lottery-filter-positions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.lottery-filter-positions button {
  display: flex;
  height: 39px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #345078;
  border-radius: 5px;
  color: #c1ccdc;
  background: #152744;
  font-size: 11px;
}

.lottery-filter-positions i {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid #496187;
  border-radius: 3px;
  font-size: 9px;
  font-style: normal;
}

.lottery-filter-positions button.active {
  border-color: #45ddb1;
  color: #45ddb1;
  background: rgba(69, 221, 177, .08);
}

.lottery-filter-positions button.active i {
  border-color: #45ddb1;
  color: #07231d;
  background: #45ddb1;
}

.lottery-filter-rules {
  display: grid;
  gap: 7px;
}

.lottery-filter-rule {
  display: grid;
  grid-template-columns: 25px 52px 76px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 7px;
  border: 1px solid #294366;
  border-radius: 6px;
  background: #0a1930;
}

.lottery-filter-rule.position-rule {
  grid-template-columns: 52px 76px minmax(0, 1fr);
}

.lottery-filter-rule > span {
  color: #c9d4e3;
  font-size: 10px;
  font-weight: 700;
}

.lottery-filter-rule > small {
  grid-column: 2 / -1;
  color: #657d9f;
  font-size: 8px;
}

.lottery-filter-rule.position-rule > small {
  grid-column: 1 / -1;
}

.lottery-rule-toggle {
  display: flex;
  width: 25px;
  height: 18px;
  align-items: center;
  padding: 2px;
  border: 0;
  border-radius: 10px;
  background: #34445f;
}

.lottery-rule-toggle i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #98a8c0;
  transition: transform .18s ease;
}

.lottery-filter-rule.active .lottery-rule-toggle {
  background: #45ddb1;
}

.lottery-filter-rule.active .lottery-rule-toggle i {
  background: #fff;
  transform: translateX(7px);
}

.lottery-filter-rule select,
.lottery-filter-rule input,
.lottery-filter-feature select {
  min-width: 0;
  height: 31px;
  padding: 0 7px;
  border: 1px solid #344f78;
  border-radius: 4px;
  outline: 0;
  color: #dce6f4;
  background: #10213d;
  font-size: 9px;
}

.lottery-filter-values {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 5px;
  min-width: 0;
}

.lottery-filter-rule:not(.active):not(.position-rule) .lottery-filter-values,
.lottery-filter-rule:not(.active):not(.position-rule) select {
  opacity: .48;
}

.lottery-filter-empty-rule {
  padding: 14px 8px;
  border: 1px dashed #345078;
  border-radius: 6px;
  color: #7188aa;
  font-size: 9px;
  text-align: center;
}

.lottery-filter-feature {
  padding: 8px;
  border: 1px solid #294366;
  border-radius: 6px;
  background: #0a1930;
}

.lottery-filter-feature header,
.lottery-filter-feature header label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.lottery-filter-feature header span {
  font-size: 10px;
  font-weight: 700;
}

.lottery-filter-feature header small {
  color: #657d9f;
  font-size: 8px;
}

.lottery-filter-feature > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 8px;
}

.lottery-filter-feature button {
  min-width: 0;
  height: 29px;
  border: 1px solid #344f78;
  border-radius: 4px;
  color: #9fb1ca;
  background: #142744;
  font-size: 8px;
}

.lottery-filter-feature button.active {
  border-color: #f4cc67;
  color: #142039;
  background: #f4cc67;
  font-weight: 800;
}

.lottery-filter-result > div:not(.lottery-legacy-play) {
  max-height: 180px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid #2d4b75;
  border-radius: 4px;
  background: #09182e;
  scrollbar-width: thin;
}

.lottery-filter-result i {
  padding: 4px 6px;
  border: 1px solid #2d4b75;
  border-radius: 4px;
  color: #d8e3f2;
  background: #132641;
  font-size: 9px;
  font-style: normal;
}

.lottery-filter-result p {
  width: 100%;
  margin: 8px 0;
  color: #6d84a5;
  font-size: 9px;
  text-align: center;
}

.lottery-filter-result p.lottery-number-text {
  margin: 0;
  color: #d8e3f2;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  line-height: 1.75;
  text-align: left;
  overflow-wrap: anywhere;
}

.lottery-legacy-play {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  padding: 10px;
  border-bottom: 1px solid #203553;
}

.lottery-legacy-play label,
.lottery-legacy-play > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.lottery-legacy-play span,
.lottery-legacy-play > div span {
  color: #8196b5;
  font-size: 8px;
}

.lottery-legacy-play select {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #345078;
  border-radius: 5px;
  outline: 0;
  color: #e7eef8;
  background: #10213d;
  font-size: 10px;
}

.lottery-legacy-play > div {
  padding: 0 2px 2px;
  text-align: right;
}

.lottery-legacy-play > div strong {
  color: #45ddb1;
  font-size: 10px;
}

.lottery-legacy-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid #294469;
  background: #0a1930;
}

.lottery-legacy-steps button {
  display: grid;
  min-width: 0;
  min-height: 52px;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 5px 2px;
  border: 0;
  border-right: 1px solid #203553;
  color: #7f94b4;
  background: transparent;
  font-size: 8px;
  line-height: 1.25;
}

.lottery-legacy-steps button:last-child {
  border-right: 0;
}

.lottery-legacy-steps i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #3b5276;
  border-radius: 50%;
  font-size: 8px;
  font-style: normal;
}

.lottery-legacy-steps button.active {
  color: #45ddb1;
  background: rgba(69, 221, 177, .08);
  box-shadow: inset 0 -2px #45ddb1;
}

.lottery-legacy-steps button.active i {
  border-color: #45ddb1;
  color: #07231d;
  background: #45ddb1;
  font-weight: 800;
}

.lottery-legacy-step-panel {
  min-height: 280px;
}

.lottery-legacy-section {
  padding: 10px;
}

.lottery-legacy-section > header,
.lottery-legacy-position-row > header,
.lottery-legacy-matrix > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.lottery-legacy-section > header strong,
.lottery-legacy-position-row > header strong,
.lottery-legacy-matrix > header strong {
  color: #e6edf7;
  font-size: 11px;
}

.lottery-legacy-section > header span,
.lottery-legacy-position-row > header span,
.lottery-legacy-matrix > header span {
  color: #758aaa;
  font-size: 8px;
  text-align: right;
}

.lottery-legacy-form {
  display: grid;
  gap: 7px;
}

.lottery-legacy-form.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lottery-legacy-field,
.lottery-legacy-array-group label {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #294469;
  border-radius: 5px;
  background: #0a1930;
}

.lottery-legacy-field > span,
.lottery-legacy-array-group label > span {
  color: #cdd8e7;
  font-size: 9px;
  font-weight: 700;
}

.lottery-legacy-field input,
.lottery-legacy-position-row input,
.lottery-legacy-matrix input,
.lottery-legacy-array-group input {
  width: 100%;
  min-width: 0;
  height: 31px;
  padding: 0 7px;
  border: 1px solid #344f78;
  border-radius: 4px;
  outline: 0;
  color: #e4ebf5;
  background: #10213d;
  font-size: 9px;
  box-sizing: border-box;
}

.lottery-legacy-field input:focus,
.lottery-legacy-position-row input:focus,
.lottery-legacy-matrix input:focus,
.lottery-legacy-array-group input:focus {
  border-color: #45ddb1;
  box-shadow: 0 0 0 2px rgba(69, 221, 177, .08);
}

.lottery-legacy-field.range > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}

.lottery-legacy-field.range small {
  color: #697f9f;
  font-size: 7px;
}

.lottery-legacy-position-row,
.lottery-legacy-matrix,
.lottery-legacy-feature-block,
.lottery-legacy-sum-grid {
  margin-top: 9px;
  padding: 9px;
  border: 1px solid #294469;
  border-radius: 6px;
  background: #09182e;
}

.lottery-legacy-position-row > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.lottery-legacy-position-row label {
  display: grid;
  gap: 4px;
}

.lottery-legacy-position-row label span {
  color: #899dbb;
  font-size: 8px;
  text-align: center;
}

.lottery-legacy-position-row label.disabled {
  opacity: .38;
}

.lottery-legacy-matrix-scroll {
  max-height: 232px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.lottery-legacy-matrix table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 4px;
}

.lottery-legacy-matrix th {
  width: 30px;
  color: #7288a8;
  font-size: 8px;
  font-weight: 600;
}

.lottery-legacy-matrix td {
  min-width: 0;
}

.lottery-legacy-matrix input:disabled {
  opacity: .28;
}

.lottery-legacy-rule-cards,
.lottery-legacy-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.lottery-legacy-array-group {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #294469;
  border-radius: 6px;
  background: #09182e;
}

.lottery-legacy-array-group > strong {
  color: #45ddb1;
  font-size: 10px;
}

.lottery-legacy-array-group label {
  padding: 6px;
}

.lottery-legacy-feature-block > strong,
.lottery-legacy-sum-grid h4 {
  display: block;
  margin: 0 0 3px;
  color: #e3ebf6;
  font-size: 10px;
}

.lottery-legacy-feature-block > span {
  display: block;
  margin-bottom: 7px;
  color: #748aa9;
  font-size: 8px;
}

.lottery-legacy-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 6px;
}

.lottery-legacy-choice-grid button {
  min-width: 0;
  min-height: 29px;
  padding: 4px 2px;
  border: 1px solid #344f78;
  border-radius: 4px;
  color: #9eb0c9;
  background: #132541;
  font-size: 8px;
}

.lottery-legacy-choice-grid button.active {
  border-color: #f4cc67;
  color: #152039;
  background: #f4cc67;
  font-weight: 800;
}

.lottery-legacy-checkline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #c8d4e4;
  font-size: 9px;
}

.lottery-legacy-checkline input {
  width: 15px;
  height: 15px;
  accent-color: #45ddb1;
}

.lottery-legacy-sum-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.lottery-legacy-sum-grid h4 {
  grid-column: 1 / -1;
}

.lottery-legacy-sum-grid .lottery-legacy-field {
  padding: 6px;
}

.lottery-legacy-result {
  border-bottom: 0;
}

.lottery-legacy-result > .lottery-legacy-number-scroll {
  max-height: 320px;
}

.lottery-legacy-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-top: 1px solid #294469;
  background: #0a1930;
}

.lottery-legacy-actions > span {
  min-width: 0;
  color: #8fa3bf;
  font-size: 8px;
}

.lottery-legacy-actions > div {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.lottery-legacy-actions button {
  height: 32px;
  padding: 0 11px;
  border: 1px solid #38537c;
  border-radius: 4px;
  color: #c9d5e5;
  background: #172a48;
  font-size: 9px;
}

.lottery-legacy-actions button.primary {
  border-color: #45ddb1;
  color: #06251e;
  background: #45ddb1;
  font-weight: 800;
}

.lottery-sheet-backdrop {
  position: fixed;
  z-index: 4000;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 36px;
  background: rgba(1, 7, 17, .76);
  backdrop-filter: blur(3px);
}

.page-body:has(.lottery-sheet-backdrop) {
  overflow: hidden;
}

.lottery-sheet {
  width: min(100%, 430px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  border: 1px solid #34517c;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: #eef3fa;
  background: #0d1c35;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, .35);
  animation: lottery-sheet-up .2s ease-out;
  scrollbar-width: none;
}

.lottery-sheet::-webkit-scrollbar {
  display: none;
}

@keyframes lottery-sheet-up {
  from { transform: translateY(28px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}

.lottery-sheet > header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #29446b;
  background: #10213c;
}

.lottery-sheet > header span,
.lottery-sheet > header strong {
  display: block;
}

.lottery-sheet > header span {
  margin-bottom: 3px;
  color: #45ddb1;
  font-size: 8px;
}

.lottery-sheet > header strong {
  font-size: 15px;
}

.lottery-sheet > header button {
  width: 32px;
  height: 32px;
  border: 1px solid #405a81;
  border-radius: 50%;
  color: #b9c8dc;
  background: #1a2e4d;
  font-size: 20px;
  line-height: 1;
}

.lottery-quick-sheet {
  width: min(100%, 560px);
}

.lottery-quick-sheet-body {
  min-height: 260px;
  overflow-x: hidden;
}

.lottery-reference-quick { color: #dce7f5; background: #0b1930; }
.reference-quick-play { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 8px; padding: 9px 10px; border-bottom: 1px solid #29446b; }
.reference-quick-play > span,
.reference-quick-row > strong,
.reference-quick-row-title > strong { color: #f3f7fc; font-size: 10px; font-weight: 800; }
.reference-quick-play > div { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.reference-quick-play button,
.reference-quick-position-buttons button,
.reference-quick-digit-buttons button,
.reference-quick-operator button { height: 30px; border: 1px solid #355078; border-radius: 4px; color: #aebed4; background: #142845; font-size: 9px; }
.reference-quick-play button.active,
.reference-quick-position-buttons button.active,
.reference-quick-digit-buttons button.active,
.reference-quick-operator button.active { border-color: #45ddb1; color: #06231d; background: #45ddb1; font-weight: 800; }
.reference-quick-row { display: grid; grid-template-columns: 145px minmax(0, 1fr); align-items: start; gap: 8px; padding: 9px 10px; border-bottom: 1px solid #203553; }
.reference-quick-row-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.reference-quick-row-title > strong { flex: 0 0 auto; white-space: nowrap; }
.reference-quick-row-title small,
.reference-quick-row > small { color: #7187a7; font-size: 8px; }
.reference-quick-operator { display: inline-grid; grid-template-columns: repeat(2, 30px); gap: 3px; }
.reference-quick-operator.compact { grid-template-columns: repeat(2, 25px); }
.reference-quick-operator button { height: 25px; }
.reference-quick-four-inputs,
.reference-quick-group-inputs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.reference-quick-four-inputs label { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 3px; }
.reference-quick-four-inputs label span { color: #7f94b2; font-size: 8px; text-align: center; }
.reference-quick-row input { width: 100%; min-width: 0; height: 31px; padding: 0 7px; border: 1px solid #355078; border-radius: 4px; outline: 0; color: #f5f8fc; background: #101f38; font-size: 10px; }
.reference-quick-row input:focus { border-color: #45ddb1; }
.reference-quick-sum > div:last-child { display: grid; gap: 5px; }
.reference-quick-sum article { display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 6px; }
.reference-quick-position-buttons,
.reference-quick-digit-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.reference-quick-digit-buttons { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.reference-quick-unordered { grid-template-columns: 145px repeat(2, minmax(0, 1fr)); }
.reference-quick-unordered label { display: grid; grid-template-columns: 16px 38px minmax(0, 1fr); align-items: center; gap: 4px; color: #95a8c2; font-size: 9px; }
.reference-quick-range { grid-template-columns: 145px minmax(0, 1fr) 8px minmax(0, 1fr); align-items: center; }
.reference-quick-range i { color: #7187a7; font-style: normal; text-align: center; }
.reference-quick-text { grid-template-columns: 145px minmax(0, 1fr) 150px; align-items: center; }
.reference-quick-position { grid-template-columns: 145px minmax(0, 1fr) 150px; align-items: center; }
.reference-quick-loose { grid-template-columns: 160px repeat(2, minmax(0, 1fr)); }
.reference-quick-loose label { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 4px; color: #95a8c2; font-size: 9px; }
.reference-quick-features > div { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.reference-quick-features > div > span { display: flex; align-items: center; gap: 4px; color: #95a8c2; font-size: 9px; }
.reference-quick-opposite { grid-template-columns: 160px minmax(0, 1fr); }
.reference-quick-position-rule { grid-template-columns: 160px minmax(0, 1fr); }
.reference-quick-result { padding: 10px; border-bottom: 1px solid #203553; }
.reference-quick-result header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.reference-quick-result header strong { font-size: 11px; }
.reference-quick-result header span { color: #f4cc67; font-size: 9px; }
.reference-quick-result > div { max-height: 180px; overflow-y: auto; padding: 9px; border: 1px solid #2c466f; border-radius: 5px; background: #08152a; }
.reference-quick-result p,
.reference-quick-result em { margin: 0; color: #dce7f5; font-size: 10px; font-style: normal; line-height: 1.7; overflow-wrap: anywhere; }
.reference-quick-current { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 10px; padding: 8px; border-radius: 5px; color: #9eb0c8; background: #142845; font-size: 9px; }
.reference-quick-current strong,
.reference-quick-current em { color: #f4cc67; font-size: 10px; font-style: normal; }

.lottery-sheet > footer.lottery-bet-footer.in-sheet {
  display: block;
  padding: 10px;
}

.lottery-sheet > footer.lottery-bet-footer.in-sheet .lottery-bet-summary {
  margin-bottom: 8px;
}

.lottery-review-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #29446b;
}

.lottery-review-meta > div {
  min-width: 0;
  padding: 9px 12px;
  border-right: 1px solid #243c60;
  border-bottom: 1px solid #243c60;
}

.lottery-review-meta span,
.lottery-review-meta strong {
  display: block;
}

.lottery-review-meta span {
  color: #788faf;
  font-size: 8px;
}

.lottery-review-meta strong {
  margin-top: 3px;
  color: #f4cc67;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.lottery-review-list {
  display: grid;
  gap: 7px;
  max-height: 42dvh;
  padding: 10px;
  overflow-y: auto;
}

.lottery-review-list article {
  padding: 9px;
  border: 1px solid #2b466e;
  border-radius: 6px;
  background: #09182e;
}

.lottery-review-list article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lottery-review-list strong {
  font-size: 11px;
}

.lottery-review-list span {
  color: #45ddb1;
  font-size: 9px;
}

.lottery-review-list p {
  max-height: 160px;
  margin: 7px 0 0;
  padding-right: 3px;
  overflow-y: auto;
  color: #91a5c2;
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
}

.lottery-review-list article > small {
  display: block;
  margin-top: 5px;
  color: #f4cc67;
  font-size: 8px;
}

.lottery-review-warning {
  margin: 0;
  padding: 8px 12px;
  color: #d3b96c;
  background: rgba(244, 204, 103, .06);
  font-size: 9px;
  line-height: 1.5;
}

.lottery-success-backdrop {
  align-items: center;
  padding: 18px;
}

.lottery-success-dialog {
  position: relative;
  width: min(100%, 340px);
  overflow: hidden;
  border: 1px solid #365b83;
  border-radius: 10px;
  color: #eef7f5;
  background: #0d1c35;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .46);
  animation: lottery-success-in .22s ease-out;
  text-align: center;
}

@keyframes lottery-success-in {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lottery-success-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #3b577f;
  border-radius: 50%;
  color: #9fb0c9;
  background: #172a48;
  font-size: 18px;
  line-height: 1;
}

.lottery-success-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  margin: 28px auto 13px;
  border: 1px solid rgba(69, 221, 177, .52);
  border-radius: 50%;
  background: rgba(69, 221, 177, .12);
  box-shadow: 0 0 28px rgba(69, 221, 177, .16);
}

.lottery-success-icon i {
  width: 26px;
  height: 14px;
  border-bottom: 4px solid #45ddb1;
  border-left: 4px solid #45ddb1;
  transform: translateY(-3px) rotate(-45deg);
}

.lottery-success-dialog > span {
  color: #45ddb1;
  font-size: 9px;
  font-weight: 800;
}

.lottery-success-dialog h2 {
  margin: 5px 0 0;
  font-size: 22px;
}

.lottery-success-dialog > p {
  margin: 7px 18px 18px;
  color: #8fa4c1;
  font-size: 11px;
  line-height: 1.55;
}

.lottery-success-dialog dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 14px;
  overflow: hidden;
  border: 1px solid #29466e;
  border-radius: 6px;
  background: #09182e;
}

.lottery-success-dialog dl > div {
  min-width: 0;
  padding: 10px 6px;
  border-right: 1px solid #29466e;
}

.lottery-success-dialog dl > div:last-child {
  border-right: 0;
}

.lottery-success-dialog dt,
.lottery-success-dialog dd {
  margin: 0;
}

.lottery-success-dialog dt {
  color: #7187a8;
  font-size: 8px;
}

.lottery-success-dialog dd {
  margin-top: 5px;
  overflow: hidden;
  color: #f4cc67;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lottery-success-dialog footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px 14px;
  border-top: 1px solid #29446b;
  background: #0a1930;
}

.lottery-success-dialog footer button {
  height: 42px;
  border: 1px solid #3a557e;
  border-radius: 5px;
  color: #dce5f2;
  background: #1a3152;
  font-size: 11px;
  font-weight: 800;
}

.lottery-success-dialog footer button.primary {
  border-color: #45ddb1;
  color: #06231d;
  background: #45ddb1;
}

.lottery-order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #29446b;
}

.lottery-order-detail-grid > div {
  min-width: 0;
  padding: 9px 12px;
  border-right: 1px solid #243c60;
  border-bottom: 1px solid #243c60;
}

.lottery-order-detail-grid span,
.lottery-order-detail-grid strong,
.lottery-order-detail-selection span,
.lottery-order-detail-result span {
  display: block;
}

.lottery-order-detail-grid span,
.lottery-order-detail-selection span,
.lottery-order-detail-result span {
  color: #788faf;
  font-size: 8px;
}

.lottery-order-detail-grid strong {
  margin-top: 3px;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.lottery-order-detail-selection,
.lottery-order-detail-result,
.lottery-chase-source {
  margin: 10px;
  padding: 10px;
  border: 1px solid #29466f;
  border-radius: 6px;
  background: #09182e;
}

.lottery-order-detail-selection > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lottery-order-detail-selection > header > div:first-child {
  min-width: 0;
}

.lottery-order-detail-selection > header small {
  display: block;
  margin-top: 3px;
  color: #45ddb1;
  font-size: 8px;
}

.lottery-order-detail-selection > header > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.lottery-order-detail-selection button {
  min-width: 52px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #36547f;
  border-radius: 4px;
  color: #b8c9df;
  background: #172c4a;
  font-size: 8px;
}

.lottery-order-detail-selection p,
.lottery-order-detail-result p,
.lottery-chase-source p {
  margin: 6px 0 0;
  color: #d8c270;
  font-size: 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.lottery-order-detail-selection > p {
  max-height: 180px;
  padding-right: 3px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #36547f transparent;
}

.lottery-selection-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed #29466f;
}

.lottery-selection-pager span {
  color: #8ca2c1;
  font-size: 9px;
  text-align: center;
}

.lottery-selection-pager button:last-child {
  justify-self: end;
}

.lottery-selection-pager button:disabled {
  opacity: .42;
}

.lottery-order-detail-result strong {
  display: block;
  margin-top: 5px;
  color: #f4cc67;
  font-size: 16px;
}

.lottery-chase-source > span,
.lottery-chase-source > strong {
  display: block;
}

.lottery-chase-source > span {
  color: #93a7c4;
  font-size: 9px;
}

.lottery-chase-source > strong {
  margin-top: 4px;
  color: #45ddb1;
  font-size: 11px;
}

.lottery-chase-sheet {
  display: grid;
  width: min(96vw, 760px);
  grid-template-rows: auto auto auto auto auto minmax(120px, 1fr) auto auto;
  overflow: hidden;
}

.lottery-chase-sheet .lottery-chase-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  margin-bottom: 0;
}

.lottery-chase-sheet .lottery-chase-source p {
  grid-column: 1 / -1;
  max-height: 42px;
  overflow: hidden;
}

.lottery-chase-toolbar {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid #203858;
  background: #0b1a31;
}

.lottery-chase-count,
.lottery-chase-growth {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.lottery-chase-count > span,
.lottery-chase-growth > span {
  flex: 0 0 auto;
  color: #91a5c2;
  font-size: 9px;
}

.lottery-chase-count button,
.lottery-chase-growth button,
.lottery-chase-count input,
.lottery-chase-growth input {
  height: 30px;
  border: 1px solid #345078;
  border-radius: 4px;
  color: #dce5f2;
  background: #152744;
  text-align: center;
}

.lottery-chase-count button {
  min-width: 52px;
}

.lottery-chase-count button.active,
.lottery-chase-growth button {
  border-color: #45ddb1;
  color: #06251e;
  background: #45ddb1;
  font-weight: 800;
}

.lottery-chase-count > input {
  width: 64px;
}

.lottery-chase-growth label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  color: #91a5c2;
  font-size: 9px;
  white-space: nowrap;
}

.lottery-chase-growth input {
  width: 58px;
}

.lottery-chase-growth button {
  min-width: 58px;
  padding: 0 10px;
}

.lottery-chase-summary {
  display: grid;
  grid-template-columns: minmax(90px, .7fr) minmax(150px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid #29446b;
  background: #132746;
}

.lottery-chase-summary > div,
.lottery-chase-summary > label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: #90a5c3;
  font-size: 9px;
}

.lottery-chase-summary strong {
  color: #f4cc67;
  font-size: 12px;
}

.lottery-chase-summary > label {
  justify-self: end;
  color: #d5dfec;
}

.lottery-chase-table-head,
.lottery-chase-row {
  display: grid;
  grid-template-columns: 52px minmax(160px, 1fr) 82px 116px;
  align-items: center;
  gap: 8px;
}

.lottery-chase-table-head {
  min-height: 32px;
  padding: 0 10px;
  color: #7289a9;
  background: #0a182d;
  font-size: 8px;
}

.lottery-chase-table-head span:nth-child(3),
.lottery-chase-table-head span:nth-child(4) {
  text-align: center;
}

.lottery-chase-rows {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #345078 transparent;
}

.lottery-chase-row {
  min-height: 54px;
  padding: 7px 10px;
  border-top: 1px solid #1e3454;
  background: #10213a;
}

.lottery-chase-row:nth-child(even) {
  background: #0d1d35;
}

.lottery-chase-row.is-disabled > :not(.lottery-chase-row-check) {
  opacity: .38;
}

.lottery-chase-row-check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #88a0bf;
  font-size: 9px;
}

.lottery-chase-row-check input {
  width: 16px;
  height: 16px;
  accent-color: #45ddb1;
}

.lottery-chase-row-issue strong,
.lottery-chase-row-issue span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lottery-chase-row-issue strong {
  color: #dce6f3;
  font-size: 10px;
}

.lottery-chase-row-issue span {
  margin-top: 3px;
  color: #7188aa;
  font-size: 8px;
}

.lottery-chase-row-multiplier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 3px;
}

.lottery-chase-row-multiplier input {
  width: 100%;
  height: 31px;
  min-width: 0;
  border: 1px solid #3a557e;
  border-radius: 4px;
  outline: 0;
  color: #f4cc67;
  background: #09182e;
  text-align: center;
}

.lottery-chase-row-multiplier span {
  color: #8298b8;
  font-size: 9px;
}

.lottery-chase-row-amount {
  min-width: 0;
  color: #f4cc67;
  font-size: 10px;
  text-align: right;
  overflow-wrap: anywhere;
}

.lottery-chase-sheet > .lottery-review-warning {
  margin: 0;
  border-top: 1px solid #29446b;
  border-radius: 0;
}

.lottery-sheet > footer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #29446b;
  background: #0a1930;
}

.lottery-sheet.lottery-order-detail-sheet > footer {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lottery-sheet > footer button {
  height: 40px;
  border: 1px solid #3a557e;
  border-radius: 5px;
  color: #dce5f2;
  background: #1a3152;
  font-weight: 800;
}

.lottery-sheet > footer button.primary {
  border-color: #f4cc67;
  color: #142039;
  background: #f4cc67;
}

.lottery-odds-list {
  display: grid;
  gap: 1px;
  background: #203858;
}

.lottery-odds-list > div {
  display: grid;
  grid-template-columns: 82px 58px minmax(0, 1fr);
  min-height: 48px;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  background: #0d1c35;
}

.lottery-odds-list strong,
.lottery-odds-list b,
.lottery-odds-list p {
  margin: 0;
  min-width: 0;
  font-size: 9px;
}

.lottery-odds-list b {
  color: #f4cc67;
}

.lottery-odds-list p {
  color: #7f95b5;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.lottery-odds-sheet > footer {
  grid-template-columns: 1fr;
}

@media (max-width: 600px) {
  html.official-lottery-viewport-lock,
  body.official-lottery-viewport-lock {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.official-lottery-viewport-lock #app {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .official-lottery-page-shell {
    position: fixed;
    inset: 0;
    display: grid;
    height: 100dvh;
    min-height: 100dvh;
    grid-template-rows: 48px minmax(0, 1fr);
    overflow: hidden;
    overscroll-behavior: none;
  }

  .official-lottery-page-shell .page-titlebar {
    position: relative;
  }

  .official-lottery-page-shell .page-body {
    min-height: 0;
    padding: 0 10px max(7px, env(safe-area-inset-bottom));
    overflow: hidden;
    overscroll-behavior: none;
  }

  .official-lottery {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
    overscroll-behavior: none;
  }

  .lottery-tab-panel {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
  }

  .lottery-tab-panel.is-bet {
    overflow: hidden;
  }

  .lottery-bet-layout {
    height: 100%;
    min-height: 0;
    grid-template-columns: 80px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .lottery-play-menu {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-row: 1;
    grid-template-rows: 36px minmax(0, 1fr);
    overflow: hidden;
  }

  .lottery-play-menu header {
    height: 36px;
    padding: 0 6px;
  }

  .lottery-play-menu header strong {
    font-size: 11px;
  }

  .lottery-play-menu > div {
    min-height: 0;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: none;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .lottery-bet-workspace {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-row: 1;
    grid-template-rows: minmax(0, 1fr);
  }

  .lottery-play-scroll {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: none;
    touch-action: pan-y;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .lottery-play-scroll::-webkit-scrollbar {
    display: none;
  }

  .lottery-play-scroll > .lottery-rebate-control {
    margin: 8px;
  }

  .lottery-bet-layout > .lottery-bet-footer {
    position: relative;
    z-index: 5;
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(72px, .72fr) minmax(88px, 1fr) minmax(122px, 1.3fr);
    align-items: stretch;
    gap: 6px;
    padding: 7px 8px;
    border: 1px solid #2d466c;
    border-top-color: #3a567e;
    border-radius: 6px;
    box-shadow: 0 -8px 22px rgba(2, 10, 23, .32);
  }

  .lottery-bet-layout > .lottery-bet-footer .lottery-bet-summary {
    min-height: 42px;
    height: auto;
    gap: 3px;
    margin: 0;
    padding: 0 5px;
  }

  .lottery-bet-layout > .lottery-bet-footer .lottery-bet-summary::before {
    color: #9eb0c9;
    content: "已选";
    font-size: 9px;
  }

  .lottery-bet-layout > .lottery-bet-footer .lottery-bet-summary > span:first-child,
  .lottery-bet-layout > .lottery-bet-footer .lottery-bet-summary em,
  .lottery-bet-layout > .lottery-bet-footer > small {
    display: none;
  }

  .lottery-bet-layout > .lottery-bet-footer .lottery-amount-row label {
    height: 42px;
    min-height: 42px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 4px;
    padding: 4px 6px;
  }

  .lottery-bet-layout > .lottery-bet-footer .lottery-amount-row label > span {
    font-size: 8px;
  }

  .lottery-bet-layout > .lottery-bet-footer .lottery-amount-row label > div {
    gap: 3px;
  }

  .lottery-bet-layout > .lottery-bet-footer .lottery-bet-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin: 0;
  }

  .lottery-bet-layout > .lottery-bet-footer .lottery-bet-actions > button {
    height: 42px;
    padding: 0 5px;
  }

  .lottery-play-menu button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 6px 4px;
    border-right: 0;
    border-bottom: 1px solid #223a5d;
    font-size: 9px;
    white-space: normal;
  }

  .lottery-play-menu button.active {
    box-shadow: inset 3px 0 #45ddb1;
  }

  .lottery-play-menu-group {
    display: block;
    border-right: 0;
    border-bottom: 1px solid #223a5d;
  }

  .lottery-play-menu-group > button {
    border-right: 0;
    border-bottom: 0;
  }

  .lottery-play-submenu {
    display: block;
    padding: 3px 0 5px;
    background: #09182e;
  }

  .lottery-play-submenu button {
    min-width: 0;
    min-height: 31px;
    padding: 4px 3px 4px 8px;
    border-right: 0;
    border-bottom: 0;
    font-size: 8px;
    text-align: left;
  }

  .lottery-play-submenu button.active {
    box-shadow: inset 2px 0 #45ddb1;
  }

  .lottery-play-heading {
    min-height: 62px;
    align-items: flex-start;
    padding: 10px 11px;
  }

  .lottery-play-heading strong {
    font-size: 15px;
  }

  .lottery-play-heading p {
    font-size: 10px;
  }

  .lottery-position-board {
    padding: 2px 8px 10px;
  }

  .lottery-position-row {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 6px;
    row-gap: 10px;
    padding: 12px 0 14px;
  }

  .lottery-position-label {
    justify-content: center;
  }

  .lottery-position-label strong {
    font-size: 13px;
  }

  .lottery-number-tools {
    gap: 3px;
  }

  .lottery-number-tools button {
    height: 27px;
    font-size: 9px;
  }

  .lottery-number-grid {
    gap: 7px 6px;
  }

  .lottery-number-grid button {
    width: min(100%, 44px);
    font-size: 15px;
  }

  .lottery-entry-mode-tabs-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .lottery-entry-mode-tabs-four button {
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 4px;
  }

  .lottery-entry-mode-tabs-four button.active {
    border-color: rgba(69, 221, 177, .45);
  }

  .lottery-quick-add > div {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .lottery-quick-add > div label:first-child {
    grid-column: 1 / -1;
  }

  .lottery-quick-add input,
  .lottery-input-tool textarea,
  .lottery-filter-rule input,
  .lottery-filter-rule select,
  .lottery-filter-feature select,
  .lottery-legacy-rules input[data-legacy-filter],
  .lottery-legacy-field input,
  .lottery-legacy-position-row input,
  .lottery-legacy-matrix input,
  .lottery-legacy-array-group input,
  .lottery-legacy-play select,
  .reference-quick-row input,
  .lottery-amount-row input,
  .lottery-rebate-inputs label input {
    font-size: 16px;
  }

  .lottery-entry-diagnostics > div,
  .lottery-legacy-rules {
    grid-template-columns: 1fr;
  }

  .lottery-filter-rule,
  .lottery-filter-rule.position-rule {
    grid-template-columns: 25px minmax(68px, .7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 7px;
    padding: 9px;
  }

  .lottery-filter-rule.position-rule {
    grid-template-columns: minmax(68px, .7fr) minmax(0, 1.3fr);
  }

  .lottery-filter-rule .lottery-filter-values {
    grid-column: 1 / -1;
  }

  .lottery-filter-rule > small,
  .lottery-filter-rule.position-rule > small {
    grid-column: 1 / -1;
  }

  .lottery-filter-feature > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lottery-legacy-play {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .lottery-legacy-play > div {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    text-align: left;
  }

  .lottery-legacy-steps {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .lottery-legacy-steps::-webkit-scrollbar {
    display: none;
  }

  .lottery-legacy-steps button {
    min-width: 76px;
    min-height: 52px;
    flex: 0 0 auto;
    font-size: 9px;
  }

  .lottery-legacy-form.compact,
  .lottery-legacy-rule-cards,
  .lottery-legacy-group-grid {
    grid-template-columns: 1fr;
  }

  .lottery-legacy-sum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lottery-legacy-choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lottery-legacy-matrix-scroll {
    overflow-x: auto;
  }

  .lottery-legacy-matrix table {
    min-width: 340px;
  }

  .lottery-legacy-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lottery-legacy-actions > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .lottery-legacy-actions button {
    width: 100%;
  }

  .lottery-upload-picker {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .lottery-upload-picker > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .lottery-upload-list { padding: 0 9px 12px; }
  .lottery-upload-toolbar { align-items: flex-start; padding: 8px 0; }
  .lottery-upload-toolbar > span { width: 100%; }
  .lottery-upload-table { overflow: visible; border: 0; background: transparent; }
  .lottery-upload-table > header { display: none; }
  .lottery-upload-table > article {
    min-width: 0;
    grid-template-columns: 52px minmax(0, 1fr) minmax(92px, .8fr);
    gap: 8px;
    margin-bottom: 8px;
    padding: 11px;
    border: 1px solid #294469;
    border-radius: 7px;
    background: #101f37;
  }
  .lottery-upload-table > article > strong { font-size: 14px; }
  .lottery-upload-play { grid-column: 2 / 4; }
  .lottery-upload-amount { grid-column: 1 / 3; }
  .lottery-upload-amount input { max-width: none; }
  .lottery-upload-status { grid-column: 3; }
  .lottery-upload-pages { justify-content: flex-end; }
  .lottery-upload-pages span { margin-right: auto; }

  .lottery-amount-row label {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 48px;
  }

  .lottery-bet-actions > button {
    height: 42px;
    font-size: 12px;
  }

  .lottery-quick-sheet { width: 100%; }
  .reference-quick-play { grid-template-columns: 1fr; }
  .reference-quick-play > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reference-quick-row { grid-template-columns: 1fr; }
  .reference-quick-four-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference-quick-group-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference-quick-digit-buttons { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .reference-quick-unordered { grid-template-columns: 1fr; }
  .reference-quick-range { grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr); }
  .reference-quick-range > strong { grid-column: 1 / -1; }
  .reference-quick-text,
  .reference-quick-position,
  .reference-quick-loose,
  .reference-quick-opposite,
  .reference-quick-position-rule { grid-template-columns: 1fr; }
  .reference-quick-sum article { grid-template-columns: minmax(0, 1fr) 68px; }
}

@media (max-width: 360px) {
  .lottery-quick-add > div {
    grid-template-columns: minmax(0, 1fr) 82px;
  }

  .lottery-quick-add > div label:first-child {
    grid-column: 1 / -1;
  }

  .lottery-hero {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .lottery-hero-copy h1 {
    font-size: 17px;
  }

  .lottery-bet-layout {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 6px;
  }

  .lottery-play-menu header {
    padding: 0 5px;
  }

  .lottery-play-menu header span {
    display: none;
  }

  .lottery-play-menu button {
    min-width: 74px;
    min-height: 40px;
    font-size: 9px;
  }

  .lottery-main-tabs button {
    gap: 2px;
    font-size: 10px;
  }

  .lottery-number-grid {
    gap: 5px;
  }

  .lottery-present-grid {
    grid-template-columns: repeat(5, 38px);
    gap: 9px 10px;
  }

  .lottery-amount-row label {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 5px;
  }

  .lottery-amount-row label span {
    display: block;
    font-size: 8px;
  }

  .lottery-filter-rule {
    grid-template-columns: 24px minmax(62px, .7fr) minmax(0, 1.3fr);
  }

  .lottery-filter-rule.position-rule {
    grid-template-columns: minmax(62px, .7fr) minmax(0, 1.3fr);
  }

  .lottery-filter-feature > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lottery-legacy-sum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lottery-legacy-choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lottery-legacy-steps button {
    min-height: 48px;
    font-size: 7px;
  }

  .lottery-entry-mode-tabs-four button {
    font-size: 9px;
  }

  .lottery-position-row {
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 7px;
  }

  .lottery-history-list article {
    grid-template-columns: 68px 104px minmax(0, 1fr);
    gap: 5px;
  }

  .lottery-draw-proof {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (max-width: 600px) {
  .lottery-chase-sheet {
    width: 100%;
    max-height: calc(100dvh - 12px);
    grid-template-rows: auto auto auto auto auto minmax(100px, 1fr) auto auto;
  }

  .lottery-chase-sheet > header {
    min-height: 50px;
    padding: 7px 10px;
  }

  .lottery-chase-sheet .lottery-chase-source {
    margin: 7px 8px 0;
    padding: 8px;
  }

  .lottery-chase-toolbar {
    padding: 8px;
  }

  .lottery-chase-count,
  .lottery-chase-growth {
    flex-wrap: wrap;
  }

  .lottery-chase-count button {
    min-width: 44px;
  }

  .lottery-chase-count > input,
  .lottery-chase-growth input {
    width: 48px;
  }

  .lottery-chase-summary {
    grid-template-columns: minmax(70px, .6fr) minmax(120px, 1fr);
    padding: 8px;
  }

  .lottery-chase-summary > label {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .lottery-chase-table-head,
  .lottery-chase-row {
    grid-template-columns: 38px minmax(86px, 1fr) 58px 78px;
    gap: 4px;
  }

  .lottery-chase-table-head,
  .lottery-chase-row {
    padding-right: 8px;
    padding-left: 8px;
  }

  .lottery-chase-row-check {
    gap: 3px;
  }

  .lottery-chase-row-check input {
    width: 14px;
    height: 14px;
  }

  .lottery-chase-row-amount {
    font-size: 8px;
  }

  .lottery-chase-sheet > .lottery-review-warning {
    padding: 7px 9px;
    font-size: 8px;
  }
}
.lottery-order-chain-proof { margin: 12px 16px 16px; padding: 14px; border: 1px solid #314966; border-radius: 8px; background: #0b1b31; }
.lottery-order-chain-proof header { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 0 0 12px; }
.lottery-order-chain-proof header a { color: #59dfc7; padding: 10px 12px; border: 1px solid #3d686b; border-radius: 6px; text-decoration: none; }
.lottery-order-chain-proof > span, .lottery-order-chain-proof small { display: block; color: #a5b5ca; font-size: 12px; }
.lottery-order-chain-proof code { display: block; overflow-wrap: anywhere; word-break: break-all; line-height: 1.6; margin: 8px 0; color: #e1eaf6; }
.lottery-order-chain-proof p { font-size: 13px; line-height: 1.6; color: #a5b5ca; }
.lottery-order-chain-proof b { color: #f2d36d; }
.lottery-sound-icon { flex:0 0 28px;width:28px;height:30px;display:inline-flex;align-items:center;justify-content:center;padding:4px;color:#62dfc7;border:1px solid #314966;border-radius:7px;background:#10233e; }
.lottery-sound-icon svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.lottery-sound-icon[aria-pressed="false"] { color:#94a3b8; }
.lottery-hero.has-sound-toggle { position:relative; }
.lottery-hero > .lottery-sound-icon { position:absolute;top:27px;right:111px;z-index:2; }
.lottery-hero.has-sound-toggle .lottery-hero-copy h1 { padding-right:30px; }
.lottery-sync-notice { margin-top:8px;color:#e5c76b;font-size:12px;line-height:1.5; }
.lottery-sync-notice[hidden] { display:none; }
.lottery-seal-banner { color: #f2d36d; background: #192944; border: 1px solid #766638; border-radius: 7px; padding: 10px 12px; line-height: 1.6; font-size: 13px; }
.lottery-seal-notice { max-width: 480px; }
.lottery-seal-notice p { padding: 0 18px; color: #c3d2e6; line-height: 1.7; }
.lottery-order-detail-selection header > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
.lottery-issue-card .lottery-target-block { display:flex;flex-direction:column;gap:2px;margin-top:9px;max-width:100%; }
.lottery-issue-card .lottery-target-block strong { margin:0;color:#f5d867;font-size:13px;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
.lottery-order-detail-selection p { font-size:14px;line-height:1.7; }
.lottery-order-detail-selection header small { font-size:12px; }
.lottery-order-detail-selection header button { font-size:11px;min-height:32px; }
