:root {
  --black: #111111;
  --ink: #222222;
  --muted: #666666;
  --paper: #f5f5f5;
  --white: #ffffff;
  --line: #e6e6e6;
  --soft: #f1f1f1;
  --shadow: 0 12px 36px rgba(17, 17, 17, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --glow: 0 0 34px rgba(255, 255, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-padding-top: 88px;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #dedede;
  overflow-x: hidden;
}

/* A single soft silver light keeps the monochrome background minimal. */
body::before {
  content: "";
  position: fixed;
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 88% 12%, rgba(255, 255, 255, 0.78), transparent 58%),
    linear-gradient(120deg, #bcbcbc 0%, #d2d2d2 24%, #ededed 47%, #d8d8d8 70%, #c5c5c5 100%);
  animation: silverFlow 22s ease-in-out infinite alternate;
}

@keyframes silverFlow {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to { transform: translate3d(2%, -1%, 0) scale(1.025); }
}

body.page-paused::before { animation-play-state: paused; }

body > * {
  position: relative;
  z-index: 1;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 4px 24px rgba(17, 17, 17, 0.035);
}

.nav {
  width: min(1160px, calc(100% - 40px));
  min-height: 62px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 64px minmax(0, 620px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  object-fit: contain;
  padding: 5px;
  object-position: center;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.14), 0 12px 28px rgba(17, 17, 17, 0.18);
}

.search-wrap {
  position: relative;
  width: 100%;
}

.search {
  display: flex;
  align-items: center;
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}

.search:focus-within {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
}

.search button {
  width: 42px;
  height: 100%;
  border: 0;
  color: var(--white);
  background: var(--black);
  font-weight: 900;
}

.search button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.4;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 70;
  width: 100%;
  max-height: 360px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 58px rgba(17, 17, 17, 0.16);
  overflow: auto;
}

.search-suggestions[hidden] {
  display: none;
}

.suggestion-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.suggestion-item:hover,
.suggestion-item:focus {
  background: #f4f4f4;
  outline: none;
}

.suggestion-thumb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #f7f7f7;
  overflow: hidden;
  font-weight: 900;
}

.suggestion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.suggestion-item strong,
.suggestion-item span {
  display: block;
}

.suggestion-item strong {
  font-size: 0.95rem;
}

.suggestion-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.suggestion-empty {
  padding: 14px;
  color: var(--muted);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 800;
}

.nav-actions button,
.footer button {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: inherit;
}

.login-link {
  padding: 8px 10px;
}

.register-link,
.cart-button {
  border-radius: 999px;
}

.register-link {
  padding: 8px 14px;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--black), #333333) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid #111111 !important;
  color: var(--white) !important;
  background: #111111 !important;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.18);
}

.cart-button span {
  color: var(--white) !important;
}

.cart-button strong {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--black);
  background: var(--white);
  font-size: 0.76rem;
}

.hero-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 22px auto 0;
}

.hero-banner {
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(130deg, rgba(0, 0, 0, 0.97), rgba(20, 20, 20, 0.91) 52%, rgba(255, 255, 255, 0.16));
  box-shadow: var(--shadow);
}

.hero-banner::before,
.hero-banner::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-banner::before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -120px;
  background: rgba(255, 255, 255, 0.12);
  animation: pulseGlow 4s ease-in-out infinite;
}

.hero-banner::after {
  inset: 0;
  background-image: linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.14) 48%, transparent 56%);
  animation: shine 9s ease-in-out infinite;
  opacity: 0.45;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 46px;
}

.badge,
.small-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, #111111, #444444);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge {
  padding: 8px 12px;
  margin-bottom: 20px;
}

