.portal-page {
  color: #303238;
  background: #f5f6f8;
  min-height: 100vh;
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Helvetica,
    "Segoe UI",
    Arial,
    Roboto,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.portal-header {
  z-index: 5;
  background: linear-gradient(
    to bottom,
    #fefefe 0 48px,
    #f3f4fe 48px,
    #f0f2fe 50px,
    #f4f6ff 53px,
    #f4f4fc 55px
  );
  border-bottom: 0;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  height: 55px;
  display: grid;
  position: sticky;
  top: 0;
}
.portal-header button {
  color: #333;
  background: 0 0;
  border: 0;
  font-size: 32px;
  transform: translateX(4px);
}
.portal-header h1 {
  text-align: center;
  grid-column: 2;
  color: #303238;
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}
.source-badge {
  color: #3D7FE0;
  background: #fff8e7;
  border-bottom: 1px solid #f4e4b8;
  padding: 8px 14px;
  font-size: 12px;
}
.portal-page main {
  padding: 12px;
}
.portal-title {
  justify-content: space-between;
  align-items: end;
  margin-bottom: 10px;
  display: flex;
}
.portal-title h2 {
  margin: 0;
  font-size: 18px;
}
.portal-title p {
  color: #999;
  margin: 2px 0 0;
  font-size: 12px;
}
.portal-title > span {
  color: #999;
}
.record-table {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.record-head,
.record-row {
  grid-template-columns: 1.4fr 1.5fr 0.45fr 0.8fr;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  display: grid;
}
.record-head {
  color: #92959c;
  background: #fafafa;
  font-size: 12px;
}
.record-row {
  border-top: 1px solid #f0f0f0;
}
.record-row > span:first-child {
  flex-direction: column;
  display: flex;
}
.record-row small {
  color: #aaa;
  font-size: 10px;
}
.balls {
  flex-wrap: wrap;
  gap: 3px;
  display: flex;
}
.result-ball {
  color: #fff;
  background: #ee5353;
  border-radius: 50%;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 11px;
  display: grid;
}
.result-ball.c1 {
  background: #4a88df;
}
.result-ball.c2 {
  background: #47a36c;
}
.tag {
  border-radius: 4px;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 3px;
  font-style: normal;
  display: inline-grid;
}
.hot {
  color: #ef604d !important;
  background: #fff0ed !important;
}
.cool {
  color: #4484d8 !important;
  background: #edf5ff !important;
}
.pager {
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 16px;
  display: flex;
}
.pager button {
  color: #fff;
  background: #ef5558;
  border: 0;
  border-radius: 5px;
  padding: 7px 14px;
}
.pager button:disabled {
  background: #ccc;
}
.trend-filters {
  gap: 10px;
  margin-bottom: 10px;
  display: flex;
}
.trend-filters label {
  color: #777;
  background: #fff;
  border-radius: 6px;
  flex: 1;
  padding: 8px 10px;
}
.trend-filters select {
  float: right;
  background: 0 0;
  border: 0;
}
.trend-summary {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  display: grid;
}
.trend-summary span {
  text-align: center;
  color: #999;
  background: #fff;
  border-radius: 7px;
  padding: 8px;
}
.trend-summary b {
  color: #ef5558;
  font-size: 18px;
  display: block;
}
.trend-scroll {
  background: #fff;
  border-radius: 8px;
  overflow: auto;
}
.trend-scroll table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
}
.trend-scroll th,
.trend-scroll td {
  text-align: center;
  white-space: nowrap;
  border: 1px solid #eee;
  padding: 9px 8px;
}
.trend-scroll th {
  color: #777;
  background: #fafafa;
  position: sticky;
  top: 0;
}
.trend-mark6-balls{display:flex;justify-content:center;gap:5px}.trend-mark6-ball{display:inline-flex;flex-direction:column;align-items:center;gap:2px}.trend-mark6-ball b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;color:#fff}.trend-mark6-ball small{font-size:10px;color:#777}.trend-mark6-ball.red b{background:#df4242}.trend-mark6-ball.blue b{background:#3f72c9}.trend-mark6-ball.green b{background:#35a66a}.trend-mark6-balls.extra{min-width:36px}
.sum {
  border-radius: 50%;
  place-items: center;
  width: 25px;
  height: 25px;
  display: inline-grid;
}
.omit {
  color: #aaa;
  border-radius: 50%;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 1px;
  font-size: 10px;
  font-style: normal;
  display: inline-grid;
}
.omit.hit {
  color: #fff;
  background: #ef5558;
}
.rules-page details,
.rule-meta {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.rules-page summary {
  padding: 13px 14px;
  font-weight: 600;
  list-style: none;
}
.rules-page summary span {
  float: right;
  color: #999;
  font-weight: 400;
}
.rules-page details > p {
  color: #666;
  padding: 0 14px;
}
.odds-grid {
  background: #eee;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  display: grid;
}
.odds-grid span {
  background: #fff;
  justify-content: space-between;
  padding: 9px;
  display: flex;
}
.odds-grid em {
  color: #ef5558;
  font-style: normal;
}
.rule-meta {
  padding: 14px;
}
.rule-meta h2 {
  margin: 0 0 10px;
}
.rule-meta dl {
  margin: 0;
}
.rule-meta dl div {
  border-top: 1px solid #eee;
  grid-template-columns: 78px 1fr;
  padding: 8px 0;
  display: grid;
}
.rule-meta dt {
  color: #999;
}
.rule-meta dd {
  margin: 0;
}
.unknown-note {
  color: #bf7a18;
  background: #fff8e7;
  border-radius: 5px;
  padding: 8px;
}
.service-page main {
  text-align: center;
  padding-top: 70px;
}
.service-mark {
  color: #fff;
  background: linear-gradient(135deg, #ff7778, #e93b4a);
  border-radius: 22px;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: auto;
  font-size: 42px;
  display: grid;
}
.service-page h2 {
  margin: 18px 0 2px;
}
.service-page p {
  color: #999;
}
.service-page main button {
  color: #fff;
  background: #ef5558;
  border: 0;
  border-radius: 22px;
  width: 80%;
  max-width: 360px;
  margin: 28px auto 12px;
  padding: 12px;
  display: block;
}
.service-page small {
  color: #aaa;
}
.bet-record-page {
  background: #fff;
}
.bet-record-page main {
  padding: 0;
}
.bet-record-row {
  border-bottom: 1px solid #eee;
  grid-template-columns: 1fr 1fr;
  height: 100px;
  min-height: 0;
  padding: 12px 16px;
  display: grid;
}
.bet-record-row h2,
.bet-record-row p {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
}
.bet-record-row p,
.bet-record-row small {
  color: #888;
  font-size: 11px;
}
.bet-record-row > div:last-child {
  text-align: right;
}
.bet-record-row strong {
  color: #555e70;
  font-size: 18px;
  font-weight: 400;
  display: block;
}
.bet-record-row em {
  color: #888;
  margin: 7px 0;
  font-size: 11px;
  font-style: normal;
  display: block;
}
.bet-record-row em.won {
  color: #6db878;
}
.cancel-bet-item{margin-top:7px;border:1px solid #5B9EFF;border-radius:14px;background:transparent;color:#5B9EFF;padding:4px 10px;font-size:12px}.cancel-bet-item:active{background:#5B9EFF;color:#ffffff}
.demo-disclosure {
  color: #aaa;
  text-align: center;
  padding: 8px 12px;
  font-size: 10px;
}
.target-trend-page {
  color: #64666c;
  background: #fff;
}
.target-trend-page main {
  padding: 0;
}
.target-trend-page .trend-scroll {
  border-radius: 0;
}
.target-trend-page .trend-scroll table {
  table-layout: fixed;
  min-width: 390px;
  font-size: 12px;
}
.target-trend-page .trend-scroll th,
.target-trend-page .trend-scroll td {
  border-color: #f4f4f4;
  height: 32px;
  padding: 6px 3px;
}
.target-trend-page .trend-scroll th {
  height: 30px;
  font-weight: 400;
}
.target-trend-page .trend-scroll th:first-child {
  width: 117px;
}
.target-trend-page .trend-scroll th:nth-child(2) {
  width: 78px;
}
.target-trend-page .trend-scroll th:nth-child(3) {
  width: 78px;
}
.target-trend-page .trend-scroll th:nth-child(4) {
  width: 58px;
}
.target-trend-page .trend-scroll th:nth-child(5) {
  width: 59px;
}
.target-trend-page .trend-scroll td {
  font-size: 13px;
  font-weight: 200;
}
.target-trend-page .cool-text {
  color: #65ae79;
  font-weight: 200;
}
.target-trend-page .hot-text {
  color: #ef5e58;
  font-weight: 200;
}
.target-trend-page .sum-value { color:inherit; }
.service-page {
  background: #f5f6f8;
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}
.service-chat-header {
  color: #fff;
  background: linear-gradient(106deg, #69c5f2 0%, #4d8ee9 54%, #2736d7 100%);
  grid-template-columns: 40px 36px 1fr 38px;
  align-items: center;
  height: 56px;
  padding: 0 8px;
  display: grid;
}
.service-chat-header button {
  color: #fff;
  background: #ffffff32;
  border-radius: 3px;
  place-items: center;
  width: 28px;
  height: 32px;
  padding: 5px;
  display: grid;
}
.service-chat-header button:last-child {
  background: transparent;
  width: 30px;
  height: 40px;
  padding: 7px;
}
.service-chat-header button img,
.service-chat-header button svg {
  width: 100%;
  height: 100%;
}
.service-chat-header button:last-child img {
  filter: brightness(0) invert(1);
}
.service-chat-header > img {
  background: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  object-fit: cover;
}
.service-chat-header > img.service-brand-avatar {
  object-fit: cover;
  background: #f0f5ff;
  border: 1px solid #6f5620;
  padding: 0;
}
.service-chat-header h1 {
  margin: 0 0 0 9px;
  font-size: 14px;
  font-weight: 400;
}
.service-chat-main {
  min-height: calc(100vh - 157px);
  padding: 0 12px !important;
}
.service-history-label {
  color: #666b75;
  text-align: center;
  margin: 0 -12px 35px;
  font-size: 12px;
}
.service-session {
  color: #5d626d;
  background: #fff;
  border-radius: 4px;
  width: max-content;
  margin: 0 auto 13px;
  padding: 7px 10px;
  font-size: 12px;
  box-shadow: 0 1px 6px #00000008;
}
.service-chat-main article small {
  color: #5e6470;
  margin-bottom: 7px;
  font-size: 12px;
  display: block;
}
.service-chat-main article div {
  color: #282b31;
  background: #fff;
  border-radius: 4px;
  width: max-content;
  padding: 9px 12px;
  font-size: 13px;
  box-shadow: 0 1px 6px #00000008;
}
.service-composer {
  background: #fff;
  min-height: 101px;
  padding: 10px 8px 5px;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}
.service-composer > input {
  color: #9096a2;
  background: #f5f6f8;
  border: 0;
  border-radius: 7px;
  width: 100%;
  height: 42px;
  padding: 0 15px;
  font-size: 13px;
}
.service-composer > div {
  align-items: center;
  gap: 13px;
  height: 36px;
  padding: 2px 9px 0;
  display: flex;
}
.service-composer > div button {
  color: #66707d;
  width: 26px;
  height: 26px;
  padding: 1px;
}
.service-composer svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  width: 100%;
  height: 100%;
}
.service-composer .service-send {
  color: #fff;
  background: linear-gradient(110deg, #74caef, #737add);
  border-radius: 16px;
  width: 60px;
  height: 30px;
  margin-left: auto;
  font-size: 13px;
}
@media (width>=761px) {
  .portal-page {
    width: 390px;
    margin: auto;
    box-shadow: 0 0 28px #ddd;
  }
  .trend-page {
    width: min(1100px, 100%);
  }
  .portal-page main {
    padding: 18px;
  }
  .odds-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .bet-record-page main,
  .target-trend-page main {
    padding: 0;
  }
  .target-trend-page {
    width: 390px;
  }
}

/* Dingxin International light-blue treatment for secondary game routes. */

.portal-page{width:100%;max-width:none;min-height:100dvh;background:#f0f5ff;color:#535d76;box-shadow:none}.portal-header{height:56px;background:linear-gradient(90deg,#f0f5ff,#d6e6ff,#f0f5ff);border-bottom:1px solid #e4eaf5}.portal-header h1,.portal-header button{color:#5B9EFF}.source-badge{background:#ffffff;border-color:#d6e6ff;color:#5B9EFF}.portal-page main,.rules-page main{background:#f0f5ff}.record-table,.trend-filters label,.trend-summary span,.trend-scroll,.rule-card,.service-session,.service-chat-main article div{background:#ffffff;border-color:#e4eaf5;color:#535d76}.record-head,.trend-scroll th,.rules-play-table thead th{background:#eef5ff;color:#8a8f9c}.record-row,.trend-scroll th,.trend-scroll td,.rules-play-table th,.rules-play-table td,.rule-overview dl div,.rule-meta dl div{border-color:#e4eaf5}.record-row small,.portal-title p,.portal-title>span,.trend-filters label,.trend-summary span,.rule-overview dt,.rule-meta dt,.rules-heading p,.odds-section>header p,.odds-section>header>span{color:#a9a18f}.trend-summary b,.rules-play-table tbody td:last-child{color:#5B9EFF}.pager button{background:#5B9EFF;color:#17120a}.pager button:disabled{background:#352f24;color:#777063}.odds-grid{background:#3c321e;border-color:#3c321e}.odds-grid>div{background:#ffffff}.section-note,.pending-card{background:#1d180e;border-color:#5c4920;color:#d7bc75}.pending-card>p,.pending-card li,.rule-overview dd,.rule-meta dd{color:#dfd3b7}.service-chat-header,.service-composer{background:#ffffff;border-color:#342c1e}.service-chat-main{background:#f0f5ff}.service-composer>input{background:#ffffff;color:#535d76}.service-composer .service-send{background:linear-gradient(135deg,#e0c165,#a77a18);color:#17120a}
@media(width>=761px){.portal-page,.trend-page,.target-trend-page{width:100%;max-width:none;margin:0}.portal-page main{padding:24px 4vw}.rules-page .odds-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}

.sync-disclosure {
  color: #5B9EFF;
  background: #ffffff;
  border-bottom: 1px solid #d6e6ff;
  padding: 7px 12px;
  font-size: 11px;
  line-height: 1.4;
}
.bet-record-row {
  color: #535d76;
  background: #ffffff;
  border-color: #e4eaf5;
}
.bet-record-row h2,
.bet-record-row strong { color: #535d76; }
.bet-record-row p,
.bet-record-row small,
.bet-record-row em.pending { color: #a9a18f; }
.bet-record-row em.drawn { color: #5B9EFF; }
.synced-empty {
  color: #d7bc75;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e4eaf5;
  border-radius: 8px;
  margin: 18px 14px;
  padding: 28px 18px;
}
.synced-empty p {
  color: #a9a18f;
  margin: 8px 0 0;
  font-size: 12px;
}
.portal-page:not(.service-page) {
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}
.bet-record-page main {
  min-height: calc(100dvh - 94px);
}
.target-trend-page .trend-empty td {
  color: #a9a18f;
  text-align: center;
  height: 90px;
}
@media (max-width: 600px) {
  .portal-page,
  .trend-page,
  .target-trend-page { width: 100vw; max-width: none; }
  .target-trend-page .trend-scroll table { width: 100%; min-width: 390px; }
}

/* Compact Mark Six results layout: issue number plus seven wave/zodiac balls. */
.mark6-trend-page { min-height:100dvh; color:#353b48; background:#f4f5fb; }
.mark6-trend-page .portal-header {
  position:sticky; z-index:5; top:0; height:62px; color:#20242b;
  background:#fff; border-bottom:8px solid #f1f3fb;
}
.mark6-trend-page .portal-header button { left:14px; color:#20242b; font-size:39px; font-weight:300; }
.mark6-trend-page .portal-header h1 { color:#20242b; font-size:20px; font-weight:600; letter-spacing:0; }
.mark6-trend-page main { padding:0; background:#fff; }
.mark6-trend-page .trend-scroll {
  width:100%; overflow-x:hidden; overflow-y:visible; color:#3f4654;
  background:#fff; border:0; border-radius:0;
}
.mark6-trend-page .trend-scroll table {
  width:100%; min-width:0; table-layout:fixed; background:#fff;
}
.mark6-trend-page .mark6-issue-column { width:29.8%; }
.mark6-trend-page .mark6-result-column { width:70.2%; }
.mark6-trend-page .trend-scroll th,
.mark6-trend-page .trend-scroll td {
  height:52px; padding:5px 4px; color:#4a5262; background:#fff;
  border:1px solid #e6e8ee; font-size:15px;
}
.mark6-trend-page .trend-scroll th { height:51px; color:#5b6270; font-size:16px; font-weight:500; }
.mark6-trend-page .trend-scroll th:first-child,
.mark6-trend-page .trend-scroll td:first-child { width:29.8%; font-weight:600; }
.mark6-trend-page .trend-mark6-balls {
  display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); align-items:center;
  width:100%; min-width:0; gap:1px;
}
.mark6-trend-page .trend-mark6-ball {
  position:relative; display:block; width:32px; max-width:100%; height:37px; margin:0 auto;
}
.mark6-trend-page .trend-mark6-ball b {
  display:grid; place-items:center; width:30px; height:30px; margin:0 auto;
  box-sizing:border-box; color:#161a20; background:#fff; border:5px solid;
  border-radius:50%; font-size:15px; font-weight:700; line-height:1;
  box-shadow:0 1px 2px rgba(25,35,50,.18);
}
.mark6-trend-page .trend-mark6-ball.red b { border-color:#ff6c8d; }
.mark6-trend-page .trend-mark6-ball.blue b { border-color:#58bde5; }
.mark6-trend-page .trend-mark6-ball.green b { border-color:#62c68b; }
.mark6-trend-page .trend-mark6-ball.is-extra b { color:#fff; }
.mark6-trend-page .trend-mark6-ball.red.is-extra b { background:#e94e75; border-color:#e94e75; }
.mark6-trend-page .trend-mark6-ball.blue.is-extra b { background:#4cb0d9; border-color:#4cb0d9; }
.mark6-trend-page .trend-mark6-ball.green.is-extra b { background:#55b77c; border-color:#55b77c; }
.mark6-trend-page .trend-mark6-ball small {
  position:absolute; right:0; bottom:0; color:#20242b; font-size:11px;
  font-weight:700; line-height:1;
}
.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
@media (max-width:430px) {
  .mark6-trend-page .trend-scroll table { min-width:0; }
  .mark6-trend-page .mark6-issue-column { width:25%; }
  .mark6-trend-page .mark6-result-column { width:75%; }
  .mark6-trend-page .trend-mark6-balls { gap:0; overflow:hidden; }
  .mark6-trend-page .trend-scroll th:first-child,
  .mark6-trend-page .trend-scroll td:first-child { width:25%; }
  .mark6-trend-page .trend-scroll th,
  .mark6-trend-page .trend-scroll td { padding-inline:2px; }
  .mark6-trend-page .trend-mark6-ball { width:26px; height:35px; }
  .mark6-trend-page .trend-mark6-ball b { width:25px; height:25px; font-size:12px; border-width:4px; }
  .mark6-trend-page .trend-mark6-ball small { font-size:9px; }
  .mark6-trend-page .trend-mark6-ball.is-extra::after {
    content:'特'; position:absolute; top:-6px; right:-1px; padding:0 2px;
    color:#fff; background:#d9a927; border-radius:4px; font-size:8px; line-height:12px;
  }
}
