@layer base, premium;

@layer base {
:root {
  /* Typography */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  /* Colors - Warm Islamic Premium Palette */
  --bg-page: #fbfbfa;
  --bg-surface: #ffffff;
  --bg-subtle: #f4f5f4;
  
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --amber-50:  #fffbeb;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;

  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Layered Shadows */
  --shadow-subtle: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 16px 32px -8px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-gold: 0 8px 24px -4px rgba(217, 119, 6, 0.18);
}
}

@layer premium {
/* V10 — editorial game taxonomy: categories are navigation, not decorative pills. */
.category-index {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(600px, 1.28fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
  margin: clamp(82px, 10vw, 128px) 0 0;
  padding: clamp(38px, 5vw, 64px) 0;
  border-block: 1px solid var(--hairline);
}
.category-intro { position: sticky; top: 116px; max-width: 430px; }
.category-intro h2 {
  max-width: 11ch;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.03em;
}
.category-intro p { max-width: 48ch; margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.72; }
.category-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.category-option.filter-btn {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 94px;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid rgba(23, 52, 45, 0.1);
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  white-space: normal;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all .28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.category-option.filter-btn:hover {
  background: #ffffff;
  color: var(--ink-deep);
  transform: translateY(-3px);
  border-color: rgba(6, 78, 59, 0.28);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.09);
}
.category-option.active,
.category-option.active:hover {
  background: linear-gradient(145deg, #064e3b 0%, #0d382e 100%);
  color: #fff9ea;
  border-color: #064e3b;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(6, 78, 59, 0.38);
}
.category-option > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.category-option strong { font-family: var(--font-display); font-size: 19px; font-weight: 400; line-height: 1.15; }
.category-option small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.category-option.active small { color: rgba(255, 249, 234, 0.75); }
.category-number,
.category-symbol {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fdf8ed;
  border: 1px solid rgba(217, 119, 6, 0.18);
  color: #b45309;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: normal;
  line-height: 1;
  transition: all .28s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-option.active .category-number,
.category-option.active .category-symbol {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(240, 200, 120, 0.45);
  color: #fce7b0;
  transform: scale(1.06);
}
.category-option i {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.04);
  color: #64748b;
  font-size: 14px;
  font-style: normal;
  transition: all .24s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-option:hover i {
  background: #064e3b;
  color: #ffffff;
  transform: translateX(3px);
}
.category-option.active i {
  background: rgba(255, 255, 255, 0.18);
  color: #fce7b0;
  transform: rotate(45deg);
}

#katalog.section-header { margin-top: clamp(68px, 8vw, 104px); }
#catalogStatus { min-height: 24px; }

.game-card[data-category="adventure"] { border-top: 3px solid #b96848; }
.game-card[data-category="asah-otak"] { border-top: 3px solid #397267; }
.game-card[data-category="simulasi"] { border-top: 3px solid #c18b3c; }
.game-card[data-category="islami"] { border-top: 3px solid #52725e; }
.game-card[data-category="arcade"] { border-top: 3px solid #a85d45; }
.game-card.category-enter { animation: category-in .38s var(--ease-premium) both; }

.game-card.game-card-rescue {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(270px, 1.1fr);
  min-height: 390px;
  padding: 0;
  overflow: hidden;
  border-radius: 30px 6px 6px 6px;
  background: #fff8e9;
}
.rescue-art {
  position: relative;
  order: 2;
  min-height: 390px;
  overflow: hidden;
  background: linear-gradient(180deg,#f3b55b 0 40%,#829e63 40% 61%,#285e4f 61%);
  isolation: isolate;
}
.rescue-art::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(105deg,transparent 0 44px,rgba(255,255,255,.06) 45px 47px,transparent 48px 82px);
}
.rescue-sun { position: absolute; top: 48px; right: 60px; width: 72px; height: 72px; border-radius: 50%; background: #ffe7a1; box-shadow: 0 0 0 18px rgba(255,231,161,.16); }
.rescue-hill { position: absolute; left: -10%; width: 120%; border-radius: 50% 50% 0 0; transform: rotate(-3deg); }
.rescue-hill-far { bottom: 25%; height: 34%; background: #638558; }
.rescue-hill-near { right: -15%; bottom: -25%; left: 18%; width: 105%; height: 60%; background: #174f40; transform: rotate(7deg); }
.rescue-art img {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: -4%;
  width: min(68%, 390px);
  height: auto;
  filter: drop-shadow(0 24px 22px rgba(7,39,32,.26));
  animation: rescue-idle 4.2s ease-in-out infinite;
}
.rescue-release,
.rescue-motto { position: absolute; z-index: 3; left: 24px; padding: 7px 10px; color: #fff9ea; background: rgba(16,47,40,.78); backdrop-filter: blur(8px); font-size: 9px; font-weight: 800; }
.rescue-release { top: 24px; border-radius: 3px; letter-spacing: .1em; text-transform: uppercase; }
.rescue-motto { bottom: 24px; border-left: 3px solid #f2c76e; font-family: var(--font-display); font-size: 15px; font-weight: 400; }
.game-card-rescue .rescue-content { display: flex; justify-content: center; flex-direction: column; padding: clamp(28px, 3.5vw, 44px); }
.rescue-content .card-heading { max-width: 12ch; margin-top: 18px; font-size: clamp(31px, 3.2vw, 43px); line-height: .98; }
.rescue-content .card-summary { font-size: 13px; }
.rescue-content .card-btn { margin-top: 20px; }

@keyframes category-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rescue-idle { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }

@media (max-width: 980px) {
  .category-index { grid-template-columns: 1fr; }
  .category-intro { position: static; max-width: 660px; }
  .category-intro h2 { max-width: 14ch; }
  .game-card.game-card-rescue { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .category-index { gap: 28px; margin-top: 72px; padding: 42px 0 26px; }
  .category-intro { padding-inline: 10px; }
  .category-intro h2 { font-size: 42px; }
  .category-rail {
    display: flex;
    gap: 12px;
    margin-inline: -10px;
    padding: 0 10px 14px;
    overflow-x: auto;
    border-top: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .category-rail::-webkit-scrollbar { display: none; }
  .category-option.filter-btn {
    flex: 0 0 250px;
    min-height: 92px;
    border: 1px solid rgba(23, 52, 45, 0.1);
    border-radius: 18px;
    scroll-snap-align: start;
  }
  .game-card.game-card-rescue { grid-column: 1; grid-template-columns: 1fr; border-radius: 24px 5px 5px 5px; }
  .rescue-art { order: 0; min-height: 290px; }
  .rescue-art img { right: 3%; width: min(66%, 290px); }
  .game-card-rescue .rescue-content { padding: 30px 22px; }
  .rescue-content .card-heading { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .game-card.category-enter { animation: none; }
  .rescue-art img { animation: none; }
}
}

@layer premium {
/* V9 — JaddaKids storybook editorial direction */
:root {
  --ink: #17342d;
  --ink-deep: #102f28;
  --forest: #174f40;
  --forest-bright: #28745f;
  --paper: #f7f2e7;
  --paper-deep: #eee4d2;
  --cream: #fffaf0;
  --gold: #d8ad58;
  --clay: #b96848;
  --muted: #6e786f;
  --hairline: rgba(23, 52, 45, .14);
  --ease-premium: cubic-bezier(.16, 1, .3, 1);
  --shadow-premium: 0 2px 4px rgba(20, 47, 39, .04), 0 18px 48px rgba(20, 47, 39, .10);
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  background: var(--paper);
  color: var(--ink);
}
body::before {
  background:
    repeating-linear-gradient(90deg, rgba(45, 74, 64, .018) 0, rgba(45, 74, 64, .018) 1px, transparent 1px, transparent 7px),
    linear-gradient(180deg, rgba(255,255,255,.28), transparent 32rem);
  opacity: .8;
}

a, button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(216, 173, 88, .85);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 12px;
  padding: 10px 14px;
  background: var(--cream);
  color: var(--ink-deep);
  border-radius: 6px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .2s var(--ease-premium);
}
.skip-link:focus { transform: translateY(0); }

.wrapper {
  width: min(100%, 1320px);
  max-width: none;
  padding: 24px clamp(18px, 3.6vw, 48px) 56px;
}

header {
  position: sticky;
  z-index: 40;
  top: 16px;
  min-height: 72px;
  margin-bottom: 24px;
  padding: 10px 12px 10px 16px;
  border-color: rgba(23, 52, 45, .12);
  border-radius: 18px;
  background: rgba(255, 250, 240, .86);
  box-shadow: 0 8px 30px rgba(23, 52, 45, .07);
  transition: transform .3s var(--ease-premium), box-shadow .3s ease, background .3s ease;
}
header.is-scrolled {
  background: rgba(255, 250, 240, .95);
  box-shadow: 0 14px 38px rgba(23, 52, 45, .13);
}
.brand { gap: 12px; }
.brand-symbol {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ink-deep);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 8px 18px rgba(16,47,40,.16);
}
.brand-title { color: var(--ink-deep); font-size: 19px; letter-spacing: -.035em; }
.brand-sub { color: #8d6835; font-size: 9px; letter-spacing: .11em; }
.site-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; margin-right: 30px; }
.site-nav a {
  color: #53645e;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--ink-deep); }
.nav-actions { gap: 8px; }
.stars-pill, .rank-pill {
  border-color: rgba(23, 52, 45, .10);
  background: rgba(255,255,255,.5);
  color: var(--ink);
  box-shadow: none;
}
.stars-pill svg { color: #c7902e; }
.btn-icon {
  width: 42px;
  height: 42px;
  border-color: rgba(23, 52, 45, .12);
  background: var(--ink-deep);
  color: var(--cream);
  transition: transform .2s var(--ease-premium), background .2s ease;
}
.btn-icon:hover { background: var(--forest); color: #fff; transform: translateY(-1px); }

.hero-section {
  min-height: clamp(600px, 72vw, 720px);
  display: flex;
  align-items: center;
  margin-bottom: 0;
  padding: clamp(64px, 9vw, 112px) clamp(28px, 6vw, 80px);
  border: 0;
  border-radius: 8px 8px 34px 8px;
  background: var(--ink-deep);
  box-shadow: 0 32px 80px rgba(16, 47, 40, .18);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 35, 29, .94) 0%, rgba(9, 35, 29, .78) 39%, rgba(9, 35, 29, .14) 72%, rgba(9, 35, 29, .08) 100%),
    linear-gradient(0deg, rgba(8, 31, 26, .64), transparent 48%);
}
.hero-section::after {
  inset: 12px;
  width: auto;
  height: auto;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 3px 3px 25px 3px;
  background: transparent;
  pointer-events: none;
}
.hero-content { width: min(610px, 58%); color: var(--cream); }
.badge-tag {
  margin-bottom: 24px;
  padding: 8px 12px;
  border-color: rgba(255,255,255,.24);
  border-radius: 4px;
  background: rgba(9, 35, 29, .48);
  color: #f3d494;
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .11em;
}
.hero-title {
  max-width: 12ch;
  margin-bottom: 24px;
  color: #fffaf0;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.2vw, 82px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
}
.hero-title em { display: block; color: #f0c878; font-weight: 400; }
.hero-desc {
  max-width: 54ch;
  margin-bottom: 30px;
  color: rgba(255,250,240,.78);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.75;
}
.hero-actions { gap: 16px; align-items: center; }
.btn-primary {
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 6px;
  background: #f5d58f;
  color: var(--ink-deep);
  box-shadow: 0 12px 28px rgba(4, 31, 25, .22);
  transition: transform .2s var(--ease-premium), box-shadow .2s var(--ease-premium), background .2s ease;
}
.btn-primary:hover { background: #ffe3a7; color: var(--ink-deep); transform: translateY(-2px); box-shadow: 0 18px 34px rgba(4,31,25,.3); }
.btn-primary:active { transform: scale(.98); }
.btn-secondary {
  min-height: 48px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.46);
  border-radius: 0;
  background: transparent;
  color: rgba(255,250,240,.9);
}
.btn-secondary:hover { background: transparent; color: #fff; border-color: #fff; }
.hero-assurance { margin-top: 22px; color: rgba(255,250,240,.58); font-size: 11px; font-weight: 600; }
.hero-assurance span { color: #f0c878; margin-right: 5px; }
.hero-card-preview {
  position: absolute;
  z-index: 2;
  right: clamp(30px, 5vw, 64px);
  bottom: clamp(30px, 5vw, 64px);
  width: min(330px, 29%);
  display: block;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 4px 4px 20px 4px;
  background: rgba(15, 51, 42, .72);
  color: var(--cream);
  box-shadow: 0 24px 54px rgba(5, 29, 24, .24);
  backdrop-filter: blur(16px) saturate(.9);
}
.preview-badge { display: flex; align-items: center; gap: 7px; margin-bottom: 24px; color: #f1d08c; font-size: 9px; letter-spacing: .13em; }
.preview-badge span { width: 7px; height: 7px; border-radius: 50%; background: #f1d08c; box-shadow: 0 0 0 5px rgba(241,208,140,.12); }
.preview-eyebrow { margin-bottom: 8px; color: rgba(255,255,255,.58); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-card-preview h2 { margin-bottom: 18px; font-family: var(--font-display); font-size: clamp(24px, 2.5vw, 34px); font-weight: 400; line-height: 1.05; }
.preview-meta { display: flex; gap: 14px; padding: 14px 0; border-block: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.65); font-size: 10px; }
.hero-card-preview > a { display: flex; justify-content: space-between; margin-top: 18px; color: #f5d58f; font-size: 12px; font-weight: 800; text-decoration: none; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 24px;
  padding: 32px clamp(12px, 3vw, 36px);
  border-bottom: 1px solid var(--hairline);
}
.trust-strip div { padding: 0 clamp(12px, 2vw, 26px); border-right: 1px solid var(--hairline); }
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong { display: block; color: var(--ink-deep); font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 400; line-height: 1.1; }
.trust-strip span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .02em; }

.section-header {
  margin: clamp(84px, 10vw, 128px) 0 34px;
  align-items: end;
}
.section-header > div:first-child { max-width: 690px; }
.section-kicker {
  display: block;
  margin-bottom: 12px;
  color: #9b6e2d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-title {
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.025em;
}
.section-sub { max-width: 60ch; margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.search-box {
  min-width: min(330px, 100%);
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid rgba(23,52,45,.26);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.search-box:focus-within { border-color: var(--forest); box-shadow: none; }
.search-box input { color: var(--ink); font-size: 12px; }
.filter-bar { gap: 9px; margin-bottom: 32px; padding-bottom: 10px; }
.filter-btn {
  min-height: 42px;
  padding: 9px 16px;
  border-color: rgba(23,52,45,.16);
  border-radius: 6px;
  background: rgba(255,250,240,.62);
  color: #586860;
  font-size: 11px;
  transition: transform .2s var(--ease-premium), background .2s ease, color .2s ease;
}
.filter-btn.active, .filter-btn:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: var(--cream); transform: translateY(-1px); }

.game-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; margin-bottom: clamp(88px, 10vw, 128px); }
.game-card {
  grid-column: span 6;
  min-height: 390px;
  border-color: rgba(23,52,45,.12);
  border-radius: 6px 6px 24px 6px;
  background: rgba(255,253,247,.82);
  box-shadow: 0 2px 3px rgba(23,52,45,.03), 0 16px 40px rgba(23,52,45,.055);
  transition: transform .3s var(--ease-premium), box-shadow .3s var(--ease-premium), border-color .2s ease;
}
.game-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px rgba(255,255,255,.72); }
.game-card:hover { transform: translateY(-5px); border-color: rgba(23,79,64,.28); box-shadow: var(--shadow-premium); }
.game-card.recently-played { border-color: rgba(216,173,88,.68); box-shadow: 0 16px 46px rgba(150,103,35,.12); }
.card-top { padding: 28px 28px 18px; }
.card-icon-box { width: 48px; height: 48px; border-radius: 8px; }
.icon-emerald { background: #e7f0e9; color: #21624e; border-color: #cfdfd4; }
.icon-amber { background: #f5ead2; color: #9b6322; border-color: #e9d7b4; }
.icon-blue { background: #e6eeed; color: #315c5b; border-color: #cfdddb; }
.icon-purple { background: #f1e3db; color: #a15039; border-color: #e5cec1; }
.card-tag { padding: 5px 9px; border-radius: 3px; background: transparent; color: #76827b; letter-spacing: .09em; }
.card-content { padding: 0 28px 28px; }
.card-heading { color: var(--ink-deep); font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 31px); font-weight: 400; line-height: 1.12; }
.card-summary { color: var(--muted); font-size: 12px; line-height: 1.75; }
.card-meta { border-color: rgba(23,52,45,.09); }
.meta-item { color: #6b7770; font-size: 10px; }
.card-btn {
  justify-content: space-between;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid rgba(23,52,45,.12);
  border-radius: 0;
  background: transparent;
  color: var(--forest);
  font-size: 11px;
}
.game-card:hover .card-btn { background: transparent; border-color: rgba(23,52,45,.22); color: var(--ink-deep); }
.game-card:hover .card-btn svg { transform: translateX(3px); }
.card-btn svg { transition: transform .2s var(--ease-premium); }
.game-card-adventure {
  grid-column: 1 / -1;
  min-height: 480px;
  grid-template-columns: minmax(420px, 1.2fr) minmax(340px, .8fr);
  border-radius: 7px 7px 34px 7px;
  background: #fffaf0;
}
.adventure-art { min-height: 480px; padding: 28px; background: linear-gradient(180deg,transparent 38%,rgba(10,42,34,.7)),url('../assets/images/jadda-adventure/kampung-pagi-bg.webp') center / cover no-repeat; }
.adventure-kicker, .adventure-chapter { border-radius: 3px; background: rgba(11,46,38,.72); letter-spacing: .1em; }
.adventure-hero-mark { display: none; }
.adventure-content { padding: clamp(34px, 5vw, 66px); }
.adventure-content .card-heading { max-width: 11ch; margin-top: 22px; font-size: clamp(38px, 4.6vw, 62px); line-height: .98; }
.adventure-content .card-summary { font-size: 13px; }
.game-card-featured {
  grid-column: 1 / -1;
  min-height: 440px;
  grid-template-columns: minmax(330px, .86fr) minmax(390px, 1.14fr);
  border-color: rgba(155,99,34,.2);
  border-radius: 28px 6px 6px 6px;
  background: #fff9ec;
}
.featured-art { min-height: 440px; padding: 28px; }
.featured-kicker, .featured-light { border-radius: 3px; background: rgba(79,50,20,.65); letter-spacing: .08em; }
.featured-content { padding: clamp(34px, 5vw, 64px); }
.featured-content .card-heading { font-size: clamp(34px, 4vw, 52px); }
.empty-state { margin: -80px 0 90px; padding: 30px; border: 1px dashed rgba(23,52,45,.24); color: var(--muted); text-align: center; }

.pedagogy-section {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(480px, 1.2fr);
  gap: clamp(44px, 7vw, 90px);
  margin-bottom: 30px;
  padding: clamp(44px, 7vw, 88px);
  border: 0;
  border-radius: 6px 30px 6px 6px;
  background: var(--ink-deep);
  box-shadow: 0 28px 70px rgba(16,47,40,.16);
}
.pedagogy-header { margin: 0; text-align: left; }
.pedagogy-header .section-kicker { color: #e3bd70; }
.pedagogy-title { margin-bottom: 22px; color: var(--cream); font-family: var(--font-display); font-size: clamp(38px, 4.7vw, 60px); font-weight: 400; line-height: 1.02; letter-spacing: -.025em; }
.pedagogy-title em { color: #e8c477; font-weight: 400; }
.pedagogy-sub { color: rgba(255,250,240,.62); font-size: 13px; line-height: 1.75; }
.pedagogy-grid { grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.12); }
.pedagogy-item { min-height: 180px; padding: 30px 24px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.pedagogy-item:nth-child(even) { border-right: 0; }
.pedagogy-icon { width: 42px; height: 42px; border: 1px solid rgba(238,197,119,.28); border-radius: 5px; background: rgba(238,197,119,.09); color: #ecc878; }
.pedagogy-info h4 { color: #fffaf0; font-family: var(--font-display); font-size: 19px; font-weight: 400; line-height: 1.2; }
.pedagogy-info p { color: rgba(255,250,240,.55); font-size: 11px; line-height: 1.7; }

.closing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 28px 0 0;
  padding: clamp(38px, 6vw, 72px);
  border: 1px solid rgba(23,52,45,.12);
  background: #efe2c8;
}
.closing-cta h2 { max-width: 15ch; color: var(--ink-deep); font-family: var(--font-display); font-size: clamp(36px, 4vw, 54px); font-weight: 400; line-height: 1; }
.closing-cta .btn-primary { background: var(--ink-deep); color: var(--cream); box-shadow: 0 12px 28px rgba(16,47,40,.16); }
.closing-cta .btn-primary:hover { background: var(--forest); color: #fff; }

footer {
  display: grid;
  grid-template-columns: 1.35fr 1fr auto;
  align-items: end;
  gap: 36px;
  padding: 52px 4px 8px;
  border-top: 0;
  color: var(--muted);
}
.footer-lead { max-width: 390px; }
.footer-brand { display: block; margin-bottom: 8px; color: var(--ink-deep); font-family: var(--font-display); font-size: 26px; font-weight: 400; }
.footer-lead p { font-size: 11px; line-height: 1.65; }
footer nav { display: flex; gap: 18px; }
footer nav a { color: #58675f; font-size: 10px; font-weight: 700; text-decoration: none; }
footer nav a:hover { color: var(--ink-deep); }
footer small { font-size: 9px; text-align: right; }

.reveal-ready { opacity: 0; transform: translateY(22px); }
.reveal-ready.is-visible { opacity: 1; transform: translateY(0); transition: opacity .55s var(--ease-premium), transform .55s var(--ease-premium); }

@media (max-width: 980px) {
  .site-nav { display: none; }
  .hero-section { min-height: 690px; align-items: flex-start; padding-top: 76px; }
  .hero-content { width: min(680px, 82%); }
  .hero-card-preview { width: min(330px, 42%); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip div:nth-child(2) { border-right: 0; }
  .trust-strip div { padding-block: 16px; }
  .game-card { grid-column: 1 / -1; }
  .game-card-adventure, .game-card-featured { grid-template-columns: 1fr 1fr; }
  .pedagogy-section { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr 1fr; }
  footer small { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 86px; }
  .wrapper { padding: 10px 10px 38px; }
  header { top: 8px; min-height: 62px; margin-bottom: 10px; padding: 8px 9px 8px 11px; border-radius: 14px; }
  .brand-symbol { width: 38px; height: 38px; }
  .brand-title { font-size: 17px; }
  .brand-sub { display: none; }
  .rank-pill { display: none; }
  .stars-pill { padding: 6px 10px; font-size: 11px; }
  .btn-icon { width: 38px; height: 38px; }
  .hero-section { min-height: 720px; padding: 62px 24px 260px; border-radius: 6px 6px 26px 6px; }
  .hero-media img { object-position: 58% center; }
  .hero-section::before { background: linear-gradient(180deg, rgba(8,34,28,.92) 0%, rgba(8,34,28,.72) 50%, rgba(8,34,28,.38) 100%); }
  .hero-section::after { inset: 8px; }
  .hero-content { width: 100%; }
  .hero-title { font-size: clamp(43px, 13vw, 62px); }
  .hero-desc { font-size: 13px; line-height: 1.65; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .btn-primary { justify-content: space-between; }
  .btn-secondary { align-self: flex-start; }
  .hero-assurance { font-size: 9px; line-height: 1.5; }
  .hero-card-preview { left: 20px; right: 20px; bottom: 20px; width: auto; padding: 20px; }
  .hero-card-preview h2 { font-size: 26px; }
  .preview-badge { margin-bottom: 14px; }
  .trust-strip { margin: 0; padding: 22px 8px; }
  .trust-strip strong { font-size: 23px; }
  .trust-strip span { font-size: 8px; line-height: 1.4; }
  .section-header { margin-top: 78px; align-items: stretch; }
  .section-title { font-size: 40px; }
  .search-box { min-width: 100%; }
  .filter-bar { margin-inline: -10px; padding-inline: 10px; }
  .game-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
  .game-card, .game-card-adventure, .game-card-featured { grid-column: 1; min-height: 0; grid-template-columns: 1fr; border-radius: 5px 5px 20px 5px; }
  .adventure-art, .featured-art { min-height: 240px; }
  .adventure-content, .featured-content { padding: 28px 22px; }
  .adventure-content .card-heading { font-size: 42px; }
  .card-top { padding: 24px 22px 16px; }
  .card-content { padding: 0 22px 22px; }
  .pedagogy-section { padding: 38px 22px; border-radius: 5px 24px 5px 5px; }
  .pedagogy-title { font-size: 42px; }
  .pedagogy-grid { grid-template-columns: 1fr; }
  .pedagogy-item, .pedagogy-item:nth-child(even) { min-height: 0; padding: 24px 0; border-right: 0; }
  .closing-cta { align-items: stretch; flex-direction: column; padding: 38px 24px; }
  .closing-cta h2 { font-size: 40px; }
  footer { grid-template-columns: 1fr; gap: 22px; padding-inline: 10px; }
  footer nav { flex-wrap: wrap; }
  footer small { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-ready { opacity: 1; transform: none; }
}
}

@layer base {

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Subtle Geometric Texture */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(5, 150, 105, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(217, 119, 6, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.wrapper {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* Header Navbar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.2);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--emerald-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--amber-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stars-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--amber-50);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--amber-700);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow-subtle);
}

.stars-pill svg {
  color: var(--amber-500);
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  background: var(--emerald-50);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: var(--emerald-800);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 12px;
  box-shadow: var(--shadow-subtle);
  white-space: nowrap;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
  background: var(--bg-surface);
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

/* Hero Section: Split Editorial Layout */
.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--emerald-50) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald-50);
  color: var(--emerald-800);
  border: 1px solid rgba(4, 120, 87, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-title span {
  color: var(--emerald-700);
}

.hero-desc {
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald-700);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  background: var(--emerald-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--slate-100);
  border-color: var(--slate-300);
}

.hero-card-preview {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #064e3b, #065f46);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 40px -10px rgba(6, 78, 59, 0.3);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--amber-500);
  letter-spacing: 0.05em;
}

.preview-arabic {
  font-family: var(--font-arabic);
  font-size: 34px;
  line-height: 1.3;
  color: #fff;
  text-align: right;
  direction: rtl;
}

.preview-meaning {
  font-size: 13px;
  color: #a7f3d0;
  line-height: 1.5;
  font-style: italic;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 12px;
}

/* Track / Category Filter Tabs */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--emerald-900);
  color: #fff;
  border-color: var(--emerald-900);
}

/* Section Heading */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 260px;
}

.search-box:focus-within {
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.search-box svg {
  color: var(--slate-400);
  flex-shrink: 0;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-800);
  width: 100%;
}

.search-box input::placeholder {
  color: var(--slate-400);
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 13px;
  color: var(--slate-600);
  margin-top: 2px;
}

/* Bento Game Cards Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1)), box-shadow 0.25s ease, border-color 0.2s ease;
  position: relative;
}

.game-card.recently-played {
  border-color: var(--emerald-600);
  box-shadow: 0 8px 24px -4px rgba(5, 150, 105, 0.16);
}

.last-played-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--emerald-100);
  color: var(--emerald-800);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  animation: pulseChip 2.5s infinite ease-in-out;
}

@keyframes pulseChip {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--emerald-600);
}

.card-top {
  padding: 24px 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-emerald { background: var(--emerald-50); color: var(--emerald-700); border: 1px solid var(--emerald-100); }
.icon-amber   { background: var(--amber-50); color: var(--amber-700); border: 1px solid var(--amber-100); }
.icon-blue    { background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; }
.icon-purple  { background: #f5f3ff; color: #6d28d9; border: 1px solid #ede9fe; }

.card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  color: var(--slate-600);
}

.card-content {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card-summary {
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--slate-600);
  font-weight: 600;
}

.card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--bg-subtle);
  color: var(--emerald-900);
  border: 1px solid var(--slate-200);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s;
}

.game-card:hover .card-btn {
  background: var(--emerald-700);
  color: #fff;
  border-color: var(--emerald-700);
}

/* Educational Standards / Pedagogy Banner */
.pedagogy-section {
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 60px;
  box-shadow: var(--shadow-subtle);
}

.pedagogy-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px;
}

.pedagogy-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.pedagogy-sub {
  font-size: 14px;
  color: var(--slate-600);
}

.pedagogy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.pedagogy-item {
  display: flex;
  gap: 16px;
}

.pedagogy-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--emerald-100);
}

.pedagogy-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.pedagogy-info p {
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.55;
}

/* Footer */
footer {
  border-top: 1px solid var(--slate-200);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--slate-600);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-weight: 700;
  color: var(--emerald-900);
}

@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }
  .hero-card-preview {
    display: none;
  }
  .wrapper {
    padding: 16px 14px 60px;
  }
}


/* Flagship story-game card */
.game-card-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(260px, .92fr) minmax(320px, 1.08fr);
  padding: 0;
  overflow: hidden;
  border-color: rgba(180, 83, 9, 0.2);
  background: #fffdf7;
}

.featured-art {
  min-height: 330px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px;
  background:
    linear-gradient(180deg, transparent 50%, rgba(6, 78, 59, .52)),
    url('../assets/images/pasar-amanah/pasar-amanah-bg.webp') center / cover no-repeat;
}

.featured-kicker,
.featured-light {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 6px;
  color: #fffdf0;
  background: rgba(6, 78, 59, .72);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 48px);
}

.featured-content .card-btn { margin-top: 22px; }

@media (max-width: 720px) {
  .game-card-featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .featured-art { min-height: 220px; }
}


/* Main adventure flagship */
.game-card-adventure { grid-column:1 / -1; display:grid; grid-template-columns:minmax(320px,1.25fr) minmax(320px,.75fr); padding:0; overflow:hidden; border-color:rgba(4,120,87,.25); background:#fffdf5; }
.adventure-art { min-height:390px; position:relative; overflow:hidden; display:flex; align-items:flex-end; justify-content:space-between; padding:22px; background:linear-gradient(180deg,transparent 45%,rgba(6,78,59,.58)),url('../assets/images/jadda-adventure/kampung-pagi-bg.webp') center / cover no-repeat; }
.adventure-kicker,.adventure-chapter { position:relative; z-index:2; padding:8px 11px; border:1px solid rgba(255,255,255,.5); border-radius:6px; color:#fffceb; background:rgba(6,78,59,.76); backdrop-filter:blur(8px); font-size:10px; font-weight:800; letter-spacing:.05em; }
.adventure-hero-mark { position:absolute; left:50%; bottom:-18px; width:150px; height:190px; transform:translateX(-50%); border-radius:48% 48% 20% 20%; background:#bd5b36; box-shadow:0 18px 35px rgba(0,0,0,.28),inset 0 0 0 8px rgba(255,255,255,.13); }
.adventure-hero-mark::before { content:''; position:absolute; top:-55px; left:30px; width:90px; height:100px; border-radius:50%; background:#e8b38e; box-shadow:inset 0 34px #a84d3a; }
.adventure-hero-mark span { position:absolute; top:55px; left:0; right:0; color:#fff4d6; font-size:64px; font-weight:800; text-align:center; }
.adventure-content { display:flex; flex-direction:column; justify-content:center; padding:clamp(32px,5vw,58px); }.adventure-content .card-heading { margin-top:18px; font-size:clamp(25px,3vw,38px); }.adventure-content .card-btn { margin-top:24px; }
@media(max-width:760px){.game-card-adventure{grid-template-columns:1fr}.adventure-art{min-height:250px}.adventure-hero-mark{width:110px;height:140px}.adventure-hero-mark::before{top:-42px;left:22px;width:66px;height:75px}.adventure-hero-mark span{top:38px;font-size:48px}.adventure-content{padding:28px 22px}}

/* ==========================================================================
   V11 Interactive Enhancements (Tactile Arcade & Delight)
   ========================================================================== */

/* Hero Greeting Chip */
.hero-greeting-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #854d0e;
  box-shadow: 0 4px 14px -2px rgba(217, 119, 6, 0.12);
  margin-bottom: 14px;
  width: fit-content;
  animation: floatGreeting 4s ease-in-out infinite;
}
.hero-greeting-chip .avatar-wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: waveHand 2.2s infinite ease-in-out;
}
@keyframes waveHand {
  0%, 100% { transform: rotate(0deg); }
  20%, 60% { transform: rotate(14deg); }
  40%, 80% { transform: rotate(-8deg); }
}
@keyframes floatGreeting {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Catalog Actions Bar & Random Game Picker */
.catalog-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-random-game {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 9999px;
  color: #92400e;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn-random-game:hover {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.22);
  border-color: #d97706;
}
.btn-random-game:active {
  transform: translateY(0) scale(0.97);
}
.btn-random-game .compass-icon {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  color: #d97706;
}
.btn-random-game:hover .compass-icon {
  transform: rotate(180deg);
}
.btn-random-game.is-spinning .compass-icon {
  animation: spinCompass 0.6s linear infinite;
}
@keyframes spinCompass {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Spotlight pulse for chosen game */
@keyframes spotlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7); transform: scale(1); }
  50% { box-shadow: 0 0 0 20px rgba(217, 119, 6, 0); transform: translateY(-8px) scale(1.02); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); transform: scale(1); }
}
.game-card.spotlight-pulse {
  animation: spotlightPulse 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2;
  border-color: #d97706 !important;
  z-index: 10;
}

/* Enhanced Game Cards Hover & Tactile Feel */
.game-card {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.24s ease;
}
.game-card:hover {
  transform: translateY(-6px) scale(1.008);
  box-shadow: 0 20px 38px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(6, 78, 59, 0.14);
}
.game-card:active {
  transform: translateY(-2px) scale(0.995);
}

.game-card[data-category="adventure"]:hover {
  box-shadow: 0 22px 40px -10px rgba(185, 104, 72, 0.22), 0 0 0 1px rgba(185, 104, 72, 0.35);
}
.game-card[data-category="asah-otak"]:hover {
  box-shadow: 0 22px 40px -10px rgba(57, 114, 103, 0.22), 0 0 0 1px rgba(57, 114, 103, 0.35);
}
.game-card[data-category="simulasi"]:hover {
  box-shadow: 0 22px 40px -10px rgba(193, 139, 60, 0.22), 0 0 0 1px rgba(193, 139, 60, 0.35);
}
.game-card[data-category="islami"]:hover {
  box-shadow: 0 22px 40px -10px rgba(82, 114, 94, 0.22), 0 0 0 1px rgba(82, 114, 94, 0.35);
}
.game-card[data-category="arcade"]:hover {
  box-shadow: 0 22px 40px -10px rgba(168, 93, 69, 0.22), 0 0 0 1px rgba(168, 93, 69, 0.35);
}

.card-icon-box {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.game-card:hover .card-icon-box {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.12);
}

/* Star Pill & Rank Pill Interaction */
.stars-pill {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.stars-pill:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 16px -2px rgba(217, 119, 6, 0.25);
}
.stars-pill svg {
  color: #f59e0b;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.stars-pill:hover svg {
  transform: rotate(20deg) scale(1.15);
}
.stars-pill.has-sparkle {
  animation: starSparkle 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes starSparkle {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); box-shadow: 0 0 24px rgba(245, 158, 11, 0.5); }
  100% { transform: scale(1); }
}

.rank-pill {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.rank-pill:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px -2px rgba(6, 78, 59, 0.2);
}
}

