/* style.css - Versi disempurnakan */
:root {
  --bg: #585858;
  --panel: #222;
  --panel-2: #303030;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.85);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header / Nav */
header {
  background: #333333;
  border-bottom: 2px solid #4a4a4a;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  align-items: center
}

.nav-links a,
.nav-summary {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-links a.active {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

/* Grup kiri: logo + tombol AI */
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Tombol kapsul "Tanya AI" di header */
.ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 18px;
  /* bikin memanjang seperti kapsul */
  border-radius: 999px;
  /* bentuk pill / kapsul */

  /* efek glass + blur, mirip game-card */
  background: rgba(34, 34, 34, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;

  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.ai-btn:hover {
  background: rgba(34, 34, 34, 0.82);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.55);
}

.ai-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

/* Sedikit mengecil di HP */
@media (max-width: 600px) {
  .ai-btn {
    padding: 4px 14px;
    font-size: 12px;
  }
}

/* dropdown using <details> */
details.dropdown {
  position: relative
}

details[open]>.dropdown-box {
  display: block
}

nav summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

nav summary::-webkit-details-marker {
  display: none
}

/* Dropdown box */
.dropdown-box {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  background: var(--panel);
  border-radius: 8px;
  padding: 8px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.dropdown-box a {
  display: block;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.dropdown-box a:hover {
  background: #333
}

/* Hero */
.hero {
  background-image: url('gamea/gambarwelcome.jpg');
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 48px;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6)
}

/* Main content container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px
}

/* Page title */
.page-title {
  text-align: center;
  font-size: 28px;
  margin: 8px 0 20px;
  font-weight: 800;
}

/* Game grid */
.game-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  align-items: start;
}

.game-card {
  /* warna gelap transparan biar blur kelihatan */
  background: rgba(34, 34, 34, 0.65);
  /* setara #222 tapi 65% opasitas */
  padding: 12px;
  border-radius: 14px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.08);

  /* efek glass / blur */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);

  /* sedikit lebih pekat saat hover */
  background: rgba(34, 34, 34, 0.80);
}

.game-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  border: 3px solid #fff;
}

.game-title {
  margin-top: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--muted)
}

/* Footer */
footer {
  background: #303030;
  color: white;
  text-align: center;
  padding: 16px 0;
  margin-top: 88px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* === BACKGROUND KHUSUS HALAMAN ULASAN === */
body.ulasan-page {
  /* ganti path sesuai nama file gambar kamu */
  background: url('gamea/gambarwelcome.jpg') center/cover fixed no-repeat;
  background-color: #585858;
  /* fallback warna kalau gambar gagal load */
}

/* Layout halaman ulasan (boleh tetap) */
.review-page {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Box ulasan dengan efek blur / glass */
.review-box {
  width: 100%;
  max-width: 700px;
  padding: 20px;
  border-radius: 16px;

  /* warna gelap transparan supaya bg masih kelihatan */
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* untuk Safari */
}

/* Panel komentar di pojok ikut sedikit blur biar nyatu */
.comment-display {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 320px;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  z-index: 2000;

  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Review page layout */
.review-page {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.review-box {
  width: 100%;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: 14px;
  backdrop-filter: blur(4px);
}

textarea#comment-input {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center
}

button {
  border-radius: 8px;
  padding: 8px 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: #000
}

button.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12)
}

/* Comment display panel (responsive) */
.comment-display {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 320px;
  max-height: 360px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.6);
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  z-index: 2000;
}

.comment-display h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  text-align: center
}

.comment-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.comment-text {
  flex: 1;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  color: var(--muted)
}

.comment-actions {
  display: flex;
  gap: 6px;
  align-items: center
}

/* menu options small */
.icon-btn {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  padding: 4px;
  border-radius: 6px
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.04)
}

/* small screens adjustments */
@media (max-width:600px) {
  .hero {
    height: 200px
  }

  .hero h1 {
    font-size: 36px
  }

  nav {
    padding: 8px 12px
  }

  .comment-display {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none
  }
}

