@import url("https://fonts.googleapis.com/css2?family=Saira:wght@100;200;300;400;500;600;700;800;900&display=swap");
* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  vertical-align: baseline;
}
input:focus {
  outline: none;
}
body {
  font-family: "Saira", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4375;
  color: #111;
  -webkit-font-smoothing: antialiased;
  background-color: #020320;
}
img {
  width: 100%;
  max-width: 100%;
  outline: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  vertical-align: middle;
}
button {
  border: 0;
  background: 0;
}

li {
  list-style: none;
}

a {
  cursor: pointer;
  text-decoration: none;
  color: #000;
}

body {
}

.wrapper {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}

.detail-page {
  padding: 10px;
}

.page-left {
  background: transparent;
  overflow: hidden;
  flex-grow: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 10px;
}

.detail-right {
  overflow: hidden;
}

.detail-info .info {
  flex-shrink: 0;
}

.box-ad {
  min-width: 336px;
  min-height: 280px;
  width: 100%;
  height: 100%;
}

.app-title {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.app-title .title {
  font-family: "Saira", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: white;
}

.app-title .developer {
  font-family: "Saira", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: #8986a8;
}

.app-header {
  display: flex;
}

.app-header .app-title {
  margin-left: 10px;
}

.app-header .app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20%;
  overflow: hidden;
  box-shadow:
    0 1px 2px 0 rgb(60 64 67 / 20%),
    0 1px 3px 1px rgb(60 64 67 / 10%);
  flex-shrink: 0;
}

.app-icon {
  aspect-ratio: 1;
  width: 100%;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-icon {
  width: 10px;
  height: 10px;
}
.s-icon-2 {
  width: 15px;
  height: 15px;
}
/* GRID → convert to horizontal row */

/* DESKTOP (same horizontal) */
.info-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px;
  background-color: #0203206d;

  margin-top: 25px;
}

/* ITEM */
.info-card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  position: relative;
  flex: 1; /* 🔥 equal spacing */
}

/* DIVIDER */
.info-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1.5px;

  background: linear-gradient(
    to bottom,
    rgba(21, 4, 55, 0) 0%,
    /* #150437 transparent */ rgba(255, 255, 255, 0.8) 50%,
    /* center highlight */ rgba(6, 3, 34, 0) 100% /* #060322 transparent */
  );
}

/* REMOVE ICON */
.info-card .icon {
  display: none;
}

/* TEXT CENTER */
.info-card .text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

/* LABEL */
.info-card .text span {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

/* VALUE */
.info-card .text strong {
  font-size: 16px;
  font-weight: 400;
  color: #b0a9d6;
}

/* 🔥 MOBILE FIX (2 COLUMN GRID) */
@media (max-width: 768px) {
  .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 🔥 2 columns */
    gap: 12px;
    padding: 12px;
  }

  .info-card {
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.05); /* slight card feel */
    border-radius: 10px;
  }

  /* REMOVE DIVIDER IN MOBILE */
  .info-card::after {
    display: none;
  }
}

.app-metas {
  border-radius: 4px;
  margin-top: 10px;
  padding: 10px;
}
.app-metas ul li {
  display: flex;
  margin-top: 10px;
}
.app-metas ul li p {
  width: 140px;
}
.app-metas ul li small {
  text-align: right;
  width: calc(100% - 150px);
  color: #70554f;
  font-weight: 600;
}
.leftbtn,
.rightbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: 50%;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 39px;
}

/* REMOVE OLD ARROW */
.leftbtn::after,
.rightbtn::after {
  display: none;
}

/* LEFT ARROW */
.leftbtn {
  left: -12px;
  background-image: url("https://sdkdata.printrash.com/mainpagassets/arrow.svg");
  transform: translateY(-50%) rotate(180deg); /* 🔥 flip */
}

/* RIGHT ARROW */
.rightbtn {
  right: -12px;
  background-image: url("https://sdkdata.printrash.com/mainpagassets/arrow.svg");
}