.small-label {
  padding: 5px 9px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 660px;
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  text-wrap: balance;
  letter-spacing: -0.035em;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.hero-copy p {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.btn-dark {
  color: var(--white);
  background: var(--black);
}

.btn-light {
  color: var(--black);
  background: var(--white);
}

.btn.full {
  width: 100%;
}

.hero-showcase {
  position: relative;
  z-index: 2;
  min-height: 320px;
  overflow: visible;
}

.orbit-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 176px;
  height: 220px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: var(--black);
  background: transparent;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
  font-size: 1.4rem;
  font-weight: 950;
  animation: floatCard 7s ease-in-out infinite;
  overflow: hidden;
}

.orbit-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.card-one {
  top: 22px;
  left: 30px;
  transform: rotate(-8deg);
  background: linear-gradient(135deg, #ffffff, #f7f7f7 55%, #d8d8d8);
}

.card-two {
  top: 82px;
  right: 52px;
  transform: rotate(7deg);
  animation-delay: 0.6s;
  background: linear-gradient(135deg, #ffffff, #eeeeee 58%, #c9c9c9);
}

.card-three {
  left: 168px;
  bottom: 16px;
  transform: rotate(11deg);
  animation-delay: 1.1s;
  background: linear-gradient(135deg, #ffffff, #e8e8e8 55%, #bbbbbb);
}

.flash-sale {
  position: relative;
  z-index: 3;
  margin: 26px auto 34px;
  width: min(1020px, calc(100% - 34px));
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.flash-head,
.section-title,
.cart-total,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.countdown {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-weight: 900;
}

.countdown span {
  color: #ffffff;
}

.flash-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.flash-item,
.compact-card,
.game-card,
.step-grid article {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.06);
  transition:
    transform 0.32s var(--ease),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.flash-item:hover,
.compact-card:hover,
.game-card:hover,
.step-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 17, 17, 0.45);
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.13);
}

.flash-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
}

.thumb {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 10px;
  color: var(--white);
  background: #f7f7f7;
  font-weight: 950;
  overflow: hidden;
  padding: 10px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  border-radius: 8px;
  transition: transform 0.45s var(--ease);
}

.flash-item:hover .thumb img,
.compact-card:hover .thumb img {
  transform: scale(1.035);
}

.flash-item h3,
.compact-card h3,
.game-card h3 {
  margin-bottom: 5px;
  font-size: 0.94rem;
}

.price {
  color: #111111;
  font-weight: 900;
}

.add-button {
  min-width: 38px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-weight: 950;
}

.category-strip,
.section {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0 18px;
}

.category-pill {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-weight: 850;
}

.category-pill.active,
.category-pill:hover {
  color: var(--white);
  border-color: var(--black);
  background: var(--black);
}

.section {
  padding: 24px 0 34px;
}

.section-title {
  justify-content: flex-start;
  margin-bottom: 16px;
}

.icon-dot {
  flex-shrink: 0;
  padding: 0;
  line-height: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--black), #4a4a4a);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.16);
}

.icon-dot svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 98px;
  padding: 10px;
  border-radius: 12px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  min-height: 224px;
  padding: 14px 14px 16px;
  border-radius: 14px;
}

.game-cover {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #f7f7f7;
  font-size: 1.8rem;
  font-weight: 950;
  overflow: hidden;
  padding: 18px;
  border-radius: 12px;
}

.game-cover img {
  width: 100%;
  height: 100%;
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none;
  border-radius: 10px;
  transition: transform 0.45s var(--ease);
}

.game-card:hover .game-cover img {
  transform: scale(1.035);
}

.game-body {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 12px 4px 0;
  text-align: center;
}

.game-body h3 {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.tag {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-size: 0.68rem;
  font-weight: 950;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step-grid article {
  padding: 22px;
  border-radius: 14px;
}

.testimonial-marquee {
  overflow: hidden;
  padding: 8px 0 18px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.testimonial-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: testimonialSlideRight 48s linear infinite;
}

.testimonial-marquee:hover .testimonial-track {
  animation-play-state: paused;
}

.testimonial-track article {
  flex: 0 0 360px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.06);
  transition:
    transform 0.32s var(--ease),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.testimonial-track article:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 17, 17, 0.45);
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.13);
}

.testimonial-track p {
  color: #333333;
  line-height: 1.7;
}

.testimonial-track strong,
.testimonial-track span {
  display: block;
}

.testimonial-track strong {
  margin-top: 22px;
  font-size: 1.05rem;
}

.testimonial-track span {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

.step-grid span {
  color: #111111;
  font-weight: 950;
}

.step-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.footer {
  margin-top: 44px;
  padding: 58px max(28px, calc((100vw - 1180px) / 2));
  border-top: 8px solid var(--black);
  background: #eeeeee;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 70px;
  padding-bottom: 42px;
  border-bottom: 1px solid #d9d9d9;
}

.footer-brand img {
  width: 76px;
  height: 76px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  object-fit: contain;
  padding: 5px;
  object-position: center;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.14), 0 12px 28px rgba(17, 17, 17, 0.18);
}

.footer p {
  max-width: 430px;
  color: #555555;
  line-height: 1.7;
}

