@charset "UTF-8";
article {
  counter-reset: section;
}

h2 {
  counter-reset: title;
}

ol {
  counter-reset: item;
}

h2::before {
  counter-increment: section;
  content: counter(section) ". ";
}

h3::before {
  counter-increment: title;
  content: counter(section) "." counter(title) ". ";
}

ol > li::before {
  counter-increment: item;
  content: counter(section) "." counter(title) "." counters(item, ".") ". ";
}

body {
  margin: 1rem;
  padding-bottom: 2rem;
  font-family: Arial, Helvetica, SimSun, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

article {
  margin: 0 1em;
}

section {
  font-size: 14px;
}

.help > section {
  margin: 0 1em;
}

.help > section + article {
  margin-top: 3em;
}

.help > section h2 {
  margin-top: 1.5em;
}

.help > section h2::before {
  display: none;
}

h1 {
  font-size: 2em;
  line-height: 1.15;
}

h2 {
  display: -webkit-flex;
  display: flex;
  margin: .75em 0;
  font-size: 1.625em;
  line-height: 1.15;
}

h2::before {
  padding-right: .25em;
}

h3 {
  display: -webkit-flex;
  display: flex;
  margin: .5em 0;
  font-size: 1.25em;
  line-height: 1.15;
}

h3::before {
  padding-right: .25em;
}

h3 + ol {
  margin-bottom: 5em;
}

ol {
  margin: .5em 0;
  margin-left: 4.25em;
  padding: 0;
  list-style-type: none;
}

ol ol {
  margin-top: 2em;
  margin-left: 2.5em;
}

ol ol ol {
  margin-left: 3.25em;
}

ol ol ol ol {
  margin-left: 4em;
}

li {
  margin: .5em 0;
  margin-bottom: 2em;
}

li::before {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-flex-flow: row-reverse nowrap;
          flex-flow: row-reverse nowrap;
  width: 1em;
  margin-left: -1.5em;
  margin-right: .5em;
  font-weight: 700;
}

li > p {
  display: inline;
}

blockquote {
  margin: 0;
  color: #333;
}

ul {
  padding-left: 1.5em;
  color: #333;
}

ul li {
  margin-bottom: .75em;
}

p {
  margin: 1em 0;
}

img[src*=Keno] {
  width: 100%;
  max-width: 500px;
}

table, thead, tbody, tr, th, td {
  border: 0 solid;
  border-color: inherit;
}

table {
  width: 100%;
  line-height: 1.15;
  border-collapse: collapse;
  border-spacing: 0;
  border-color: #999;
}

table ~ table {
  margin-top: 2em;
}

thead {
  background-color: #e4e4e4;
}

tr {
  border-top-width: 1px;
}

tr:last-child {
  border-bottom-width: 1px;
}

th, td {
  padding: .125em 1%;
  height: 2em;
  font-weight: 400;
  text-align: center;
  border-left-width: 1px;
}

th:last-child, td:last-child {
  border-right-width: 1px;
}

#HorseRacingRules + ol th, #HorseRacingRules + ol td {
  width: 8%;
}

#HorseRacingRules + ol th:first-child, #HorseRacingRules + ol td:first-child {
  width: 4%;
}

#HorseRacingRules + ol th:nth-child(2), #HorseRacingRules + ol td:nth-child(2) {
  width: auto;
}

a[href] {
  color: currentColor;
  text-decoration: none;
  pointer-events: none;
}

section *:empty:not(br):not(img),
nodata + br {
  display: none;
}

.gotop {
  background: rgba(58, 58, 58, 0.85);
  color: #ffffff;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 100%;
  padding: 5px;
  position: fixed;
  right: 40px;
  bottom: 25px;
  cursor: pointer;
  text-align: center;
}

aside {
  width: 200px;
  -webkit-flex: 0 0 200px;
          flex: 0 0 200px;
  padding: 1em;
  padding-top: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: fixed;
}

aside * {
  box-sizing: border-box;
}

aside .sidenav {
  width: 100%;
  height: auto;
  font-weight: bold;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 0.2rem 0 rgba(0, 0, 0, 0.4);
}

aside .sidenav__header {
  height: auto;
  line-height: 2;
  padding: 0.3em 0.833em;
  color: #ffffff;
  background: #3A3A3A;
  position: relative;
}

aside .sidenav__header .arrow {
  cursor: pointer;
  width: 50px;
  position: relative;
}

