/* =====================================================
   CSS FINAL RTP UNYIL4D
   Desktop, tablet, dan ponsel 4 kolom
===================================================== */

/* =========================
   1. RESET DASAR
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --pink: #f34891;
  --pink-light: #ff8bbb;
  --pink-dark: #83284f;
  --pink-soft: #fff0f6;
  --green: #24d1a3;
  --green-dark: #099d7b;
  --dark-green: #073d34;
  --white: #ffffff;
  --text: #67233f;
  --border: #ff78aa;
  --shadow: rgba(152, 35, 87, 0.2);
}

html {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;

  overflow-x: hidden;

  color: var(--text);
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 146, 192, 0.25),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #fff7fa 0%,
      #ffeaf3 55%,
      #fff7fa 100%
    );

  font-family:
    Arial,
    Helvetica,
    sans-serif;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

/* =========================
   2. HEADER
========================= */

.site-header {
  position: relative;
  z-index: 20;

  width: 100%;
  min-height: 84px;
  padding: 7px clamp(12px, 4vw, 40px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fffafd 100%
    );

  border-top: 1px solid #ffc4d9;
  border-bottom: 1px solid #ffc4d9;

  box-shadow:
    0 5px 18px rgba(120, 25, 70, 0.08);
}

.brand {
  display: block;
  min-width: 0;
  text-decoration: none;
}

.site-logo {
  width: clamp(190px, 29vw, 330px);
  height: auto;
  object-fit: contain;
}

.header-right {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.indo-clock {
  min-width: 130px;
  padding: 4px 12px;

  color: #80234d;
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #fff0f7
    );

  border: 1px solid #ff8bb7;
  border-radius: 10px;

  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;

  box-shadow:
    0 3px 10px rgba(184, 42, 106, 0.13);
}

#jamIndonesia {
  margin-top: 1px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.main-nav {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.main-nav a {
  min-width: 82px;
  min-height: 36px;
  padding: 8px 14px;

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

  color: #001c16;
  background:
    linear-gradient(
      135deg,
      #24d1a3,
      #34dfb5
    );

  border: 1px solid #0eb38b;
  border-radius: 8px;

  text-decoration: none;
  text-align: center;
  white-space: nowrap;

  font-size: 11px;
  font-weight: 900;

  box-shadow:
    0 5px 11px rgba(0, 127, 97, 0.18);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.main-nav a:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);

  box-shadow:
    0 8px 16px rgba(0, 127, 97, 0.25);
}

/* =========================
   3. TEKS BERJALAN
========================= */

.ticker {
  position: relative;
  z-index: 15;

  width: 100%;
  min-height: 31px;

  display: flex;
  align-items: center;

  overflow: hidden;

  color: #ffffff;
  background:
    linear-gradient(
      90deg,
      #043c33,
      #0a4d40,
      #043c33
    );

  border-bottom: 1px solid #087866;
}

.ticker-track {
  width: max-content;
  min-width: 100%;

  padding-left: 100%;

  white-space: nowrap;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;

  animation:
    tickerBerjalan 24s linear infinite;
}

