/* =========================================================
   GG SOFT — ggsoft.dev
   Stylesheet utama
   ========================================================= */

/* =========================================================
   PALET — ACID LIME
   Satu keluarga warna di atas near-black netral.
   Untuk ganti tema, cukup ubah 3 baris --accent-* di bawah
   (lihat palet alternatif di blok komentar setelah :root).
   ========================================================= */
:root {
  /* Dasar netral */
  --bg:            #070809;
  --bg-soft:       #0d0e11;
  --surface:       rgba(255, 255, 255, .035);
  --surface-2:     rgba(255, 255, 255, .06);
  --line:          rgba(255, 255, 255, .09);
  --line-strong:   rgba(255, 255, 255, .18);

  --text:          #f2f4f5;
  --text-muted:    #9ca3a8;
  --text-dim:      #6e757b;

  /* --- AKSEN: ganti tiga baris ini untuk mengubah tema --- */
  --accent:        #ccff00;            /* warna utama            */
  --accent-hi:     #e8ff7a;            /* stop terang gradien    */
  --accent-rgb:    204, 255, 0;        /* versi RGB untuk rgba() */

  --accent-dim:    #93b800;            /* turunan, jarang diubah */
  --danger:        #ff5470;            /* khusus pesan error     */

  /* Alias lama supaya seluruh stylesheet tetap konsisten */
  --violet:        var(--accent);
  --cyan:          var(--accent);
  --amber:         var(--accent);
  --lime:          var(--accent);
  --pink:          var(--danger);

  --grad:          linear-gradient(115deg, var(--accent-hi), var(--accent));
  --grad-warm:     linear-gradient(115deg, var(--accent), var(--accent-dim));

  --radius:        18px;
  --radius-sm:     12px;
  --radius-lg:     28px;

  --shadow:        0 24px 60px -24px rgba(0, 0, 0, .85);
  --shadow-glow:   0 0 0 1px rgba(var(--accent-rgb), .25), 0 30px 70px -30px rgba(var(--accent-rgb), .55);

  --font-display:  'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body:     'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  --container:     1200px;
  --header-h:      74px;
  --ease:          cubic-bezier(.22, 1, .36, 1);
}

/* ---------------------------------------------------------
   PALET ALTERNATIF — tempel salah satu blok di bawah ini
   tepat setelah :root untuk mengganti tema seluruh situs.

   Electric Blue
   :root { --accent:#4d7cff; --accent-hi:#8fabff; --accent-rgb:77,124,255; --accent-dim:#3457b8; }

   Molten Orange
   :root { --accent:#ff6b2c; --accent-hi:#ffa878; --accent-rgb:255,107,44; --accent-dim:#c24d18; }

   Violet
   :root { --accent:#8b5cff; --accent-hi:#b79aff; --accent-rgb:139,92,255; --accent-dim:#6238c9; }
   --------------------------------------------------------- */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: #0a0c05; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--accent);
  color: #0a0c05;
  font-weight: 600;
  border-radius: 0 0 10px 10px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--violet), var(--cyan));
  border-radius: 99px;
  border: 3px solid var(--bg);
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--tight { padding-block: clamp(60px, 8vw, 110px); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 54px;
  flex-wrap: wrap;
}
.section__head--center {
  justify-content: center;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.section__lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  max-width: 58ch;
  margin-top: 20px;
}
.section__lead--right { max-width: 40ch; margin-top: 0; }
.section__body { color: var(--text-dim); margin-top: 18px; max-width: 58ch; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 22px; }
.preloader__mark { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.preloader__bar {
  width: 220px; height: 3px;
  background: rgba(255, 255, 255, .1);
  border-radius: 99px;
  overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 0;
  background: var(--grad);
  transition: width .25s linear;
}
.preloader__text {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--text-dim);
}

/* =========================================================
   BACKGROUND
   ========================================================= */
.bg-layers { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

.bg-grid {
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), .055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  animation: drift 26s ease-in-out infinite;
}
.bg-orb--1 { width: 520px; height: 520px; background: rgba(var(--accent-rgb), .30); top: -140px; left: -120px; }
.bg-orb--2 { width: 460px; height: 460px; background: rgba(var(--accent-rgb), .20); top: 45%; right: -160px; animation-delay: -8s; }
.bg-orb--3 { width: 400px; height: 400px; background: rgba(255, 255, 255, .10); bottom: -120px; left: 30%; animation-delay: -16s; opacity: .25; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -40px) scale(1.12); }
  66%      { transform: translate(-40px, 50px) scale(.94); }
}