aside .sidenav__header .arrow:before {
  content: "";
  position: absolute;
  transition: ease .3s;
  width: 40px;
  height: 40px;
  top: -6px;
  line-height: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.3 8.5c-.1-.2-.3-.2-.4 0s-.1.3 0 .5l3.9 3.9c.1.1.3.1.5 0L14.2 9c.1-.1.1-.3 0-.5s-.3-.1-.5 0L10 12 6.3 8.5z' fill='%23fff'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

aside .sidenav__header .arrow-back {
  cursor: pointer;
  width: 45px;
  height: 50px;
  position: relative;
  -webkit-justify-content: center;
          justify-content: center;
  display: none;
}

aside .sidenav__header .arrow-back:before {
  width: 28px;
  height: 100%;
  content: "";
  position: absolute;
  line-height: 1;
  left: 9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath fill='%23FFF' d='M20.1 12.85v-1.2H6.528l6.451-6.403-.732-.726-7.784 7.729 7.784 7.729.732-.726-6.451-6.403z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

aside .sidenav__header .menu-touch {
  cursor: pointer;
  padding: 0.5em 0;
  width: 50px;
  position: relative;
  border-radius: 0 4px 4px 0;
  margin-left: auto;
  z-index: 99999;
  display: none;
}

aside .sidenav__header .menu-touch label {
  display: -webkit-flex;
  display: flex;
  cursor: pointer;
  height: 100%;
}

aside .sidenav__header .menu-touch .span-mask {
  padding-top: 8px;
  height: 30px;
  position: absolute;
  cursor: pointer;
}

aside .sidenav__header .menu-touch .span-mask .span-line {
  width: 30px;
  height: 2px;
  background: #ffffff;
  display: block;
  transition: .2s;
}

aside .sidenav__header .menu-touch .span-mask .span-line + .span-line {
  display: block;
  margin-top: 5px;
  -webkit-transform: translateY(0) rotate(0deg);
          transform: translateY(0) rotate(0deg);
}

aside .sidenav__header .menu-touch .span-mask .span-line + .span-line + .span-line {
  display: block;
  -webkit-transform: translateY(0) rotate(0deg);
          transform: translateY(0) rotate(0deg);
}

aside .sidenav__header.open .menu-touch .arrow:before {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

aside .sidenav__header.open .menu-touch .span-mask .span-line {
  display: none;
}

aside .sidenav__header.open .menu-touch .span-line {
  position: absolute;
  margin-top: 0;
  display: none;
}

aside .sidenav__header.open .menu-touch .span-line + .span-line {
  display: block;
  position: absolute;
  margin-top: 6px;
  -webkit-transform: translateY(0) rotate(-45deg);
          transform: translateY(0) rotate(-45deg);
}

aside .sidenav__header.open .menu-touch .span-line + .span-line + .span-line {
  display: block;
  position: static;
  margin-top: 6px;
  -webkit-transform: translateY(0) rotate(45deg);
          transform: translateY(0) rotate(45deg);
}

aside .sidenav__item {
  cursor: pointer;
  width: auto !important;
  background: #e2e2e2;
  border-bottom: solid 1px #cccaca;
}

aside .sidenav__item:hover {
  background: whitesmoke;
}

aside .sidenav__item a {
  padding: 0.6em 0.833em;
  color: #545454 !important;
  text-decoration: none;
}

.help--tnc section ~ section,
.help--tou section ~ section {
  margin-top: 3em;
}

.help--tnc h2 + ol li::before,
.help--tou h2 + ol li::before {
  display: none;
}

.help--tnc h3,
.help--tou h3 {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: .5em 0;
  margin-left: 3.25em;
  margin-bottom: 2em;
}

.help--tnc h3::before,
.help--tou h3::before {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-flex-flow: row-reverse nowrap;
          flex-flow: row-reverse nowrap;
  width: 1em;
  margin-left: -1.5em;
  margin-right: .5em;
  font-weight: 700;
}

.help--tnc h3 > a,
.help--tou h3 > a {
  margin-left: .5em;
}

.help--tnc h3 + ol,
.help--tou h3 + ol {
  margin-left: 5.25em;
  margin-bottom: 3em;
}

.help--lic {
  display: -webkit-flex;
  display: flex;
  color: #545454;
  height: 100%;
  line-height: 1.5;
  padding: 15px 0;
  font-size: 12px;
  line-height: 20px;
  font-family: "Arial", "Tahoma", "pmingliu", "新細明體";
}

.help--lic ol {
  margin-left: 6.8em;
}

.help--lic ol ol {
  margin-left: 4em;
}

.help--lic ol ol ol {
  margin-left: 5.25em;
}

.help--lic h1 {
  font-size: 20px;
  margin-top: 5px;
}

.help--lic h2 {
  font-size: 16px;
}

.help--lic h3 {
  font-size: 15px;
  margin-left: 1.3em;
}

.help--lic a[href] {
  pointer-events: auto;
  display: block;
}

.help--lic article {
  padding-left: 224px;
  height: calc(100vh - 30px);
  overflow-y: auto;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}

.help--lic section {
  padding: 0.5em 1.5em 1.5em;
  font-size: inherit;
}

[data-layout=partial] section > * {
  display: none;
}

[data-layout=partial] section > p {
  margin-top: 0;
}

[data-layout=partial] section[data-open="true"] h2 {
  display: block;
  margin-top: 0;
  padding-top: .75em;
}

[data-layout=partial] section[data-open="true"][id="GeneralRnR"] > *, [data-layout=partial] section[data-open="true"][id="Bettype"] > *, [data-layout=partial] section[data-open="true"][id="Lottery"] > * {
  display: block;
}

[data-layout=partial] section h3[data-open="true"] {
  display: block;
  margin-top: 0;
  padding-top: .5em;
}

[data-layout=partial] section h3[data-open="true"] + ol {
  display: block;
}

[data-layout=sidemenu] body {
  margin: 0;
  padding: 0;
  height: 100%;
}

@media screen and (max-width: 768px) {
  article {
    margin-left: .5em;
    margin-right: .5em;
  }
  ol {
    margin-left: 0 !important;
  }
  ol ol {
    margin-top: 5em;
  }
  li {
    margin-bottom: 5em;
  }
  li::before {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row nowrap;
            flex-flow: row nowrap;
    width: auto;
    margin-left: 0;
  }
  blockquote {
    line-height: 1.75;
  }
  .help--tnc > section h2 ~ h2,
  .help--tou > section h2 ~ h2 {
    margin-top: 2.5em;
  }
  .help--tnc > section + article,
  .help--tou > section + article {
    margin-top: 5em;
  }
  .help--tnc h3,
  .help--tou h3 {
    margin-left: 0;
    margin-bottom: 5em;
    -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
  }
  .help--tnc h3::before,
  .help--tou h3::before {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row nowrap;
            flex-flow: row nowrap;
    width: auto;
    margin-left: 0;
  }
}

@media screen and (max-width: 768px) {
  [data-layout=sidemenu] {
    height: 100%;
  }
  .gotop {
    right: 20px;
    bottom: 20px;
    -webkit-user-select: none;
            user-select: none;
  }
  blockquote > li {
    margin-bottom: 1em;
  }
  li {
    margin-bottom: 2em;
  }
  ol ol {
    margin-top: 2em;
  }
  h2 {
    font-size: 19px;
    margin: 0;
    padding: .75em 0;
  }
  h3 {
    font-size: 17px;
    margin: 0 !important;
    padding: .5em 0;
  }
  .help--lic {
    -webkit-flex-flow: column;
            flex-flow: column;
    padding: 0;
    font-size: 14px;
  }
  .help--lic h1 {
    display: none;
  }
  .help--lic article {
    padding-left: 0;
    height: auto;
  }
  aside {
    -webkit-flex: 0 0 auto;
            flex: 0 0 auto;
    width: calc(100% - 30px);
    padding: 0;
    margin: 20px 15px 0;
    z-index: 1;
    position: relative;
    overflow: visible;
  }
  aside .sidenav {
    border-radius: 0;
    overflow: visible;
  }
  aside .sidenav__header {
    padding: 0;
    display: -webkit-flex;
    display: flex;
    font-size: 1.5em;
  }
  aside .sidenav__header .text {
    font-size: 0.8em;
    padding: 0.5em 0;
    padding-left: 0.833em;
  }
  aside .sidenav__header .menu-touch {
    display: block;
  }
  aside .sidenav__item a {
    padding: 1em 0.833em;
  }
  aside .sidenav__content {
    display: none;
    position: absolute;
    width: 100%;
    box-shadow: 0 0 0.2rem 0 rgba(0, 0, 0, 0.4);
  }
  aside .sidenav .arrow-back[data-open="true"] {
    display: -webkit-flex;
    display: flex;
  }
  aside .sidenav .arrow-back[data-open="true"].arrow-back + .text {
    padding-left: 0;
  }
}