@keyframes tickerBerjalan {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* =========================
   4. HALAMAN UTAMA
========================= */

.page-shell {
  width: 100%;
  max-width: 1500px;
  min-width: 0;

  margin: 0 auto;
  padding: 0;
}

/* =========================
   5. BANNER RTP
========================= */

.rtp-banner-section {
  position: relative;

  width: calc(100% - 20px);
  min-width: 0;

  margin: 0 auto 50px;
}

.rtp-banner-image {
  width: 100%;
  height: auto;

  object-fit: contain;

  border:
    1px solid rgba(255, 87, 151, 0.65);

  border-radius: 0 0 16px 16px;

  box-shadow:
    0 12px 30px rgba(100, 18, 61, 0.2);
}

/* =========================
   6. PROVIDER DI BAWAH BANNER
========================= */

.rtp-banner-controls {
  position: absolute;
  z-index: 10;

  left: 14px;
  right: 14px;
  bottom: -29px;

  min-width: 0;
  padding: 7px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;

  background:
    rgba(255, 255, 255, 0.94);

  border: 1px solid #ff91ba;
  border-radius: 14px;

  box-shadow:
    0 9px 22px rgba(125, 26, 72, 0.19);

  backdrop-filter: blur(8px);
}

.provider-list {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 7px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;

  scrollbar-width: thin;
  scrollbar-color: #888 transparent;

  -webkit-overflow-scrolling: touch;
}

.provider-list::-webkit-scrollbar {
  height: 5px;
}

.provider-list::-webkit-scrollbar-track {
  background: transparent;
}

.provider-list::-webkit-scrollbar-thumb {
  background: #969696;
  border-radius: 999px;
}

.provider-button {
  flex: 0 0 138px;

  width: 138px;
  min-width: 138px;
  max-width: 138px;
  min-height: 42px;

  padding: 6px 10px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  color: #6f2746;
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #fff7fa
    );

  border: 1px solid #ff78a9;
  border-radius: 7px;

  white-space: nowrap;
  overflow: hidden;

  font-size: 10px;
  font-weight: 700;

  scroll-snap-align: start;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.provider-button:hover {
  transform: translateY(-1px);

  box-shadow:
    0 5px 12px rgba(241, 73, 142, 0.2);
}

.provider-button.active {
  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #ee3f87,
      #ff6da8
    );

  border-color: #ed3b83;

  box-shadow:
    0 5px 14px rgba(238, 63, 135, 0.28);
}

.provider-logo {
  flex: 0 0 auto;

  width: 27px;
  height: 27px;

  object-fit: contain;
}

.provider-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cek-game-button {
  flex: 0 0 auto;

  min-width: 99px;
  min-height: 42px;
  padding: 7px 12px;

  color: #087d63;
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f4fffb
    );

  border: 1px solid #13be94;
  border-radius: 999px;

  white-space: nowrap;

  font-size: 10px;
  font-weight: 900;

  box-shadow:
    0 5px 14px rgba(14, 172, 133, 0.16);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.cek-game-button:hover {
  transform: translateY(-2px);

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #17b98f,
      #24d1a3
    );

  box-shadow:
    0 8px 18px rgba(14, 172, 133, 0.26);
}

/* =========================
   7. BAGIAN GAME
========================= */

#games {
  width: 100%;
  min-width: 0;

  padding:
    10px
    clamp(12px, 2.2vw, 30px)
    35px;
}

.section-heading {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 12px;
}

.eyebrow {
  margin: 0;

  color: #ed4387;

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.result-text {
  margin: 0;

  color: #89506a;

  font-size: 12px;
  text-align: right;
}

/* =========================
   8. PENCARIAN
========================= */

.game-search-box {
  width: min(100%, 520px);
  min-width: 0;

  margin: 0 0 18px auto;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;

  border: 1px solid #ff7cac;
  border-radius: 7px;

  overflow: hidden;

  background: #ffffff;

  box-shadow:
    0 5px 14px rgba(144, 37, 87, 0.08);
}

.game-search-box input {
  width: 100%;
  min-width: 0;
  height: 42px;

  padding: 0 14px;

  color: #54253a;
  background: #ffffff;

  border: 0;
  outline: 0;

  font-size: 12px;
}

.game-search-box input::placeholder {
  color: #9e7c8b;
}

.game-search-box input:focus {
  box-shadow:
    inset 0 0 0 2px rgba(243, 72, 145, 0.17);
}

.game-search-box button {
  width: 48px;
  height: 42px;

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

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #ef4388,
      #f76da5
    );

  border: 0;

  font-size: 16px;
}

/* =========================
   9. GRID GAME DESKTOP
========================= */

.game-grid {
  width: 100%;
  min-width: 0;

  display: grid;

  grid-template-columns:
    repeat(
      5,
      minmax(0, 1fr)
    );

  gap:
    clamp(
      12px,
      1.6vw,
      22px
    );

  align-items: start;
}

/* =========================
   10. KARTU GAME
========================= */

.game-tile,
.game-card {
  position: relative;

  width: 100%;
  min-width: 0;

  padding: 4px 4px 7px;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 244, 249, 0.96)
    );

  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 10px;

  box-shadow:
    0 0 0 1px rgba(255, 119, 171, 0.22),
    0 7px 18px rgba(132, 32, 76, 0.12),
    0 0 14px rgba(255, 255, 255, 0.9);

  content-visibility: auto;
  contain-intrinsic-size: 260px;

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.game-tile:hover,
.game-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 1),
    0 11px 25px rgba(132, 32, 76, 0.2),
    0 0 17px rgba(255, 255, 255, 1),
    0 0 21px rgba(255, 89, 154, 0.38);
}