.profile-box {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  background: #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  color: white;
}

.photo-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

/* Kartu foto */
.photo-card {
  text-align: center;
}

/* Bungkus gambar untuk efek hover */
.photo-inner {
  position: relative;
  width: 275px;
  height: 275px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 2px #444;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

/* Gambar profil */
.photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay teks (nama, email, instagram) */
.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.photo-overlay h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #fff;
}

.photo-overlay p {
  margin: 2px 0;
  font-size: 20px;
  color: #e0e0e0;
}

.photo-overlay a {
  margin-top: 4px;
  font-size: 20px;

  /* style.css - Versi disempurnakan */
  :root {
    --bg: #585858;
    --panel: #222;
    --panel-2: #303030;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.85);
  }

  * {
    box-sizing: border-box
  }

  html,
  body {
    height: 100%
  }

  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Header / Nav */
  header {
    background: #333333;
    border-bottom: 2px solid #4a4a4a;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
  }

  .logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px
  }

  .nav-links {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    align-items: center
  }

  .nav-links a,
  .nav-summary {
    color: var(--text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .nav-links a.active {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
  }

  /* dropdown using <details> */
  details.dropdown {
    position: relative
  }

  details[open]>.dropdown-box {
    display: block
  }

  nav summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
  }

  nav summary::-webkit-details-marker {
    display: none
  }

  /* Dropdown box */
  .dropdown-box {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 160px;
    background: var(--panel);
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  }

  .dropdown-box a {
    display: block;
    padding: 8px 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
  }

  .dropdown-box a:hover {
    background: #333
  }

  /* Hero */
  .hero {
    background-image: url('gamea/gambarwelcome.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 30px;
  }

  .hero h1 {
    font-size: 48px;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6)
  }

  /* Main content container */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px
  }

  /* Page title */
  .page-title {
    text-align: center;
    font-size: 28px;
    margin: 8px 0 20px;
    font-weight: 800;
  }

  /* Game grid */
  .game-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    align-items: start;
  }

  .game-card {
    background: var(--panel);
    padding: 12px;
    border-radius: 14px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: transform 200ms ease, box-shadow 200ms ease;
  }

  .game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  }

  .game-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    border: 3px solid #fff;
  }

  .game-title {
    margin-top: 10px;
    font-weight: 700;
    font-size: 16px;
    color: var(--muted)
  }

  /* Review page layout */
  .review-page {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
  }

  .review-box {
    width: 100%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.06);
    padding: 20px;
    border-radius: 14px;
    backdrop-filter: blur(4px);
  }

  textarea#comment-input {
    width: 100%;
    min-height: 130px;
    resize: vertical;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--text);
    font-size: 16px;
  }

  /* Buttons */
  .btn-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: center
  }

  button {
    border-radius: 8px;
    padding: 8px 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
    color: #000
  }

  button.ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12)
  }

  /* Comment display panel (responsive) */
  .comment-display {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 320px;
    max-height: 360px;
    overflow: auto;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    z-index: 2000;
  }

  .comment-display h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    text-align: center
  }

  .comment-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    justify-content: space-between;
  }

  .comment-text {
    flex: 1;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    color: var(--muted)
  }

  .comment-actions {
    display: flex;
    gap: 6px;
    align-items: center
  }

  /* menu options small */
  .icon-btn {
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    padding: 4px;
    border-radius: 6px
  }

  .icon-btn:hover {
    background: rgba(255, 255, 255, 0.04)
  }

  /* small screens adjustments */
  @media (max-width:600px) {
    .hero {
      height: 200px
    }

    .hero h1 {
      font-size: 36px
    }

    nav {
      padding: 8px 12px
    }

    .comment-display {
      left: 8px;
      right: 8px;
      width: auto;
      max-width: none
    }
  }

  .profile-box {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px 40px;
    background: #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    color: white;
  }

  .photo-row {
    display: flex;
    justify-content: space-around;
    /* sebelumnya space-between */
    gap: 24px;
    margin-bottom: 30px;
  }

  /* Kartu foto */
  .photo-card {
    text-align: center;
  }

  /* Bungkus gambar untuk efek hover */
  .photo-inner {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 2px #444;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
  }

  /* Gambar profil */
  .photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Overlay teks (nama, email, instagram) */
  .photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .photo-overlay h3 {
    margin: 0 0 4px;
    font-size: 14px;
    color: #fff;
  }

  .photo-overlay p {
    margin: 2px 0;
    font-size: 12px;
    color: #e0e0e0;
  }

  .photo-overlay a {
    margin-top: 4px;
    font-size: 12px;
    color: #ffd700;
    text-decoration: none;
  }

  .photo-overlay a:hover {
    text-decoration: underline;
  }

  /* Efek nimbul + munculkan overlay saat hover */
  .photo-card:hover .photo-inner {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
  }

  .photo-card:hover .photo-overlay {
    opacity: 1;
    transform: translateY(0);
  }

  .profile-text p {
    margin: 8px 0;
    font-size: 16px;
  }

  /* Halaman detail game (page penjelasan lengkap) */

  .back-link {
    display: inline-flex;
    /* biar bisa sejajar icon dan teks */
    align-items: center;
    gap: 6px;
    margin: 10px 0 20px;
    padding: 8px 16px;
    background: var(--panel-2);
    /* pakai warna panel-2 biar nyatu tema */
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    /* jadi seperti pill button */
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, transform 0.15s ease,
      box-shadow 0.15s ease;
  }

  .back-link:hover {
    background: #3a3a3a;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
  }

  .game-detail {
    max-width: 800px;
    margin: 10px auto 60px;
    color: var(--text);
  }

  .game-detail img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #fff;
    margin-bottom: 20px;
    display: block;
  }

  .game-detail h1 {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .game-subtitle {
    font-size: 14px;
    margin-bottom: 18px;
    color: var(--muted);
  }

  .game-section {
    margin-top: 18px;
  }

  .game-section h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .game-section p,
  .game-section ul,
  .game-section ol {
    font-size: 14px;
    line-height: 1.6;
  }

  .game-section ul,
  .game-section ol {
    padding-left: 20px;
  }

  .game-info {
    list-style: none;
    padding-left: 0;
  }

  .game-info li {
    margin-bottom: 4px;
  }

  /*CSS untuk Bentuk Bintang*/
  .rating-stars {
    color: #ffd700;
    /* warna emas */
    font-size: 16px;
    letter-spacing: 2px;
  }

  /* Perbesar teks di halaman detail game */

  .game-detail h1 {
    font-size: 32px;
    /* judul game lebih besar */
  }

  .game-subtitle {
    font-size: 18px;
    /* teks ringkasan di bawah judul */
    line-height: 1.7;
  }

  .game-section h2 {
    font-size: 22px;
    /* judul-judul bagian: Fitur Utama, Cara Main, dst. */
  }

  .game-section p,
  .game-section ul,
  .game-section ol {
    font-size: 17px;
    /* isi paragraf & list lebih besar */
    line-height: 1.8;
  }

  .game-section li {
    margin-bottom: 6px;
  }

  .rating-stars {
    font-size: 18px;
    /* bintang rating ikut dibesarkan */
  }

  /* ==== SLIDER VIDEO + GAMBAR DI HALAMAN DETAIL GAME ==== */

  /* Bungkus slider */
  .media-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto 20px;
    /* center + jarak bawah */
  }

  /* Wrapper isi slide */
  .slider-wrapper {
    position: relative;
    width: 100%;
  }

  /* Setiap slide (video / gambar) */
  .media-slider .slide {
    display: none;
  }

  .media-slider .slide.active {
    display: block;
  }

  /* SAMAKAN UKURAN BOX VIDEO & GAMBAR */
  .media-slider video,
  .media-slider .slide img {
    width: 100%;
    height: 320px;
    /* atur tinggi yang kamu mau, misal 280 / 300 / 360 */
    max-height: none;
    /* jangan pakai max-height lagi */
    border-radius: 10px;
    border: 3px solid #fff;
    object-fit: cover;
    /* isi kotak penuh, rapi */
    display: block;
  }

  /* TOMBOL PANAH – default: disembunyikan */
  .media-slider .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 5;
    opacity: 0;
    /* sembunyikan */
    pointer-events: none;
    /* tidak bisa diklik */
    transition: opacity 0.2s ease;
  }

  /* Saat kursor di atas slider, panah muncul */
  .media-slider:hover .slider-btn {
    opacity: 1;
    pointer-events: auto;
  }

  /* POSISI PANAH DI LUAR BOX */
  .media-slider .slider-btn.prev {
    left: -26px;
    /* geser keluar kiri */
  }

  .media-slider .slider-btn.next {
    right: -26px;
    /* geser keluar kanan */
  }

  /* Penyesuaian di layar kecil */
  @media (max-width: 600px) {
    .media-slider .slider-btn {
      width: 30px;
      height: 30px;
      font-size: 18px;
    }

    .media-slider .slider-btn.prev {
      left: -20px;
    }

    .media-slider .slider-btn.next {
      right: -20px;
    }
  }

  color: #ffd700;
  text-decoration: none;
}