.app-thumbs {
  position: relative;
  width: 100%;
  padding-bottom: 12px;
}
.maxpic-slides {
  height: 100%;
}
.thumb-slides {
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  overflow: scroll;
  scrollbar-width: none;
}

.slide {
  flex-shrink: 0;
  margin-right: 16px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-pic {
  max-height: 250px;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  margin-top: 10px;
}

section h5 {
  font-size: 22px; /* 🔥 bigger like figma */
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;

  display: inline-flex; /* 🔥 key change */
  align-items: center;
  gap: 10px; /* 🔥 space between text + arrow */
}

/* ARROW */
section h5::after {
  content: "→";
  font-size: 22px; /* match text size */
  font-weight: 600;
  color: #b0a9d6;

  transform: translateY(1px); /* slight vertical align */
}

.page-left .game-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px;
}

.ads-tips {
  color: #999;
  font-size: 12px;
}

.ads {
  margin: 20px 0;
}

.btn {
  width: 100%;
  border-radius: 64px;
  height: 60px;
  overflow: hidden;
  border: 2px solid transparent;
  background:
    linear-gradient(#0b0220, #0b0220) padding-box,
    /* inner bg */ linear-gradient(90deg, #2196f3, #4caf50, #ffc107, #f44336)
      border-box; /* gradient border */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0.3;
  cursor: none;
  pointer-events: none;
  text-decoration: none;
  padding: 0.5rem 0;
}
.btn-down {
  margin: 10px;
  background: #9b49dd;
  border: 0;
  border-radius: 50px;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  height: 45px;
  line-height: 45px;
  height: 50px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.ad-300x250 {
  max-width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-down .cta {
  font-size: 18px;
  color: #fff;
  font-weight: 600;
}
.btn-down .tips {
  font-size: 12px;
  color: #999;
}
.btn.enable {
  opacity: 1;
  cursor: pointer;
  pointer-events: all;
}

.download-btns .btn-gp {
}

.download-btns .btn-ios {
}

.download-btns .btn span {
  font-size: 0.6rem;
  color: rgb(255, 255, 255);
  margin-top: 0.3rem;
}

.show-md {
  display: none;
}
.banner-ad {
}

.score span {
  font-size: 12px;
  line-height: 16px;
  color: #666;
}

.top-box {
  display: flex;
  flex-direction: column;
}

.top-1 {
  order: 0;
}

.top-2 {
  order: -1;
}

.header-title {
  font-size: 20px;
  margin: 0px 0px 10px 0px;
}

@media screen and (max-width: 767px) {
  .download-btns .btn:not(:first-child) {
    margin-top: 15px;
  }
}

@media screen and (min-width: 768px) {
  .detail-info {
    /* display: flex; */
    gap: 10px;
  }

  .detail-info .info {
    flex: 0 0 380px;
    width: 100%;
  }

  .detail-right {
    width: 100%;
    flex-grow: 0;
    flex-shrink: 0;
  }
  .app-header .app-icon {
    width: 106px;
    height: 106px;
  }

  .hide-md {
    display: none;
  }
  .show-md {
    display: block;
  }

  .download-btns {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 15px 0;
  }

  .page-left .game-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-gap: 10px;
  }
  .right-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 10px;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1279px) {
  .page-left .game-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-gap: 10px;
  }

  .right-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 10px;
  }
}

@media screen and (min-width: 1220px) {
  .detail-page {
    margin: 0 auto;
    display: flex;
    gap: 20px;
  }

  .page-right {
    width: 300px;
    flex-shrink: 0;
    flex-grow: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: auto;
  }

  .page-left {
    width: 100%;
    flex-shrink: 0;
    flex-grow: 0;
  }

  .detail-right {
    width: 100%;
    flex-grow: 0;
    flex-shrink: 0;
  }

  .right-list {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-gap: 10px;
  }

  .top-1 {
    order: 1;
  }

  .top-2 {
    order: 2;
  }

  .header-title {
    display: none;
  }
}

/***home**/
.item-1 {
  grid-area: 1 / 1 / 3 / 3;
}

.item-2 {
  grid-area: 6/1/8/3;
}

@media (min-width: 500px) {
  .item-1 {
    grid-area: 1 / 1 / 3 / 3;
  }
  .item-2 {
    grid-area: 4/3/6/5;
  }
}

@media (min-width: 640px) {
  .item-1 {
    grid-area: 1 / 1 / 3 / 3;
  }
  .item-2 {
    grid-area: 3/3/5/5;
  }
}

@media (min-width: 768px) {
  .item-1 {
    grid-area: 1 / 1 / 3 / 3;
  }
  .item-2 {
    grid-area: 3/4/5/6;
  }
}

@media (min-width: 1024px) {
  .item-1 {
    grid-area: 1 / 1 / 3 / 3;
  }

  .item-2 {
    grid-area: 3/4/5/6;
  }
}

@media (min-width: 1280px) {
  .item-1 {
    grid-area: 1 / 1 / 3 / 3;
  }
  .item-2 {
    grid-area: 2/5/4/7;
  }
}

@media (min-width: 1536px) {
  .item-1 {
    grid-area: 1 / 1 / 3 / 3;
  }

  .item-2 {
    grid-area: 2/6/4/8;
  }
}

.game-list-2 {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 104px) and (max-width: 543px) {
  .game-list-2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 544px) and (max-width: 763px) {
  .game-list-2 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 764px) and (max-width: 1204px) {
  .game-list-2 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (min-width: 1204px) and (max-width: 1313px) {
  .game-list-2 {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

@media (min-width: 1314px) and (max-width: 1533px) {
  .game-list-2 {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}

@media (min-width: 1534px) and (max-width: 1863px) {
  .game-list-2 {
    grid-template-columns: repeat(11, minmax(0, 1fr));
  }
}

@media (min-width: 1864px) {
  .game-list-2 {
    grid-template-columns: repeat(13, minmax(0, 1fr));
  }
}

/*******/
.game-home-layout {
  width: 100%;
  padding: 10px;
  margin: auto;
  background: #0073dd;
}

/* MAIN WRAPPER (review + similar) */
.review {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 🔥 left content + right sidebar */
  gap: 20px;
  padding: 20px 15px;
}

/* ENTRY (LEFT SIDE) */
.entry {
  font-family: "Saira", sans-serif;
  color: #b0a9d6;
  font-size: 14px;
  line-height: 1.8;
}

/* RIGHT SIDE SECTION (Similar Games) */
.review + section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  height: fit-content;
}

/* TITLE */
.review + section h5 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ARROW (like →) */
.review + section h5::after {
  content: "→";
  font-size: 18px;
  color: #b0a9d6;
}

/* GAME LIST ITEM (you will render inside .game-list) */
.review-game-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* EACH GAME ITEM (assumes dynamic items) */
.review-game-list .item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
}

/* IMAGE */
.review-game-list .item img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
}

/* TEXT */
.review-game-list .item .info {
  display: flex;
  flex-direction: column;
}

.review-game-list .item .info span {
  font-size: 18px;
  color: #ffffff;
  font-weight: 500;
}

.review-game-list .item .info small {
  font-family: "Saira", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: #8986a8;
}

/* 🔥 MOBILE FIX */
@media (max-width: 768px) {
  .review {
    grid-template-columns: 1fr; /* stack */
  }

  .review + section {
    margin-top: 15px;
  }
}
/* ===== GRID LAYOUT ===== */
.game-list-3 {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr)); /* 🔥 FIX */
  gap: 10px;
}