.bg-noise {
  position: absolute; inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   SCROLL PROGRESS
   ========================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 120;
  background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .8);
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(5, 6, 10, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark { transition: transform .5s var(--ease); }
.logo:hover .logo__mark { transform: rotate(180deg); }
.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: .02em;
}
.logo__text em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 15px;
  font-size: .92rem;
  color: var(--text-muted);
  border-radius: 99px;
  transition: color .25s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.nav__cta {
  margin-left: 10px;
  padding: 10px 20px !important;
  color: var(--text) !important;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.nav__cta::after { display: none; }
.nav__cta:hover {
  border-color: rgba(var(--accent-rgb), .7);
  box-shadow: 0 0 22px -4px rgba(var(--accent-rgb), .6);
  transform: translateY(-1px);
}

.burger { display: none; width: 42px; height: 42px; position: relative; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 99px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad);
  color: #080809;
  box-shadow: 0 12px 34px -12px rgba(var(--accent-rgb), .9);
}
.btn--primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(295deg, var(--accent-hi), var(--accent));
  opacity: 0;
  transition: opacity .35s;
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary:hover { box-shadow: 0 18px 44px -12px rgba(var(--accent-rgb), .8); }
.btn--primary:hover svg { transform: translateX(4px); }

.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(var(--accent-rgb), .65); box-shadow: 0 0 26px -6px rgba(var(--accent-rgb), .5); }

.btn--block { width: 100%; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 90px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .8rem;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  margin: 26px 0 22px;
}
.hero__title span { display: inline-block; }
.hero__title .gradient-text { display: block; }

/* Glitch */
.glitch { position: relative; color: var(--text); }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}
.glitch::before { color: var(--cyan);  clip-path: inset(0 0 55% 0); animation: glitch-a 3.6s infinite steps(2, end); }
.glitch::after  { color: var(--pink);  clip-path: inset(52% 0 0 0); animation: glitch-b 3.2s infinite steps(2, end); }
@keyframes glitch-a {
  0%, 88%, 100% { transform: translate(0); opacity: 0; }
  90% { transform: translate(-3px, -2px); opacity: .85; }
  94% { transform: translate(2px, 1px);   opacity: .85; }
}
@keyframes glitch-b {
  0%, 86%, 100% { transform: translate(0); opacity: 0; }
  89% { transform: translate(3px, 2px);   opacity: .8; }
  93% { transform: translate(-2px, -1px); opacity: .8; }
}

.hero__desc { color: var(--text-muted); font-size: clamp(1rem, 1.5vw, 1.14rem); max-width: 50ch; }
.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero__stats dt {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.hero__stats dd {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero visual */
.hero__visual { position: relative; }

.hero__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0a0a0c;
  box-shadow: var(--shadow-glow);
  transform-style: preserve-3d;
  transition: transform .4s var(--ease);
}
.hero__card-glow {
  position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 25%, rgba(var(--accent-rgb), .35) 40%, rgba(var(--accent-rgb), .35) 55%, transparent 70% 100%);
  animation: spin 9s linear infinite;
  z-index: 0;
  opacity: .55;
}
.hero__art { position: relative; z-index: 1; width: 100%; height: auto; }

.hero__hud {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 2;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(6, 8, 14, .78);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
}
.hud__row { display: flex; justify-content: space-between; color: var(--text-dim); }
.hud__row b { color: var(--cyan); font-weight: 600; }
.hud__row + .hud__row { margin-top: 5px; }
.hud__bar {
  margin-top: 10px; height: 3px; border-radius: 99px;
  background: rgba(255, 255, 255, .1); overflow: hidden;
}
.hud__bar i {
  display: block; height: 100%; width: var(--w);
  background: var(--grad);
  animation: hudPulse 3s ease-in-out infinite alternate;
}
@keyframes hudPulse { from { opacity: .55; } to { opacity: 1; } }