.photo-overlay a:hover {
  text-decoration: underline;
}

/* Efek nimbul + munculkan overlay saat hover */
.photo-card:hover .photo-inner {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.photo-card:hover .photo-overlay {
  opacity: 1;
  transform: translateY(0);
}

.profile-text p {
  margin: 8px 0;
  font-size: 16px;
}

/* Halaman detail game (page penjelasan lengkap) */

.back-link {
  display: inline-flex;
  /* biar bisa sejajar icon dan teks */
  align-items: center;
  gap: 6px;
  margin: 10px 0 20px;
  padding: 8px 16px;
  background: var(--panel-2);
  /* pakai warna panel-2 biar nyatu tema */
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  /* jadi seperti pill button */
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.back-link:hover {
  background: #3a3a3a;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
}

.game-detail {
  max-width: 800px;
  margin: 10px auto 60px;
  color: var(--text);
}

.game-detail img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #fff;
  margin-bottom: 20px;
  display: block;
}

.game-detail h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

.game-subtitle {
  font-size: 14px;
  margin-bottom: 18px;
  color: var(--muted);
}

.game-section {
  margin-top: 18px;
}

.game-section h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.game-section p,
.game-section ul,
.game-section ol {
  font-size: 14px;
  line-height: 1.6;
}

.game-section ul,
.game-section ol {
  padding-left: 20px;
}

.game-info {
  list-style: none;
  padding-left: 0;
}

.game-info li {
  margin-bottom: 4px;
}

/*CSS untuk Bentuk Bintang*/
.rating-stars {
  color: #ffd700;
  /* warna emas */
  font-size: 16px;
  letter-spacing: 2px;
}

/* Perbesar teks di halaman detail game */

.game-detail h1 {
  font-size: 32px;
  /* judul game lebih besar */
}

.game-subtitle {
  font-size: 18px;
  /* teks ringkasan di bawah judul */
  line-height: 1.7;
}

.game-section h2 {
  font-size: 22px;
  /* judul-judul bagian: Fitur Utama, Cara Main, dst. */
}

.game-section p,
.game-section ul,
.game-section ol {
  font-size: 17px;
  /* isi paragraf & list lebih besar */
  line-height: 1.8;
}

.game-section li {
  margin-bottom: 6px;
}

.rating-stars {
  font-size: 18px;
  /* bintang rating ikut dibesarkan */
}

/* ==== SLIDER VIDEO + GAMBAR DI HALAMAN DETAIL GAME ==== */

/* Bungkus slider */
.media-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto 20px;
  /* center + jarak bawah */
}