.tile-image-wrap,
.game-cover,
.game-visual {
  position: relative;

  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #ffe5f0,
      #ffffff
    );

  border-radius: 8px;

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 13px rgba(255, 255, 255, 0.88),
    0 0 12px rgba(246, 72, 142, 0.17);
}

/* Kilatan cahaya di gambar */
.tile-image-wrap::after,
.game-cover::after,
.game-visual::after {
  content: "";

  position: absolute;
  z-index: 3;

  top: -60%;
  left: -100%;

  width: 42%;
  height: 220%;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.22),
      transparent
    );

  transform:
    rotate(20deg)
    translateX(-180%);

  animation:
    kilatanGame 5.8s ease-in-out infinite;
}

@keyframes kilatanGame {
  0%,
  62% {
    transform:
      rotate(20deg)
      translateX(-190%);
  }

  82%,
  100% {
    transform:
      rotate(20deg)
      translateX(520%);
  }
}

.tile-image,
.game-image {
  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 8px;
}

.tile-fallback,
.game-icon {
  width: 100%;
  height: 100%;

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

  font-size: 44px;
}

.tile-title,
.game-content h3 {
  min-height: 34px;

  margin: 7px 2px 5px;

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

  color: #e82465;

  text-align: center;
  overflow-wrap: anywhere;

  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

/* =========================
   11. RTP WARNA DAN GLOW
========================= */

.rtp-box {
  position: relative;

  width: 100%;
  min-height: 31px;
  padding: 6px 5px;

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

  overflow: hidden;

  color: #ffffff;

  border-radius: 5px;

  text-align: center;
  font-size: 11px;
  font-weight: 900;

  box-shadow:
    0 0 7px currentColor,
    0 5px 10px rgba(64, 17, 39, 0.18);

  animation:
    denyutRtp 2.8s ease-in-out infinite;
}

.rtp-box::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 34%,
      rgba(255, 255, 255, 0.7) 48%,
      transparent 62%,
      transparent 100%
    );

  transform: translateX(-160%);

  animation:
    sapuanRtp 4.2s ease-in-out infinite;
}

@keyframes denyutRtp {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.13);
  }
}

@keyframes sapuanRtp {
  0%,
  60% {
    transform: translateX(-160%);
  }

  85%,
  100% {
    transform: translateX(160%);
  }
}

.rtp-blue {
  background:
    linear-gradient(
      135deg,
      #2c8fff,
      #1ba8ff
    );

  box-shadow:
    0 0 8px #66bdff,
    0 0 16px rgba(38, 147, 255, 0.55);
}

.rtp-green {
  background:
    linear-gradient(
      135deg,
      #12b978,
      #23d89a
    );

  box-shadow:
    0 0 8px #63f3bc,
    0 0 16px rgba(23, 205, 139, 0.5);
}

.rtp-orange {
  background:
    linear-gradient(
      135deg,
      #ff9c26,
      #ff7f16
    );

  box-shadow:
    0 0 8px #ffc06d,
    0 0 16px rgba(255, 139, 29, 0.52);
}

.rtp-yellow {
  color: #4a3000;

  background:
    linear-gradient(
      135deg,
      #ffe137,
      #ffc624
    );

  box-shadow:
    0 0 8px #fff28a,
    0 0 16px rgba(255, 213, 43, 0.55);
}

.rtp-red {
  background:
    linear-gradient(
      135deg,
      #f04458,
      #e51d3f
    );

  box-shadow:
    0 0 8px #ff8694,
    0 0 16px rgba(233, 41, 68, 0.55);
}

/* =========================
   12. TOMBOL TAMPILKAN GAME
========================= */

.load-more-games {
  width: min(100%, 390px);
  min-height: 47px;

  margin: 27px auto 5px;
  padding: 12px 20px;

  display: block;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #ed3f86,
      #ff72aa
    );

  border: 1px solid #f13c85;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;

  box-shadow:
    0 9px 22px rgba(237, 63, 134, 0.3),
    0 0 13px rgba(255, 255, 255, 0.65);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.load-more-games:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 28px rgba(237, 63, 134, 0.38),
    0 0 17px rgba(255, 255, 255, 0.8);
}