.float-chip {
  position: absolute;
  padding: 8px 15px;
  border-radius: 99px;
  background: rgba(10, 13, 21, .85);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-chip--a { top: 8%;  left: -32px; }
.float-chip--b { top: 46%; right: -26px; animation-delay: -2s; }
.float-chip--c { bottom: 12%; left: -20px; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 9px;
  color: var(--text-dim);
  z-index: 2;
}
.scroll-hint__mouse {
  width: 23px; height: 37px;
  border: 1.5px solid var(--line-strong);
  border-radius: 99px;
  display: grid; justify-items: center;
  padding-top: 7px;
}
.scroll-hint__mouse i {
  width: 3px; height: 7px; border-radius: 2px;
  background: var(--cyan);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0%   { opacity: 0; transform: translateY(-3px); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(11px); }
}
.scroll-hint__label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .3em;
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
  overflow: hidden;
  padding: 16px 0;
}
.marquee__track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: scrollX 34s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .18em;
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee__track span:nth-child(even) { color: var(--violet); }
@keyframes scrollX { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* =========================================================
   TENTANG
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pill-list li {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .84rem;
  color: var(--text-muted);
  transition: border-color .3s, color .3s, transform .3s var(--ease);
}
.pill-list li:hover { border-color: rgba(var(--accent-rgb), .5); color: var(--text); transform: translateY(-2px); }

.about__right { display: grid; gap: 18px; }

.value-card {
  position: relative;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  overflow: hidden;
  transition: border-color .35s, transform .4s var(--ease), box-shadow .35s;
}
.value-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--grad);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--ease);
}
.value-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.value-card:hover::before { transform: scaleY(1); }

.value-card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), .13);
  border: 1px solid rgba(var(--accent-rgb), .3);
  color: var(--cyan);
  margin-bottom: 16px;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.value-card p { color: var(--text-dim); font-size: .93rem; }

/* Stats strip */
.stats-strip {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(120deg, rgba(var(--accent-rgb), .07), rgba(var(--accent-rgb), .05));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stat {
  padding: 34px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background .35s;
}
.stat:last-child { border-right: 0; }
.stat:hover { background: rgba(255, 255, 255, .03); }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  display: block;
  margin-top: 10px;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* =========================================================
   GAMES
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  padding: 9px 20px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  font-size: .88rem;
  transition: all .3s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter.is-active {
  background: var(--grad);
  color: #080809;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 10px 26px -12px rgba(var(--accent-rgb), .9);
}

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

.game {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  transition: transform .45s var(--ease), border-color .35s, box-shadow .35s, opacity .35s;
}
.game:hover {
  border-color: rgba(var(--accent-rgb), .45);
  box-shadow: 0 28px 60px -28px rgba(var(--accent-rgb), .7);
}
.game--wide { grid-column: span 2; flex-direction: row; }
.game--wide .game__media { flex: 1 1 52%; }
.game--wide .game__body { flex: 1 1 48%; justify-content: center; }

.game.is-hidden { display: none; }
.game.is-filtering { opacity: 0; transform: scale(.96); }

.game__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #09090a;
}
.game--wide .game__media { aspect-ratio: auto; }
.game__media svg {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.game:hover .game__media svg { transform: scale(1.07); }
.game__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5, 6, 10, .85), transparent 55%);
}

.game__badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: rgba(6, 8, 14, .8);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.game__badge--hot {
  background: var(--accent);
  border-color: transparent;
  color: #0a0c05;
  font-weight: 700;
}

.game__body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 24px 26px 26px;
  flex: 1;
}