/* Wrapper isi slide */
.slider-wrapper {
  position: relative;
  width: 100%;
}

/* Setiap slide (video / gambar) */
.media-slider .slide {
  display: none;
}

.media-slider .slide.active {
  display: block;
}

/* SAMAKAN UKURAN BOX VIDEO & GAMBAR */
.media-slider video,
.media-slider .slide img {
  width: 100%;
  height: 320px;
  /* atur tinggi yang kamu mau, misal 280 / 300 / 360 */
  overflow: hidden;
  border-radius: 10px;
  border: 3px solid #fff;
  object-fit: cover;
  /* isi kotak penuh, rapi */
  display: block;
}

/* TOMBOL PANAH – default: disembunyikan */
.media-slider .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 5;
  opacity: 0;
  /* sembunyikan */
  pointer-events: none;
  /* tidak bisa diklik */
  transition: opacity 0.2s ease;
}

/* Saat kursor di atas slider, panah muncul */
.media-slider:hover .slider-btn {
  opacity: 1;
  pointer-events: auto;
}

/* POSISI PANAH DI LUAR BOX */
.media-slider .slider-btn.prev {
  left: -26px;
  /* geser keluar kiri */
}

.media-slider .slider-btn.next {
  right: -26px;
  /* geser keluar kanan */
}

