﻿:root {
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.18);
  --ink: #080b12;
  --panel: rgba(15, 18, 28, 0.88);
  --panel-strong: rgba(18, 23, 36, 0.96);
  --line: rgba(212, 175, 55, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 16px 32px !important;
  min-height: 100vh;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.72), rgba(5, 7, 11, 0.88)),
    radial-gradient(circle at 20% 0%, rgba(212, 175, 55, 0.18), transparent 30rem),
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.08), transparent 26rem),
    url("../../images/bg-hutri.webp") center top / cover fixed,
    linear-gradient(180deg, #080b12 0%, #111827 45%, #05070b 100%);
  color: #f8fafc;
}

body::before {
  display: none !important;
}

.header,
.nav-wrapper,
.header-container,
.artikel,
.container {
  width: min(1180px, calc(100vw - 32px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.header {
  position: relative;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 24, 38, 0.94), rgba(8, 11, 18, 0.9));
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.header img.logo,
.logo {
  width: 260px !important;
  max-width: 260px !important;
  height: auto;
  max-height: none;
  margin-bottom: 0;
  object-fit: contain;
}

.custom-carousel {
  height: clamp(260px, 46vh, 560px);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.carousel-track,
.carousel-slide {
  height: 100%;
}

.carousel-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100%;
}

.carousel-slide img {
  width: auto !important;
  max-width: 100%;
  height: 100% !important;
  object-fit: contain;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  padding: 0 !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(8, 11, 18, 0.72) !important;
  backdrop-filter: blur(10px);
}

.buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.buttons a,
.search button,
.simulasi-button,
.popup-content button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #facc15, #d4af37 48%, #9a6b10) !important;
  color: #111827 !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.buttons a:hover,
.search button:hover,
.simulasi-button:hover,
.popup-content button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 34px rgba(212, 175, 55, 0.32);
}

.search {
  display: flex;
  gap: 10px;
}

.search input,
.filter-container select,
.popup-content input {
  min-height: 44px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search input:focus,
.filter-container select:focus,
.popup-content input:focus {
  border-color: rgba(250, 204, 21, 0.72);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.14);
}

.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 11, 18, 0.88);
  backdrop-filter: blur(12px);
}

.nav-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.nav-menu {
  flex: 0 0 auto;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 999px;
  padding: 9px 14px !important;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-menu:hover {
  border-color: rgba(250, 204, 21, 0.56);
  background: rgba(212, 175, 55, 0.16);
}

.header-container {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.running-text,
.filter-container {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
}

.running-text {
  overflow: hidden;
  padding: 12px 16px;
  color: #facc15;
  font-weight: 700;
}

.filter-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.container {
  margin-top: 18px !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 16px;
}

.game-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.18) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, var(--panel-strong), rgba(10, 14, 23, 0.96)) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.34);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.13), transparent 34%);
}

.game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.game-title {
  min-height: 42px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.progress-bar-container {
  height: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08) !important;
}

.progress-bar.green {
  background: linear-gradient(90deg, #16a34a, #86efac) !important;
}

.progress-bar.orange {
  background: linear-gradient(90deg, #d97706, #facc15) !important;
}

.progress-bar.red {
  background: linear-gradient(90deg, #dc2626, #fb7185) !important;
}

.progress-bar-text {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.game-info {
  color: #dbeafe;
  font-size: 12px;
}

.pola-slot-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.pola-slot-table td {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
}

.popup {
  position: fixed !important;
  inset: 0 !important;
  z-index: 60 !important;
  background: rgba(0, 0, 0, 0.72) !important;
  backdrop-filter: blur(10px);
}

.popup-container {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
}

.popup-content {
  width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: 20px !important;
  background: #101827 !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.54);
}

.close {
  color: #facc15 !important;
}

.artikel {
  margin-top: 22px;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(10, 14, 23, 0.86);
  color: #d1d5db;
  line-height: 1.75;
}

.artikel h1 {
  color: #facc15;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.15;
}

.nav-bottom {
  display: none;
}

.item-nav-bottom {
  display: flex;
  min-width: 0;
  min-height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-right: 1px solid rgba(212, 175, 55, 0.16);
  color: #f8fafc;
  text-decoration: none;
}

.item-nav-bottom:last-child {
  border-right: 0;
}

.item-nav-bottom i {
  color: #facc15;
  font-size: 18px;
}

.item-nav-bottom p {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.item-nav-bottom:hover {
  background: rgba(212, 175, 55, 0.16);
  color: #ffffff;
}

@media (max-width: 720px) {
  .nav-bottom {
    position: fixed;
    left: 50%;
    bottom: 10px;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, calc(100vw - 20px));
    overflow: hidden;
    transform: translateX(-50%);
    border: 1px solid rgba(250, 204, 21, 0.34);
    border-radius: 16px;
    background: rgba(8, 11, 18, 0.9);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
  }
}

@media (max-width: 720px) {
  body {
    padding: 0 10px 92px !important;
  }

  .header,
  .nav-wrapper,
  .header-container,
  .artikel,
  .container {
    width: min(100%, calc(100vw - 24px)) !important;
  }

  .header {
    margin-top: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .logo-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
  }

  .header img.logo,
  .logo {
    width: min(230px, 72vw);
    max-width: 230px;
  }

  .custom-carousel {
    height: auto;
    min-height: 0;
    margin-top: 4px;
  }

  .carousel-track,
  .carousel-slide {
    height: auto;
  }

  .carousel-slide img {
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    max-height: none;
  }

  .header-container {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    flex-direction: column;
  }

  .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .game-title {
    font-size: 12px;
  }

  .nav-bottom {
    bottom: 10px;
    width: min(100%, calc(100vw - 20px));
    border-radius: 16px;
  }

  .item-nav-bottom {
    min-height: 58px;
  }
}