/* MOBILE */
@media (max-width: 768px) {
  .game-list-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 🔥 FIX */
  }
}

/* ===== ITEM BASE ===== */
.game-item {
  position: relative;
  display: block;
  text-decoration: none;

  width: 100%; /* 🔥 IMPORTANT */
  max-width: none; /* ❌ REMOVE LIMIT */
}

/* ===== IMAGE CONTAINER ===== */
.game-item .game-icon {
  aspect-ratio: 1;
  overflow: hidden;
}

/* ===== IMAGE SHAPE ===== */
.game-item .game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

   border-radius: 10px;


  transition: transform 0.3s ease;
}

/* ===== TITLE ===== */
.game-item .game-title {
  display: block;
  width: 100%;

  font-family: "Saira", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-top: 6px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  padding-right: 28px; /* 🔥 REDUCED (was 45px) */
  box-sizing: border-box;
}

/* ===== RATING ===== */
.game-item .game-title::after {
  content: "★★★★☆";
  display: block;
  font-size: 11px;
  color: #ffcc00;
  margin-top: 3px;
  letter-spacing: 1px;
}

/* ===== PLAY BUTTON ===== */
.game-item::after {
   content: "";
    position: absolute;
    right: 0;
    bottom: 10px;

    width: 30px;
    height: 30px;
    border-radius: 50%;

   background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon fill='white' points='7,4 20,12 7,20'/%3E%3C/svg%3E")
  center center / 14px 14px no-repeat,
  linear-gradient(135deg, #7b2cff, #b84dff);

    box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

/* ===== HOVER ===== */
.game-item:hover {
  transform: translateY(-4px);
}

.game-item:hover .game-icon img {
  transform: scale(1.05);
}

/***article***/
.article-wrapper {
  position: relative;
  overflow: hidden;
  max-height: 200px;
  transition: max-height 0.5s ease;
}

.article-wrapper.expanded {
  max-height: none;
}

.article-content {
  padding-bottom: 60px;
}

.fade-mask {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 1)
  );
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}

