/* =========================================================
   HompimPlay — playful purple theme (loaded after style.css)
   Rounded Nunito type, lavender ground with soft shapes,
   purple gradients, white cards with soft shadows.
   ========================================================= */
:root {
  --bg: #F3F0FF;
  --soft: #F7F5FF;
  --ink: #1E1B4B;
  --muted: #5F5B85;
  --muted-2: #8580AD;
  --line: #E7E2FB;
  --primary: #6C4BFF;
  --primary-dark: #5534E8;
  --primary-soft: #EFEBFF;
  --grad: linear-gradient(135deg, #7B5CFF 0%, #5B4BF5 55%, #4F6BFF 100%);
  --yellow: #FFC531;
  --orange: #FF7A1A;
  --green: #22C55E;
  --purple: #8B5CF6;
  --pink: #EC4899;
  --shadow: 0 8px 24px rgba(91, 70, 200, .09);
  --shadow-lg: 0 18px 40px rgba(91, 70, 200, .18);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body { font-family: var(--font); font-size: 15px; background: var(--bg); color: var(--ink); }
h1, h2, h3, strong, b { font-weight: 800; }

/* Soft background shapes */
body::before, body::after { content: ''; position: fixed; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(2px); }
body::before { width: 640px; height: 640px; left: -260px; bottom: -220px; background: radial-gradient(circle at 60% 40%, #D9CCFF, rgba(217, 204, 255, 0) 70%); }
body::after { width: 520px; height: 520px; right: -200px; top: -160px; background: radial-gradient(circle at 40% 60%, #E3D8FF, rgba(227, 216, 255, 0) 70%); }

/* ---------- Shell: no big white panel, content floats on the lavender ground ---------- */
.app { padding: 20px 24px; }
.shell { background: transparent; box-shadow: none; border-radius: 0; max-width: 1480px; }
.main { background: transparent; border-radius: 0; padding: 4px 0 32px 24px; gap: 24px; }
.cols { gap: 24px; }

/* ---------- Brand ---------- */
.brand__mark { background: var(--grad); border-radius: 14px; box-shadow: 0 8px 18px rgba(108, 75, 255, .35); }
.brand__name { font-weight: 900; font-size: 23px; letter-spacing: -.3px; }
.brand__name span { color: var(--primary); }

/* ---------- Sidebar ---------- */
.sidebar { border-right: 0; padding: 10px 10px 24px 0; gap: 22px; flex-basis: 214px; height: calc(100vh - 40px); top: 20px; overflow: visible; }
.side-nav { gap: 6px; }
.side-nav__item { height: 48px; font-size: 15px; font-weight: 700; color: #3E3A66; border-radius: 16px; gap: 14px; }
.side-nav__item:hover { background: rgba(255, 255, 255, .7); color: var(--primary); }
.side-nav__item.is-active { background: var(--grad); color: #fff; box-shadow: 0 10px 22px rgba(108, 75, 255, .35); }
.side-nav__item.is-active:hover { color: #fff; }

.challenge { margin-top: 6px; background: var(--grad); color: #fff; border-radius: 24px; padding: 22px 18px 18px; align-items: stretch; text-align: left; gap: 10px; box-shadow: 0 16px 32px rgba(108, 75, 255, .3); position: relative; overflow: hidden; }
.challenge::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.challenge > * { position: relative; }
.challenge__icon { align-self: center; width: auto; height: auto; background: none; box-shadow: none; color: var(--yellow); margin: 0; }
.challenge__icon .icon { width: 40px; height: 40px; --icon-fill: var(--yellow); color: #E5A800; }
.challenge strong { font-size: 19px; text-align: center; color: #fff; }
.challenge__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.challenge__list li { display: flex; align-items: center; gap: 8px; }
.challenge__count { color: rgba(255, 255, 255, .9); font-size: 12px; text-align: center; }
.challenge .bar { background: rgba(255, 255, 255, .25); }
.challenge .bar__fill { background: var(--yellow); }
.side-art { width: 150px; height: auto; margin: auto 0 0 -6px; opacity: .95; }
@media (max-height: 820px) { .side-art { display: none; } }

/* ---------- Top bar ---------- */
.topbar { gap: 14px; }
.search { height: 52px; border-radius: 26px; border: 0; background: #fff; box-shadow: var(--shadow); max-width: 520px; padding: 0 10px 0 20px; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(108, 75, 255, .35), var(--shadow); }
.search input { font-size: 15px; font-weight: 600; }
.search__kbd { font: 700 11px var(--font); color: var(--muted-2); background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; white-space: nowrap; }
.search:focus-within .search__kbd { display: none; }
.topbar__level { border: 0; background: #fff; box-shadow: var(--shadow); border-radius: 26px; padding: 6px 14px 6px 6px; }
.topbar__avatar { border-radius: 50%; width: 42px; height: 42px; }
.topbar__meta strong { font-size: 15px; }
.topbar .btn--primary { border-radius: 26px; height: 52px; padding: 0 26px; }
.user-dd { position: relative; margin-left: auto; }
.user-dd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.user-dd > summary::-webkit-details-marker { display: none; }
.user-dd > summary > .icon { color: var(--muted-2); }
.user-dd[open] > summary > .icon { transform: rotate(180deg); }
.user-dd__menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; min-width: 220px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 8px; display: flex; flex-direction: column; }
.user-dd__menu a, .user-dd__menu button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 0; background: none; border-radius: 12px; color: var(--ink); font: 700 14px var(--font); text-decoration: none; text-align: left; width: 100%; cursor: pointer; }
.user-dd__menu a:hover, .user-dd__menu button:hover { background: var(--primary-soft); color: var(--primary); }
.user-dd__menu form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.user-dd__menu .is-out { color: #D92D45; }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font); font-weight: 800; }
.btn--primary { background: var(--grad); box-shadow: 0 8px 18px rgba(108, 75, 255, .3); }
.btn--primary:hover { background: var(--grad); filter: brightness(1.06); }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 8px 18px rgba(229, 168, 0, .35); }
.btn--yellow:hover { background: #FFD24F; color: var(--ink); }
.btn--sm { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.section__link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 800; }

/* ---------- Section headings with coloured icons ---------- */
.section__head h1, .section__head h2 { font-size: 24px; font-weight: 900; letter-spacing: -.3px; }
.section__head h2 .icon { width: var(--s); height: var(--s); padding: 0; background: none; }
.h-ic { display: inline-flex; width: 38px; height: 38px; border-radius: 12px; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.h-ic .icon { color: #fff !important; }
.h-ic--purple { background: var(--grad); }
.h-ic--yellow { background: linear-gradient(135deg, #FFD54A, #FFAE00); }
.h-ic--orange { background: linear-gradient(135deg, #FF9A3D, #FF5A1F); }
.h-ic--pink { background: linear-gradient(135deg, #FF7AB6, #E83E8C); }
.card__title { display: flex; align-items: center; gap: 10px; font-size: 20px !important; }
.card__title .h-ic { width: 34px; height: 34px; border-radius: 11px; }
.page-lead { margin: -6px 0 0; color: var(--muted); font-weight: 600; }

/* ---------- Hero slider ---------- */
.slider { border-radius: 32px; box-shadow: 0 20px 44px rgba(108, 75, 255, .25); }
.slider .hero { min-height: 320px; padding: 40px 44px 84px; }
.hero__title { font-size: clamp(32px, 4vw, 48px); font-weight: 900; letter-spacing: -.5px; line-height: 1.05; }
.hero p { font-size: 16px; font-weight: 600; max-width: 400px; }
.hero .pill { background: rgba(255, 255, 255, .22); font-weight: 800; }
.hero--img .pill { background: rgba(30, 27, 75, .5); }
.hero .btn--yellow { height: 52px; padding: 0 26px; border-radius: 26px; font-size: 16px; }
.slider__nav { left: 50%; transform: translateX(-50%); bottom: 20px; background: rgba(30, 27, 75, .35); }

/* ---------- Perks ---------- */
.perks { gap: 14px; }
.perk { border-radius: 22px; padding: 14px 16px; box-shadow: var(--shadow); }
.perk__ic { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 8px 16px rgba(30, 27, 75, .12); }
.perk strong { font-size: 15px; font-weight: 800; }
.perk--purple .perk__ic { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.perk--blue .perk__ic { background: linear-gradient(135deg, #60A5FA, #4F46E5); }
.perk--green .perk__ic { background: linear-gradient(135deg, #4ADE80, #16A34A); }
.perk--pink .perk__ic { background: linear-gradient(135deg, #F0ABFC, #A855F7); }

/* ---------- Category tiles: gradient, big white icon ---------- */
.cat-strip { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; }
.cat-chip { align-items: center; text-align: center; padding: 18px 12px 16px; border-radius: 22px; color: #fff; background: linear-gradient(160deg, var(--g1, #8B7BFF), var(--g2, #5B4BE0)); box-shadow: 0 12px 24px color-mix(in srgb, var(--g2, #5B4BE0) 35%, transparent); }
.cat-chip::after { background: rgba(255, 255, 255, .16); opacity: 1; right: -24px; bottom: -28px; }
.cat-chip:hover { color: #fff; }
.cat-chip__ic { background: none; box-shadow: none; color: #fff; margin-bottom: 6px; width: 54px; height: 54px; }
.cat-chip__ic .icon { width: 44px; height: 44px; stroke-width: 2.2; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .18)); }
.cat-chip strong { font-size: 17px; font-weight: 900; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.cat-chip small { color: rgba(255, 255, 255, .95); font-weight: 700; font-size: 13px; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }

/* ---------- Stats ---------- */
.stat { background: #fff !important; box-shadow: var(--shadow); border-radius: 22px; }
.stat .stat__icon { border-radius: 14px; width: 46px; height: 46px; box-shadow: 0 8px 16px rgba(30, 27, 75, .12); color: #fff; }
.stat--orange .stat__icon { background: linear-gradient(135deg, #FFB547, #FF6A1F); }
.stat--blue .stat__icon { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.stat--green .stat__icon { background: linear-gradient(135deg, #4ADE80, #16A34A); }
.stat--purple .stat__icon { background: linear-gradient(135deg, #C084FC, #7C3AED); }
.stat strong { font-weight: 900; }

/* ---------- Continue playing (one card, rows) ---------- */
.recent-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 8px 18px; }
.recent-card .recent-row { background: none; box-shadow: none; border-radius: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recent-card .recent-row:last-child { border-bottom: 0; }
.recent-row .thumb { width: 72px; border-radius: 16px; }
.recent-row__info strong { font-size: 16px; }
.recent-row__info span { font-size: 13px; }
.badge-soft { background: var(--primary-soft); color: var(--primary); }

/* ---------- Game pilihan ---------- */
.spot { border-radius: 26px; }
.spot__media { aspect-ratio: 16 / 9; margin: 10px 10px 0; border-radius: 18px; overflow: hidden; }
.spot__body { padding: 12px 16px 16px; }
.spot__body h3 { font-size: 17px; font-weight: 900; }
.spot__meta { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); -webkit-line-clamp: unset; display: block; }
.spot__meta b { color: var(--ink); }
.spot__play { border-radius: 50%; background: var(--grad); width: 44px; height: 44px; }

/* ---------- Game cards ---------- */
.grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.game-card { border-radius: 24px; padding: 10px; gap: 10px; }
.game-card .thumb { border-radius: 18px; aspect-ratio: 16 / 9; }
.game-card__body { padding: 0 6px 6px; gap: 8px; }
.game-card__body h3 { font-size: 16px; font-weight: 900; }
.game-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game-card__meta { padding: 0; gap: 8px; font-size: 13px; font-weight: 700; display: flex; align-items: center; }
.game-card__meta b { color: var(--ink); }
.game-card__cta { height: 32px; padding: 0 12px; border-radius: 16px; border: 1.5px solid #D8CFFF; background: #fff; color: var(--primary); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.game-card:hover .game-card__cta { background: var(--grad); border-color: transparent; color: #fff; }
.star { color: #FFB400; }

/* ---------- New releases ---------- */
.new-item { border-radius: 22px; padding: 10px; }
.new-item .thumb { width: 72px; border-radius: 16px; }
.new-item strong { font-size: 15px; font-weight: 900; }
.new-item__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.new-item__meta b { color: var(--ink); }
.badge-new { font-style: normal; font-size: 11px; font-weight: 800; color: var(--primary); background: var(--primary-soft); padding: 3px 9px; border-radius: 999px; }

/* ---------- Chips ---------- */
.chip { border-radius: 999px; border: 0; background: #fff; box-shadow: 0 4px 10px rgba(91, 70, 200, .08); color: var(--primary); font-weight: 800; }
.chip.is-active { background: var(--grad); color: #fff; }

/* ---------- Right column cards ---------- */
.card { border-radius: 26px; box-shadow: var(--shadow); }
.card h2 { font-size: 20px; font-weight: 900; }
.badge-live { position: relative; padding-left: 20px; }
.badge-live::before { content: ''; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #16A34A; }
.btn--soft { background: var(--primary-soft); color: var(--primary); border-radius: 12px; }
.rank-list--medals a { padding: 8px 6px; }
.rank-list .thumb { width: 46px; border-radius: 12px; }
.rank-list__t { display: flex; flex-direction: column; font-weight: 800; line-height: 1.25; }
.rank-list__t small { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.medal { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; color: var(--muted); background: var(--soft); }
.medal--1 { background: linear-gradient(135deg, #FFE27A, #FFB400); color: #6B4500 !important; }
.medal--2 { background: linear-gradient(135deg, #E9ECF5, #B8BFD3); color: #3E4560 !important; }
.medal--3 { background: linear-gradient(135deg, #FFC9A0, #E8894A); color: #5A2A08 !important; }
.cat-list a { background: none; padding: 10px 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-weight: 800; }
.cat-list a:last-child { border-bottom: 0; }
.cat-list a:hover { background: var(--primary-soft); border-radius: 12px; }
.cat-list__ic { display: flex; width: 32px; height: 32px; border-radius: 10px; align-items: center; justify-content: center; background: var(--soft); }
.cat-list small { font-weight: 800; color: var(--ink); }
.cat-list a > .icon { color: var(--muted-2); }

.promo { background: var(--grad); color: #fff; border-radius: 26px; box-shadow: 0 16px 32px rgba(108, 75, 255, .3); padding: 22px; }
.promo strong { font-size: 20px; font-weight: 900; }
.promo span { color: rgba(255, 255, 255, .92); }

/* ---------- Peringkat ---------- */
.podium-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.podium-list li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.podium-list__score { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.podium-list__score b { font-size: 20px; font-weight: 900; color: var(--primary); }
.podium-list__score small { font-size: 12px; color: var(--muted); font-weight: 700; }

/* ---------- Bottom bar (phone) & misc ---------- */
.bottom-nav__item.is-active { background: var(--grad); }
.empty { border-radius: 24px; border-color: var(--line); }
.cat-tile { border-radius: 24px; color: #fff; }
.site-footer { color: var(--muted-2); }

@media (max-width: 960px) {
  .app { padding: 0; }
  .main { padding: 16px 16px 112px; }
  .search { max-width: none; }
  .search__kbd { display: none; }
  .user-dd { margin-left: auto; }
}
@media (max-width: 600px) {
  .slider .hero { padding: 24px 22px 76px; min-height: 300px; }
  .slider .hero.hero--img { min-height: 400px; }
  .cat-chip { flex-basis: 112px; }
  .section__head h1, .section__head h2 { font-size: 20px; }
  .h-ic { width: 32px; height: 32px; border-radius: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-card__row { flex-direction: column; align-items: stretch; }
  .game-card__cta { justify-content: center; }
  .recent-row .btn { width: 100%; }
  .topbar__meta { display: none; }
  .user-dd > summary > .icon { display: none; }
}