.game-empty-state {
  grid-column: 1 / -1;

  padding: 35px 15px;

  color: #7e405e;
  background: #ffffff;

  border: 1px solid #ff9ebe;
  border-radius: 12px;

  text-align: center;
  font-weight: 800;
}

/* =========================
   13. MODAL INFO GAME
========================= */

.modal-backdrop,
.game-checker-modal {
  position: fixed;
  z-index: 9999;

  inset: 0;

  padding: 15px;

  display: grid;
  place-items: center;

  overflow-y: auto;

  background:
    rgba(20, 4, 13, 0.72);

  backdrop-filter: blur(5px);
}

.modal,
.game-checker-box {
  position: relative;

  width: min(94vw, 440px);
  max-height: 90vh;

  padding: 25px;

  overflow-y: auto;

  color: #71304e;
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #fff5f9
    );

  border: 1px solid #ff7cad;
  border-radius: 18px;

  box-shadow:
    0 18px 50px rgba(30, 5, 18, 0.42),
    0 0 24px rgba(255, 108, 165, 0.3);
}

.modal-close,
.close-game-checker {
  position: absolute;
  z-index: 5;

  top: 10px;
  right: 10px;

  width: 34px;
  height: 34px;

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

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #ed4186,
      #ff6ba5
    );

  border: 0;
  border-radius: 50%;

  font-size: 23px;
  font-weight: 900;
}

.modal h2,
.game-checker-box h3 {
  color: #873152;
  text-align: center;
}

.modal-stat {
  margin: 9px 0;
  padding: 11px 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  background: #fff0f6;

  border: 1px solid #ffc0d7;
  border-radius: 9px;
}

.modal-note {
  margin-bottom: 0;

  color: #997284;

  text-align: center;
  font-size: 11px;
  line-height: 1.5;
}

/* =========================
   14. POPUP CEK GAME
========================= */

.checker-label {
  margin: 0 0 9px;

  color: #e64382;

  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

#memberIdInput {
  width: 100%;
  min-height: 45px;

  padding: 10px 13px;

  color: #692843;
  background: #ffffff;

  border: 1px solid #ff8bb4;
  border-radius: 9px;
  outline: 0;

  font-size: 13px;
}

#memberIdInput:focus {
  border-color: #ed3e82;

  box-shadow:
    0 0 0 3px rgba(237, 62, 130, 0.13);
}

.checker-message {
  min-height: 20px;
  margin: 7px 0;

  color: #d52656;

  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.process-game-checker {
  width: 100%;
  min-height: 43px;
  padding: 10px 15px;

  color: #001a14;
  background:
    linear-gradient(
      135deg,
      #25cea3,
      #36dfb7
    );

  border: 1px solid #13b68e;
  border-radius: 7px;

  font-size: 11px;
  font-weight: 900;

  box-shadow:
    0 6px 15px rgba(16, 172, 132, 0.21);
}

.recommended-game-result {
  text-align: center;
}

#recommendedGameImage {
  width: min(100%, 180px);
  aspect-ratio: 1 / 1;

  margin: 10px auto;

  object-fit: cover;

  border: 2px solid #ffffff;
  border-radius: 14px;

  box-shadow:
    0 0 0 1px #ffa2c3,
    0 7px 20px rgba(137, 38, 81, 0.18),
    0 0 16px rgba(255, 255, 255, 1);
}

#recommendedGameName {
  margin: 10px 0;

  color: #873152;
}

.recommended-game-result p {
  margin: 7px 0;

  font-size: 13px;
}

#recommendedGameRate {
  display: inline-block;

  padding: 5px 10px;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #10b979,
      #21d499
    );

  border-radius: 999px;

  font-weight: 900;
}

.recommended-game-result small {
  display: block;

  margin-top: 10px;

  color: #a07a8b;

  font-size: 9px;
  line-height: 1.5;
}

/* =========================
   15. HASIL POLA
========================= */

.game-pattern-result {
  margin-top: 14px;
  padding: 14px;

  color: #742b4b;
  background:
    linear-gradient(
      180deg,
      #fff8fb,
      #ffeaf3
    );

  border: 1px solid #ff77a9;
  border-radius: 12px;

  text-align: left;

  box-shadow:
    inset 0 0 16px rgba(255, 111, 168, 0.12);
}