.footer h3 {
  margin-bottom: 18px;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer a,
.footer button {
  display: block;
  padding: 6px 0;
  color: #555555;
  text-align: left;
}

.payment-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 26px;
  color: #999999;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 900;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 124px;
  height: 52px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.035);
}

.payment-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-badge--dana { background: #108ee9; }
.payment-badge--ovo { background: #4c3494; }
.payment-badge--ovo img { max-width: 66px; }
.payment-badge--shopeepay { width: 140px; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { background: rgba(255, 255, 255, 0.94); }
}

.copyright-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #d9d9d9;
  color: #777777;
  font-size: 0.78rem;
  font-weight: 700;
}

.copyright-row strong {
  color: var(--black);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s;
  background: rgba(0, 0, 0, 0.45);
}

.overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 90;
  width: min(440px, 100%);
  transform: translateX(106%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s;
}

.cart-panel.open {
  visibility: visible;
  transform: translateX(0);
}

.cart-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--black);
  font-size: 1.35rem;
  line-height: 1;
}

.cart-items {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  overflow: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfb;
}

.cart-item span,
.cart-empty {
  color: var(--muted);
}

.remove-button {
  border: 0;
  color: #111111;
  background: transparent;
  font-weight: 900;
}

.checkout-form {
  display: grid;
  gap: 13px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.checkout-form label,
.auth-form label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 800;
}

.checkout-form input,
.checkout-form textarea,
.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  outline: 0;
  background: #fbfbfb;
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.auth-form input:focus {
  border-color: #111111;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.12);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.auth-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-card {
  position: relative;
  width: min(430px, 100%);
  padding: 26px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.35s var(--ease);
}

.auth-card > img {
  display: block;
  width: 92px;
  height: 92px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  object-fit: contain;
  padding: 5px;
  margin: 0 auto 8px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.14), 0 12px 28px rgba(17, 17, 17, 0.18);
}

.auth-close {
  position: absolute;
  right: 16px;
  top: 16px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 5px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #f0f0f0;
}

.auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 900;
}

.auth-tabs button.active {
  color: var(--white);
  background: var(--black);
}

.auth-form {
  display: none;
  gap: 13px;
}

.auth-form.active {
  display: grid;
}

.auth-form h2 {
  text-align: center;
}

.auth-form p {
  margin-bottom: 0;
  color: var(--muted);
  text-align: center;
}

.auth-form p button {
  border: 0;
  color: var(--black);
  background: transparent;
  font-weight: 900;
}

@keyframes shine {
  0%,
  42% {
    transform: translateX(-80%);
  }
  72%,
  100% {
    transform: translateX(80%);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.035);
    opacity: 1;
  }
}

