/* Original PeekGames sidebar and catalog layout on the GameMonetize storefront. */
:root { --peek-sidebar-width: 204px; --peek-header-height: 64px; }
body.cg-body { min-height: 100dvh; }
#header.cg-header { padding: 0 !important; background: #24142f; border-bottom: 1px solid #6b3e81; pointer-events: auto; }
#header.cg-header .cg-header__inner { display: flex !important; align-items: center; gap: 14px; max-width: none; height: var(--peek-header-height); border: 0; border-radius: 0; padding-inline: 16px; box-shadow: none; }
#header .cg-header__menu { display: inline-flex !important; flex: 0 0 38px; margin: 0; color: #fcf8ff; }
#header .cg-header__menu:hover { background: #ffffff21; }
#header .cg-header__side { display: flex; align-items: center; gap: 12px; min-width: 0; }
#header .cg-header__side--start { flex: 1 1 auto; }
#header .cg-header__side--end { flex: 0 0 auto; justify-content: flex-end; }
#header .cg-logo--header { flex-shrink: 0; }
#header .cg-logo__word { max-width: none; white-space: nowrap; }
#header.cg-header .cg-header__inner .cg-logo--header .cg-logo__word { max-width: none; white-space: nowrap; font-size: 22px; line-height: 1; }
#header.cg-header .cg-header__inner .peek-logo-eyes { display: grid; place-items: center; flex: 0 0 37px; width: 37px; height: 37px; border: 1px solid #ffffff29; border-radius: 11px; background: #ffffff14; font: 23px/1 "Segoe UI Emoji", "Apple Color Emoji", sans-serif; }
#header .cg-search { flex: 1 1 460px; max-width: 460px; min-width: 0; margin-left: auto; }
#header .cg-nav, #header .cg-random { display: none; }
.peek-app-layout { display: grid; grid-template-columns: var(--peek-sidebar-width) minmax(0, 1fr); min-height: calc(100dvh - var(--peek-header-height)); }
.peek-workspace { display: flex; flex-direction: column; min-width: 0; }
.peek-workspace .cg-main { width: 100%; max-width: none; flex: 1; padding: 22px clamp(14px, 2.8vw, 40px) 42px; }
.peek-workspace .clover-main--wall .cg-wall { margin: 14px 0 0; }
.peek-workspace .clover-main--wall > .cg-wall { margin-top: 20px; }
.peek-category-sidebar { position: sticky; top: var(--peek-header-height); height: calc(100dvh - var(--peek-header-height)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #584167 transparent; border-right: 1px solid #382940; background: #1d1629; z-index: 20; }
.peek-category-sidebar nav { padding: 18px 12px; }
.peek-category-sidebar h2 { margin: 2px 10px 12px; font-size: .79rem; font-weight: 700; color: #ccc0dc; }
.peek-category-links { display: grid; gap: 2px; }
.peek-category-links a { display: flex; align-items: center; gap: 10px; min-height: 35px; padding: 6px 10px; border-radius: 7px; color: #eee5f7; font-size: .9rem; font-weight: 550; line-height: 1.25; }
.peek-category-links a i { width: 22px; flex: 0 0 22px; text-align: center; color: #cfabe7; }
.peek-category-links a:hover, .peek-sidebar-extra a:hover { background: #392642; }
.peek-category-links a[aria-current="page"] { background: #48265c; color: #f3daff; }
.peek-category-links a[aria-current="page"] i { color: #f3adff; }
.peek-sidebar-extra { display: grid; margin-top: 18px; padding-top: 12px; border-top: 1px solid #3d2b57; }
.peek-sidebar-extra a { padding: 6px 10px; border-radius: 7px; color: #d9c6e8; font-size: .86rem; }
.peek-sidebar-backdrop { display: none; }
body.peek-sidebar-collapsed { --peek-sidebar-width: 64px; }
body.peek-sidebar-collapsed .peek-category-sidebar nav { padding-inline: 6px; }
body.peek-sidebar-collapsed .peek-category-sidebar h2,
body.peek-sidebar-collapsed .peek-category-links a span,
body.peek-sidebar-collapsed .peek-sidebar-extra { display: none; }
body.peek-sidebar-collapsed .peek-category-links a { justify-content: center; padding-inline: 6px; }
.peek-spotlight { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; height: clamp(245px, 29vw, 370px); }
.peek-feature { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 8px; isolation: isolate; overflow: hidden; padding: clamp(12px, 2vw, 28px); border: 1px solid #664876; border-radius: 14px; background: #39244f; color: #fff !important; }
.peek-feature:first-child { grid-row: span 2; }
.peek-feature img, .peek-feature::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.peek-feature img { object-fit: cover; z-index: -2; }
.peek-feature::after { content: ""; z-index: -1; background: linear-gradient(0deg, #120a20ed, #16092c78 40%, transparent 82%); }
.peek-feature__copy { min-width: 0; text-shadow: 0 1px 6px #110b18; }
.peek-feature__copy small { display: block; color: #f1ddff; font-weight: 650; }
.peek-feature__copy strong { display: block; font-size: clamp(1rem, 1.7vw, 1.5rem); line-height: 1.1; overflow-wrap: anywhere; }
.peek-feature:first-child strong { font-size: clamp(1.7rem, 3.4vw, 3.2rem); letter-spacing: -.045em; }
.peek-feature__play { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e1b8ff; color: #2d153e; }
.peek-feature:hover { border-color: #e1b8ff; }
.peek-catalog { margin-top: clamp(26px, 3.3vw, 42px); }
.peek-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.peek-section-heading h2 { margin: 0; color: #fcf8ff; font-size: clamp(1.3rem, 2.1vw, 1.85rem); }
.peek-section-heading a { color: #e1b8ff !important; font-weight: 700; }
.peek-workspace .cg-wall__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); grid-auto-rows: auto; grid-auto-flow: row; gap: 12px; }
.peek-workspace .cg-wall__grid > .cg-tile, .peek-workspace .cg-wall__grid > .cg-tile--lg, .peek-workspace .cg-wall__grid > .cg-tile--md { grid-column: auto; grid-row: auto; aspect-ratio: auto; }
.peek-workspace .cg-wall__grid .cg-tile { height: auto; min-height: 0; overflow: hidden; border: 1px solid #3d2b57; border-radius: 12px; background: #1e182c; box-shadow: none; }
.peek-workspace .cg-wall__grid .cg-tile__link { position: relative; inset: auto; display: flex; flex-direction: column; height: 100%; border-radius: 12px; }
.peek-workspace .cg-wall__grid .cg-tile__link img { position: static; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 11px 11px 0 0; object-fit: cover; }
.peek-workspace .cg-wall__grid .cg-tile__title { position: static; display: -webkit-box; margin: 10px; padding: 0; min-height: 2.6em; overflow: hidden; background: none; color: #fcf8ff; text-align: center; font-size: .9rem; font-weight: 700; line-height: 1.3; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; opacity: 1; transform: none; }
.peek-workspace .cg-wall__grid .cg-tile:hover { border-color: #b875f3; background: #24163e; }
.peek-workspace .cg-wall__grid .cg-heart { top: 6px; right: 6px; }
@media (max-width: 760px) {
  .peek-app-layout { display: block; }
  .peek-category-sidebar { position: fixed; top: var(--peek-header-height); left: 0; bottom: 0; width: min(270px, 82vw); height: calc(100dvh - var(--peek-header-height)); transform: translateX(-100%); transition: transform .2s ease; box-shadow: 15px 0 35px #08041255; z-index: 1002; }
  body.peek-sidebar-open .peek-category-sidebar { transform: translateX(0); }
  body.peek-sidebar-open .peek-sidebar-backdrop { display: block; position: fixed; inset: var(--peek-header-height) 0 0; width: 100%; border: 0; background: #07030cb5; z-index: 1001; }
  body.peek-sidebar-collapsed { --peek-sidebar-width: 204px; }
  body.peek-sidebar-collapsed .peek-category-sidebar h2, body.peek-sidebar-collapsed .peek-category-links a span, body.peek-sidebar-collapsed .peek-sidebar-extra { display: initial; }
  body.peek-sidebar-collapsed .peek-category-links a { justify-content: flex-start; }
  .peek-workspace .cg-main { padding: 18px 14px 36px; }
}
@media (max-width: 520px) {
  #header.cg-header .cg-header__inner .cg-logo--header .cg-logo__word { font-size: 19px; }
  #header.cg-header .cg-header__inner .peek-logo-eyes { flex-basis: 28px; width: 28px; height: 28px; border-radius: 9px; font-size: 19px; }
  #header .clover-language { display: none; }
  .peek-spotlight { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: 230px 150px; }
  .peek-feature:first-child { grid-column: 1 / -1; grid-row: auto; }
  .peek-feature { padding: 12px; }
  .peek-feature__play { display: none; }
  .peek-feature:first-child .peek-feature__play { display: grid; }
  .peek-workspace .cg-wall__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .peek-workspace .cg-wall__grid .cg-tile__title { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .peek-category-sidebar { transition: none; } }
