/* =========================================================
   HompimPlay — "Play" look (loaded after style.css + theme.css)
   Bright purple gradients, glossy 3D-ish tiles, soft lavender
   ground, white cards with violet-tinted shadows.
   ========================================================= */
:root {
  --bg: #F3EFFF;
  --ink: #231A5C;
  --muted: #6B639E;
  --muted-2: #958DC2;
  --line: #ECE6FF;
  --primary: #7046FF;
  --primary-dark: #5A2FEA;
  --primary-soft: #F0EBFF;
  --grad: linear-gradient(135deg, #7C4DFF 0%, #9B5CFF 60%, #B46CFF 100%);
  --grad-deep: linear-gradient(160deg, #7A45FF 0%, #5B2BE0 60%, #4A1FC4 100%);
  --grad-blue: linear-gradient(135deg, #8A5CFF 0%, #5B6CFF 100%);
  --yellow-grad: linear-gradient(180deg, #FFE45C 0%, #FFC21A 60%, #FFAE00 100%);
  --shadow: 0 6px 18px rgba(98, 66, 214, .10), 0 1px 3px rgba(98, 66, 214, .06);
  --shadow-lg: 0 16px 34px rgba(98, 66, 214, .20);
  --display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
}
body {
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 100% 0%, #E9E0FF 0%, rgba(233, 224, 255, 0) 60%),
    radial-gradient(800px 700px at 0% 100%, #E6DCFF 0%, rgba(230, 220, 255, 0) 60%),
    linear-gradient(180deg, #F6F3FF 0%, #F1ECFF 100%);
  background-attachment: fixed;
}
body::before, body::after { display: none; }

/* ---------- Shell ---------- */
.app { padding: 18px 20px; }
.shell { max-width: 1480px; }
.main { padding: 2px 0 28px 22px; gap: 22px; }
.cols { gap: 20px; flex-wrap: nowrap; }
.col-main { flex: 1 1 auto; gap: 22px; }
.col-side { flex: 0 0 300px; gap: 16px; }

/* ---------- Brand ---------- */
.brand { padding: 0 6px; }
.brand__mark { width: 46px; height: 46px; border-radius: 15px; background: linear-gradient(140deg, #B07CFF, #7046FF 60%, #5B2BE0); box-shadow: inset 0 -3px 0 rgba(40, 10, 120, .25), inset 0 2px 0 rgba(255, 255, 255, .35), 0 8px 16px rgba(112, 70, 255, .35); }
.brand__name { font-family: var(--display); font-size: 27px; font-weight: 800; letter-spacing: -.2px; color: #2B1E78; }
.brand__name span { background: linear-gradient(180deg, #FFC93C, #FF9500); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Sidebar ---------- */
.sidebar { flex-basis: 236px; padding: 8px 4px 20px 0; gap: 22px; }
.side-nav { gap: 4px; }
.side-nav__item { height: 48px; padding: 0 16px; gap: 14px; border-radius: 16px; font-size: 15.5px; font-weight: 800; color: #2B2363; }
.side-nav__item .icon { color: #3B2E86; }
.side-nav__item > .icon:last-child:not(:first-child) { margin-left: auto; width: 16px; color: var(--muted); }
.side-nav__item:hover { background: rgba(255, 255, 255, .8); color: var(--primary); box-shadow: var(--shadow); }
.side-nav__item.is-active { background: linear-gradient(100deg, #7046FF 0%, #9B5CFF 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 20px rgba(112, 70, 255, .38); }
.side-nav__item.is-active .icon { color: #fff; }

.member { position: relative; margin-top: 34px; padding: 50px 18px 18px; border-radius: 24px; color: #fff; background:
  radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .18) 0 2px, transparent 3px),
  radial-gradient(circle at 15% 60%, rgba(255, 255, 255, .15) 0 2px, transparent 3px),
  radial-gradient(circle at 70% 70%, rgba(255, 255, 255, .12) 0 1.5px, transparent 2.5px),
  var(--grad-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 16px 30px rgba(74, 31, 196, .35); display: flex; flex-direction: column; gap: 12px; }
.member__crown { position: absolute; left: 50%; top: -38px; width: 96px; transform: translateX(-50%); filter: drop-shadow(0 6px 8px rgba(40, 10, 120, .35)); }
.member__title { font-family: var(--display); font-size: 21px; line-height: 1.05; font-weight: 800; color: #fff; }
.member__title span { display: block; font-size: 26px; background: var(--yellow-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.member__list, .phone-promo ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; font-weight: 700; }
.member__list li, .phone-promo li { display: flex; align-items: center; gap: 8px; }
.member__list .icon, .phone-promo li .icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: #2BD47D; color: #fff; stroke-width: 3.4; }
.sidebar--compact .member, .sidebar--compact .side-nav__item > .icon:last-child:not(:first-child) { display: none; }

/* ---------- Buttons ---------- */
.btn--yellow { background: var(--yellow-grad); color: #2B1E50; font-weight: 900; border-radius: 999px; box-shadow: inset 0 -3px 0 rgba(214, 120, 0, .45), inset 0 2px 0 rgba(255, 255, 255, .6), 0 8px 18px rgba(255, 170, 0, .38); }
.btn--yellow:hover { background: var(--yellow-grad); color: #2B1E50; filter: brightness(1.05); transform: translateY(-1px); }
.btn--primary { background: var(--grad); box-shadow: inset 0 -2px 0 rgba(40, 10, 120, .25), 0 8px 18px rgba(112, 70, 255, .32); }
.section__link { font-size: 13px; color: var(--primary); }

/* ---------- Top bar ---------- */
.topbar { gap: 16px; }
.search { height: 54px; max-width: 560px; flex: 1 1 360px; border-radius: 27px; background: #fff; border: 2px solid #E6DEFF; box-shadow: 0 6px 16px rgba(98, 66, 214, .08); padding: 0 6px 0 20px; color: #3B2E86; }
.search:focus-within { border-color: #B9A2FF; box-shadow: 0 0 0 4px rgba(112, 70, 255, .15); }
.search input { font-size: 14px; font-weight: 600; }
.search__pad { display: flex; align-items: center; justify-content: center; width: 50px; height: 40px; border-radius: 14px; background: linear-gradient(180deg, #F2ECFF, #E4DAFF); color: var(--primary); box-shadow: inset 0 -2px 0 rgba(112, 70, 255, .15); flex-shrink: 0; }

.bell { position: relative; margin-left: auto; }
.bell > summary { list-style: none; }
.bell > summary::-webkit-details-marker { display: none; }
.bell__btn { position: relative; width: 50px; height: 50px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: #3B2E86; box-shadow: var(--shadow); cursor: pointer; }
.bell__btn .icon { --icon-fill: #FFF6D6; }
.bell__dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: linear-gradient(180deg, #FF6B6B, #F0384E); color: #fff; font-size: 10px; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.bell__menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 280px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bell__menu strong { font-size: 15px; }
.bell__menu a { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 14px; background: var(--primary-soft); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.bell__menu a .icon { color: var(--primary); }
.user-dd { margin-left: 0; }
.topbar__level { border-radius: 30px; padding: 5px 14px 5px 5px; background: #fff; box-shadow: var(--shadow); gap: 12px; min-width: 210px; }
.topbar__avatar { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #C9B6FF; font-size: 15px; }
.topbar__meta strong { font-size: 16px; font-weight: 900; }
.topbar__meta small { font-size: 12px; font-weight: 800; color: var(--muted); }
.topbar__meta small i { font-style: normal; color: #2BD47D; font-size: 10px; }
.topbar__meta .xp { color: #F08C00; }
.user-dd > summary > .icon { margin-left: auto; color: var(--ink); }

/* ---------- Section heads ---------- */
.section { gap: 14px; }
.section__head h1, .section__head h2 { font-size: 22px; font-weight: 900; color: var(--ink); letter-spacing: -.2px; gap: 10px; }
.h-ic { width: 34px; height: 34px; border-radius: 11px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15), inset 0 1px 0 rgba(255, 255, 255, .35); }
.h-ic--purple { background: linear-gradient(140deg, #A57CFF, #6A3DF0); }
.h-ic--blue { background: linear-gradient(140deg, #7CA2FF, #5163F5); }
.h-ic--fire { background: none; box-shadow: none; }
.section__head h2 .h-ic--fire .icon { color: #FF5A1F !important; --icon-fill: #FF8A3D; width: 30px; height: 30px; }

/* ---------- Hero slider ---------- */
.slider { border-radius: 28px; background: #7C4DFF; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .45), 0 18px 40px rgba(112, 70, 255, .30); }
.slider::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35); pointer-events: none; z-index: 3; }
.slider .hero { min-height: 330px; padding: 40px 56px 64px 72px; justify-content: center; background:
  radial-gradient(circle at 78% 30%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 45%),
  radial-gradient(circle at 10% 110%, rgba(90, 30, 220, .55), rgba(90, 30, 220, 0) 50%),
  linear-gradient(115deg, #6A35F2 0%, #8B4DFF 45%, #B678FF 100%); }
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 460px; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .4); font-size: 13px; font-weight: 800; backdrop-filter: blur(4px); }
.hero__badge .icon { color: #FFD43B; }
.hero__title { font-family: var(--display); font-size: clamp(36px, 4.2vw, 56px); font-weight: 800; line-height: .98; letter-spacing: -.5px; color: #fff; text-shadow: 0 3px 0 rgba(60, 20, 160, .45), 0 10px 24px rgba(40, 10, 120, .3); max-width: 480px; }
.hero__title span { display: block; font-size: 1.22em; background: linear-gradient(180deg, #FFF07A 10%, #FFC21A 60%, #FF9E00 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 3px 0 rgba(140, 60, 0, .45)); }
.hero p { margin: 0; max-width: 380px; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .95); line-height: 1.45; }
.hero .btn--yellow { height: 48px; padding: 0 26px; font-size: 16px; margin-top: 4px; }
.hero__img { width: 60%; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%); mask-image: linear-gradient(to right, transparent 0%, #000 30%); }
.hero--img::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(106, 53, 242, .92) 0%, rgba(106, 53, 242, .55) 42%, rgba(106, 53, 242, 0) 62%); pointer-events: none; }
.hero__art { position: absolute !important; right: 2%; top: 50%; width: 52%; max-width: 430px; transform: translateY(-50%); filter: drop-shadow(0 14px 18px rgba(40, 10, 120, .35)); animation: heroFloat 5s ease-in-out infinite; }
.hero__spark { position: absolute !important; left: 46%; top: 24px; width: 22px; opacity: .8; z-index: 2; }
@keyframes heroFloat { 50% { transform: translateY(calc(-50% - 8px)); } }
.slider__arrow { position: absolute; top: 50%; z-index: 4; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(40, 10, 120, .3); }
.slider__arrow:hover { transform: scale(1.08); }
.slider__arrow--prev { left: 16px; }
.slider__arrow--next { right: 16px; }
.slider__nav { left: 50%; bottom: 16px; transform: translateX(-50%); padding: 3px 4px 3px 8px; background: rgba(40, 10, 120, .28); }
.slider__dot { width: 18px; height: 20px; }
.slider__dot::before { width: 8px; height: 8px; background: rgba(255, 255, 255, .6); }
.slider__dot[aria-current="true"]::before { width: 24px; background: #fff; }
.slider__btn { width: 26px; height: 26px; }
@media (prefers-reduced-motion: reduce) { .hero__art { animation: none; } }

/* ---------- Perks ---------- */
.perks { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.perk { padding: 10px; gap: 9px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); border: 1px solid #F1ECFF; }
.perk__ic { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14), inset 0 2px 0 rgba(255, 255, 255, .4), 0 6px 12px rgba(40, 20, 120, .16); }
.perk__ic .icon { stroke-width: 2.4; }
.perk strong { font-size: 13px; font-weight: 900; white-space: nowrap; }
.perk small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.perk--purple .perk__ic { background: linear-gradient(140deg, #B98CFF, #7046FF); }
.perk--blue .perk__ic { background: linear-gradient(140deg, #6FB6FF, #3D6BFF); }
.perk--green .perk__ic { background: linear-gradient(140deg, #5BE59A, #18A957); }
.perk--pink .perk__ic { background: linear-gradient(140deg, #E59BFF, #A346F0); }
.perk--orange .perk__ic { background: linear-gradient(140deg, #FFC05A, #FF8A1F); }

/* ---------- Category tiles ---------- */
.cat-strip { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.cat-chip { min-height: 128px; justify-content: center; padding: 14px 10px 12px; gap: 0; border-radius: 20px; background: linear-gradient(170deg, var(--g1), var(--g2)); color: var(--g2); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -4px 0 rgba(0, 0, 0, .14), 0 10px 20px color-mix(in srgb, var(--g2) 35%, transparent); }
.cat-chip::before { content: ''; position: absolute; left: 8px; right: 8px; top: 6px; height: 42%; border-radius: 16px 16px 40% 40%; background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); pointer-events: none; }
.cat-chip::after { width: 90px; height: 90px; right: -30px; bottom: -36px; background: rgba(255, 255, 255, .14); }
.cat-chip__ic { width: 56px; height: 56px; margin: 0 0 4px; }
.cat-art { width: 54px; height: 54px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .16)) drop-shadow(0 6px 8px rgba(0, 0, 0, .16)); }
.cat-chip strong { font-family: var(--display); font-size: 19px; line-height: 1.1; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .16); }
.cat-chip small { font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, .95); }
.cat-chip:hover { transform: translateY(-4px) rotate(-1deg); }

/* ---------- KPI strip ---------- */
.kpi-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); border: 1px solid #F1ECFF; }
.kpi__ic { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.kpi__ic .icon { width: 30px; height: 30px; stroke-width: 2.3; }
.kpi strong { display: block; font-family: var(--display); font-size: 21px; font-weight: 800; line-height: 1; }
.kpi small { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.kpi--purple .icon { color: #7046FF; --icon-fill: #E5DBFF; }
.kpi--blue .icon { color: #4F6BFF; --icon-fill: #DCE4FF; }
.kpi--yellow .icon { color: #F0A000; --icon-fill: #FFE68A; }
.kpi--pink .icon { color: #F0386B; --icon-fill: #FF8FAE; }
.kpi--violet .icon { color: #8B3CF0; --icon-fill: #EBDDFF; }

/* ---------- Soft panel around "Lanjutkan" + "Rekomendasi" ---------- */
.panel { display: flex; flex-direction: column; gap: 20px; padding: 18px; border-radius: 26px; background: rgba(255, 255, 255, .55); border: 1.5px solid rgba(255, 255, 255, .9); box-shadow: 0 10px 30px rgba(98, 66, 214, .08); }

.recent-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.recent-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.recent-item:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.recent-item .thumb { width: 62px; flex-shrink: 0; border-radius: 14px; }
.recent-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.recent-item__info strong { font-size: 14px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.recent-item__info small { font-size: 11px; font-weight: 700; color: var(--muted); }
.recent-item__play { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--grad-blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18), 0 6px 12px rgba(91, 108, 255, .4); }
.recent-item__play .icon { margin-left: 2px; }

.reco-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reco { position: relative; background: #fff; border-radius: 20px; padding: 8px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; transition: transform .15s ease, box-shadow .15s ease; }
.reco:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.reco__media { position: relative; aspect-ratio: 16 / 9; border-radius: 15px; overflow: hidden; background: var(--primary-soft); }
.reco__media img, .reco__media .thumb { width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; }
.reco__fav { position: absolute; z-index: 2; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(40, 10, 120, .2); }
.reco__fav[aria-pressed="true"] .icon { --icon-fill: #FF4D8D; color: #FF4D8D; }
.reco__body { display: flex; align-items: flex-end; gap: 8px; padding: 0 6px 4px; }
.reco__body > div { flex: 1; min-width: 0; }
.reco__body h3 { font-size: 15px; font-weight: 900; }
.reco__body h3 a { color: var(--ink); text-decoration: none; }
.reco__body h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.reco__meta { margin: 3px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.reco__meta b { color: var(--ink); }
.reco__btn { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 900; box-shadow: inset 0 -2px 0 rgba(40, 10, 120, .25), 0 6px 12px rgba(112, 70, 255, .35); }

/* ---------- Chips ---------- */
.chips { gap: 6px; }
.chip { height: 30px; padding: 0 14px; font-size: 12px; font-weight: 800; border-radius: 999px; background: #F3EEFF; color: var(--primary); box-shadow: none; border: 1px solid #E6DEFF; }
.chip:hover { color: var(--primary-dark); background: #fff; }
.chip.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 12px rgba(112, 70, 255, .3); }

/* ---------- Game cards (compact) ---------- */
.grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.grid--pop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.game-card { padding: 6px; gap: 6px; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid #F1ECFF; }
.game-card .thumb { aspect-ratio: 16 / 10; border-radius: 13px; }
.game-card__body { padding: 0 6px 6px; gap: 3px; }
.game-card__body h3 { font-size: 14px; font-weight: 900; line-height: 1.2; }
.game-card__meta { font-size: 12px; font-weight: 800; gap: 5px; color: var(--muted); }
.game-card__meta i { font-style: normal; font-size: 9px; color: var(--muted-2); }
.game-card__meta b { color: var(--ink); }
.star { color: #FFB400; }
.star--muted { color: #C2BBD9; }

/* ---------- Right column ---------- */
.side-panel { display: flex; flex-direction: column; gap: 12px; padding: 10px; border-radius: 26px; background: rgba(236, 229, 255, .75); border: 1.5px solid rgba(255, 255, 255, .8); }
.side-panel--top { background: linear-gradient(180deg, #E3D7FF 0%, #D6C4FF 100%); }
.hello { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.hello__avatar { width: 50px; height: 50px; border: 3px solid #fff; box-shadow: 0 0 0 2px #C9B6FF; color: var(--ink); font-size: 16px; }
.hello__text { display: flex; flex-direction: column; line-height: 1.25; }
.hello__text strong { font-size: 17px; font-weight: 900; }
.hello__text small { font-size: 12.5px; font-weight: 700; color: var(--muted); }

.missions { position: relative; padding: 14px 12px 0; border-radius: 22px; background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .25), transparent 40%), linear-gradient(165deg, #8C5CFF 0%, #6A3DF0 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 24px rgba(106, 61, 240, .3); color: #fff; overflow: hidden; }
.missions__head { display: flex; align-items: center; padding: 0 4px 10px; }
.missions__head h2 { flex: 1; font-size: 18px; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.missions__head .section__link { color: #fff; font-size: 12px; }
.missions__list { list-style: none; margin: 0; padding: 6px 10px; border-radius: 18px; background: #fff; box-shadow: 0 6px 14px rgba(40, 10, 120, .18); color: var(--ink); }
.missions__list li { display: grid; grid-template-columns: 34px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.missions__list li:last-child { border-bottom: 0; }
.mission__ic { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15); }
.mission__ic--purple { background: linear-gradient(140deg, #B98CFF, #7046FF); }
.mission__ic--yellow { background: linear-gradient(140deg, #FFD54A, #F0A000); }
.mission__ic--orange { background: linear-gradient(140deg, #FFB547, #FF7A1A); }
.mission__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mission__body strong { font-size: 12.5px; font-weight: 900; }
.mission__body .bar { height: 7px; background: #ECE6FF; }
.mission__body .bar__fill { background: linear-gradient(90deg, #9B6BFF, #6A3DF0); }
.mission__count { grid-column: 2; font-size: 11px; font-weight: 800; color: var(--muted); text-align: right; }
.xp-badge { grid-column: 3; grid-row: 1 / 3; padding: 4px 8px; border-radius: 999px; background: #FFF4D6; border: 1px solid #FFD98A; color: #D07800; font-size: 11px; font-weight: 900; white-space: nowrap; }
.xp-badge--hot { background: #FFE9E4; border-color: #FFC2B5; color: #EF4A2B; }
.missions__list li.is-done .mission__body strong { text-decoration: line-through; color: var(--muted); }
.missions__list li.is-done .xp-badge { background: #E2F9EC; border-color: #A8E9C4; color: #129C55; }
.missions__gift { display: block; width: 120px; margin: 4px auto -6px; filter: drop-shadow(0 6px 8px rgba(40, 10, 120, .3)); }

.side-card { padding: 14px 12px 10px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.side-card__title { display: flex; align-items: center; gap: 10px; font-size: 18px !important; font-weight: 900; line-height: 1.1; margin-bottom: 8px; }
.side-card__title small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.crown-ic { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #FFF3C4, #FFE08A); color: #E08A00; flex-shrink: 0; }
.crown-ic .icon { --icon-fill: #FFC21A; }
.top-list, .board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.top-list li + li, .board li + li { border-top: 1px solid var(--line); }
.top-list a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; color: var(--ink); text-decoration: none; border-radius: 12px; }
.top-list a:hover { background: var(--primary-soft); color: var(--ink); }
.top-list .thumb { width: 44px; border-radius: 11px; flex-shrink: 0; }
.top-list__t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; font-weight: 900; line-height: 1.25; }
.top-list__t small { font-size: 11.5px; font-weight: 700; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.top-list__t small b { color: var(--ink); }
.rank { position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; background: #F0EBFF; color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08); }
.rank .icon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); color: #E08A00; --icon-fill: #FFC21A; }
.rank--1 { background: linear-gradient(180deg, #FFE46B, #FFB300); color: #6B3F00; box-shadow: inset 0 -2px 0 rgba(160, 80, 0, .3), 0 4px 8px rgba(255, 170, 0, .4); }
.rank--2 { background: linear-gradient(180deg, #F1F3FA, #BCC3D8); color: #3E4560; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 4px 8px rgba(120, 130, 170, .3); }
.rank--3 { background: linear-gradient(180deg, #FFC28A, #F07B2E); color: #fff; box-shadow: inset 0 -2px 0 rgba(140, 50, 0, .3), 0 4px 8px rgba(240, 123, 46, .35); }
.board li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; }
.board .avatar { width: 40px; height: 40px; border: 2px solid #fff; box-shadow: 0 0 0 2px #E6DEFF; font-size: 13px; }
.board__info { display: flex; flex-direction: column; line-height: 1.25; }
.board__info strong { font-size: 14px; font-weight: 900; }
.board__info small { font-size: 12px; font-weight: 800; color: var(--muted); }
.board__more { display: flex; justify-content: center; padding: 8px 0 4px; }

.phone-promo { position: relative; overflow: hidden; padding: 18px; border-radius: 24px; color: #fff; display: flex; flex-direction: column; gap: 14px; background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .22), transparent 40%), var(--grad-deep); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 28px rgba(74, 31, 196, .32); }
.phone-promo__text { position: relative; z-index: 1; max-width: 62%; display: flex; flex-direction: column; gap: 12px; }
.phone-promo__text strong { font-family: var(--display); font-size: 22px; line-height: 1.05; font-weight: 800; }
.phone-promo__text strong span { display: block; background: var(--yellow-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phone-promo ul { font-size: 12px; }
.phone-promo__art { position: absolute; right: 6px; top: 16px; width: 104px; filter: drop-shadow(0 10px 14px rgba(20, 5, 80, .45)); }
.phone-promo .btn { position: relative; z-index: 1; height: 46px; font-size: 14px; }

/* ---------- Tournament banner ---------- */
.tourney { position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; padding: 18px 28px; border-radius: 26px; color: #fff; background:
  radial-gradient(circle at 70% 0%, rgba(255, 255, 255, .25), transparent 40%),
  linear-gradient(105deg, #5B2BE0 0%, #7C4DFF 45%, #A05CFF 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .3), 0 16px 34px rgba(91, 43, 224, .3); }
.tourney::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 70px); pointer-events: none; }
.tourney > * { position: relative; }
.tourney__trophy { width: 130px; flex-shrink: 0; margin: -6px 0 -14px; filter: drop-shadow(0 10px 12px rgba(30, 5, 100, .45)); }
.tourney__text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tourney__pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); font-size: 12px; font-weight: 800; }
.tourney__pill .icon { color: #FFD43B; }
.tourney h2 { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; line-height: 1; text-shadow: 0 3px 0 rgba(40, 10, 120, .4); }
.tourney h2 span { display: block; background: var(--yellow-grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 rgba(140, 60, 0, .4)); }
.tourney p { margin: 0; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .92); }
.tourney__btn { flex-shrink: 0; height: 46px; font-size: 14px; }
.tourney__art { width: 220px; flex-shrink: 0; margin: -10px -10px -20px 0; filter: drop-shadow(0 10px 12px rgba(30, 5, 100, .4)); }

/* ---------- Feature tiles ---------- */
.feature-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.feature { display: flex; align-items: center; gap: 10px; height: 100%; padding: 12px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); border: 1px solid #F1ECFF; color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.feature:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature strong { display: block; font-size: 13px; font-weight: 900; line-height: 1.2; }
.feature small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.feature__ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), inset 0 2px 0 rgba(255, 255, 255, .35), 0 6px 12px rgba(40, 20, 120, .15); }
.feature__ic .icon { stroke-width: 2.3; }
.feature__ic--purple { background: linear-gradient(140deg, #C38CFF, #8B3CF0); }
.feature__ic--orange { background: linear-gradient(140deg, #FFB85A, #FF7A1A); }
.feature__ic--violet { background: linear-gradient(140deg, #A9A0FF, #6A5BF5); }
.feature__ic--blue { background: linear-gradient(140deg, #7FB0FF, #4F6BFF); }
.feature__ic--green { background: linear-gradient(140deg, #5BE59A, #18A957); }
.feature__ic--yellow { background: linear-gradient(140deg, #FFE06A, #FFB000); }

/* ---------- Other pages ---------- */
.card { border-radius: 22px; }
.cat-tile { background: linear-gradient(160deg, var(--c), var(--s)); }
.site-footer { margin-top: auto; padding: 26px 28px 18px; border-radius: 24px; background: #fff; border: 1px solid #F1ECFF; box-shadow: var(--shadow); color: var(--muted); font-size: 14px; text-align: left; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.site-footer__logo { display: inline-block; }
.site-footer__logo img { display: block; width: 90%; height: auto; }
.site-footer__brand p { margin: 10px 0 0; max-width: 320px; font-weight: 600; line-height: 1.55; }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.site-footer__col h2 { margin: 0 0 4px; font-family: var(--display); font-size: 17px; font-weight: 800; color: var(--ink); }
.site-footer__col a { width: fit-content; color: var(--muted); font-weight: 700; text-decoration: none; transition: color .15s ease; }
.site-footer__col a:hover { color: var(--primary); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .cols { flex-wrap: wrap; }
  .col-main { flex-basis: 100%; }
  .col-side { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--pop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recent-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tourney__art { display: none; }
}
@media (max-width: 960px) {
  .app { padding: 0; }
  .main { padding: 16px 16px 112px; }
  .bell { margin-left: auto; }
  .topbar__level { min-width: 0; }
  .bottom-nav__item.is-active { background: var(--grad); }
}
@media (max-width: 760px) {
  .slider .hero { padding: 26px 22px 64px; min-height: 340px; justify-content: flex-end; }
  .hero__art { width: 62%; top: 8px; right: -6%; transform: none; animation: none; opacity: .95; }
  .hero__img { width: 100%; height: 62%; }
  .hero--img::before { background: linear-gradient(0deg, rgba(106, 53, 242, .95) 30%, rgba(106, 53, 242, 0) 70%); }
  .hero__content { max-width: none; }
  .slider__arrow { display: none; }
  .tourney { flex-direction: column; align-items: flex-start; padding: 20px; }
  .tourney__trophy { position: absolute; right: 10px; top: 10px; width: 80px; margin: 0; opacity: .9; }
  .reco-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 4px 18px 10px; scrollbar-width: none; }
  .reco-row::-webkit-scrollbar { display: none; }
  .reco { flex: 0 0 78%; scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perk { flex-direction: row; align-items: center; }
  .kpi-strip { display: flex; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .kpi-strip::-webkit-scrollbar { display: none; }
  .kpi { flex: 0 0 150px; }
  .cat-chip { flex: 0 0 112px; min-height: 118px; }
  .recent-list { grid-template-columns: 1fr; }
  .panel { padding: 14px; margin: 0 -4px; }
  .grid--pop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section__head h1, .section__head h2 { font-size: 19px; }
  .search__pad { display: none; }
  .site-footer { padding: 20px 18px 14px; }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .site-footer__bottom { flex-direction: column; }
  .topbar { gap: 10px; }
  .brand--mobile .brand__mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand--mobile .brand__name { font-size: 22px; }
  .bell__btn { width: 42px; height: 42px; }
  .topbar .btn--primary { height: 42px; padding: 0 16px; }
}

/* =========================================================
   Profile page (profil.php) — dark purple shell + light panel
   ========================================================= */
body.is-dark { background:
  radial-gradient(900px 500px at 70% -10%, rgba(180, 120, 255, .45), transparent 60%),
  radial-gradient(700px 600px at 0% 100%, rgba(120, 60, 255, .5), transparent 60%),
  linear-gradient(160deg, #2E1580 0%, #4A22C8 45%, #5E30E6 100%); background-attachment: fixed; }
.is-dark .brand__name { color: #fff; }
.is-dark .side-nav__item, .is-dark .side-nav__item .icon { color: #fff; }
.is-dark .side-nav__item > .icon:last-child:not(:first-child) { color: rgba(255, 255, 255, .75); }
.is-dark .side-nav__item:hover { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.is-dark .side-nav__item.is-active { background: linear-gradient(100deg, #8B5CFF 0%, #B57BFF 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 22px rgba(20, 5, 80, .4); }
.is-dark .member { background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .18) 0 2px, transparent 3px), linear-gradient(160deg, #5B2BE0 0%, #3A1A9E 100%); border: 1.5px solid rgba(255, 255, 255, .18); }
.is-dark .search { background: rgba(255, 255, 255, .92); border-color: rgba(255, 255, 255, .5); }
.is-dark .bell__btn { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .2); }
.is-dark .bell__btn .icon { --icon-fill: #FFD43B; color: #FFD43B; }
.is-dark .topbar__level { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); box-shadow: none; }
.is-dark .topbar__meta strong, .is-dark .user-dd > summary > .icon { color: #fff; }
.is-dark .topbar__meta small { color: rgba(255, 255, 255, .85); }
.is-dark .topbar__meta .xp { color: #FFD43B; }
.is-dark .site-footer { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); box-shadow: none; color: rgba(255, 255, 255, .75); }
.is-dark .site-footer__col h2 { color: #fff; }
.is-dark .site-footer__col a { color: rgba(255, 255, 255, .8); }
.is-dark .site-footer__col a:hover { color: #FFD43B; }
.is-dark .site-footer__bottom { border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .65); }

.pf { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: 34px; background:
  radial-gradient(600px 300px at 0% 100%, #E2D6FF, transparent 70%),
  linear-gradient(180deg, #EDE6FF 0%, #F4F0FF 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 24px 50px rgba(20, 5, 80, .35); }

.pf-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; min-height: 196px; padding: 28px 34px; border-radius: 26px; color: #fff; background:
  radial-gradient(circle at 78% 20%, rgba(255, 255, 255, .28), transparent 40%),
  radial-gradient(circle at 0% 120%, rgba(60, 20, 160, .6), transparent 50%),
  linear-gradient(110deg, #4A22C8 0%, #7C4DFF 50%, #B57BFF 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .4), 0 14px 30px rgba(91, 43, 224, .3); }
.pf-hero__avatar { position: relative; z-index: 1; flex-shrink: 0; width: 120px; height: 120px; border-radius: 32px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 44px; font-weight: 800; color: var(--ink); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .1), inset 0 3px 0 rgba(255, 255, 255, .5), 0 12px 24px rgba(30, 5, 100, .35); }
.pf-hero__edit { position: absolute; right: -8px; bottom: -8px; width: 36px; height: 36px; border-radius: 50%; background: #3A1A9E; border: 3px solid #fff; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(20, 5, 80, .4); }
/* Profile photo */
.avatar__img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.topbar__avatar, .avatar { overflow: hidden; }
.pf-photo { position: relative; z-index: 1; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
label.pf-hero__avatar { cursor: pointer; transition: transform .15s ease, filter .15s ease; }
label.pf-hero__avatar:hover { transform: translateY(-2px); filter: brightness(1.05); }
.pf-photo input:focus-visible + label.pf-hero__avatar { outline: 3px solid #FFD84D; outline-offset: 4px; }
.pf-photo.is-busy label.pf-hero__avatar { opacity: .6; pointer-events: none; }
.pf-photo__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-photo__actions form { display: contents; }
.pf-photo__actions small { font-size: 12px !important; color: rgba(255, 255, 255, .78) !important; }
.pf-photo__btn { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 800; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 5px 12px; }
.pf-photo__btn:hover { background: rgba(255, 255, 255, .26); }
.pf-photo__btn--rm:hover { background: rgba(255, 90, 120, .45); }
.pf-hero__info { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pf-hero__info h1 { font-family: var(--display); font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; line-height: 1; text-shadow: 0 3px 0 rgba(40, 10, 120, .4); }
.pf-hero__meta { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .92); }
.pf-hero__level { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.pf-hero__level strong { font-family: var(--display); font-size: 20px; font-weight: 800; white-space: nowrap; background: var(--yellow-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(140, 60, 0, .4)); }
.pf-bar { flex: 0 1 290px; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .35); box-shadow: inset 0 1px 2px rgba(20, 5, 80, .3); overflow: hidden; }
.pf-bar span { display: block; height: 100%; border-radius: 6px; background: var(--yellow-grad); box-shadow: inset 0 -2px 0 rgba(200, 110, 0, .4); }
.pf-hero__info small { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .92); }
.pf-hero__art { position: absolute; right: 10px; top: 50%; width: 46%; max-width: 440px; transform: translateY(-50%); filter: drop-shadow(0 12px 16px rgba(30, 5, 100, .4)); }

.pf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pf-stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); border: 1px solid #F1ECFF; }
.pf-stat strong { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1; }
.pf-stat small { display: block; font-size: 13.5px; font-weight: 700; color: #4A4277; margin-top: 3px; }
.pf-stat__ic { width: 50px; height: 50px; flex-shrink: 0; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), inset 0 2px 0 rgba(255, 255, 255, .35), 0 8px 14px rgba(40, 20, 120, .18); }
.pf-stat__ic .icon { stroke-width: 2.3; }
.pf-stat__ic--orange { background: linear-gradient(140deg, #FFC05A, #FF7A1A); }
.pf-stat__ic--blue { background: linear-gradient(140deg, #6FB6FF, #3D6BFF); }
.pf-stat__ic--green { background: linear-gradient(140deg, #5BE59A, #18A957); }
.pf-stat__ic--purple { background: linear-gradient(140deg, #C38CFF, #8B3CF0); }

.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.pf-fav { grid-column: 1; }
.pf-records { grid-column: 2; grid-row: 1 / 3; }
.pf-row { grid-column: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pf-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 24px; background: rgba(255, 255, 255, .72); border: 1.5px solid #fff; box-shadow: var(--shadow); }
.pf-records, .pf-row .pf-card { background: #fff; }
.pf-card .section__head h2, .pf-title { font-size: 20px !important; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.pf-ic { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15), inset 0 1px 0 rgba(255, 255, 255, .35); }
.section__head h2 .pf-ic .icon { width: 18px; height: 18px; padding: 0; background: none; color: #fff; }
.pf-ic--pink { background: linear-gradient(140deg, #FF8FB8, #F0386B); }
.pf-ic--gold { background: linear-gradient(140deg, #FFE06A, #F0A000); }
.pf-ic--violet { background: linear-gradient(140deg, #A9A0FF, #6A3DF0); }
.pf-ic--orange { background: linear-gradient(140deg, #FFB085, #F0602E); }
.pf-ic .icon { color: #fff; }
.pf-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px; border-radius: 18px; background: #fff; border: 2px dashed #E2D8FF; text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.pf-empty .icon { color: #FF4D8D; }
.pf-empty strong { color: var(--ink); font-size: 16px; }
.pf-empty .btn { margin-top: 6px; }

.pf-records__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-records__list a { display: flex; align-items: center; gap: 12px; padding: 7px 6px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.pf-records__list a:hover { background: var(--primary-soft); color: var(--ink); }
.pf-records__list .thumb { width: 44px; border-radius: 12px; flex-shrink: 0; box-shadow: 0 3px 8px rgba(40, 20, 120, .15); }
.pf-records__t { flex: 1; min-width: 0; font-size: 14px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-records__list b { font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; }

.pf-act { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pf-act li { display: flex; align-items: center; gap: 12px; }
.pf-act__ic { width: 46px; height: 40px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15), 0 4px 10px rgba(40, 20, 120, .15); }
.pf-act__ic--orange { background: linear-gradient(140deg, #FFD45A, #FF9A1F); color: #3A2470; }
.pf-act__ic--blue { background: linear-gradient(140deg, #8FD3FF, #3D9BFF); }
.pf-act__ic--purple { background: linear-gradient(140deg, #C38CFF, #8B3CF0); }
.pf-act__t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; font-weight: 700; line-height: 1.3; }
.pf-act__t a { color: var(--ink); font-weight: 900; text-decoration: none; }
.pf-act__t a:hover { color: var(--primary); }
.pf-act__t small { font-size: 12px; font-weight: 700; color: var(--muted); }
.pf-act__ago { flex-shrink: 0; padding: 4px 10px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 900; white-space: nowrap; }

.pf-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; }
.pf-badge { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pf-badge img { width: 84px; height: 88px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(40, 20, 120, .25)); transition: transform .2s ease; }
.pf-badge:hover img { transform: translateY(-3px) rotate(-3deg); }
.pf-badge strong { font-size: 14px; font-weight: 900; }
.pf-badge small { font-size: 11px; font-weight: 700; color: var(--muted); }
.pf-badge.is-locked img { filter: grayscale(1) opacity(.45); }
.pf-badge.is-locked strong { color: var(--muted); }

@media (max-width: 1280px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-records { grid-column: 1; grid-row: auto; }
}
@media (max-width: 960px) {
  .pf { padding: 12px; border-radius: 26px; }
  .pf-hero__art { opacity: .35; width: 70%; }
}
@media (max-width: 760px) {
  .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-row { grid-template-columns: 1fr; }
  .pf-hero { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
  .pf-hero__avatar { width: 88px; height: 88px; border-radius: 24px; font-size: 32px; }
  .pf-bar { flex: 1 1 auto; }
  .pf-hero__level { width: 100%; }
}
@media (max-width: 420px) {
  .pf-stat { padding: 12px; gap: 10px; }
  .pf-stat__ic { width: 40px; height: 40px; border-radius: 12px; }
  .pf-stat strong { font-size: 21px; }
  .pf-stat small { font-size: 12px; }
}

/* =========================================================
   Game page (game.php) — dark shell, light panel, glowing player
   Decorative images live in assets/img/ui/*.png (sources in src/).
   ========================================================= */
.gp-shell { gap: 14px; }
.gp-shell .game-head { gap: 12px; }
.gp-back { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.gp-back:hover { color: var(--primary-dark); transform: translateX(-2px); }
.gp-shell .crumbs { font-size: 16px; font-weight: 800; color: var(--ink); gap: 10px; }
.gp-shell .crumbs a { color: var(--ink); }
.gp-shell .crumbs [aria-current] { color: #F08C00; }

.gp { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.gp-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gp-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.gp .player { border-radius: 26px; background: radial-gradient(circle at 70% 20%, #7C4DFF, #2E1580 70%); border: 3px solid rgba(255, 255, 255, .7); box-shadow: 0 0 0 4px rgba(140, 92, 255, .45), 0 0 34px rgba(140, 92, 255, .55), 0 20px 40px rgba(40, 10, 120, .35); }
.gp .player__loading { background: radial-gradient(circle at 70% 20%, #8B5CFF, #3A1A9E 75%); }
.gp .player__start h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 48px); text-shadow: 0 4px 0 rgba(40, 10, 120, .45); }
.gp .player__start img { filter: drop-shadow(0 10px 14px rgba(20, 5, 80, .45)); }
.gp .loader__bar { background: var(--yellow-grad); }

.gp .toolbar { gap: 10px; }
.gp .ctl { height: 44px; padding: 0 16px; gap: 8px; border: 1px solid #EEE7FF; border-radius: 14px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 900; box-shadow: var(--shadow); }
.gp .ctl .icon { color: #3B2E86; }
.gp .ctl:hover { background: #fff; color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.gp .ctl[aria-pressed="true"] { color: #E0336A; border-color: #FFD0DD; background: #FFF1F5; }
.gp .ctl[aria-pressed="true"] .icon { color: #E0336A; --icon-fill: #FF4D8D; }

.gp-info { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.gp-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid #F1ECFF; box-shadow: var(--shadow); }
.gp-title { display: flex; align-items: center; gap: 10px; font-size: 20px !important; font-weight: 900; line-height: 1.15; }
.gp-title img { flex-shrink: 0; filter: drop-shadow(0 3px 4px rgba(40, 20, 120, .2)); }
.gp-about p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #3A3366; font-weight: 600; }
.gp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; font-size: 13px; font-weight: 900; border: 1px solid transparent; }
.gp-tag--orange { background: #FFEEDF; color: #C2410C; border-color: #FFD9B8; }
.gp-tag--blue { background: #EAEFFF; color: #3341C9; border-color: #D3DCFF; }
.gp-tag--green { background: #E3F8EC; color: #0E7A45; border-color: #BDEBD0; }
.gp-tag--purple { background: #F0EAFF; color: #6A3DF0; border-color: #DCCFFF; }

.gp-howto { background: linear-gradient(180deg, #FFF8E4, #FFF2D2); border-color: #FFE4A6; }
.gp-keys { display: flex; flex-direction: column; gap: 9px; }
.gp-keys__row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: #3A3366; }
.gp-keys__k { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.gp kbd { min-width: 34px; height: 32px; padding: 0 9px; border-radius: 10px; background: #fff; border: 1px solid #EEE4CC; border-bottom: 3px solid #E6D8B4; box-shadow: 0 3px 6px rgba(150, 110, 20, .12); font-family: system-ui, 'Segoe UI', sans-serif; font-size: 13px; font-weight: 800; color: var(--ink); }
.gp-tip { margin: auto 0 0; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: #FFEDBF; font-size: 12px; font-weight: 700; color: #6B5320; line-height: 1.45; }
.gp-tip img { flex-shrink: 0; }

.gp-kpis { display: grid; grid-template-columns: 1.3fr 1fr 1fr; align-items: center; padding: 14px 10px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .25), transparent 50%), linear-gradient(140deg, #8B5CFF 0%, #6A3DF0 55%, #5B2BE0 100%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), 0 12px 26px rgba(91, 43, 224, .35); text-align: center; }
.gp-kpis > div { display: flex; flex-direction: column; align-items: center; }
.gp-kpis > div + div { border-left: 1px solid rgba(255, 255, 255, .3); }
.gp-kpis strong { font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1; text-shadow: 0 2px 0 rgba(40, 10, 120, .35); }
.gp-kpis span { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .9); margin-top: 4px; }
.gp-kpis__rating { position: relative; height: 96px; justify-content: center; }
.gp-kpis__rating img { position: absolute; left: 50%; top: 50%; width: 118px; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 3px 4px rgba(40, 10, 120, .35)); }
.gp-kpis__rating strong { position: relative; font-size: 32px; margin-top: -14px; }

.gp-best { position: relative; overflow: hidden; padding: 16px 18px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 90% 60%, rgba(255, 255, 255, .22), transparent 40%), linear-gradient(140deg, #7C4DFF 0%, #5B2BE0 100%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), 0 12px 26px rgba(91, 43, 224, .35); }
.gp-best h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 900; }
.gp-best h2 .star { font-size: 22px; filter: drop-shadow(0 2px 0 rgba(140, 60, 0, .4)); }
.gp-best__row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.gp-best__row img { filter: drop-shadow(0 5px 6px rgba(20, 5, 80, .4)); }
.gp-best__row strong { display: block; font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; }
.gp-best__row small { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .9); }
.gp-best__badge { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) rotate(8deg); filter: drop-shadow(0 8px 10px rgba(20, 5, 80, .4)); }

.gp-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gp-board li { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border-radius: 14px; }
.gp-board li.is-me, .gp-board li:first-child { background: linear-gradient(90deg, #FFF3D0, #FFF8E8); }
.gp-board strong { flex: 1; min-width: 0; font-size: 15px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-board b { font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.gp-board__rank { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; background: #F0EBFF; color: var(--ink); }
.gp-board__rank--1 { background: var(--yellow-grad); color: #5A3500; box-shadow: inset 0 -2px 0 rgba(200, 110, 0, .35); }
.gp-board__rank--2 { background: linear-gradient(180deg, #F1F3FA, #BCC3D8); color: #3E4560; }
.gp-board__rank--3 { background: linear-gradient(180deg, #FFC28A, #F07B2E); color: #fff; }
.gp-board .avatar { border: 2px solid #fff; box-shadow: 0 0 0 2px #FFD9A8; }

.gp-related { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gp-related a { display: flex; align-items: center; gap: 12px; padding: 7px 4px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.gp-related a:hover { background: var(--primary-soft); color: var(--ink); }
.gp-related .thumb { width: 62px; border-radius: 13px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(40, 20, 120, .18); }
.gp-related__t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 15px; font-weight: 900; line-height: 1.25; }
.gp-related__t small { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.gp-related__t small b { color: var(--ink); }
.gp-related__play { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); box-shadow: inset 0 -2px 0 rgba(40, 10, 120, .25), 0 6px 12px rgba(112, 70, 255, .35); }
.gp-related__play .icon { margin-left: 2px; }
.gp-related a:hover .gp-related__play { transform: scale(1.08); }

@media (max-width: 1180px) {
  .gp { grid-template-columns: 1fr; }
  .gp-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
}
@media (max-width: 760px) {
  .gp-info { grid-template-columns: 1fr; }
  .gp .ctl { padding: 0 12px; font-size: 13px; }
  .gp-shell .crumbs { font-size: 14px; }
}
@media (max-width: 480px) {
  .gp .toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp .toolbar__spacer { display: none; }
  .gp-best__badge { width: 60px; height: 60px; }
}

/* =========================================================
   "Game populer" tab (index.php?tab=populer)
   Images: assets/img/ui/banner-populer.png, flame.png
   ========================================================= */
.pop-page { gap: 18px; }
.pop-head h1 { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 900; letter-spacing: -.2px; }
.pop-head h1 img { filter: drop-shadow(0 4px 6px rgba(255, 90, 31, .35)); }
.pop-head p { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }

.pop-banner .hero { min-height: 262px; padding-top: 28px; padding-bottom: 50px; }
.pop-banner .hero__title { font-size: clamp(32px, 3.6vw, 48px); }
.pop-banner .hero__content { gap: 10px; }
.pop-slide { background:
  radial-gradient(circle at 72% 35%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 40%),
  radial-gradient(circle at 10% 110%, rgba(90, 30, 220, .55), rgba(90, 30, 220, 0) 50%),
  linear-gradient(110deg, #5B2BE0 0%, #8B4DFF 50%, #B678FF 100%) !important; }
.pop-slide__art { position: absolute !important; right: 3%; bottom: 0; width: 56%; max-width: 520px; height: auto; z-index: 1; filter: drop-shadow(0 12px 18px rgba(30, 5, 100, .35)); }
.pop-banner .hero__content { max-width: 420px; }
.pop-banner .hero__badge { background: rgba(80, 30, 200, .45); border-color: rgba(255, 255, 255, .3); }
.pop-banner .hero p .star { color: #FFD43B; }

.pop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pop-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 6px; border-radius: 20px; background: #fff; border: 1px solid #F1ECFF; box-shadow: 0 8px 20px rgba(98, 66, 214, .12), 0 1px 3px rgba(98, 66, 214, .06); transition: transform .15s ease, box-shadow .15s ease; }
.pop-card:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(98, 66, 214, .22); }
.pop-card__media { position: relative; }
.pop-card__media .thumb { aspect-ratio: 4 / 3; border-radius: 15px; }
.pop-card__media .thumb img { transition: transform .3s ease; }
.pop-card:hover .pop-card__media .thumb img { transform: scale(1.05); }
.pop-card .soon { left: 8px; right: auto; top: 8px; }
.pop-card__fav { position: absolute; z-index: 2; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .92); color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(40, 10, 120, .2); }
.pop-card__fav:hover { transform: scale(1.1); }
.pop-card__fav[aria-pressed="true"] .icon { color: #FF4D8D; --icon-fill: #FF4D8D; }
.pop-card__body { display: flex; align-items: center; gap: 8px; padding: 2px 6px 8px 8px; }
.pop-card__body > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pop-card h3 { font-size: 14px; font-weight: 900; line-height: 1.2; }
.pop-card h3 a { color: var(--ink); text-decoration: none; }
.pop-card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
.pop-card__meta { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--muted); }
.pop-card__meta b { color: var(--ink); margin-right: 6px; }
.pop-card__meta .icon { color: var(--muted); }
.pop-card__play { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); box-shadow: inset 0 -2px 0 rgba(40, 10, 120, .25), 0 6px 12px rgba(112, 70, 255, .35); }
.pop-card__play .icon { margin-left: 2px; }
.pop-card:hover .pop-card__play { transform: scale(1.08); }

@media (max-width: 1100px) { .pop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pop-slide__art { width: 80%; right: -6%; bottom: auto; top: 0; opacity: .9; }
  .pop-banner .hero { min-height: 340px; }
}
@media (max-width: 600px) {
  .pop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pop-card h3 { font-size: 13.5px; }
  .pop-card__play { width: 32px; height: 32px; }
}

/* =========================================================
   "Semua Kategori" tab (index.php?tab=kategori)
   Images: assets/img/ui/cat-*.png, kategori-badge.png, banner-kategori.png
   ========================================================= */
.kat-page { gap: 18px; }
.kat-head { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; min-height: 112px; padding: 20px 24px; border-radius: 24px; color: #fff; background:
  radial-gradient(circle at 80% 0%, rgba(200, 150, 255, .45), transparent 45%),
  linear-gradient(100deg, #3A1A9E 0%, #5B2BE0 50%, #8B4DFF 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 14px 30px rgba(74, 31, 196, .3); }
.kat-head > * { position: relative; z-index: 1; }
.kat-head__badge { flex-shrink: 0; filter: drop-shadow(0 6px 10px rgba(20, 5, 80, .4)); }
.kat-head h1 { font-family: var(--display); font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; line-height: 1.05; text-shadow: 0 3px 0 rgba(30, 5, 100, .4); }
.kat-head p { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .9); }
.kat-head__art { position: absolute !important; z-index: 0 !important; right: 0; bottom: 0; height: 100%; width: auto; max-width: 60%; object-fit: contain; object-position: right bottom; pointer-events: none; }

.kat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kat-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 196px; padding: 18px 20px; border-radius: 24px; color: #fff; text-decoration: none; background:
  radial-gradient(120% 70% at 100% 100%, rgba(255, 255, 255, .16) 0 40%, transparent 41%),
  radial-gradient(90% 60% at 0% 110%, rgba(0, 0, 0, .12) 0 50%, transparent 51%),
  linear-gradient(165deg, var(--g1) 0%, var(--g2) 100%);
  border: 3px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -5px 0 rgba(0, 0, 0, .12), 0 12px 24px color-mix(in srgb, var(--g2) 40%, transparent), 0 0 18px color-mix(in srgb, var(--g1) 45%, transparent);
  transition: transform .18s ease, box-shadow .18s ease; }
.kat-card::before { content: ''; position: absolute; left: 10px; right: 10px; top: 8px; height: 40%; border-radius: 18px 18px 50% 50%; background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0)); pointer-events: none; }
.kat-card:hover { color: #fff; transform: translateY(-6px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -5px 0 rgba(0, 0, 0, .12), 0 20px 34px color-mix(in srgb, var(--g2) 50%, transparent), 0 0 26px color-mix(in srgb, var(--g1) 60%, transparent); }
.kat-card__img { position: absolute; left: 50%; top: 10px; width: 104px; height: 104px; transform: translateX(-50%); transition: transform .25s ease; }
.kat-card:hover .kat-card__img { transform: translateX(-50%) scale(1.08) rotate(-4deg); }
.kat-card strong { position: relative; font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1.05; text-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.kat-card small { position: relative; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .92); margin-top: 2px; }
.kat-card__go { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--g2); box-shadow: 0 6px 12px rgba(0, 0, 0, .18); }
.kat-card__go .icon { stroke-width: 3; }
.kat-card:hover .kat-card__go { transform: translateX(3px); }

/* Beranda: 6 kategori dalam satu baris, ukuran menyesuaikan lebar (tanpa scroll) */
.kat-row-wrap { container-type: inline-size; }
.kat-grid.kat-grid--row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 1.6cqi, 14px); }
.kat-grid--row .kat-card { min-height: clamp(84px, 19cqi, 160px); padding: clamp(6px, 1.4cqi, 14px); border-width: 2px; border-radius: clamp(12px, 2.4cqi, 22px); }
.kat-grid--row .kat-card__img { width: clamp(34px, 9cqi, 84px); height: clamp(34px, 9cqi, 84px); top: clamp(4px, 1cqi, 10px); }
.kat-grid--row .kat-card strong { font-size: clamp(11px, 2.3cqi, 21px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kat-grid--row .kat-card small { font-size: clamp(9px, 1.2cqi, 12px); }
.kat-grid--row .kat-card__go { width: clamp(22px, 3cqi, 30px); height: clamp(22px, 3cqi, 30px); right: clamp(6px, 1.2cqi, 12px); bottom: clamp(6px, 1.2cqi, 12px); }
.kat-grid--row .kat-card__go .icon { width: 60%; height: 60%; }
.kat-grid--row .kat-card:hover { transform: translateY(-4px); }
@container (max-width: 720px) {
  .kat-grid--row .kat-card { align-items: center; text-align: center; }
  .kat-grid--row .kat-card__go { display: none; }
}
@container (max-width: 420px) {
  .kat-grid--row .kat-card small { display: none; }
}

@media (max-width: 1100px) { .kat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kat-head__art { opacity: .5; width: 75%; } }
@media (max-width: 600px) {
  .kat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kat-grid.kat-grid--row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kat-grid--row .kat-card { min-height: 132px; padding: 12px; }
  .kat-grid--row .kat-card__img { width: 60px; height: 60px; top: 8px; }
  .kat-grid--row .kat-card strong { font-size: 16px; }
  .kat-grid--row .kat-card small { display: block; font-size: 11px; }
  .kat-card { min-height: 170px; padding: 14px; border-radius: 20px; }
  .kat-card__img { width: 84px; height: 84px; }
  .kat-card strong { font-size: 22px; }
  .kat-card__go { width: 32px; height: 32px; right: 12px; bottom: 12px; }
  .kat-head { padding: 16px; }
  .kat-head__badge { width: 46px; height: 46px; }
}

/* Illustrations are PNGs now (assets/img/ui); keep their aspect ratio. */
.hero__art, .hero__spark, .missions__gift, .phone-promo__art, .tourney__trophy, .tourney__art, .pf-hero__art { height: auto; }

/* =========================================================
   Inbox (inbox.php) — pesan pemain ke admin
   ========================================================= */
.side-nav__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #FF6B6B, #F0384E); color: #fff; font-size: 11px; font-weight: 900; line-height: 1; font-style: normal; }
.sidebar--compact .side-nav__item { position: relative; }
.sidebar--compact .side-nav__badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
.user-dd__menu .side-nav__badge { margin-left: auto; }

.ib { max-width: 860px; }
.ib-head { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-radius: 26px; color: #fff; background: linear-gradient(120deg, #6A3DF0 0%, #8B5CFF 55%, #B57BFF 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 26px rgba(40, 10, 140, .3); }
.ib-head__ic { width: 54px; height: 54px; border-radius: 17px; background: rgba(255, 255, 255, .2); }
.ib-head h1 { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.05; text-shadow: 0 3px 0 rgba(40, 10, 120, .35); }
.ib-head p { margin: 4px 0 0; font-size: 14.5px; font-weight: 700; color: rgba(255, 255, 255, .92); }
.ib-card { background: #fff; gap: 16px; }

.ib-thread { list-style: none; margin: 0; padding: 4px 4px 8px; display: flex; flex-direction: column; gap: 14px; max-height: 58vh; overflow-y: auto; overscroll-behavior: contain; }
.ib-msg { max-width: min(78%, 560px); display: flex; flex-direction: column; gap: 4px; }
.ib-msg--me { align-self: flex-end; align-items: flex-end; }
.ib-msg--admin { align-self: flex-start; }
.ib-msg__who { font-size: 12px; font-weight: 900; color: var(--muted); padding: 0 6px; }
.ib-msg__body { padding: 11px 15px; border-radius: 18px; font-size: 14.5px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.ib-msg--me .ib-msg__body { background: var(--grad); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 6px 14px rgba(112, 70, 255, .25); }
.ib-msg--admin .ib-msg__body { background: var(--primary-soft); color: var(--ink); border-bottom-left-radius: 6px; border: 1px solid #E2D8FF; }
.ib-msg__time { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 0 6px; }

.ib-form { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1.5px solid var(--line); }
.ib-form textarea { width: 100%; min-height: 92px; resize: vertical; padding: 12px 14px; border-radius: 16px; border: 1.5px solid #E2D8FF; background: #FBF9FF; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); }
.ib-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(112, 70, 255, .15); background: #fff; }
.ib-form__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ib-form__row small { font-size: 12px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.ib-form .btn[disabled] { opacity: .6; pointer-events: none; }

@media (max-width: 600px) {
  .ib-head { padding: 18px; gap: 12px; align-items: flex-start; }
  .ib-head__ic { width: 44px; height: 44px; border-radius: 14px; }
  .ib-msg { max-width: 88%; }
  .ib-thread { max-height: 52vh; }
}
/* ---------- papan skor: tab minggu / bulan / sepanjang masa ---------- */
.lb-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #F3EEFF; }
.lb-tab { flex: 1; min-width: 0; height: 34px; padding: 0 6px; border: 0; border-radius: 10px; background: transparent; color: var(--primary); font: inherit; font-size: 12.5px; font-weight: 900; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-tab:hover { background: rgba(255, 255, 255, .7); }
.lb-tab[aria-selected="true"] { background: var(--grad); color: #fff; box-shadow: 0 6px 12px rgba(112, 70, 255, .3); }
.lb-tab:focus-visible { outline: 3px solid rgba(112, 70, 255, .45); outline-offset: 2px; }
.lb-panel { display: flex; flex-direction: column; gap: 10px; }
.lb-panel[hidden] { display: none; }
.gp-board li.gp-board__me { margin-top: 4px; border-top: 2px dashed #F1E2B8; border-radius: 0 0 14px 14px; }
.lb-more { align-self: flex-start; font-size: 13px; }

.lb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lb-pick { display: flex; align-items: center; gap: 10px; }
.lb-pick label { font-weight: 900; color: var(--muted); font-size: 14px; }
.lb-pick select { height: 42px; min-width: 220px; max-width: 100%; padding: 0 14px; border-radius: 14px; border: 1.5px solid #E2D8FF; background: #fff; font: inherit; font-weight: 800; color: var(--ink); }
.lb-pick select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(112, 70, 255, .15); }
.lb-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 12px; }
.lb-head__game .thumb { width: 56px; height: 56px; border-radius: 14px; }
.lb-head__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lb-head__info strong { font-size: 18px; font-weight: 900; }
.lb-head__info small { color: var(--muted); font-weight: 700; font-size: 13px; }
.lb-me { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 16px; border-radius: 14px; background: linear-gradient(90deg, #FFF3D0, #FFF8E8); font-weight: 700; font-size: 14px; }
.lb-me b { color: var(--primary); }
.lb-list li.is-me { background: linear-gradient(90deg, #FFF3D0, #FFF8E8); }
.lb-you { font-style: normal; font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 999px; background: var(--grad); color: #fff; vertical-align: middle; }

@media (max-width: 600px) {
  .lb-pick, .lb-pick select { width: 100%; min-width: 0; }
  .lb-head { flex-wrap: wrap; }
  .lb-head .btn { width: 100%; justify-content: center; }
  .lb-list li { padding: 12px; gap: 10px; }
}
.lb-promo { margin: 14px 0 18px; text-decoration: none; color: inherit; }
.lb-promo:hover { box-shadow: 0 10px 24px rgba(112, 70, 255, .18); }
@media (max-width: 600px) { .lb-promo .btn { width: 100%; justify-content: center; } }