.game__meta {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.game__meta i { color: var(--text-dim); font-style: normal; }
.game__meta span:last-child { color: var(--text-dim); }

.game__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.game--wide .game__title { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.game__desc { color: var(--text-dim); font-size: .93rem; }

.game__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.rating { font-size: .82rem; color: var(--text-dim); }
.rating b { color: var(--amber); font-family: var(--font-display); font-size: 1rem; }

.game__more {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .85rem; font-weight: 600;
  color: var(--text);
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  transition: all .3s var(--ease);
}
.game__more:hover {
  border-color: rgba(var(--accent-rgb), .6);
  color: var(--cyan);
}
.game__more:hover svg { transform: translateX(3px); }
.game__more svg { transition: transform .3s var(--ease); }

.games__empty {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 0;
  font-family: var(--font-mono);
  letter-spacing: .1em;
}

/* =========================================================
   LAYANAN
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service {
  position: relative;
  padding: 32px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .35s, background .35s;
}
.service::after {
  content: '';
  position: absolute;
  inset: auto -40% -60% -40%;
  height: 160px;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), .35), transparent 70%);
  opacity: 0;
  transition: opacity .45s;
}
.service:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), .4);
  background: rgba(255, 255, 255, .045);
}
.service:hover::after { opacity: 1; }
.service > * { position: relative; z-index: 1; }

.service__num {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .2em;
  color: var(--violet);
}
.service h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 14px 0 10px;
  line-height: 1.25;
}
.service p { color: var(--text-dim); font-size: .9rem; }
.service ul { margin-top: 18px; display: grid; gap: 8px; }
.service li {
  position: relative;
  padding-left: 18px;
  font-size: .84rem;
  color: var(--text-muted);
}
.service li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--grad);
}

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding-left: 8px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--violet), var(--cyan), transparent);
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  gap: 0;
  padding-block: 14px;
}
.timeline__item:nth-child(odd) .timeline__card  { grid-column: 1; text-align: right; margin-right: 26px; }
.timeline__item:nth-child(even) .timeline__card { grid-column: 3; margin-left: 26px; }

.timeline__year {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: rgba(8, 10, 17, .95);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  color: var(--cyan);
  z-index: 2;
  transition: border-color .35s, box-shadow .35s, transform .4s var(--ease);
}
.timeline__item:hover .timeline__year {
  border-color: var(--violet);
  box-shadow: 0 0 26px -4px rgba(var(--accent-rgb), .85);
  transform: scale(1.06);
}
.timeline__item--now .timeline__year {
  background: var(--grad);
  color: #080809;
  border-color: transparent;
}

.timeline__card {
  grid-row: 1;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  transition: border-color .35s, transform .4s var(--ease);
}
.timeline__card:hover { border-color: rgba(var(--accent-rgb), .4); transform: translateY(-3px); }
.timeline__card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.timeline__card p { color: var(--text-dim); font-size: .9rem; }
.timeline__card b { color: var(--text); font-weight: 600; }

/* =========================================================
   TIM
   ========================================================= */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.member {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
  text-align: center;
  transition: transform .4s var(--ease), border-color .35s, box-shadow .35s;
}
.member:hover {
  border-color: rgba(var(--accent-rgb), .45);
  box-shadow: 0 26px 54px -30px rgba(var(--accent-rgb), .8);
}

.member__avatar {
  width: 92px; height: 92px;
  margin: 0 auto 18px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--violet), var(--cyan));
  position: relative;
  transition: border-radius .5s var(--ease), transform .5s var(--ease);
}
.member__avatar--b { background: linear-gradient(150deg, var(--accent), var(--accent-dim)); }
.member__avatar--c { background: linear-gradient(30deg,  var(--accent-hi), var(--accent-dim)); }
.member__avatar--d { background: linear-gradient(210deg, var(--accent), var(--accent-hi)); }
.member:hover .member__avatar { border-radius: 50%; transform: scale(1.05); }
.member__avatar::after {
  content: attr(data-initials);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: rgba(6, 8, 14, .85);
}

.member h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.member__role {
  display: block;
  margin: 5px 0 12px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.member p { color: var(--text-dim); font-size: .87rem; }

/* =========================================================
   QUOTES
   ========================================================= */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote {
  position: relative;
  padding: 32px 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  transition: border-color .35s, transform .4s var(--ease);
}
.quote:hover { border-color: rgba(var(--accent-rgb), .4); transform: translateY(-4px); }
.quote__mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: .6;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.quote p { color: var(--text-muted); font-size: .96rem; }
.quote footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote footer b { display: block; font-family: var(--font-display); font-size: .95rem; }
.quote footer span { font-size: .78rem; color: var(--text-dim); }

/* =========================================================
   CTA / FORM
   ========================================================= */
.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: clamp(32px, 5vw, 62px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(140deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .07) 60%, rgba(255, 255, 255, .02));
  overflow: hidden;
}
.cta__glow {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .45), transparent 65%);
  top: -220px; right: -140px;
  filter: blur(30px);
  pointer-events: none;
}
.cta__content, .form { position: relative; z-index: 1; }

