:root {
  --orange: #f57c00;
  --orange-dark: #e65100;
  --orange-light: #ff9800;
  --ink: #1a1a1a;
  --muted: #666;
  --white: #fff;
  --card: #fff;
  --faq-bg: #1f1f1f;
  --border: #e0e0e0;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --touch: 44px;
  --bottom-bar: 52px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: #f5f5f5;
  padding-bottom: calc(var(--bottom-bar) + env(safe-area-inset-bottom, 0px));
}

a {
  color: var(--orange-dark);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 8px 16px;
  z-index: 10000;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* Popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.popup-overlay.is-hidden {
  display: none;
}

.popup-box {
  max-width: 420px;
  width: 100%;
  position: relative;

.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  z-index: 2;
}

.popup-hero {
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #444 0%, #222 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.popup-actions {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-orange {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 12px 20px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  text-transform: uppercase;
}

.btn-orange:hover {
  background: var(--orange-dark);
  color: #fff;
}

.btn-orange--outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}

.popup-foot {
  padding: 8px 16px 16px;
  font-size: 11px;
  color: #ccc;
  text-align: center;
}

/* Top header */
.top-header {
  background: var(--orange);
  color: #fff;
}

.top-header__row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--orange-dark);
  font-size: 11px;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}

.top-header__cta {
  margin-left: auto;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.menu-btn {
  width: var(--touch);
  height: var(--touch);
  border: none;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
}

.search-row {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-row select {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 8px;
}

.search-row input {
  flex: 1;
  min-height: var(--touch);
  border: none;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 14px;
}

/* Mega strip */
.mega-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.mega-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  white-space: nowrap;
}

.mega-strip button,
.mega-strip a {
  background: none;
  border: none;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}

.mega-strip a.is-accent {
  color: var(--orange-dark);
  font-weight: 700;
}

/* Breadcrumb */
.crumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.crumb-bar ol {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crumb-bar li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: #999;
}

.crumb-bar a {
  color: var(--muted);
  text-decoration: none;
}

/* Main product card */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.product-layout {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.item-meta strong {
  color: var(--orange-dark);
}

.badge-pill {
  background: #0084ff;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.tabs-fake {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.tabs-fake span {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-bottom: none;
  font-size: 13px;
  background: #fafafa;
}

.tabs-fake span.is-active {
  background: #fff;
  font-weight: 600;
}

.hero-media {
  border: 1px solid var(--border);
  margin-bottom: 16px;
  position: relative;
}

.hero-media__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
}

.hero-media__nav button {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

h1.page-title {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  margin: 0 0 12px;
  line-height: 1.3;
  color: var(--orange-dark);
}

h2.sub-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--orange);
  margin: 0 0 12px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.feature-list li {
  padding: 8px 0 8px 32px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  font-size: 12px;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-collection {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  border: 2px solid var(--orange);
  color: var(--orange-dark);
  background: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}

.signin-hint {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.signin-hint a {
  font-weight: 700;
}

/* FAQ block */
.faq-section {
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.faq-section__head {
  background: var(--orange);
  color: #fff;
  padding: 16px 20px;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid #333;
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: var(--faq-bg);
  color: #fff;
  border: none;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.faq-panel {
  background: #2a2a2a;
  color: #ddd;
  padding: 12px 16px;
  font-size: 14px;
}

.faq-panel p {
  margin: 0;
}

/* Keywords */
.keyword-section {
  margin-top: 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
}

.keyword-section h2 {
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--orange-dark);
}

.keyword-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-link {
  display: inline-block;
  padding: 6px 10px;
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
  color: var(--ink);
}

.keyword-link:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

/* Catalog grid */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-chips button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
}

.filter-chips button[aria-pressed="true"] {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.game-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.game-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.game-card__thumb {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #ffe0b2, #ff9800);
}

.game-card__body {
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
}

/* Footer envato style */
.site-footer {
  background: #1a1a1a;
  color: #999;
  margin-top: 32px;
  font-size: 13px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.site-footer h3 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: #999;
  text-decoration: none;
  line-height: 2;
}

.site-footer a:hover {
  color: var(--orange-light);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 16px;
  text-align: center;
  font-size: 12px;
}

/* Fixed bottom bar */
.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #1a1a1a;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--bottom-bar);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  font-size: 15px;
  text-transform: uppercase;
}

.bottom-bar a:first-child {
  background: #333;
}

.bottom-bar a:last-child {
  background: var(--orange);
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
}

.drawer.is-open {
  pointer-events: auto;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s;
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 90vw);
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.2s;
  overflow-y: auto;
  padding: 16px;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__close {
  margin-bottom: 16px;
}

.mobile-nav-panel {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-panel.is-open {
  display: block;
}

.mobile-nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 8px 16px 16px;
}

.mobile-nav-panel a {
  display: block;
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }

  .mobile-nav-panel {
    display: none !important;
  }

  .product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero-media {
    grid-column: 1;
  }

  .product-info {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.popup-backdrop {
  position: absolute;
  inset: 0;
}

.popup-hero-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.btn-togel {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.elements-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 16px 10px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  font-size: 13px;
}

.elements-bar a {
  color: #fff;
  text-decoration: none;
}

.elements-bar__cta {
  font-weight: 700;
  text-decoration: underline;
}

.seo-baby {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #000;
  color: #ff0;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  z-index: 2;
}

.social-section {
  margin: 24px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
}

.social-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-pill {
  padding: 8px 12px;
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
  color: var(--ink);
}

.keyword-lead {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 8px;
}

.mega-drawer {
  position: fixed;
  inset: 0;
  z-index: 8500;
  pointer-events: none;
}

.mega-drawer.is-open {
  pointer-events: auto;
}

.mega-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
}

.mega-drawer.is-open .mega-drawer__backdrop {
  opacity: 1;
}

.mega-drawer__panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(360px, 92vw);
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.2s;
  overflow-y: auto;
  padding: 16px;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.mega-drawer.is-open .mega-drawer__panel {
  transform: translateX(0);
}

.mega-drawer__close {
  float: right;
  border: none;
  background: #eee;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
}

.mega-drawer__label {
  font-weight: 700;
  font-size: 13px;
  margin: 16px 0 8px;
  color: var(--orange-dark);
}

.mega-drawer__label--accent {
  color: var(--orange);
  font-size: 15px;
}

.mega-drawer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-drawer__nav a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
}

.footer-envato {
  color: #999;
}

.footer-envato__newsletter {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  border-bottom: 1px solid #333;
}

.newsletter-form label {
  display: block;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 600;
}

.newsletter-form__row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  min-height: 44px;
  padding: 0 12px;
  border: none;
  border-radius: 4px;
}

.newsletter-form button {
  min-height: 44px;
  padding: 0 20px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.footer-envato__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.footer-envato__grid h3 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 10px;
}

.footer-envato__grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-envato__grid a,
.footer-link-btn {
  color: #999;
  text-decoration: none;
  font-size: 13px;
  line-height: 2;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.footer-envato__social {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-link {
  font-size: 12px;
  color: #bbb;
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid #444;
  border-radius: 4px;
}

.footer-envato__products {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  border-top: 1px solid #333;
}

.footer-envato__products a {
  color: #aaa;
  font-size: 12px;
  text-decoration: none;
}

.footer-envato__lang {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  border-top: 1px solid #333;
}

.footer-envato__lang button {
  background: #333;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.hero-media__img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}
