
/* AU7 GAME — FULL HOMEPAGE CSS */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: #f5f7fb;
  background:
    radial-gradient(circle at 50% 0, rgba(255,30,60,.07), transparent 24%),
    #07090f;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* Navigation */

.desktop-nav {
  display: none !important;
  align-items: center;
  gap: 22px;
}

.desktop-nav a {
  text-decoration: none;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  font-weight: 700;
}

/* Common Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 900;
}

.section {
  padding: 22px 0 30px;
}

.section-title {
  margin: 0 0 5px;
  text-align: center;
  font-size: clamp(25px,3.5vw,34px);
  line-height: 1.15;
  font-weight: 950;
}

.section-title span {
  color: #ff334b;
}

.section-sub {
  margin: 0 auto 17px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  line-height: 1.55;
}

/* Game Type Categories */

.game-type-grid {
  width: min(620px,100%);
  margin: 0 auto 10px;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 4px;
}

.game-type-box {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 3px;
  text-decoration: none;
  text-align: center;
  color: #fff;
  font-size: 9.4px;
  line-height: 1.05;
  font-weight: 850;
  border-radius: 7px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,.055),
    rgba(255,255,255,.015)
  );
  cursor: default;
  user-select: none;
  transition: transform .16s ease, filter .16s ease;
}

.game-type-box:nth-child(1) {
  border: 1px solid rgba(255,55,75,.45);
}

.game-type-box:nth-child(2) {
  border: 1px solid rgba(255,190,45,.48);
}

.game-type-box:nth-child(3) {
  border: 1px solid rgba(165,85,255,.46);
}

.game-type-box:nth-child(4) {
  border: 1px solid rgba(55,150,255,.48);
}

.game-type-box:nth-child(5) {
  border: 1px solid rgba(255,105,45,.48);
}

.game-type-box:nth-child(6) {
  border: 1px solid rgba(35,210,225,.45);
}

.game-type-box:nth-child(7) {
  border: 1px solid rgba(55,210,115,.44);
}

.game-type-box:nth-child(8) {
  border: 1px solid rgba(255,70,165,.45);
}

.game-type-box:hover {
  filter: brightness(1.15);
}

/* Games Search */

.home-search-wrap {
  width: min(650px,100%);
  margin: 0 auto 20px;
}

.home-search {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 5px;
  border: 1px solid rgba(255,62,83,.30);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}

.home-search input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  border: 0;
  outline: none;
  padding: 0 12px;
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.home-search button {
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg,#ff354d,#cf001f);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

/* Game Cards */

.games-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 13px;
}

.game-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(49,147,235,.28);
  border-radius: 14px;
  background: linear-gradient(
    155deg,
    rgba(9,25,36,.96),
    rgba(5,14,22,.98)
  );
}

.game-img-wrap {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.game-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.game-card h3 {
  margin: 11px 2px 10px;
  text-align: center;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 850;
}

.game-card-actions {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 6px;
  margin-top: auto;
}

.info-btn,
.play-btn {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}

.info-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}

.play-btn {
  min-height: 44px;
  font-size: 15px;
  font-weight: 950;
  background: linear-gradient(135deg,#ff344c,#d10021);
  border: 1px solid rgba(255,83,102,.4);
}

.view-all-home {
  margin-top: 20px;
}

.view-all-home .btn {
  width: 100%;
  min-height: 49px;
  font-size: 15px;
}

/* Loading Skeletons */

.skeleton-card {
  pointer-events: none;
}

.skeleton-card .game-img-wrap,
.skeleton-line,
.skeleton-action {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.055);
}

.skeleton-card .game-img-wrap::after,
.skeleton-line::after,
.skeleton-action::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.07),
    transparent
  );
  animation: skeletonMove 1.25s linear infinite;
}

@keyframes skeletonMove {
  to {
    transform: translateX(100%);
  }
}

.skeleton-line {
  width: 68%;
  height: 14px;
  margin: 10px auto;
  border-radius: 999px;
}

.skeleton-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
}

.skeleton-action {
  min-height: 38px;
  border-radius: 8px;
}

/* Article Content */

.article {
  padding: 24px 0 34px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 2200px;
}

.content {
  width: min(850px,100%);
  margin: 0 auto;
  color: rgba(255,255,255,.79);
}

.content h2 {
  margin: 28px 0 10px;
  font-size: clamp(21px,2.3vw,26px);
  line-height: 1.28;
  font-weight: 900;
  color: #fff;
  scroll-margin-top: 82px;
}