/* Penyesuaian di layar kecil */
@media (max-width: 600px) {
  .media-slider .slider-btn {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .media-slider .slider-btn.prev {
    left: -20px;
  }

  .media-slider .slider-btn.next {
    right: -20px;
  }
}

/* Box ucapan terima kasih di halaman profil */
.thanks-box {
  width: 100%;
  max-width: 1200px;
  /* samakan dengan profile-box */
  margin: 0 auto 60px;
  /* center + jarak bawah */
  padding: 24px 32px;
  background: #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  color: #fff;
  text-align: center;
}

.thanks-box h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.thanks-box p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

/* === Efek glass / blur di halaman profil === */
.profile-box,
.thanks-box {
  background: rgba(42, 42, 42, 0.65);
  /* transparan biar blur kelihatan */
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Grup kiri logo + tombol AI */
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  /* panel bisa nempel di bawahnya */
}

/* Tombol kapsul Tanya AI (di navbar) */
.ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(34, 34, 34, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ai-btn:hover {
  background: rgba(34, 34, 34, 0.82);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.55);
}

/* PANEL TANYA AI – BOX BLUR DI BAWAH TOMBOL */
.ai-panel {
  position: absolute;
  top: calc(100% + 8px);
  /* di bawah baris nav-left */
  right: 0;
  width: 320px;
  max-height: 60vh;

  display: flex;
  flex-direction: column;
  gap: 8px;

  padding: 12px 14px 14px;
  border-radius: 18px;
  z-index: 2000;

  background: rgba(34, 34, 34, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Saat dibuka oleh JS */
.ai-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Header dalam panel */
.ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.ai-panel-header h2 {
  font-size: 16px;
  margin: 0;
}

.ai-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.ai-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Isi panel */
.ai-panel-body {
  flex: 1;
  overflow: auto;
}

/* Responsif di HP */
@media (max-width: 600px) {
  .ai-btn {
    padding: 4px 14px;
    font-size: 12px;
  }

  .ai-panel {
    right: 8px;
    left: 8px;
    width: auto;
    max-height: 65vh;
    bottom: 12px;
  }
}

/* ===== NAVBAR: grup kiri logo + tombol AI ===== */
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* NAV kiri perlu relatif supaya panel bisa nempel di bawahnya */
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  /* <– tambah ini */
}

/* PANEL TANYA AI – nempel di bawah tombol Tanya AI */
.ai-panel {
  position: absolute;

  /* reset posisi lama dari rule sebelumnya */
  top: calc(100% + 8px);
  right: 0;
  bottom: auto;
  left: auto;

  width: 320px;
  max-height: 60vh;

  display: flex;
  flex-direction: column;
  gap: 8px;

  padding: 12px 14px 14px;
  border-radius: 18px;
  z-index: 2000;

  background: rgba(34, 34, 34, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ai-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 600px) {
  .ai-panel {
    width: min(320px, 100vw - 24px);
    max-height: 55vh;
  }
}

.ai-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.ai-close:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* daftar pesan */
.ai-messages {
  flex: 1;
  min-height: 80px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* bubble pesan */
.ai-msg {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 100%;
  word-wrap: break-word;
}

.ai-msg-bot {
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ai-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #1d4ed8, #22c55e);
  color: #f9fafb;
}

/* area input */
.ai-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.ai-input-row textarea {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  resize: none;
  max-height: 90px;
  outline: none;
}

.ai-input-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

/* Tombol CLEAR kecil di kiri */
.ai-clear-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.ai-clear-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Tombol KIRIM (bulat hijau) */
.ai-send-btn {
  border: none;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: #052e16;
  background: radial-gradient(circle at 30% 30%, #22c55e, #16a34a);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.9);
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    opacity 0.15s ease-out;
}

.ai-send-btn:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 20px rgba(34, 197, 94, 1);
}

.ai-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* status kecil di bawah input */
.ai-status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

/* HP */
@media (max-width: 600px) {
  .ai-panel {
    right: 8px;
    left: 8px;
    width: auto;
    max-height: 65vh;
    bottom: 12px;
  }
}

/* ====== WIDGET TANYA AI – NAVBAR ====== */

/* Grup kiri logo + tombol AI */
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  /* panel nempel di bawahnya */
}

/* Tombol kapsul Tanya AI di header */
.ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;

  border: 1px solid rgba(148, 163, 184, 0.8);
  background: radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.25), transparent 55%),
    rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;

  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.85);
  transition:
    background 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.ai-btn:hover {
  background: radial-gradient(circle at 100% 0, rgba(52, 211, 153, 0.25), transparent 55%),
    rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.9);
}