.toggle-button {
  background: white;
  border: 1px solid #1a73e8;
  color: #1a73e8;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  pointer-events: auto;
  margin-bottom: 10px;
  z-index: 2;
  transition: all 0.2s ease;
}

.fade-mask {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 1)
  );
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}

.toggle-button {
  background: white;
  border: 1px solid #1a73e8;
  color: #1a73e8;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  pointer-events: auto;
  margin-bottom: 10px;
  z-index: 2;
  transition: all 0.2s ease;
}

/**** detail loading box ***/
.overlay,
.loading-box {
  position: relative;
}

.overlay:before,
.loading-box:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.overlay:before,
.loading-box:before {
  border: 1rem solid hsla(0, 0%, 100%, 0.25);
  border-top-color: #6dd829;
  border-radius: 50%;
  animation: turnAround 0.6s linear infinite;
  width: 5.25rem;
  height: 5.25rem;
}

@keyframes turnAround {
  0% {
    transform: translate(-50%, -50%) rotate(0);
  }

  to {
    transform: translate(-50%, -50%) rotate(359deg);
  }
}

.desc-play .loading {
  background: #b9bcb9;
}

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 10000;
}

/***footer***/

footer {
  background-color: #f1f2f2;
  position: relative;
  height: auto;
  border-top: 1px solid #eee;
  margin-top: 20px;
  padding: 15px;
}

.footer-content {
  padding-top: 22px;
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer .links {
  text-align: center;
}

footer .links a {
  color: #000000;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
}

footer a {
  margin: 0 10px;
  color: #0445bf;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

.introduce {
  color: #000000;
  display: block;
  text-align: center;
  position: relative;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 400;
}

#disclaimer {
  margin-bottom: 2.2rem;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2470588235);
}

#disclaimer .disclaimer-card {
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);
}

#disclaimer .disclaimer-card h5 {
  font-size: 16px;

  height: 35px;
  background-color: #fbfbfb;
  padding-left: 3rem;
  box-sizing: border-box;
  line-height: 5rem;
  border-bottom: 1px solid #e6e6e6;
}

#disclaimer .disclaimer-card .disclaimer-text {
  width: 100%;
  background-color: #fff;
  padding: 2rem 3rem;
  box-sizing: border-box;
}

#disclaimer .disclaimer-card .disclaimer-text p {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 2.1rem;
  color: #666;
}

#disclaimer .disclaimer-card .disclaimer-text p:not(:last-of-type) {
  padding-bottom: 8px;
}

#disclaimer .disclaimer-card .disclaimer-text p a {
  text-decoration: none;
  color: #00c9a9;
}
