:root {
  --bg_color: #fff;
  --game_name_color: #fffa8a;
}

blockquote,
body,
button,
dd,
dl,
dt,
fieldset,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
input,
lengend,
li,
ol,
p,
pre,
td,
textarea,
th,
ul {
  margin: 0;
  padding: 0;
}

article,
canvas,
footer,
header,
nav,
section {
  display: block;
}

body,
button,
input,
select,
small,
textarea {
  font: 12px/1.5 Source Han Sans SC-Regular, tahoma, helvetica, arial,
    "\5b8b\4f53", sans-serif;
  outline: none;
}

h1,
h2,
h3 {
  font-weight: 400;
  /* font-family: Fredoka-Bold, Fredoka */
}

h4,
h5,
h6 {
  font-size: 100%;
}

address,
cite,
dfn,
em,
var {
  font-style: normal;
}

small {
  font-size: 12px;
}

ol,
ul {
  list-style: none;
}

a,
a:active,
a:hover,
a:link,
a:visited {
  text-decoration: none;
}

abbr[title],
acronym[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

q:after,
q:before {
  content: "";
}

legend {
  color: #000;
}

fieldset,
img {
  border: none;
}

button,
input,
select,
textarea {
  font-size: 100%;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

hr {
  border: none;
  height: 1px;
}

* {
  box-sizing: border-box;
}

body,
html {
  min-height: 100%;
  font-family: Source Han Sans SC;
}

body {
  display: none;
  background: var(--bg_color);
}

body[system] {
  display: block;
}

body[system="rgame"],
body[system="rgame"] * {
  scrollbar-width: thin;
  scrollbar-color: #e1e1e1 #f3f3f3;
}

body[system="rgame"][no-scroll],
body[system="rgame"] [no-scroll] {
  overflow: hidden;
}

body[system="rgame"] * ::-webkit-scrollbar-track,
body[system="rgame"] ::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: #f3f3f3;
}

body[system="rgame"] * ::-webkit-scrollbar-track-piece,
body[system="rgame"] ::-webkit-scrollbar-track-piece {
  display: none;
}

body[system="rgame"] * ::-webkit-scrollbar,
body[system="rgame"] ::-webkit-scrollbar {
  background: transparent;
  width: 10px;
  height: 10px;
}

body[system="rgame"] * ::-webkit-scrollbar-thumb,
body[system="rgame"] ::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #e1e1e1;
  width: 6px;
  min-height: 50px;
  border: 2px solid transparent;
  background-clip: content-box;
}

body[system="mobile"][no-scroll],
body[system="mobile"] [no-scroll] {
  overflow: hidden;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.outbrain-wrap1 {
  padding: 0 30px;
}

.rgame-g-card {
  display: block;
  position: relative;
  transition-duration: 0.3s;
}

.rgame-g-card .rgame-card-w p {
  background-size: 100%;
  width: 100%;
  height: 100%;
  border: 4px solid #fff;
  border-radius: 24px;
}

.rgame-g-card .rgame-card-w .rgame-game-n {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 44px;
  /* background-color: var(--game_name_color); */
  background-color: #5683ff;
  border-radius: 0 0 24px 24px;
  z-index: 99;
  text-align: center;
  color: #fff;
}

.rgame-g-card:hover {
  transform: scale(1.1);
  transition-duration: 0.3s;
}

body[system="rgame"] .rgame-g-card .rgame-card-w {
  width: 88px;
  height: 88px;
}

body[system="rgame"] .rgame-g-card .rgame-card-w:hover .rgame-game-n {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 6px;
  white-space: break-spaces;
}

body[system="rgame"] .rgame-g-card .rgame-card-w:hover .rgame-game-n span {
  display: block;
  width: 100%;
  max-height: 100%;
  overflow: hidden;
}

body[system="rgame"] .rgame-g-card[data-size="large"] .rgame-card-w {
  position: relative;
  width: 150px;
  height: 150px;
}

body[system="rgame"] .rgame-g-card[data-size="large"] .rgame-card-w img {
  width: 100%;
  height: 100%;
  padding: 6px 0;
  border-radius: 24px;
  object-fit: cover;
}

body[system="rgame"]
  .rgame-g-card[data-size="large"]
  .rgame-card-w
  .rgame-game-n {
  height: 55px;
}

body[system="rgame"] .rgame-g-card[data-size="large"]:hover .rgame-card-w {
  transition-duration: 0.3s;
}

body[system="rgame"] .rgame-g-card[data-size="large"]:hover .rgame-card-w p {
  border: 4px solid var(--game_name_color);
  box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.4);
}