.game-pattern-result h3,
.game-pattern-result h4 {
  margin: 4px 0 10px;

  color: #8b2d55;
  text-align: center;
}

.game-pattern-result p {
  margin: 6px 0;
  line-height: 1.45;
}

.game-pattern-result ul,
.game-pattern-result ol {
  margin: 8px 0;
  padding-left: 22px;
}

.game-pattern-result li {
  margin: 7px 0;

  font-size: 12px;
  line-height: 1.45;
}

/* =========================
   16. FOOTER
========================= */

.site-footer {
  width: 100%;
  padding: 18px 12px;

  color: #8d4b68;
  background:
    rgba(255, 255, 255, 0.65);

  border-top: 1px solid #ffc0d8;

  text-align: center;
  font-size: 11px;
}

/* =========================
   17. LIVE CHAT
========================= */

.floating-livechat {
  position: fixed;
  z-index: 999;

  right: 10px;
  bottom: 8px;

  width: 135px;
  max-width: 28vw;

  text-decoration: none;

  filter:
    drop-shadow(
      0 7px 10px
      rgba(78, 15, 43, 0.25)
    );

  transition:
    transform 0.2s ease;
}

.floating-livechat:hover {
  transform: translateY(-4px) scale(1.02);
}

.floating-livechat img {
  width: 100%;
  height: auto;
}

/* =====================================================
   18. TABLET BESAR
===================================================== */

@media screen and (max-width: 1050px) {
  .game-grid {
    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      );
  }

  .provider-button {
    flex-basis: 126px;

    width: 126px;
    min-width: 126px;
    max-width: 126px;
  }
}

/* =====================================================
   19. TABLET
===================================================== */

@media screen and (max-width: 760px) {
  .site-header {
    min-height: 70px;
    padding: 6px 10px;
    gap: 8px;
  }

  .site-logo {
    width: clamp(145px, 31vw, 215px);
  }

  .indo-clock {
    min-width: 112px;
    padding: 3px 8px;
    font-size: 9px;
  }

  #jamIndonesia {
    font-size: 14px;
  }

  .main-nav {
    gap: 4px;
  }

  .main-nav a {
    min-width: 68px;
    min-height: 32px;
    padding: 6px 8px;

    font-size: 9px;
  }

  .rtp-banner-section {
    width: calc(100% - 12px);
  }

  .rtp-banner-controls {
    left: 7px;
    right: 7px;
  }

  .provider-button {
    flex-basis: 112px;

    width: 112px;
    min-width: 112px;
    max-width: 112px;
  }

  .cek-game-button {
    min-width: 91px;
  }

  .game-grid {
    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      );

    gap: 9px;
  }
}

/* =====================================================
   20. PONSEL — 4 KOTAK KE SAMPING
===================================================== */