.cta__contacts { margin-top: 32px; display: grid; gap: 14px; }
.cta__contacts li {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted);
  font-size: .95rem;
}
.cta__contacts svg { color: var(--cyan); flex-shrink: 0; }
.cta__contacts a { border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.cta__contacts a:hover { color: var(--cyan); border-bottom-color: currentColor; }

.form { display: grid; gap: 16px; align-content: start; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(5, 6, 10, .55);
  font-size: .94rem;
  transition: border-color .3s, box-shadow .3s, background .3s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), .7);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16);
  background: rgba(5, 6, 10, .8);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3a8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field select option { background: #0c0d0f; }
.field.has-error input, .field.has-error textarea { border-color: var(--pink); }

.error { color: var(--pink); font-size: .76rem; min-height: 0; }
.form__note {
  font-size: .86rem;
  color: var(--lime);
  min-height: 1.2em;
  text-align: center;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(255, 255, 255, .015), transparent);
  padding-top: 64px;
  margin-top: 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr;
  gap: 50px;
  padding-bottom: 48px;
}
.footer__brand p {
  color: var(--text-dim);
  font-size: .92rem;
  margin: 16px 0 22px;
  max-width: 36ch;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  transition: all .3s var(--ease);
}
.socials a:hover {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), .6);
  background: rgba(var(--accent-rgb), .12);
  transform: translateY(-3px);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer__nav h2 {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer__nav a {
  display: block;
  padding: 5px 0;
  color: var(--text-dim);
  font-size: .9rem;
  transition: color .25s, transform .25s var(--ease);
}
.footer__nav a:hover { color: var(--cyan); transform: translateX(3px); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: .83rem;
  flex-wrap: wrap;
}

/* =========================================================
   TO TOP
   ========================================================= */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(10, 13, 21, .85);
  border: 1px solid var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: all .35s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 22px -6px rgba(var(--accent-rgb), .8); }

/* =========================================================
   MODAL
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 4, 8, .8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn .3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__dialog {
  position: relative;
  width: min(100%, 720px);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: #0b0c0e;
  box-shadow: var(--shadow-glow);
  animation: popIn .42s var(--ease);
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(6, 8, 14, .82);
  border: 1px solid var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .3s var(--ease);
}
.modal__close:hover { border-color: var(--pink); color: var(--pink); transform: rotate(90deg); }

.modal__hero { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: #09090a; }
.modal__hero svg { width: 100%; height: 100%; }
.modal__hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, #0b0c0e, transparent 60%);
}

.modal__body { padding: 8px 32px 34px; }
.modal__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 8px 0 18px;
}
.modal__body h4 {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 24px 0 10px;
}
.modal__body p { color: var(--text-muted); font-size: .95rem; }
.modal__body ul { display: grid; gap: 9px; }
.modal__body li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: .92rem;
}
.modal__body li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--grad);
}

.detail-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.detail-grid > div { background: #0d0e10; padding: 16px 14px; text-align: center; }
.detail-grid span {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.detail-grid b { font-family: var(--font-display); font-size: .92rem; font-weight: 600; }

/* =========================================================
   REVEAL
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .float-chip--a { left: 0; }
  .float-chip--c { left: 8px; }
  .about { grid-template-columns: 1fr; gap: 46px; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .game--wide { grid-column: span 2; flex-direction: column; }
  .game--wide .game__media { aspect-ratio: 16 / 9; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; gap: 38px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 18px 20px 26px;
    background: rgba(5, 6, 10, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .45s var(--ease);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .nav__cta {
    margin: 14px 0 0;
    text-align: center;
    border-radius: 99px;
    border-bottom: 1px solid var(--line-strong) !important;
  }

  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }

  /* Timeline → single column */
  .timeline { padding-left: 0; }
  .timeline::before { left: 30px; }
  .timeline__item { grid-template-columns: 60px 1fr; padding-block: 10px; }
  .timeline__year { width: 60px; height: 60px; grid-column: 1; font-size: .72rem; }
  .timeline__item:nth-child(odd) .timeline__card,
  .timeline__item:nth-child(even) .timeline__card {
    grid-column: 2;
    text-align: left;
    margin: 0 0 0 20px;
  }

  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .modal__body { padding-inline: 22px; }
}

