:root {
  --orange: #f77b1e;
  --orange2: #ff9a45;
  --purple: #3d2dc7;
  --purple2: #5547e8;
  --purpledark: #261a8a;
  --white: #ffffff;
  --cream: #fff5e4;
  --dark: #0d0a2a;
  --darker: #080618;
  --mid: #1a1250;
  --yellow: #ffd466;
  --text: #eee8ff;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Nunito", sans-serif;
  background: var(--darker);
  color: var(--text);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 3rem;
  background: rgba(8, 6, 24, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--purple);
}
.nav-logo img {
  height: 44px;
  object-fit: contain;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
nav ul a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}
nav ul a:hover {
  color: var(--orange);
}
.nav-dl {
  font-family: "Fredoka One", cursive;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  border: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  box-shadow: 0 4px 0 #a84c00;
}
.nav-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #a84c00;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid rgba(93, 71, 232, 0.5);
  border-radius: 10px;
  cursor: pointer;
  gap: 5px;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.hamburger:hover {
  border-color: var(--orange);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s,
    background 0.2s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background: var(--orange);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background: var(--orange);
}

/* MOBILE DROPDOWN */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 199;
  background: rgba(8, 6, 24, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 3px solid var(--purple);
  flex-direction: column;
  padding: 0.5rem 1.5rem 1.2rem;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(93, 71, 232, 0.15);
  transition: color 0.2s;
}
.mobile-menu a:last-child {
  border-bottom: none;
}
.mobile-menu a:hover {
  color: var(--orange);
}
.mobile-menu .mobile-dl {
  margin-top: 0.8rem;
  font-family: "Fredoka One", cursive;
  font-size: 1.1rem;
  letter-spacing: 1px;
  padding: 0.8rem 1.4rem;
  border-radius: 50px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 0 #a84c00;
  border: none;
}

@media (max-width: 820px) {
  nav {
    padding: 0.85rem 1.4rem;
  }
  nav ul,
  .nav-dl {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

#hero {
  height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("GambarFE/HomeGame.png") center/cover no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-overlay {
  max-width: 700px;
  padding: 20px;
}

/* TITLE */
.hero-title {
  font-family: "Fredoka One", cursive;
  font-size: 3rem;
  color: #fff;
  margin-bottom: 20px;
}

/* DESC */
.hero-desc {
  font-size: 1.1rem;
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-desc strong {
  color: #f77b1e;
}

/* BUTTON */
.hero-download {
  display: inline-block;
  padding: 14px 35px;
  background: #f77b1e;
  color: #fff;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
}

.hero-download:hover {
  transform: scale(1.05);
  background: #ff8f3a;
}

/* SECTION COMMON */
section {
  position: relative;
  z-index: 1;
}
.section-label {
  font-family: "Fredoka One", cursive;
  font-size: 0.9rem;
  color: var(--orange);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.section-title {
  font-family: "Fredoka One", cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.divider {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--purple));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ABOUT / GAMEPLAY */
#about {
  padding: 6rem 2rem;
  background: var(--mid);
}
.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  opacity: 0.85;
  margin-bottom: 1rem;
}

/* Gameplay flow */
.gameplay-flow {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(247, 123, 30, 0.25);
  border-radius: 12px;
  padding: 1rem;
}
.flow-step:hover {
  border-color: var(--orange);
}
.flow-num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fredoka One", cursive;
  font-size: 1.1rem;
  color: #fff;
}
.flow-body h4 {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 0.2rem;
}
.flow-body p {
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0.75;
  line-height: 1.5;
}

/* feature grid right side */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.feature-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(93, 71, 232, 0.3);
  border-radius: 12px;
  padding: 1.2rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.feature-card:hover {
  border-color: var(--purple2);
  transform: translateY(-4px);
}
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}
.feature-card h4 {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 0.25rem;
}
.feature-card p {
  font-size: 0.78rem;
  color: var(--text);
  opacity: 0.75;
  line-height: 1.5;
}
.feature-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
/* RIGHT SIDE IMAGE */
.about-inner{
  grid-template-columns:1fr 0.8fr;
}

.about-images{
  width:100%;
  max-width:480px;
  margin-left:auto;
}

.about-img{
  width:100%;
  aspect-ratio:16/9;
  border-radius:16px;
  overflow:hidden;
}

.about-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
@media (max-width:768px){

  .about-inner{
    grid-template-columns:1fr; /* stack */
  }

  .about-images{
    max-width:100%; /* 🔥 full lebar */
    margin:0;
  }

  .about-img{
    aspect-ratio:16/9; /* 🔥 biar proporsional */
  }

}
/* DOWNLOAD */
#download {
  padding: 6rem 2rem;
  background: radial-gradient(
    ellipse 100% 70% at 50% 50%,
    #1a0e55 0%,
    var(--darker) 70%
  );
}
.download-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.version-badge {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.25rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1rem;
  border: 2px solid var(--purple2);
}
.download-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}
.dl-card {
  background: rgba(255, 255, 255, 0.04);
  border: 2.5px solid rgba(93, 71, 232, 0.4);
  border-radius: 18px;
  padding: 2.5rem 1.8rem;
  min-width: 210px;
  flex: 1;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.dl-card:hover {
  border-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(247, 123, 30, 0.25);
}
.dl-icon {
  font-size: 3.5rem;
}
.dl-platform {
  font-family: "Fredoka One", cursive;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--orange);
}
.dl-size {
  font-size: 0.78rem;
  color: var(--text);
  opacity: 0.5;
}