@media screen and (max-width: 560px) {
  html,
  body {
    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
  }

  .site-header {
    width: 100%;
    min-height: 62px;
    padding: 5px 6px;

    display: grid;
    grid-template-columns:
      minmax(105px, 1fr)
      minmax(160px, auto);

    align-items: center;
    gap: 5px;

    overflow: hidden;
  }

  .brand {
    min-width: 0;
  }

  .site-logo {
    width: min(100%, 137px);
    max-width: 137px;
  }

  .header-right {
    width: min(58vw, 210px);
    min-width: 0;
    gap: 3px;
  }

  .indo-clock {
    width: 100%;
    min-width: 0;
    padding: 2px 4px;

    font-size: 7px;
    line-height: 1.05;
  }

  #jamIndonesia {
    margin-top: 1px;

    font-size: 11px;
  }

  .main-nav {
    width: 100%;

    display: grid;
    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      );

    gap: 3px;
  }

  .main-nav a {
    width: 100%;
    min-width: 0;
    min-height: 27px;

    padding: 3px 2px;

    border-radius: 6px;

    font-size: 7px;
  }

  .ticker {
    min-height: 25px;
  }

  .ticker-track {
    font-size: 8px;
  }

  .page-shell {
    width: 100%;
    max-width: 100%;
  }

  .rtp-banner-section {
    width: 100%;
    max-width: 100%;

    margin: 0 0 44px;
  }

  .rtp-banner-image {
    width: 100%;
    max-width: 100%;

    border-left: 0;
    border-right: 0;
    border-radius: 0 0 11px 11px;
  }

  .rtp-banner-controls {
    left: 5px;
    right: 5px;
    bottom: -25px;

    width: auto;
    min-width: 0;
    max-width: none;

    padding: 5px;

    grid-template-columns:
      minmax(0, 1fr)
      77px;

    gap: 4px;

    border-radius: 11px;

    overflow: hidden;
  }

  .provider-list {
    width: 100%;
    min-width: 0;

    gap: 4px;
  }

  .provider-button {
    flex:
      0
      0
      96px;

    width: 96px;
    min-width: 96px;
    max-width: 96px;
    min-height: 34px;

    padding: 4px 5px;
    gap: 4px;

    border-radius: 6px;

    font-size: 7px;
  }

  .provider-logo {
    width: 20px;
    height: 20px;
  }

  .cek-game-button {
    width: 77px;
    min-width: 77px;
    max-width: 77px;
    min-height: 35px;

    padding: 4px;

    font-size: 7px;
  }

  #games {
    width: 100%;
    max-width: 100%;

    padding:
      5px
      5px
      25px;
  }

  .section-heading {
    gap: 6px;
    margin-bottom: 8px;
  }

  .eyebrow {
    font-size: 9px;
  }

  .result-text {
    font-size: 8px;
  }

  .game-search-box {
    width: 100%;
    max-width: 100%;

    margin: 0 0 10px;

    grid-template-columns:
      minmax(0, 1fr)
      39px;
  }

  .game-search-box input {
    height: 37px;
    padding: 0 9px;

    font-size: 10px;
  }

  .game-search-box button {
    width: 39px;
    height: 37px;

    font-size: 13px;
  }

  /*
    EMPAT GAME KE SAMPING
  */
  .game-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      );

    gap: 5px;
  }

  .game-tile,
  .game-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;

    padding: 2px 2px 4px;

    border-radius: 7px;

    contain-intrinsic-size: 120px;
  }

  .tile-image-wrap,
  .game-cover,
  .game-visual {
    width: 100%;
    max-width: 100%;

    aspect-ratio: 1 / 1;

    border-radius: 6px;
  }

  .tile-image,
  .game-image {
    width: 100%;
    height: 100%;

    border-radius: 6px;
  }

  .tile-title,
  .game-content h3 {
    min-height: 24px;

    margin: 4px 1px 3px;

    font-size: 7px;
    line-height: 1.2;
  }

  .rtp-box {
    min-height: 22px;
    padding: 3px 2px;

    border-radius: 4px;

    font-size: 7px;
  }

  .load-more-games {
    width: calc(100% - 16px);
    min-height: 41px;

    margin-top: 19px;

    font-size: 10px;
  }

  .modal,
  .game-checker-box {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: 89vh;

    padding: 20px 13px;
  }

  #recommendedGameImage {
    width: 145px;
  }

  .floating-livechat {
    right: 4px;
    bottom: 4px;

    width: 83px;
    max-width: 24vw;
  }
}

/* =====================================================
   21. PONSEL SANGAT KECIL — TETAP 4 KOLOM
===================================================== */

@media screen and (max-width: 370px) {
  .site-header {
    grid-template-columns:
      minmax(92px, 1fr)
      minmax(148px, auto);

    padding-inline: 4px;
  }

  .site-logo {
    width: 108px;
  }

  .header-right {
    width: 57vw;
  }

  .main-nav a {
    min-height: 25px;
    padding-inline: 1px;

    font-size: 6px;
  }

  .provider-button {
    flex-basis: 90px;

    width: 90px;
    min-width: 90px;
    max-width: 90px;
  }

  .cek-game-button {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
  }

  .rtp-banner-controls {
    grid-template-columns:
      minmax(0, 1fr)
      72px;
  }

  .game-grid {
    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      );

    gap: 3px;
  }

  .tile-title,
  .game-content h3 {
    min-height: 22px;

    font-size: 6px;
  }

  .rtp-box {
    min-height: 20px;

    font-size: 6px;
  }
}

/* =========================
   22. AKSESIBILITAS
========================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(242, 63, 135, 0.35);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}