/* PANEL TANYA AI – glass + gradient */
.ai-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;

  width: 360px;
  max-width: min(360px, 100vw - 24px);
  max-height: 70vh;

  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1px 5px 10px;
  border-radius: 18px;
  z-index: 2000;

  background:
    radial-gradient(circle at 0 0, rgba(52, 211, 153, 0.25), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.25), transparent 55%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.18s ease-out,
    transform 0.18s ease-out;
}

/* garis highlight di atas panel */
.ai-panel::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  opacity: 0.9;
}

/* saat dibuka oleh JS */
.ai-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* HEADER panel */
.ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.ai-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ai-panel-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #4ade80, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #022c22;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
  flex-shrink: 0;
}

.ai-panel-title h2 {
  margin: 0;
  font-size: 15px;
}

.ai-panel-subtitle {
  margin: 0;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-panel-subtitle-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}

/* tombol close bulat */
.ai-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.ai-close:hover {
  background: rgba(30, 64, 175, 0.9);
}

/* isi panel */
.ai-panel-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* area pesan */
.ai-messages {
  flex: 1;
  min-height: 90px;
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* scroll bar tipis */
.ai-messages::-webkit-scrollbar {
  width: 6px;
}

.ai-messages::-webkit-scrollbar-track {
  background: transparent;
}

.ai-messages::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 999px;
}

/* baris pesan (pakai avatar) */
.ai-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.ai-msg-row-bot {
  justify-content: flex-start;
}

.ai-msg-row-user {
  justify-content: flex-end;
}

/* avatar AI / user */
.ai-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.ai-avatar-bot {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
}

.ai-avatar-user {
  background: rgba(148, 163, 184, 0.95);
  color: #020617;
}