.content h3 {
  margin: 18px 0 8px;
  font-size: clamp(17px,2vw,19px);
  line-height: 1.3;
  font-weight: 850;
  color: #fff;
}

.content p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.72;
}

.content ul,
.content ol {
  margin: 0 0 17px;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.65;
}

.content li {
  margin: 5px 0;
}

.content strong {
  color: #fff;
}

.content a {
  color: #ffbd47;
}

.content h2 > a {
  color: #fff;
  text-decoration: none;
}

.content h2 > a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.35);
  text-underline-offset: 3px;
}

/* Table of Contents */

.toc {
  width: min(850px,100%);
  margin: 0 auto 24px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
}

.toc summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary::after {
  content: "+";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
  background: rgba(255,55,75,.15);
  border: 1px solid rgba(255,55,75,.28);
  font-size: 15px;
}

.toc[open] summary::after {
  content: "−";
}

.toc ol {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 6px;
}

.toc li {
  margin: 0;
  min-width: 0;
}

.toc a {
  min-height: 32px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
  color: rgba(255,255,255,.70);
  text-decoration: none;
  font-size: 11.5px;
  line-height: 1.25;
}

/* App Information Box */

.app-facts-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
  margin: 14px 0 24px;
}

.app-fact {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: rgba(255,255,255,.028);
  text-align: center;
}

.app-fact span {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.58);
  margin-bottom: 3px;
}

.app-fact strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

/* Game Category Information */

.category-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
  margin: 14px 0 22px;
}

.category-grid > div {
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}

.category-grid strong {
  display: block;
  margin-bottom: 3px;
}

.category-grid span {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.66);
}

/* Features and Lists */

.feature-bullets,
.check-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px 14px;
  margin: 12px 0 18px;
  padding-left: 20px;
}

.feature-bullets li,
.check-list li {
  padding: 2px 0;
}

.steps-list {
  counter-reset: gameStep;
  list-style: none;
  padding: 0 !important;
  margin: 14px 0 20px !important;
  display: grid;
  gap: 8px;
}

.steps-list li {
  counter-increment: gameStep;
  position: relative;
  min-height: 50px;
  padding: 10px 12px 10px 48px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}

.steps-list li::before {
  content: none !important;
  display: none !important;
}

.steps-list .step-number {
  position: absolute;
  left: 10px;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffc75b;
  color: #10131b;
  font-weight: 800;
  font-size: 13px;
}

/* Information Tables */

.facts-table-wrap {
  overflow-x: auto;
  margin: 14px 0 22px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.facts-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.facts-table th,
.facts-table td {
  padding: 11px 13px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13.5px;
}

.facts-table th {
  width: 34%;
  color: #fff;
  background: rgba(255,255,255,.035);
  font-weight: 850;
}

.facts-table tr:last-child th,
.facts-table tr:last-child td {
  border-bottom: 0;
}

/* Notes and Guide Links */

.content-note {
  margin: 17px 0;
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid #ff3850;
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  font-size: 13.5px;
  line-height: 1.65;
}

.content-note strong {
  color: #fff;
}

.risk-box {
  margin: 20px 0;
  padding: 15px 16px;
  border: 1px solid rgba(255,190,45,.26);
  border-radius: 11px;
  background: rgba(255,190,45,.04);
  font-size: 13.5px;
  line-height: 1.65;
}

.inline-premium-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin: 18px 0 26px;
}

.authority-card {
  display: block;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  text-decoration: none;
}

.authority-card strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 4px;
}

.authority-card span {
  display: block;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.5;
}

.authority-card:hover {
  border-color: rgba(255,62,83,.35);
  background: rgba(255,255,255,.04);
}

/* ==================================================
   AU7 SCREENSHOTS — EQUAL SIZE FINAL FIX
   ================================================== */

.game8hi-gallery {
  width: 100%;
  max-width: 100%;
  margin: 22px 0 28px;
  overflow: hidden;
}

.game8hi-gallery-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
  color: #fff;
}

.game8hi-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.game8hi-gallery-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,199,91,.18);
  border-radius: 13px;
  background: #111827;
}

.game8hi-gallery-item .screenshot-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 340px;
  min-height: 340px;
  max-height: 340px;
  overflow: hidden;
  border-radius: 9px;
  cursor: zoom-in;
}

.game8hi-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  border-radius: 8px;
  background: #090b11;
}

