/* =========================================================
   HompimPlay — portal game browser
   ========================================================= */
:root {
  --bg: #EEF2F9;
  --panel: #FFFFFF;
  --soft: #F7F9FD;
  --ink: #14183A;
  --muted: #5B6180;
  --muted-2: #7A809C;
  --line: #E6EAF3;
  --primary: #3D6BFF;
  --primary-dark: #2449D8;
  --primary-soft: #EEF3FF;
  --orange: #FF6B2C;
  --star: #FF9F1C;
  --green: #16A06F;
  --purple: #8B5CF6;
  --red: #F0384E;
  --shadow: 0 6px 18px rgba(40, 60, 120, .07);
  --shadow-lg: 0 16px 32px rgba(40, 60, 120, .14);
  --radius: 24px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
/* Line icons are PNG masks (assets/img/icons): last <i> = outline in `color`, .icon__fill = inside in `--icon-fill`. */
.icon { display: inline-grid; flex-shrink: 0; width: var(--s, 20px); height: var(--s, 20px); }
.icon > i { grid-area: 1 / 1; min-width: 0; min-height: 0; background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.icon > .icon__fill { background: var(--icon-fill, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }

/* ---------- Shell ---------- */
.app { min-height: 100vh; padding: 24px; }
.shell { max-width: 1440px; min-height: calc(100vh - 48px); margin: 0 auto; background: var(--panel); border-radius: 32px; box-shadow: 0 24px 60px rgba(40, 60, 120, .10); display: flex; }
.main { flex: 1; min-width: 0; background: var(--soft); border-radius: 0 32px 32px 0; padding: 24px 28px 32px; display: flex; flex-direction: column; gap: 26px; }

/* ---------- Sidebar ---------- */
.sidebar { flex: 0 0 236px; position: sticky; top: 24px; align-self: flex-start; height: calc(100vh - 48px); padding: 28px 18px; border-right: 1px solid #EEF1F7; display: flex; flex-direction: column; gap: 26px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 0 8px; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 40px; height: 40px; border-radius: 13px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.brand__name { font-weight: 800; font-size: 21px; letter-spacing: -.4px; }
.brand__name span { color: var(--primary); }
.brand--mobile { display: none; padding: 0; }
.brand__logo { display: block; width: 100%; max-width: 225px; height: auto; margin: 0 auto; }
.sidebar .brand__mark { display: none; }
.brand--mobile .brand__logo { width: auto; height: 52px; }

.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav__title { font-size: 12px; font-weight: 600; color: var(--muted-2); padding: 0 14px 6px; }
.side-nav__item { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.side-nav__item:hover { background: #F1F4FB; color: var(--ink); }
.side-nav__item.is-active { background: var(--primary-soft); color: var(--primary); }

.challenge { margin-top: auto; background: var(--primary-soft); border-radius: 22px; padding: 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.challenge__icon { width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--orange); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(61, 107, 255, .18); margin-bottom: 4px; }
.challenge strong { font-size: 15px; }
.challenge__text, .challenge__count { font-size: 13px; color: var(--muted); }
.challenge__count { font-size: 12px; font-weight: 600; }
.bar { width: 100%; height: 8px; border-radius: 4px; background: #D9E3FF; overflow: hidden; display: block; }
.bar__fill { display: block; height: 100%; background: var(--primary); border-radius: 4px; transition: width .4s ease; }
.bar--light { background: #EEF1F7; }

/* compact sidebar (game page) */
.sidebar--compact { flex-basis: 88px; padding: 24px 0; align-items: center; }
.sidebar--compact .brand { padding: 0; }
.sidebar--compact .brand__mark { display: flex; }
.sidebar--compact .brand__logo { display: none; }
.sidebar--compact .brand__name, .sidebar--compact .side-nav__title, .sidebar--compact .side-nav__item span, .sidebar--compact .challenge { display: none; }
.sidebar--compact .side-nav__item { width: 48px; height: 48px; padding: 0; justify-content: center; }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; gap: 14px; }
.search { flex: 1 1 260px; max-width: 460px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; height: 48px; color: var(--muted-2); }
.search:focus-within { border-color: var(--primary); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--ink); }
.search input::placeholder { color: var(--muted-2); }
.topbar__level { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.topbar__avatar { width: 40px; height: 40px; border-radius: 12px; background: #FFB547; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.topbar__meta { display: flex; flex-direction: column; line-height: 1.25; }
.topbar__meta strong { font-size: 14px; }
.topbar__meta small { font-size: 12px; color: var(--muted); }

/* ---------- Layout columns ---------- */
.cols { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }
.col-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.col-side { flex: 1 1 290px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.section { display: flex; flex-direction: column; gap: 16px; }
.section__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.section__head h1, .section__head h2 { flex: 1; font-size: 22px; font-weight: 800; }
.section__link { font-size: 14px; font-weight: 700; text-decoration: none; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card h2 { font-size: 18px; font-weight: 800; }

/* ---------- Buttons & chips ---------- */
.btn { height: 48px; padding: 0 22px; border-radius: 16px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { color: var(--primary-dark); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; height: 44px; font-size: 14px; border-radius: 14px; }
.btn--dark:hover { color: #fff; background: #262B5C; }
.btn--soft { background: var(--primary-soft); color: var(--primary); height: 36px; padding: 0 14px; font-size: 12px; border-radius: 11px; }
.btn--ghost { width: 48px; padding: 0; background: rgba(255, 255, 255, .2); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .3); }
.btn--ghost[aria-pressed="true"] { background: #fff; color: var(--red); }

.ctl { height: 44px; min-width: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.ctl:hover { background: #F1F4FB; color: var(--ink); }
.ctl[aria-pressed="true"] { color: var(--red); border-color: #FFD0D7; background: #FFF1F3; }
.ctl[aria-pressed="true"] .icon { --icon-fill: currentColor; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.chip:hover { color: var(--ink); border-color: #CDD5E6; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip small { opacity: .7; font-size: 11px; }

/* ---------- Thumbnail ---------- */
.thumb { position: relative; display: block; overflow: hidden; background: var(--c, #C8B5FF); border-radius: 16px; aspect-ratio: 4 / 3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__a { position: absolute; right: -14%; top: -18%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--s); }
.thumb__b { position: absolute; left: 9%; bottom: -14%; width: 40%; aspect-ratio: 1; border-radius: 26%; background: var(--t); transform: rotate(18deg); }
.thumb__i { position: absolute; right: 9%; bottom: 8%; font-weight: 800; font-size: clamp(20px, 4.6vw, 44px); line-height: 1; color: var(--ink); }
.thumb--sq { aspect-ratio: 1; }
.thumb--sm .thumb__i { font-size: 22px; }
.thumb--xs .thumb__i { font-size: 15px; right: 50%; bottom: 50%; transform: translate(50%, 50%); }
.thumb--xs .thumb__b { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--primary); color: #fff; border-radius: 28px; padding: 34px; min-height: 300px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.hero > * { position: relative; }
.hero__deco { position: absolute !important; pointer-events: none; }
.hero__deco--1 { right: -40px; top: -60px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.hero__deco--2 { right: 150px; top: 46px; width: 120px; height: 120px; border-radius: 50%; background: #FF8A3D; }
.hero__deco--3 { right: 60px; top: 90px; width: 110px; height: 110px; border-radius: 28px; background: #FFD84D; transform: rotate(16deg); }
.hero__deco--4 { right: 200px; top: 150px; width: 64px; height: 64px; border-radius: 50%; border: 10px solid #fff; }
.hero__badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { background: rgba(255, 255, 255, .2); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.hero h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; letter-spacing: -1px; max-width: 440px; }
.hero p { margin: 0; max-width: 420px; font-size: 15px; line-height: 1.55; }
.hero__actions { display: flex; gap: 10px; margin-top: 6px; }

/* ---------- Banner slideshow ---------- */
.slider { position: relative; overflow: hidden; border-radius: 28px; background: var(--primary); isolation: isolate; }
.slider__track { display: flex; transition: transform .55s cubic-bezier(.22, .8, .24, 1); touch-action: pan-y; }
.slider .hero { flex: 0 0 100%; border-radius: 0; background: var(--bg, var(--primary)); padding-bottom: 72px; }
.slider .hero__deco--2 { background: var(--a1, #FF8A3D); }
.slider .hero__deco--3 { background: var(--a2, #FFD84D); }
.hero__title { font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; letter-spacing: -1px; max-width: 460px; line-height: 1.05; }
.hero__img { position: absolute !important; right: 0; top: 0; width: 58%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent, #000 38%); mask-image: linear-gradient(to right, transparent, #000 38%); }
.hero--img .hero__deco--2, .hero--img .hero__deco--3, .hero--img .hero__deco--4 { display: none; }
.hero--img .pill { background: rgba(20, 24, 58, .6); }
.slider__nav { position: absolute; left: 34px; bottom: 22px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(20, 24, 58, .28); backdrop-filter: blur(6px); }
.slider__btn { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; }
.slider__btn:hover { background: rgba(255, 255, 255, .2); }
.slider__btn[aria-pressed="true"] { background: #fff; color: var(--ink); }
.slider__dots { display: flex; gap: 4px; padding: 0 4px; }
.slider__dot { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.slider__dot::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .55); transition: width .25s ease, background .25s ease; }
.slider__dot[aria-current="true"]::before { width: 22px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .slider__track { transition: none; } }

/* ---------- Section heading icons ---------- */
.section__head h2 { display: flex; align-items: center; gap: 10px; }
.section__head h2 .icon { width: 36px; height: 36px; padding: 7px; border-radius: 12px; background: #FFF1E8; color: var(--orange); }

/* ---------- Perks strip ---------- */
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.perk { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.perk__ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; }
.perk strong { display: block; font-size: 14px; line-height: 1.25; }
.perk small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.perk--orange .perk__ic { background: var(--orange); }
.perk--blue .perk__ic { background: var(--primary); }
.perk--green .perk__ic { background: var(--green); }
.perk--purple .perk__ic { background: var(--purple); }

/* ---------- Category strip ---------- */
.cat-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.cat-chip { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 14px 14px; border-radius: 20px; background: var(--c); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.cat-chip::after { content: ''; position: absolute; right: -22px; bottom: -22px; width: 74px; height: 74px; border-radius: 50%; background: var(--s); opacity: .7; }
.cat-chip:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-chip__ic { position: relative; z-index: 1; width: 46px; height: 46px; margin-bottom: 10px; border-radius: 15px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--ink); box-shadow: 0 6px 14px rgba(20, 24, 58, .1); }
.cat-chip strong, .cat-chip small { position: relative; z-index: 1; }
.cat-chip strong { font-size: 15px; }
.cat-chip small { font-size: 12px; font-weight: 600; color: #3A3F5E; }
.cat-tile__ic { position: relative; width: 52px; height: 52px; margin-bottom: auto; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(20, 24, 58, .1); }
.cat-tile { gap: 4px; min-height: 160px; }

/* ---------- Game pilihan (spotlight) ---------- */
.spot-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.spot { position: relative; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.spot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.spot__media { position: relative; aspect-ratio: 16 / 9; background: var(--soft); }
.spot__media img { width: 100%; height: 100%; object-fit: cover; }
.spot__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--c); color: var(--ink); }
.spot__cat { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: 0 4px 10px rgba(20, 24, 58, .15); }
.spot__cat .icon { color: var(--ink); }
.spot__body { display: flex; align-items: center; gap: 12px; padding: 14px 16px 16px; }
.spot__body > div { flex: 1; min-width: 0; }
.spot__body h3 { font-size: 17px; font-weight: 800; }
.spot__body h3 a { color: var(--ink); text-decoration: none; }
.spot__body h3 a::after { content: ''; position: absolute; inset: 0; }
.spot__body p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spot__play { position: relative; width: 46px; height: 46px; flex-shrink: 0; border-radius: 16px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(61, 107, 255, .3); }
.spot:hover .spot__play { background: var(--primary-dark); }

/* ---------- Promo illustration ---------- */
.promo__art { width: 100%; max-width: 240px; height: auto; margin-bottom: 8px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { border-radius: 18px; padding: 16px; display: flex; align-items: center; gap: 12px; }
.stat__icon { width: 44px; height: 44px; border-radius: 13px; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat strong { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat--orange { background: #FFF1E8; } .stat--orange .stat__icon { background: var(--orange); }
.stat--blue { background: #EAF0FF; } .stat--blue .stat__icon { background: var(--primary); }
.stat--green { background: #E7F8EF; } .stat--green .stat__icon { background: var(--green); }
.stat--purple { background: #F2EBFF; } .stat--purple .stat__icon { background: var(--purple); }

/* ---------- Game grid / cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 18px; }
.game-card { position: relative; background: #fff; border-radius: 22px; padding: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: transform .15s ease, box-shadow .15s ease; }
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.game-card__media { position: relative; }
.game-card__tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 5px; }
.tag-dark { background: rgba(20, 24, 58, .78); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 8px; }
.game-card__body { padding: 0 6px; display: flex; flex-direction: column; gap: 3px; }
.game-card__body h3 { font-size: 16px; font-weight: 700; }
.game-card__body h3 a { color: var(--ink); text-decoration: none; }
.game-card__body h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 22px; }
.game-card__cat { font-size: 12px; color: var(--muted); }
.game-card__meta { padding: 0 6px; display: flex; gap: 14px; font-size: 12px; font-weight: 600; color: var(--muted); }
.game-card__cta { position: relative; z-index: 1; height: 40px; border-radius: 12px; border: 1.5px solid #D6E0FF; background: #fff; color: var(--primary); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.game-card:hover .game-card__cta { background: var(--primary); border-color: var(--primary); color: #fff; }
.star { color: var(--star); }
.soon { position: absolute; right: 10px; top: 10px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 8px; }

/* ---------- Continue playing ---------- */
.recent-row { background: #fff; border-radius: 22px; padding: 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.recent-row .thumb { width: 84px; flex-shrink: 0; }
.recent-row__info { flex: 1 1 160px; display: flex; flex-direction: column; gap: 4px; }
.recent-row__info strong { font-size: 17px; }
.recent-row__info span { font-size: 13px; color: var(--muted); }
.badge-soft { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 8px; }

/* ---------- New releases ---------- */
.new-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.new-item { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 12px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.new-item:hover { color: var(--ink); box-shadow: var(--shadow-lg); }
.new-item .thumb { width: 80px; flex-shrink: 0; }
.new-item small { display: block; font-size: 11px; font-weight: 800; color: var(--primary); letter-spacing: .4px; text-transform: uppercase; }
.new-item strong { display: block; font-size: 15px; }
.new-item span { font-size: 13px; color: var(--muted); }

/* ---------- Side widgets ---------- */
.rank-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rank-list a { display: flex; align-items: center; gap: 12px; padding: 6px; margin: 0 -6px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.rank-list a:hover { background: #F4F6FB; color: var(--ink); }
.rank-list .thumb { width: 42px; border-radius: 12px; }
.rank-list__n { width: 20px; font-weight: 800; color: var(--muted-2); }
.rank-list li:nth-child(-n+3) .rank-list__n { color: var(--orange); }
.rank-list__t { flex: 1; font-weight: 600; font-size: 14px; }
.rank-list__p { font-size: 12px; font-weight: 600; color: var(--muted); }

.cat-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.cat-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--soft); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.cat-list a:hover { background: var(--primary-soft); color: var(--primary); }
.cat-list .dot { width: 12px; height: 12px; border-radius: 4px; }
.cat-list span:nth-child(2) { flex: 1; }
.cat-list small { color: var(--muted); font-weight: 600; }

.promo { background: #7CE3A6; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.promo strong { font-size: 18px; line-height: 1.25; }
.promo span { font-size: 13px; color: #1F4D37; }

/* ---------- Category page ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cat-tile { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; min-height: 130px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: var(--ink); background: var(--c); }
.cat-tile::before { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: var(--s); }
.cat-tile strong, .cat-tile span { position: relative; }
.cat-tile strong { font-size: 20px; }
.cat-tile span { font-size: 13px; font-weight: 600; }
.cat-tile:hover { color: var(--ink); transform: translateY(-3px); }

.empty { background: #fff; border: 2px dashed var(--line); border-radius: 22px; padding: 36px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty strong { color: var(--ink); font-size: 17px; }

/* ---------- Game page ---------- */
.crumbs { flex: 1 1 200px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--muted-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs [aria-current] { color: var(--ink); }
.game-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.player { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 28px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--ink); }
.player__start { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 24px; }
.player__start h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; }
.player__start .btn { height: 60px; padding: 0 34px; font-size: 17px; border-radius: 18px; box-shadow: 0 10px 30px rgba(20, 24, 58, .25); }
.player__start small { font-size: 13px; font-weight: 600; }
.player__deco { position: absolute; pointer-events: none; }
.player__deco--1 { left: -70px; bottom: -110px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.player__deco--2 { right: 7%; top: 12%; width: 130px; height: 130px; border-radius: 32px; background: #FFD84D; transform: rotate(16deg); }
.player__deco--3 { right: 18%; top: 30%; width: 110px; height: 110px; border-radius: 50%; background: #FF8A3D; }
.player__deco--4 { left: 8%; top: 12%; width: 60px; height: 60px; border-radius: 50%; border: 10px solid #fff; }
.player:fullscreen { border-radius: 0; aspect-ratio: auto; }
.player__loading { position: absolute; inset: 0; z-index: 2; background: var(--primary); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: opacity .3s ease; }
.player__loading.is-done { opacity: 0; pointer-events: none; }
/* Phone play mode (app.js): a cover to start it, then the player fills the whole screen. */
.player__go { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: 0; padding: 0; background: rgba(20, 8, 60, .62); color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.player__go-icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #FFD84D; box-shadow: 0 8px 0 #E0A800, 0 14px 30px rgba(20, 8, 60, .45); }
.player__go-icon img, .player__go-icon svg { margin-left: 4px; }
/* Header bar in phone play mode: game name + close button; the game sits below it, so nothing covers the game. */
.player__bar { position: absolute; z-index: 4; inset: 0 0 auto; height: calc(46px + env(safe-area-inset-top)); display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: env(safe-area-inset-top) 10px 0 16px; background: #1A0B4D; color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .14); }
.player__bar strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 800; }
.player__close { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 14px;
  font-weight: 800; cursor: pointer; }
.player.is-immersive, .gp .player.is-immersive { position: fixed; inset: 0; z-index: 1000; width: 100%; height: 100vh; height: 100dvh;
  aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; background: #1A0B4D; }
.player.is-immersive iframe { top: calc(46px + env(safe-area-inset-top)); height: calc(100% - 46px - env(safe-area-inset-top)); }
.hp-immersive, .hp-immersive body { overflow: hidden; overscroll-behavior: none; }
.loader { width: min(260px, 70%); height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .25); overflow: hidden; position: relative; }
.loader__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 5px; background: #fff; transition: width .25s ease; }
.loader__bar.is-indeterminate { width: 40%; animation: loaderSlide 1.1s ease-in-out infinite; }
@keyframes loaderSlide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .loader__bar.is-indeterminate { animation: none; width: 60%; } }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar__spacer { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; z-index: 60; box-shadow: var(--shadow-lg); }

.info-row { display: flex; flex-wrap: wrap; gap: 18px; }
.info-main { flex: 2 1 340px; display: flex; flex-direction: column; gap: 12px; }
.info-main h2 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.info-main p { margin: 0; font-size: 15px; line-height: 1.65; color: #4A5070; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 6px 12px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.tag--orange { background: #FFF1E8; color: #C2410C; }
.tag--blue { background: #EAF0FF; color: var(--primary-dark); }
.tag--green { background: #E7F8EF; color: #0E7A55; }
.tag--purple { background: #F2EBFF; color: #6D3FE0; }
.howto { flex: 1 1 240px; background: #FFF6E5; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.howto h2 { font-size: 17px; font-weight: 800; }
.howto__row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #4A5070; }
.howto p { margin: 0; font-size: 13px; color: var(--muted); }
kbd { display: inline-flex; min-width: 32px; height: 32px; padding: 0 9px; align-items: center; justify-content: center; border-radius: 9px; background: #fff; border: 1px solid #DCE2EE; border-bottom-width: 3px; font: inherit; font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; }
.kpis strong { display: block; font-size: 22px; font-weight: 800; }
.kpis span { font-size: 12px; color: var(--muted); }
.best { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.best__icon { width: 52px; height: 52px; border-radius: 16px; background: #FFF1E8; color: var(--orange); display: flex; align-items: center; justify-content: center; }
.best strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.best span { font-size: 13px; color: var(--muted); }

/* ---------- Accounts: header, people, profile ---------- */
.btn--sm { height: 44px; padding: 0 18px; font-size: 14px; border-radius: 14px; }
.btn--block { width: 100%; }
.topbar__level { text-decoration: none; color: var(--ink); }
a.topbar__level:hover { color: var(--ink); border-color: #CDD5E6; }
.topbar__avatar { font-weight: 800; font-size: 14px; }
.topbar__logout { margin: 0; }
.topbar__level--guest + .btn { margin-left: 0; }

.card__head { display: flex; align-items: center; gap: 10px; }
.card__head h2 { flex: 1; }
.card__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.card .btn--block { margin-top: 14px; }
.badge-green { font-size: 12px; font-weight: 700; color: #0E7A55; background: #E7F8EF; padding: 4px 10px; border-radius: 999px; }

.avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800; font-size: 14px; color: var(--ink); }
.avatar--sm { width: 36px; height: 36px; font-size: 12px; }
.avatar--xl { width: 96px; height: 96px; border-radius: 30px; font-size: 34px; }

.people { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.people li { display: flex; align-items: center; gap: 12px; }
.people__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.people__info strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people__info small { font-size: 12px; color: var(--muted); }
.people__rank { width: 20px; font-weight: 800; color: var(--muted-2); }
.people__rank.is-top { color: var(--orange); }
.people__score { font-weight: 700; font-size: 13px; color: #4A5070; font-variant-numeric: tabular-nums; }
.people--board { gap: 10px; }

.profile { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.profile__info { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.profile__info h1 { font-size: 26px; font-weight: 800; }
.profile__info > span { color: var(--muted); font-size: 14px; }
.profile__level { margin-top: 10px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; max-width: 420px; }
.profile__level small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }

/* ---------- Login / register ---------- */
.auth-body { background: var(--bg); }
.auth { min-height: 100vh; max-width: 1080px; margin: 0 auto; padding: 24px; display: flex; gap: 0; align-items: stretch; }
.auth__art { flex: 1 1 0; position: relative; overflow: hidden; background: var(--primary); color: #fff; border-radius: 32px 0 0 32px; padding: 44px; display: flex; align-items: flex-end; min-height: 560px; }
.auth__shape { position: absolute; }
.auth__shape--1 { right: 18%; top: 16%; width: 150px; height: 150px; border-radius: 50%; background: #FF8A3D; }
.auth__shape--2 { right: 8%; top: 30%; width: 140px; height: 140px; border-radius: 36px; background: #FFD84D; transform: rotate(16deg); }
.auth__shape--3 { left: 14%; top: 22%; width: 74px; height: 74px; border-radius: 50%; border: 12px solid #fff; }
.auth__art-text { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.auth__art-text strong { font-size: 32px; line-height: 1.15; letter-spacing: -.5px; }
.auth__art-text span { font-size: 15px; line-height: 1.55; }
.auth__panel { flex: 1 1 0; background: #fff; border-radius: 0 32px 32px 0; box-shadow: 0 24px 60px rgba(40, 60, 120, .10); padding: 40px 48px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.auth__panel .brand { padding: 0; align-self: flex-start; }
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Country flags (emoji; the Noto Color Emoji web font draws them on Windows too) */
.flag { display: inline-block; font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif; font-weight: 400; font-size: 1em; line-height: 1; vertical-align: -0.08em; letter-spacing: 0; }
.flag--lg { font-size: .7em; vertical-align: .08em; text-shadow: none; }
.field select { height: 50px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--soft); font: inherit; font-size: 15px; width: 100%; color: var(--ink); }
.field select:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.pf-country { position: relative; z-index: 2; align-self: flex-start; }
.pf-country > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; 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-country > summary::-webkit-details-marker { display: none; }
.pf-country > summary:hover { background: rgba(255, 255, 255, .26); }
.pf-country__form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pf-country__form select { height: 38px; min-width: 0; flex: 1 1 200px; max-width: 280px; padding: 0 10px; border-radius: 12px; border: 0; font: inherit; font-size: 14px; font-weight: 700; color: #2B1E6B; background: #fff; }

/* ID / EN language switch (top bar and login/register) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px rgba(98, 66, 214, .12); flex-shrink: 0; }
.topbar .lang-switch { margin-left: auto; }
.topbar .lang-switch + .bell { margin-left: 0; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 34px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .3px; color: #6B5FA8; text-decoration: none; }
.lang-switch a:hover { color: #3B2E86; background: #F2ECFF; }
.lang-switch a.is-active { background: linear-gradient(180deg, #7C5CFF, #5B3BE8); color: #fff; }
.lang-switch a:focus-visible { outline: 3px solid rgba(112, 70, 255, .45); outline-offset: 1px; }
.auth .lang-switch { border: 1px solid var(--line); box-shadow: none; }
@media (max-width: 600px) {
  /* Phones: one small button that switches to the other language, beside the search box. */
  .topbar .lang-switch { order: 4; margin-left: 0; padding: 3px; align-self: center; }
  .topbar .lang-switch + .bell { margin-left: auto; }
  .topbar .lang-switch ~ .search, .topbar .search { flex: 1 1 calc(100% - 56px); min-width: 0; }
  .topbar .lang-switch a.is-active { display: none; }
  .topbar .lang-switch a { min-width: 36px; height: 36px; padding: 0 6px; font-size: 12px; }
}
.auth__head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.auth__head p { margin: 6px 0 0; color: var(--muted); }
.auth__switch { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.auth__switch a { font-weight: 700; }

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; }
.field input { height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--soft); font-size: 15px; width: 100%; }
.field input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.field small { font-size: 12px; color: var(--muted); }
.field__pw { position: relative; }
.field__pw input { padding-right: 120px; }
.field__toggle { position: absolute; right: 6px; top: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: #fff; color: var(--primary); font-weight: 700; font-size: 13px; }
.alert { border-radius: 14px; padding: 12px 16px; font-size: 14px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert--error { background: #FFF1F3; color: #B4233A; border: 1px solid #FFD0D7; }

/* ---------- Admin ---------- */
.muted { color: var(--muted); font-weight: 600; font-size: .7em; }
.side-nav__title--gap { margin-top: 16px; }
.side-nav__back { margin-top: auto; }
.alert--ok { background: #E7F8EF; color: #0E6B4A; border: 1px solid #BFEBD3; }
.alert--warn { background: #FFF6E5; color: #8A4B00; border: 1px solid #FFE1A8; }
.alert--warn a { color: inherit; font-weight: 700; }
.card--flush { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.card .table-wrap { margin-top: 12px; }
.card--flush .table-wrap { margin-top: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 12px 16px; background: var(--soft); white-space: nowrap; }
.table td { padding: 12px 16px; border-top: 1px solid #EEF1F7; vertical-align: middle; }
.table td:not(:first-child) { white-space: nowrap; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table__game { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.table__game .thumb { width: 44px; border-radius: 12px; flex-shrink: 0; }
.table__game strong { display: block; font-size: 14px; }
.table__game small { color: var(--muted); font-size: 12px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions form { margin: 0; }
.row-actions .ctl { height: 38px; min-width: 38px; padding: 0 10px; white-space: nowrap; }
.ctl--danger { color: #B4233A; }
.ctl--danger:hover { background: #FFF1F3; color: #B4233A; }
.btn--danger { background: #D92D45; color: #fff; }
.btn--danger:hover { background: #B4233A; color: #fff; }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status--published { background: #E7F8EF; color: #0E7A55; }
.status--draft { background: #F1F3F8; color: #4A5070; }
.status--admin { background: #F2EBFF; color: #6D3FE0; }
.status--user { background: #EAF0FF; color: var(--primary-dark); }
.search--inline { flex: 0 0 auto; max-width: 420px; width: 100%; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; }
.pager .muted { font-size: 13px; }

.admin-form .card { display: flex; flex-direction: column; gap: 16px; }
.admin-form .col-main, .admin-form .col-side { gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.field textarea { padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--soft); font-size: 15px; width: 100%; resize: vertical; line-height: 1.5; }
.field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.field input[readonly] { color: var(--muted); background: #EEF1F7; }
.field input[type="color"] { padding: 4px; height: 46px; cursor: pointer; }
.field input[type="file"] { height: auto; padding: 10px; }
.field code { background: #EEF1F7; padding: 1px 6px; border-radius: 6px; font-size: 12px; }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { font-size: 13px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.checks { display: flex; gap: 10px 18px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 32px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.thumb-preview { max-width: 240px; }
.danger { border: 1px solid #FFD0D7; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.danger h2 { color: #B4233A; }

/* ---------- Footer & bottom nav ---------- */
.site-footer { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--muted-2); }
.bottom-nav { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__deco--2, .hero__deco--4 { display: none; }
}
@media (max-width: 960px) {
  .app { padding: 0; }
  .shell { border-radius: 0; min-height: 100vh; }
  .sidebar { display: none; }
  .main { border-radius: 0; padding: 16px 16px 112px; gap: 22px; }
  .brand--mobile { display: flex; }
  .topbar { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .bottom-nav { display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); height: 70px; padding: 0 6px; background: #fff; border-radius: 24px; box-shadow: 0 12px 30px rgba(40, 60, 120, .18); justify-content: space-around; align-items: center; }
  .bottom-nav__item { height: 52px; min-width: 0; flex: 1 1 0; padding: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--muted-2); text-decoration: none; font-size: 13px; font-weight: 700; }
  .bottom-nav__item--home { display: none; }
  .bottom-nav__item > span:not(.icon) { display: none; }
  .bottom-nav__item.is-active { background: var(--primary); color: #fff; }
  .toast { bottom: 100px; }
}
@media (max-width: 820px) {
  .auth { padding: 0; }
  .auth__art { display: none; }
  .auth__panel { border-radius: 0; box-shadow: none; padding: 28px 20px; justify-content: flex-start; }
}
@media (max-width: 1180px) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .perks { gap: 10px; }
  .perk { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .perk__ic { width: 38px; height: 38px; border-radius: 12px; }
  .cat-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; }
  .cat-strip::-webkit-scrollbar { display: none; }
  .cat-chip { flex: 0 0 118px; scroll-snap-align: start; }
  .spot-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .spot-row::-webkit-scrollbar { display: none; }
  .spot { flex: 0 0 82%; scroll-snap-align: start; }
  .section__head h2 .icon { width: 32px; height: 32px; padding: 6px; }
}
@media (max-width: 600px) {
  .topbar__level--guest, .topbar__level .topbar__meta { display: none; }
  .topbar__level--guest + .btn { margin-left: auto; }
  .topbar__level { padding: 4px; }
  .profile { justify-content: center; text-align: center; }
  .profile__level { margin: 10px auto 0; }
  .hero { padding: 22px; min-height: 250px; border-radius: 24px; justify-content: flex-end; }
  .hero__deco--1 { width: 200px; height: 200px; }
  .hero__deco--3 { right: 20px; top: 22px; width: 76px; height: 76px; border-radius: 20px; }
  .hero p { display: none; }
  .slider { border-radius: 24px; }
  .slider .hero { padding-bottom: 70px; min-height: 290px; }
  .slider__nav { left: 50%; transform: translateX(-50%); bottom: 14px; }
  .slider .hero.hero--img { min-height: 380px; }
  .hero__img { width: 100%; height: 58%; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px; gap: 10px; }
  .stat__icon { width: 38px; height: 38px; }
  .stat strong { font-size: 19px; }
  .stat span { font-size: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-card { padding: 8px; gap: 8px; border-radius: 18px; }
  .game-card__body h3 { font-size: 14px; }
  .game-card__meta { gap: 8px; }
  .game-card__tags .tag-dark:nth-child(n+2) { display: none; }
  .topbar__meta small { display: none; }
  .player { aspect-ratio: 4 / 3; border-radius: 22px; }
  .player__deco--2, .player__deco--3 { opacity: .6; }
  .recent-row { gap: 12px; }
  .recent-row .thumb { width: 64px; }
  .recent-row .btn--dark { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
