.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: #a46b10;
  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;
}
.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;
}
.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;
}
.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: #0b0b0b;
  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 black-gold treatment for secondary game routes. */
.portal-page{width:100%;max-width:none;min-height:100dvh;background:#090909;color:#f5ead0;box-shadow:none}.portal-header{height:56px;background:linear-gradient(90deg,#0a0a0a,#20190d,#0a0a0a);border-bottom:1px solid #3b301b}.portal-header h1,.portal-header button{color:#ebcb74}.source-badge{background:#16130d;border-color:#463819;color:#c9ad67}.portal-page main,.rules-page main{background:#090909}.record-table,.trend-filters label,.trend-summary span,.trend-scroll,.rule-card,.service-session,.service-chat-main article div{background:#151515;border-color:#352e21;color:#f5ead0}.record-head,.trend-scroll th,.rules-play-table thead th{background:#1f1a10;color:#c8b98d}.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:#332c20}.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:#e1bf61}.pager button{background:#d8b24a;color:#17120a}.pager button:disabled{background:#352f24;color:#777063}.odds-grid{background:#3c321e;border-color:#3c321e}.odds-grid>div{background:#151515}.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:#101010;border-color:#342c1e}.service-chat-main{background:#090909}.service-composer>input{background:#171717;color:#f5ead0}.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: #c9ad67;
  background: #16130d;
  border-bottom: 1px solid #463819;
  padding: 7px 12px;
  font-size: 11px;
  line-height: 1.4;
}
.bet-record-row {
  color: #f5ead0;
  background: #111;
  border-color: #332c20;
}
.bet-record-row h2,
.bet-record-row strong { color: #f5ead0; }
.bet-record-row p,
.bet-record-row small,
.bet-record-row em.pending { color: #a9a18f; }
.bet-record-row em.drawn { color: #d8b24a; }
.synced-empty {
  color: #d7bc75;
  text-align: center;
  background: #151515;
  border: 1px solid #352e21;
  border-radius: 8px;
  margin: 18px 14px;
  padding: 28px 18px;
}
.synced-empty p {
  color: #a9a18f;
  margin: 8px 0 0;
  font-size: 12px;
}
.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; }
}