body[system="rgame"]
  .rgame-g-card[data-size="large"]:hover
  .rgame-card-w
  .rgame-game-n {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  white-space: break-spaces;
}

body[system="rgame"]
  .rgame-g-card[data-size="large"]:hover
  .rgame-card-w
  .rgame-game-n
  span {
  display: block;
  width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.game-info-wrap {
  font-size: 19px;
  font-weight: 400;
  line-height: 28px;
}

.game-info-wrap .game-description,
.game-info-wrap .game-instructions {
  margin-bottom: 56px;
}

.game-info-wrap .game-description p,
.game-info-wrap .game-instructions p {
  opacity: 0.7;
  color: #fff;
}

.game-info-wrap .game-description img,
.game-info-wrap .game-instructions img {
  margin-bottom: 8px;
}

.game-info-wrap .game-category li {
  display: inline-block;
  font-size: 16px;
  margin: 8px 10px 10px 0;
  padding: 3px 23px;
  text-align: center;
  background: linear-gradient(93deg, #f5f0ff, #efe7ff);
  border-radius: 100px;
  cursor: pointer;
}

@font-face {
  font-family: iconfont;
  src: url(iconfont.woff) format("woff");
  font-display: swap;
}

.rgame-game-search {
  border-radius: 12px;
  position: sticky;
  z-index: 99;
}

.rgame-game-search .rgame-game-s-m .search-input {
  width: 184px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
  background: #f3f6f9;
  border-radius: 2px 0 0 2px;
  outline: none;
  border: none;
}

body[system="rgame"] .rgame-game-search {
  display: flex;
  width: 200px;
  justify-content: space-between;
}

body[system="rgame"] .rgame-game-search .rgame-game-s-m {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.rgame-title-left {
  display: flex;
  align-items: center;
}

.rgame-title-right {
  display: flex;
  align-items: center;
}

.rgame-game-s-i {
  cursor: pointer;
  width: 32px;
  height: 32px;
  /* margin-right: 18px; */
}
.menu-icon {
  cursor: pointer;
  width: 32px;
  height: 32px;
  /* margin-left: 18px */
}

body[system="rgame"]
  .rgame-game-search
  .search-drawer
  .search-container
  .rgame-game-s-i {
  position: absolute;
  display: inline-block;
  top: 7px;
  left: 16px;
  width: 50px;
  height: 50px;
  background-repeat: no-repeat;
  background-position: 50%;
}

body[system="rgame"] .rgame-game-search .menu-drawer {
  position: fixed;
  width: 450px;
  height: 100vh;
  top: 0;
  right: 0;
  padding: 78px 32px 32px;
  background-color: #fff;
  box-shadow: -5px 0 10px 0 rgba(0, 0, 0, 0.25);
}


body[system="rgame"] .rgame-game-search .content-bg {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}


.rgame-header {
  display: flex;
  width: 100%;
  height: 100px;
  align-items: center;
  background-color: #5683ff;
}

.rgame-header .rgame-header-area {
  display: flex;
  justify-content: space-between;
  height: 64px;
  width: 100%;
  margin: 0 21px;
}

.rgame-header .rgame-header-area .rgame-logo {
  display: flex;
  width: 260px;
  height: 64px;
  align-items: center;
  justify-content: center;
}

.rgame-header .rgame-header-area .rgame-logo img {
  width: 64px;
  height: 64px;
}

.rgame-header .rgame-header-area .rgame-logo span {
  display: inline-block;
  width: 141px;
  text-align: center;
  /* margin-left: 10px; */
  text-transform: capitalize;
  font-size: 29px;
  color: #fff;
}

.rgame-header .rgame-header-area .rgame-search {
  display: flex;
  width: 82px;
  height: 100%;
  align-items: center;
}

.rgame-index-wrap {
  width: 100%;
  height: 28px;
  justify-content: space-between;
  margin: 32px 0;
}

.rgame-index-wrap,
.rgame-index-wrap .rgame-index-header {
  display: flex;
  align-items: center;
}

.rgame-index-wrap .rgame-index-header .rgame-category {
  display: inline-block;
  color: #000;
  margin-left: 5px;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
}

.rgame-index-wrap .rgame-all-area .rgame-more-a .rgame-more-t {
  color: #000;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
}

.hover-transform {
  transform: scale(1.1);
  transition-duration: 0.3s;
}

body[system="rgame"] .index-wrap {
  width: 100%;
  min-height: 100vh;
}

body[system="rgame"] .index-wrap .index-main {
  width: 90%;
  margin: 0 auto;
  /* padding-right: 10px; */
}

body[system="rgame"] .index-wrap .index-main .rgame-game-in {
  margin-bottom: 24px;
}

body[system="rgame"] .index-wrap .index-main .rgame-game-in,
body[system="rgame"] .index-wrap .index-main .pop-game-main {
  display: grid;
  grid-template-columns: repeat(auto-fill, 150px);
  grid-template-rows: repeat(auto-fill, 150px);
  grid-auto-flow: row dense;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  margin: 0 auto;
  justify-content: center;
}

body[system="rgame"] .index-wrap .index-main .pop-game-main {
  margin-bottom: 40px;
}

@media (min-width: 1788px) {
  .index-wrap .index-main {
    width: 1768px;
  }
  .index-wrap .index-main .game-main .rgame-g-card {
    width: 200px;
    height: 200px;
  }
}

@media (min-width: 1588px) and (max-width: 1788px) {
  .index-wrap .index-main {
    width: 1544px;
  }
}

@media (min-width: 1388px) and (max-width: 1588px) {
  .index-wrap .index-main {
    width: 1320px;
  }
  .index-wrap .index-main .category-main,
  .index-wrap .index-main .pop-game-main {
    grid-column-gap: 36px;
  }
}

@media (min-width: 1288px) and (max-width: 1388px) {
  .index-wrap .index-main {
    width: 1096px;
  }
}

@media (min-width: 1188px) and (max-width: 1288px) {
  .index-wrap .index-main {
    width: 1096px;
  }
  .index-wrap
    .index-main
    .game-main
    .rgame-g-card[data-size="large"][data-grid-mark="0"] {
    grid-area: 1/1/3/3;
  }
  .index-wrap
    .index-main
    .game-main
    .rgame-g-card[data-size="large"][data-grid-mark="1"] {
    grid-area: 1/3/3/5;
  }
  .index-wrap
    .index-main
    .game-main
    .rgame-g-card[data-size="large"][data-grid-mark="2"] {
    grid-area: 1/5/3/7;
  }
  .index-wrap
    .index-main
    .game-main
    .rgame-g-card[data-size="large"][data-grid-mark="3"] {
    grid-area: 1/7/3/9;
  }
  .index-wrap
    .index-main
    .game-main
    .rgame-g-card[data-size="large"][data-grid-mark="4"] {
    grid-area: 1/9/3/11;
  }
  .index-wrap
    .index-main
    .game-main
    .rgame-g-card[data-size="large"][data-grid-mark="5"] {
    grid-area: 3/3/5/5;
  }
  .index-wrap
    .index-main
    .game-main
    .rgame-g-card[data-size="large"][data-grid-mark="6"] {
    grid-area: 3/7/5/9;
  }
  .index-wrap
    .index-main
    .game-main
    .rgame-g-card[data-size="large"][data-grid-mark="7"] {
    grid-area: 5/1/7/3;
  }
  .index-wrap
    .index-main
    .game-main
    .rgame-g-card[data-size="large"][data-grid-mark="8"] {
    grid-area: 5/9/7/11;
  }
  .index-wrap
    .index-main
    .game-main
    .rgame-g-card[data-size="large"][data-grid-mark="9"] {
    grid-area: 7/3/9/5;
  }
  .index-wrap
    .index-main
    .game-main
    .rgame-g-card[data-size="large"][data-grid-mark="10"] {
    grid-area: 7/7/9/9;
  }
}

@media (min-width: 988px) and (max-width: 1188px) {
  .index-wrap .index-main {
    width: 872px;
  }
  .index-wrap .index-main .category-main,
  .index-wrap .index-main .pop-game-main {
    grid-column-gap: 50px;
  }
}

@media (min-width: 800px) and (max-width: 988px) {
  .index-wrap .index-main {
    width: 648px;
  }
  .index-wrap .index-main .category-main,
  .index-wrap .index-main .pop-game-main {
    grid-column-gap: 16px;
  }
}

@media (max-width: 800px) {
  .index-wrap .index-main {
    width: 424px;
  }
}

@font-face {
  font-family: Fredoka;
  font-style: normal;
  font-weight: 400;
  src: url(fredoka-semi-bold.woff2) format("woff");
  font-display: swap;
}

@font-face {
  font-family: Fredoka-Bold;
  font-style: normal;
  font-weight: 400;
  src: url(fredoka-bold.woff2) format("woff");
  font-display: swap;
}

/* header--------------------------------------- */
.index-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.search-box {
  height: 30px;
  padding: 5px;
  margin: 10px;
  border-radius: 15px;
  flex-grow: 1;
  max-width: 600px;
}

.item-container {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.item-image {
  width: 50px;
  height: auto;
  margin-right: 10px;
}

.item-content {
  flex-grow: 1;
  font-size: 16px;
}

@media (max-width: 600px) {
  .item-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .item-image {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

.menu-button {
  padding: 10px;
  margin: 10px;
  cursor: pointer;
}

.popup {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  background-color: #fff;
  overflow-x: hidden;
  padding-top: 60px;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
}

body.popup-open .popup-overlay {
  display: block;
}

.popup a {
  /* padding: 8px 8px 8px 32px; */
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.popup a:hover {
  color: #000;
}

.popup .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

body.popup-open {
  overflow: hidden;
}

.search-container {
  position: relative;
  width: 100%;
  padding-bottom: 24px;
}

.search-box-na {
  width: 100%;
  height: 64px;
  padding: 8px 16px 8px 66px;
  background: #eff0f6;
  border-radius: 59px;
  border: none;
  font-size: 18px;
  color: #0e2b4d;
}

/* content---------------------------------------- */
.ad {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  background-color: #ccc;
  margin: 28px 0px;
}

.ad .adBox {
  min-width: 300px;
  min-height: 250px;
}

.ad p {
  color: #fff;
  margin: 10px 0;
}

.categoryMain {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
}

.categoryMain::-webkit-scrollbar {
  display: none;
}

.categoryCard {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 200px;
  height: 88px;
  cursor: pointer;
  padding: 4px 4px 0;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
  transition-duration: 0.3s;
  border-radius: 16px;
  background-color: #fff;
  margin-right: 10px;
  word-break: break-word;
  overflow: hidden;
}

.categoryCard img {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 14px;
}

.categoryCard h3 {
  display: flex;
  width: 100px;
  align-items: center;
  color: #0e2b4d;
  font-weight: 600;
  line-height: 14px;
  padding: 8px 12px 12px;
  word-break: break-word;
}

.now-category {
  width: 100%;
  height: 56px;
  line-height: 56px;
  color: #000;
  background: linear-gradient(90deg, #89bbf1, rgba(129, 67, 255, 0));
  border-radius: 16px;
  margin-bottom: 24px;
}
@media (min-width: 942px) {
    .now-category {
        width: 840px;
        height: 56px;
        line-height: 56px;
        color: #000;
        background: linear-gradient(90deg, #89bbf1, rgba(129, 67, 255, 0));
        border-radius: 16px;
        margin-bottom: 24px;
    }
}

.now-category > span:first-child {
  font-size: 15px;
  font-weight: 600;
  margin: 0 6px 0 16px;
}

.ad-wrap {
  width: 100%;
  height: 250px;
  margin: 0 auto 10px;
}

/* footer------------------------------------ */
.text-info {
  margin: 0px auto;
  padding: 34px 40px;
}

.text-info h2 {
  color: #16e3ff;
  font-weight: 600;
  font-size: 24px;
  line-height: 28px;
  padding-top: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
  margin-bottom: 34px;
}

.text-info h3 {
  color: #000;
  font-size: 20px;
  line-height: 24px;
}

.text-info h3,
.text-info h4 {
  font-weight: 600;
  margin-bottom: 10px;
}

.text-info h4 {
  font-size: 14px;
  color: #333;
  line-height: 20px;
  color: #212b3a;
}

.text-info p {
  font-size: 14px;
  color: #666;
  line-height: 30px;
}

.text-info h3{
  margin-top: 34px;
}

@media screen and (max-device-width: 768px) {
  .text-info {
    width: 100%;
    margin: 0px auto;
    padding: 34px 30px;
  }
}

.game-info {
  margin-top: 24px;
  padding: 32px 24px;
}

.game-footer-one {
  background-color: #5683ff;
  /* border-radius: 10px; */
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}

@media (min-width: 1500px) {
    .game-footer-one{
        border-radius: 10px;
    }
  }
.title-info h1 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  line-height: 46px;
  margin-bottom: 2px;
}

.game-description p {
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  line-height: 22px;
  opacity: 0.5;
}

.footer {
  width: 100%;
  text-align: center;
  margin: 20px 0;
}

.footer .footer-menu {
  display: flex;
  justify-content: center;
  margin-right: 20px;
  padding: 10px 0;
}

.footer .footer-menu li a {
  color: #000;
  font-size: 14px;
  font-weight: 600;
}

.footer .footer-menu li a:hover {
  color: #5683ff;
}

.footer .footer-menu .menu-privacy {
  margin-right: 50px;
}

/* game------------------------------------------ */
@media (min-width: 1500px) {
  .game-page {
    width: 70%;
    margin: 0 auto;
  }
}
.game-main {
  margin: 0 21px;
}
.game-main .game-area {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-main .game-area .game-left {
  display: none;
}

.game-main .game-area .game-info,
.game-main .game-area .video-main {
  border-radius: 20px;
}

.game-main .game-area .game-main-core {
  background: #fff;
  box-shadow: 0 4px 10px 1px rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
}

.game-main .game-area .game-main-core .game-core {
  width: 100%;
  height: calc(100% - 100px);
  overflow: hidden;
  position: relative;
}

@media (min-width: 496px) {
  .game-page .game-wrap .game-main {
    width: 516px;
  }

  .game-page .game-wrap .game-main .game-area .game-main-core {
    height: 324px;
  }

  .game-page .game-wrap .game-main .game-area .game-main-core .game-core {
    height: 100%;
  }

  .game-page .game-wrap .game-main .game-area .category-main {
    grid-column-gap: 15px;
  }

  .game-page .game-wrap .game-main .game-area .new-game-main .game-card,
  .game-page .game-wrap .game-main .game-area .similar-wrap .game-card {
    grid-area: 1/5/3/7;
  }
}

.game-play-area .game-play-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0.5;
  object-fit: cover;
}

.game-attr {
  display: flex;
  width: 100%;
  padding: 6px 24px;
}

.game-attr .game-attr-info {
  height: 100%;
  position: relative;
  padding-left: 78px;
  padding-top: 10px;
}

.game-attr .game-attr-info img {
  width: 54px;
  height: 54px;
  position: absolute;
  top: 18px;
  left: 0;
  border-radius: 6px;
}

.game-attr .game-attr-info h2 {
  color: #000;
  font-size: 24px;
  font-weight: 600;
  line-height: 24px;
  font-family: Fredoka-SemiBold, Fredoka;
}
.game-attr .game-attr-info p {
    padding-top: 5px;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    line-height: 22px;
    opacity: 0.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-description p {
  font-size: 14px;
  font-weight: 400;
  color: #000;
  line-height: 22px;
  opacity: 0.5;
}

.game-play {
  position: relative;
  background-size: cover;
  background-position: center;
}

.play-now-button {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translate(-50%, 0);
  padding: 10px 20px;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.play-now-button .play-now {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.play-now-button img {
  display: inline-block;
  width: 100%;
  /* height: 64px; */
  margin: 0 auto;
  background-repeat: no-repeat;
  background-position: 50%;
  height: auto;
  object-fit: cover;
  z-index: 999;
}

.play-now-button h3 {
  font-family: Fredoka-SemiBold, Fredoka;
  display: inline-block;
  width: 100%;
  font-weight: 600;
  text-align: center;
  font-size: 16px;
  line-height: 16px;
  color: #000;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}