.dl-btn {
  width: 100%;
  margin-top: auto;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

/* PRIMARY BUTTON */
.dl-btn.primary {
  background: linear-gradient(135deg, #f77b1e, #ff9a45);
  color: #fff;
  box-shadow: 0 4px 0 #a84c00;
}

/* HOVER */
.dl-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 0 #a84c00,
    0 10px 20px rgba(247, 123, 30, 0.4);
}

/* CLICK EFFECT */
.dl-btn.primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #a84c00;
}

/* MERCH */
#merch {
  padding: 6rem 2rem;
  background: var(--mid);
}
.merch-inner {
  max-width: 900px;
  margin: 0 auto;
}
.merch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* FIX 2 KOLOM */
  gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .merch-grid {
    grid-template-columns: 1fr;
  }
}
.merch-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.merch-card {
  background: var(--darker);
  border: 2.5px solid rgba(93, 71, 232, 0.3);
  border-radius: 20px;
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.merch-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
}
.merch-img {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, #1a1250, #0d0a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.merch-img img {
  max-height: 210px;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(247, 123, 30, 0.4));
}
.merch-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  z-index: 1;
}
.merch-info {
  padding: 1.4rem;
}
.merch-name {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}
.merch-desc {
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0.6;
  margin-bottom: 0.7rem;
  line-height: 1.5;
}
.merch-price {
  font-family: "Fredoka One", cursive;
  font-size: 1.5rem;
  color: var(--orange);
}
.merch-cta {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.btn-sm {
  font-family: "Fredoka One", cursive;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s;
  flex: 1;
  text-align: center;
}
.btn-sm:hover {
  transform: scale(1.05);
}
.btn-red {
  background: var(--orange);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 2.5px solid var(--purple);
  color: var(--purple2);
}

/* COMMENTS */
#comments {
  padding: 6rem 2rem;
  background: var(--darker);
}
.comments-inner {
  max-width: 780px;
  margin: 0 auto;
}
.comment-form {
  background: rgba(61, 45, 199, 0.08);
  border: 2px solid rgba(93, 71, 232, 0.35);
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 3rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(93, 71, 232, 0.4);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: var(--cream);
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-group textarea {
  min-height: 110px;
}
.stars-input {
  display: flex;
  gap: 0.3rem;
  font-size: 1.8rem;
  cursor: pointer;
}
.star {
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.15s;
}
.star.active,
.star:hover {
  color: var(--yellow);
}
.rating-label {
  font-size: 0.78rem;
  color: var(--text);
  opacity: 0.5;
  margin-top: 0.2rem;
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.comment-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(93, 71, 232, 0.2);
  border-radius: 14px;
  padding: 1.3rem;
  display: flex;
  gap: 1rem;
  animation: fadeUp 0.4s ease;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}
.comment-name {
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--cream);
}
.comment-stars {
  color: var(--yellow);
  font-size: 0.85rem;
}
.comment-date {
  font-size: 0.72rem;
  color: var(--text);
  opacity: 0.35;
  margin-left: auto;
}
.comment-text {
  font-size: 0.88rem;
  color: var(--text);
  opacity: 0.82;
  line-height: 1.65;
}
.btn-orange {
  background-color: #261a8a;
  border-radius: 3px;
  color: #fff;
}

/* FOOTER */
footer {
  background: #050412;
  border-top: 3px solid var(--purple);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-logo img {
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(247, 123, 30, 0.4));
}
.social-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}
.social-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(93, 71, 232, 0.4);
  border-radius: 10px;
  padding: 0.5rem 1.2rem;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.social-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
footer p {
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0.35;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-left {
    align-items: center;
  }
  .about-inner {
    grid-template-columns: 1fr;
  }
  .hero-logo {
    max-width: 320px;
  }
  .maskot-img {
    width: 240px;
  }
  nav {
    padding: 0.85rem 1.2rem;
  }
  nav ul {
    gap: 1rem;
  }
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .condition-row {
    grid-template-columns: 1fr;
  }

}
/* BACKDROP */
.merch-modal {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 999;
}

/* AKTIF */
.merch-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* CONTENT */
.merch-modal-content {
  width: 100%;
  max-width: 500px;
  background: var(--dark);
  border-radius: 20px 20px 0 0;
  padding: 25px;
  transform: translateY(100%);
  transition: 0.3s ease;
}

/* ANIMASI NAIK */
.merch-modal.active .merch-modal-content {
  transform: translateY(0);
}

/* IMAGE */
.merch-modal-content img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* TEXT */
.modal-price {
  font-size: 1.4rem;
  color: var(--orange);
  margin: 10px 0;
}

/* CLOSE */
.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
  font-size: 18px;
}