@media (max-width: 620px) {
  .games { grid-template-columns: 1fr; }
  .game--wide { grid-column: span 1; }
  .services { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .hero__stats { gap: 26px; }
  .hero__stats dd { font-size: 1.6rem; }
  .float-chip { display: none; }
  .footer__nav { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
}

/* =========================================================
   PREFERENSI GERAK
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__canvas { display: none; }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .header, .to-top, .scroll-hint, .preloader, .bg-layers, .marquee, .scroll-progress { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =========================================================
   MOBILE & PERANGKAT SENTUH
   Ditaruh paling akhir agar menang di cascade.
   ========================================================= */

/* ---------- Dasar ---------- */
* { -webkit-tap-highlight-color: transparent; }
a, button, input, select, textarea, [role="button"] { touch-action: manipulation; }

body { overflow-wrap: break-word; }
h1, h2, h3, .hero__title, .section__title { overflow-wrap: break-word; }
body.is-locked { overscroll-behavior: contain; }

/* Tinggi viewport dinamis — bilah alamat mobile yang muncul-hilang */
@supports (height: 100dvh) {
  .hero     { min-height: 100dvh; }
  .notfound { min-height: 100dvh; }
  .nav      { max-height: calc(100dvh - var(--header-h)); }
}

/* Area aman perangkat berponi / gestur bawah */
@supports (padding: env(safe-area-inset-left)) {
  .container {
    padding-left:  env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .to-top {
    right:  calc(22px + env(safe-area-inset-right));
    bottom: calc(22px + env(safe-area-inset-bottom));
  }
  .modal { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* ---------- Filter jadi strip geser saat sempit ---------- */
@media (max-width: 720px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin-inline: -20px;
    padding: 2px 20px 10px;
    /* memudar di kanan sebagai petunjuk masih ada isi */
    mask-image: linear-gradient(90deg, #000 0 calc(100% - 30px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0 calc(100% - 30px), transparent 100%);
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; scroll-snap-align: start; padding: 11px 18px; }
}

/* ---------- Tablet & ponsel ---------- */
@media (max-width: 860px) {
  :root { --header-h: 66px; }

  /* Target sentuh dan input yang ramah jempol */
  .nav a { min-height: 48px; display: flex; align-items: center; }
  .field input, .field select, .field textarea {
    font-size: 16px;      /* < 16px membuat iOS auto-zoom saat fokus */
    padding: 14px 16px;
  }
  .socials a   { width: 44px; height: 44px; }
  .modal__close { width: 44px; height: 44px; }
  .game__more  { padding: 11px 16px; }
  .burger      { width: 48px; height: 48px; }
}

/* ---------- Ponsel ---------- */
@media (max-width: 620px) {
  /* Latar dibuat lebih ringan: blur besar mahal di GPU ponsel */
  .bg-orb { filter: blur(80px); opacity: .26; }
  .bg-orb--1 { width: 320px; height: 320px; }
  .bg-orb--2 { width: 280px; height: 280px; }
  .bg-orb--3 { display: none; }
  .bg-grid   { background-size: 44px 44px; }

  .section        { padding: clamp(56px, 14vw, 84px) 0; }
  .section--tight { padding-block: clamp(48px, 12vw, 68px); }
  .section__head  { gap: 20px; margin-bottom: 32px; }
  .section__lead--right { max-width: none; }

  .hero        { padding-bottom: 72px; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero__stats { gap: 20px 28px; margin-top: 38px; padding-top: 24px; }
  .hero__card  { border-radius: var(--radius); }
  .scroll-hint { display: none; }

  .stats-strip { border-radius: var(--radius); margin-top: 52px; }
  .stat        { padding: 24px 14px; }

  .game__body  { padding: 20px; }
  .value-card, .service, .member, .quote { padding: 22px 20px; }
  .cta         { padding: 24px 20px; }
  .modal__body { padding: 8px 18px 26px; }

  .marquee__track { font-size: .82rem; gap: 24px; }

  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .to-top { width: 44px; height: 44px; }
}

/* ---------- Ponsel posisi mendatar ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 56px;
  }
  .scroll-hint { display: none; }
  .modal__dialog { max-height: 92svh; }
}