/* bubble pesan */
.ai-msg {
  padding: 7px 10px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 80%;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.ai-msg-bot {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.75);
  color: #e5e7eb;
}

.ai-msg-user {
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  color: #f9fafb;
}

/* quick suggestion chips */
.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-suggestions button {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.85);
  color: rgba(226, 232, 240, 0.95);
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-suggestions button:hover {
  background: rgba(30, 64, 175, 0.95);
  border-color: rgba(96, 165, 250, 0.95);
}

/* baris input */
.ai-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 2px;
}

/* textarea */
.ai-input-row textarea {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 13px;
  padding: 7px 10px;
  resize: none;
  max-height: 90px;
  outline: none;
  line-height: 1.5;
}

.ai-input-row textarea:focus {
  border-color: rgba(96, 165, 250, 0.95);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.7);
}

.ai-input-row textarea::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

/* tombol clear */
.ai-clear-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: transparent;
  color: rgba(226, 232, 240, 0.95);
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.ai-clear-btn:hover {
  background: rgba(15, 23, 42, 0.95);
}

/* tombol kirim */
.ai-send-btn {
  border: none;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: #022c22;
  background: radial-gradient(circle at 30% 30%, #4ade80, #16a34a);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.98);
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    opacity 0.12s ease-out;
}

.ai-send-btn:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 18px rgba(74, 222, 128, 1);
}

.ai-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* status + titik mengetik */
.ai-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
  margin-top: 2px;
}

.ai-status {
  font-size: 11px;
  color: rgba(226, 232, 240, 0.85);
}

.ai-status-dots {
  display: flex;
  align-items: center;
  gap: 3px;
  visibility: hidden;
  /* dimunculkan lewat JS */
}

.ai-status-dots span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #22c55e;
  animation: aiTyping 1s infinite ease-in-out;
}

.ai-status-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-status-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes aiTyping {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

/* Responsif HP */
@media (max-width: 600px) {
  .ai-btn {
    padding: 4px 14px;
    font-size: 12px;
  }

  .ai-panel {
    right: 8px;
    left: 8px;
    width: auto;
    max-height: 65vh;
  }
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  /* supaya ai-panel bisa "nempel" ke area kiri */
}

/* penting: panel jangan ikut alur layout nav */
.ai-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 3000;
}

@media (max-width: 768px) {
  /* 1. Navigasi: Biarkan logo dan menu bertumpuk agar tidak sesak */
  nav {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }

  .nav-left {
    text-align: left;
    display: block;
    width: 100%;
  }

  .logo {
    text-align: left;
    width: 100%;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .nav-links a, .nav-summary {
    font-size: 14px; /* Kecilkan sedikit teks menu di HP */
    padding: 5px 8px;
  }

  /* 2. Hero: Kurangi tinggi gambar welcome agar tidak memenuhi layar */
  .hero {
    height: 180px;
  }

  .hero h1 {
    font-size: 32px;
  }

  /* 3. Game Grid: Paksa jadi 2 kolom di HP (sangat penting!) */
  .game-container {
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 12px;
    padding: 10px;
  }

  .game-card img {
    height: 130px; /* Sesuaikan tinggi gambar di HP */
  }

  .game-title {
    font-size: 13px;
  }

  /* 4. Profil: Buat foto profil berjejer ke bawah (stack) */
  .photo-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .photo-inner {
    width: 220px; /* Kecilkan ukuran foto di HP agar pas */
    height: 220px;
  }

  /* 5. Detail Game & Slider: Pastikan video/gambar tidak terpotong */
  .media-slider video,
  .media-slider .slide img {
    height: 200px;
  }

  /* 6. Panel AI: Buat lebarnya fleksibel di layar kecil */
  .ai-panel {
    width: 90%;
    right: 5%;
    left: 5%;
    bottom: 20px;
  }
  
  /* Hilangkan efek hover di HP (karena tidak ada kursor) */
  .game-card:hover {
    transform: none;
  }
}