.game8hi-gallery-item figcaption {
  padding: 10px 3px 4px;
  font-size: 13px;
  line-height: 1.5;
  color: #d9dee9;
  text-align: center;
}

.screenshot-zoom:focus-visible {
  outline: 2px solid #ffc75b;
  outline-offset: 3px;
}

/* Screenshot Fullscreen Viewer */

#screenshotViewer {
  padding: 0;
  border: 1px solid #414653;
  border-radius: 14px;
  background: #090b11;
  color: #fff;
  width: min(94vw,700px);
  max-height: 92vh;
}

#screenshotViewer::backdrop {
  background: rgba(0,0,0,.85);
}

.viewer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  gap: 12px;
}

.viewer-bar button {
  border: 1px solid #717783;
  border-radius: 8px;
  background: #222733;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 3px 12px;
}

#screenshotViewer img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

/* FAQs */

.faq-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.faq {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}

.faq button {
  width: 100%;
  min-height: 50px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 850;
}

.faq button span {
  color: #ff3d53;
  font-size: 18px;
}

.faq .answer {
  display: none;
  padding: 0 13px 13px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,.70);
}

.faq.open .answer {
  display: block;
}

/* Desktop and Tablet */

@media (max-width: 1050px) {
  .games-grid {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }
}

@media (max-width: 900px) and (min-width: 651px) {
  .game8hi-gallery-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
  }

  .game8hi-gallery-item .screenshot-zoom {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
  }
}

@media (max-width: 850px) {
  .toc ol {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 760px) {
  .games-grid {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 8px;
  }

  .game-card {
    padding: 6px;
  }

  .game-card h3 {
    font-size: 12.5px;
  }

  .play-btn {
    min-height: 38px;
    font-size: 13px;
  }

  .authority-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

/* Mobile Screenshot Slider */

@media (max-width: 650px) {
  .game8hi-gallery {
    width: 100%;
    overflow: hidden;
  }

  .game8hi-gallery-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }

  .game8hi-gallery-grid::-webkit-scrollbar {
    height: 5px;
  }

  .game8hi-gallery-item {
    flex: 0 0 82%;
    width: 82%;
    min-width: 82%;
    max-width: 82%;
    align-self: stretch;
    scroll-snap-align: center;
    padding: 10px;
  }

  .game8hi-gallery-item .screenshot-zoom {
    width: 100%;
    height: 420px;
    min-height: 420px;
    max-height: 420px;
  }

  .game8hi-gallery-item img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }
}

/* Small Mobile */

@media (max-width: 600px) {
  .app-facts-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .feature-bullets,
  .check-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .steps-list li {
    font-size: 13.5px;
    line-height: 1.55;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(calc(100% - 22px),1180px);
  }

  .game-type-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 4px;
    margin-bottom: 10px;
  }

  .game-type-box {
    min-height: 31px;
    padding: 2px 1px;
    font-size: 9px;
  }

  .section-title {
    font-size: 27px;
  }

  .section-sub {
    font-size: 12.5px;
  }

  .content {
    width: 100%;
  }

  .content h2 {
    margin-top: 24px;
    font-size: 20px;
  }

  .content h3 {
    font-size: 16.5px;
  }

  .content p {
    font-size: 13.5px;
    line-height: 1.68;
  }

  .content ul,
  .content ol {
    font-size: 13.5px;
  }

  .toc {
    padding: 10px;
  }

  .toc summary {
    font-size: 13.5px;
  }

  .toc ol {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 5px;
  }

  .toc a {
    min-height: 31px;
    padding: 5px 6px;
    font-size: 10.5px;
  }

  .authority-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .games-grid {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 6px;
  }

  .game-card {
    padding: 5px;
    border-radius: 10px;
  }

  .game-card h3 {
    font-size: 11px;
    margin: 7px 1px;
  }

  .play-btn {
    min-height: 34px;
    font-size: 11.5px;
    padding: 0 5px;
  }
}

@media (max-width: 380px) {
  .game8hi-gallery-item {
    flex-basis: 85%;
    width: 85%;
    min-width: 85%;
    max-width: 85%;
  }

  .game8hi-gallery-item .screenshot-zoom {
    height: 365px;
    min-height: 365px;
    max-height: 365px;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skeleton-card .game-img-wrap::after,
  .skeleton-line::after,
  .skeleton-action::after {
    animation: none;
  }
}

/* END — AU7 HOMEPAGE CSS */