@keyframes floatCard {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@keyframes popIn {
  from {
    transform: translateY(12px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes testimonialSlideRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 7px));
  }
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 16px;
  }

  .nav-actions {
    justify-content: flex-end;
    padding-bottom: 0;
    gap: 8px;
  }

  .hero-banner {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    display: none;
  }

  .flash-row,
  .compact-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-track article {
    flex-basis: 310px;
  }

  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .copyright-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .search {
    order: 3;
    width: 100%;
  }

  .search-wrap {
    order: 3;
    width: 100%;
  }

  .nav-actions {
    margin-left: auto;
    padding-bottom: 0;
    gap: 5px;
  }

  .nav-actions a,
  .login-link,
  .cart-button span {
    display: none;
  }

  .register-link {
    padding: 9px 12px;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero-banner {
    min-height: 420px;
  }

  .flash-sale {
    margin-top: 18px;
    width: calc(100% - 18px);
  }

  .flash-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .flash-item,
  .compact-card {
    grid-template-columns: 64px 1fr auto;
  }

  .thumb {
    width: 64px;
    height: 64px;
    padding: 8px;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-card {
    min-height: 184px;
    padding: 12px;
  }

  .game-cover {
    padding: 14px;
  }
}

/* Detail polish: preserve the original monochrome layout and card system. */
[hidden] { display: none !important; }
body { -webkit-font-smoothing: antialiased; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button:disabled { cursor: default; opacity: 0.5; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }
.hero-banner a:focus-visible, .hero-banner button:focus-visible { outline-color: white; }
.search, .btn, .add-button, .icon-button, .nav-actions button, .auth-tabs button,
.quantity-control button, .checkout-form input, .checkout-form textarea, .auth-form input {
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.25s var(--ease);
}
.btn:active, .add-button:active, .icon-button:active { transform: scale(0.97); }
.search input, .search-wrap, .nav-actions, .flash-item > div, .compact-card > div { min-width: 0; }
.search button { flex-shrink: 0; }
.search-suggestions { animation: popIn 0.2s var(--ease); max-height: min(360px, 60dvh); }
.suggestion-item strong { color: var(--ink); }
.hero-actions .btn-dark { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }
.hero-copy p { margin-bottom: 0; }
.flash-sale { border-color: var(--line); }
.countdown { font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: 0.04em; }
.flash-item h3, .compact-card h3 { line-height: 1.45; }
.price { display: inline-block; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.add-button { min-width: 38px; height: 38px; font-size: 1.2rem; font-weight: 500; }
.game-card { width: 100%; color: var(--ink); font: inherit; }
.game-body strong { font-size: 1rem; line-height: 1.4; }
.game-cover { background: #f8f8f8; }
.collection-empty { grid-column: 1 / -1; padding: 24px; border: 1px dashed #d5d5d5; border-radius: 14px; color: var(--muted); line-height: 1.6; }
.step-grid article > span { display: inline-block; margin-bottom: 16px; }
.step-grid article > p { margin-bottom: 0; }
.footer a:hover, .footer button:hover { color: var(--black); }
.payment-row { color: #666; }
.cart-panel-inner { overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.panel-head, .cart-items, .cart-empty, .checkout-form { flex-shrink: 0; }
.cart-items { overflow: visible; }
.cart-empty { padding: 28px 12px; margin-bottom: 18px; border-radius: 12px; background: var(--soft); text-align: center; }
.cart-item { align-items: start; }
.cart-item strong { font-size: 0.9rem; line-height: 1.5; }
.cart-unit-price { display: block; margin-top: 3px; font-size: 0.8rem; }
.cart-item-end { display: grid; justify-items: end; gap: 12px; }
.remove-button { padding: 4px 0; color: var(--muted); font-size: 0.78rem; }
.quantity-control { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.quantity-control button { width: 32px; height: 32px; border: 0; border-radius: 7px; background: transparent; }
.quantity-control span { min-width: 18px; text-align: center; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.checkout-form input, .checkout-form textarea, .auth-form input { font-size: 16px; font-weight: 400; }
.checkout-form textarea { resize: vertical; min-height: 80px; max-height: 180px; }
.cart-total { padding: 6px 0; }
.auth-modal.open .auth-card { transform: translateY(0) scale(1); }
.auth-card > img { width: 72px; height: 72px; margin-bottom: 18px; }
.form-message { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: #444; font-size: 0.85rem; line-height: 1.6; overflow-wrap: anywhere; }
.form-message.is-error { color: #9b2525; background: #fff5f5; border-color: #f1d3d3; }
.product-dialog { width: min(500px, 100%); padding-top: 32px; }
.product-dialog h2 { padding-right: 32px; margin-top: 16px; }
.product-description { margin: 10px 0 20px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.package-list { display: grid; gap: 10px; }
.testimonial-marquee:focus-within .testimonial-track, .page-paused * { animation-play-state: paused !important; }
@media (hover: hover) {
  .btn:hover:not(:disabled), .add-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.12); }
  .quantity-control button:hover:not(:disabled) { background: var(--soft); }
}
@media (hover: none) {
  .flash-item:hover, .compact-card:hover, .game-card:hover, .step-grid article:hover, .testimonial-track article:hover { transform: none; border-color: var(--line); box-shadow: 0 12px 28px rgba(17,17,17,0.06); }
  .flash-item:hover img, .compact-card:hover img, .game-card:hover img { transform: none; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 136px; }
  .login-link { display: inline-block; padding: 9px 8px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .nav { width: calc(100% - 28px); }
  .payment-row > span:first-child { flex-basis: 100%; margin-bottom: 4px; text-align: center; }
  .payment-badge--shopeepay { width: 124px; }
  .cart-button { padding: 9px 11px; }
  .hero-copy { padding: 28px 24px; }
  .flash-head { flex-direction: row; align-items: center; gap: 8px; }
  .countdown { padding: 8px 10px; font-size: 0.85rem; }
  .small-label { font-size: 0.65rem; }
  .cart-panel-inner { padding: 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .auth-card { padding: 22px; }
  .product-dialog { padding-top: 28px; }
  .package-list .compact-card { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; }
  .package-list .thumb { width: 48px; height: 48px; padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .testimonial-marquee { overflow-x: auto; mask-image: none; }
  .testimonial-track article[aria-hidden="true"] { display: none; }
}