/* Mobile layout restore: loaded after all legacy overrides. */

body .main-menu > .mobile-menu-clone {
  display: none !important;
}

@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body .container,
  body .main,
  body .main-inner,
  body .content-wrap,
  body .content,
  body .post-block,
  body .games-container,
  body .books-container,
  body .movies-container,
  body .bake-container,
  body .diary-wrapper,
  body .diary-container,
  body .gallery-container,
  body .album-wrapper,
  body .tag-cloud,
  body .tag-cloud-section,
  body .category-all-page {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  body .header,
  body .main {
    padding-left: 10px !important;
    padding-right: 10px !important;
    width: 100% !important;
  }

  body .header-inner,
  body .main-inner {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body .main-inner {
    display: block !important;
    overflow: visible !important;
  }

  body .content-wrap {
    margin: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body .sidebar,
  body .sidebar-inner,
  body .site-overview-wrap,
  body .site-author-widget,
  body .sidebar-panel,
  body .sidebar-toggle,
  body #sidebar-dimmer,
  body .post-toc-wrap,
  body .back-to-top {
    display: none !important;
  }

  body .header-inner {
    align-items: stretch !important;
    border-radius: 22px !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 12px !important;
  }

  body .site-brand-container,
  body .site-meta,
  body .brand {
    display: flex !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body .site-title {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body .site-nav {
    display: block !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  body .main-menu {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    justify-content: flex-start !important;
    list-style: none !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 0 4px !important;
    scrollbar-width: none !important;
    width: 100% !important;
  }

  body .main-menu::-webkit-scrollbar {
    display: none !important;
  }

  body .main-menu > .menu-item,
  body .main-menu .menu-child > .menu-item {
    flex: 0 0 auto !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .main-menu > .mobile-menu-clone {
    display: block !important;
  }

  body .main-menu > .menu-item-has-children {
    display: none !important;
  }

  body .main-menu > .menu-item-has-children > a {
    display: none !important;
  }

  body .main-menu > .menu-item-has-children > .menu-child {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: contents !important;
    margin: 0 !important;
    opacity: 1 !important;
    padding: 0 !important;
    pointer-events: auto !important;
    position: static !important;
    transform: none !important;
    visibility: visible !important;
  }

  body .main-menu > .menu-item > a,
  body .main-menu > .menu-item > .popup-trigger,
  body .main-menu .menu-child > .menu-item > a {
    align-items: center !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: #202938 !important;
    display: inline-flex !important;
    font-size: .84rem !important;
    font-weight: 760 !important;
    gap: 6px !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 0 11px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    width: auto !important;
  }

  body .main-menu > .menu-item > a:hover,
  body .main-menu > .menu-item > a:focus-visible,
  body .main-menu > .menu-item-active > a,
  body .main-menu > .menu-item > .popup-trigger:hover,
  body .main-menu > .menu-item > .popup-trigger:focus-visible,
  body .main-menu .menu-child > .menu-item > a:hover,
  body .main-menu .menu-child > .menu-item > a:focus-visible,
  body .main-menu .menu-child > .menu-item-active > a {
    background: #111 !important;
    border-color: #111 !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .14) !important;
    color: #fff !important;
    transform: none !important;
  }

  body .content.index,
  body .content-wrap > .content:not(.index),
  body .content.page.posts-expand,
  body .content.archive,
  body .content.category,
  body .content.tag,
  body .content.categories-page,
  body .books-container,
  body .movies-container,
  body .bake-container,
  body .diary-wrapper,
  body .diary-container,
  body .gallery-container,
  body .album-wrapper,
  body .games-container {
    border-radius: 22px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
  }

  body .content.index .post-block.post-card-preview,
  body .content.index .post-block.post-card-preview:nth-of-type(even),
  body.index .post-card-preview,
  body.index .post-card-preview:nth-of-type(even) {
    align-items: stretch !important;
    display: grid !important;
    grid-template-columns: minmax(120px, 40%) minmax(0, 1fr) !important;
    min-height: 148px !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  body .content.index .post-block.post-card-preview .post-card-cover,
  body.index .post-card-preview .post-card-cover {
    align-self: stretch !important;
    aspect-ratio: auto !important;
    flex: initial !important;
    height: auto !important;
    min-height: 148px !important;
    width: 100% !important;
  }

  body .content.index .post-block.post-card-preview .post-card-cover img,
  body.index .post-card-preview .post-card-cover img {
    display: block !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
  }

  body .content.index .post-block.post-card-preview .post-card-info {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 12px !important;
  }

  body .content.index .post-card-preview .post-title {
    font-size: .96rem !important;
    line-height: 1.3 !important;
    margin: 0 0 6px !important;
  }

  body .content.index .post-card-preview .post-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    font-size: .72rem !important;
    gap: 2px 7px !important;
    line-height: 1.35 !important;
    margin: 0 0 6px !important;
  }

  body .content.index .post-card-preview .post-body {
    flex: 1 1 auto !important;
    font-size: .82rem !important;
    line-height: 1.5 !important;
    max-height: none !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  body .content.index .post-card-preview .post-body p {
    display: -webkit-box !important;
    margin: 0 !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
  }

  body .content.index .post-card-preview .post-button {
    margin-top: 6px !important;
  }

  body .content.index .post-card-preview .post-button .btn {
    min-height: 28px !important;
    min-width: 76px !important;
    padding: 0 10px !important;
  }

  body .books-container .books-grid,
  body .books-wrapper .books-grid,
  body .movies-container .movies-grid,
  body .movies-wrapper .movies-grid {
    display: grid !important;
    gap: 10px 7px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  body .books-container .book-card,
  body .books-wrapper .book-card,
  body .movies-container .movie-card,
  body .movies-wrapper .movie-card {
    border-radius: 13px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  body .books-container .book-cover,
  body .books-wrapper .book-cover,
  body .movies-container .movie-poster,
  body .movies-wrapper .movie-poster {
    height: 0 !important;
    overflow: hidden !important;
    padding-bottom: 135% !important;
    position: relative !important;
    width: 100% !important;
  }

  body .books-container .book-cover img,
  body .books-wrapper .book-cover img,
  body .movies-container .movie-poster img,
  body .movies-wrapper .movie-poster img {
    height: 100% !important;
    inset: 0 !important;
    object-fit: cover !important;
    position: absolute !important;
    width: 100% !important;
  }

  body .books-container .book-title-overlay,
  body .movies-container .movie-title-overlay {
    font-size: .66rem !important;
    line-height: 1.18 !important;
    padding: 5px !important;
  }

  body .books-container .book-title-overlay h3,
  body .movies-container .movie-title-overlay h3 {
    display: -webkit-box !important;
    margin: 0 !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  body .books-container .book-buttons,
  body .books-wrapper .book-buttons,
  body .movies-container .movie-buttons,
  body .movies-wrapper .movie-buttons {
    box-sizing: border-box !important;
    display: grid !important;
    gap: 4px !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    grid-auto-flow: column !important;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 6px 4px !important;
    width: 100% !important;
  }

  body .books-container .book-buttons .btn,
  body .books-wrapper .book-buttons .btn,
  body .movies-container .movie-buttons .btn,
  body .movies-wrapper .movie-buttons .btn {
    box-sizing: border-box !important;
    font-size: .56rem !important;
    height: 20px !important;
    line-height: 20px !important;
    max-width: none !important;
    min-height: 20px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    width: 100% !important;
  }

  body .bake-container {
    padding-top: 28px !important;
  }

  body .bake-header {
    margin-bottom: 24px !important;
  }

  body .bake-title {
    font-size: 2rem !important;
  }

  body .bake-canvas {
    gap: 14px !important;
  }

  body .bake-card {
    border-radius: 18px !important;
    display: block !important;
    height: auto !important;
    min-height: 156px !important;
    overflow: hidden !important;
  }

  body .bake-card-link {
    display: grid !important;
    grid-template-columns: minmax(118px, 42%) minmax(0, 1fr) !important;
    min-height: 156px !important;
  }

  body .bake-card-image-wrapper {
    height: auto !important;
    min-height: 156px !important;
    width: 100% !important;
  }

  body .bake-card-content {
    min-width: 0 !important;
    padding: 18px 16px !important;
    width: 100% !important;
  }

  body .bake-card-title {
    font-size: 1.26rem !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
    writing-mode: horizontal-tb !important;
  }

  body .bake-card-excerpt {
    display: -webkit-box !important;
    font-size: .86rem !important;
    line-height: 1.55 !important;
    margin-bottom: 10px !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
  }

  body .diary-wrapper,
  body .diary-container,
  body .diary-card,
  body .diary-content {
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body .diary-wrapper {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body .diary-grid {
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  body .diary-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  body .diary-content {
    border-radius: 18px !important;
    padding: 18px !important;
  }

  body .diary-images,
  body .diary-image-grid {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body .diary-content img {
    border-radius: 12px !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover !important;
  }

  body .games-container {
    padding-top: 18px !important;
  }

  body .game-platform-tabs {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  body .game-card {
    box-sizing: border-box !important;
    gap: 9px !important;
    grid-template-columns: minmax(112px, 40%) minmax(0, 1fr) !important;
    overflow: hidden !important;
    padding: 8px !important;
    width: 100% !important;
  }

  body .game-cover {
    align-self: stretch !important;
    aspect-ratio: auto !important;
    min-height: 102px !important;
  }

  body .game-title {
    font-size: .92rem !important;
    line-height: 1.25 !important;
  }

  body .game-achievements {
    gap: 4px !important;
    margin-top: 6px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body .game-achievement {
    border-radius: 7px !important;
    flex: 0 0 22px !important;
    height: 22px !important;
    width: 22px !important;
  }

  body .game-achievement:nth-child(n+5):not(.game-achievement-more) {
    display: none !important;
  }

  body .game-achievement-more {
    flex: 0 0 auto !important;
    max-width: 68px !important;
    padding: 0 6px !important;
  }

  body .game-achievement-more span {
    font-size: .58rem !important;
  }

  body .tag-cloud,
  body .tag-cloud-section,
  body .tag-cloud-tags {
    overflow: visible !important;
  }

  body .tag-cloud-tags {
    gap: 9px 8px !important;
    padding: 2px 0 !important;
  }

  body .tag-cloud-link,
  body .tag-cloud-tags a {
    line-height: 1.25 !important;
    margin: 0 0 2px !important;
    max-width: 100% !important;
    min-height: 34px !important;
    padding: 8px 12px !important;
    white-space: normal !important;
  }
}

@media (max-width: 420px) {
  body .content.index .post-block.post-card-preview,
  body .content.index .post-block.post-card-preview:nth-of-type(even),
  body.index .post-card-preview,
  body.index .post-card-preview:nth-of-type(even) {
    grid-template-columns: minmax(126px, 44%) minmax(0, 1fr) !important;
    min-height: 142px !important;
  }

  body .content.index .post-block.post-card-preview .post-card-cover,
  body.index .post-card-preview .post-card-cover {
    min-height: 142px !important;
  }

  body .content.index .post-card-preview .post-body p {
    -webkit-line-clamp: 2 !important;
  }

  body .books-container .books-grid,
  body .books-wrapper .books-grid,
  body .movies-container .movies-grid,
  body .movies-wrapper .movies-grid {
    gap: 8px 6px !important;
  }

  body .books-container .book-buttons,
  body .books-wrapper .book-buttons {
    gap: 3px !important;
    padding: 5px 3px !important;
  }

  body .books-container .book-buttons .btn,
  body .books-wrapper .book-buttons .btn {
    font-size: .52rem !important;
    height: 18px !important;
    line-height: 18px !important;
    min-height: 18px !important;
  }

  body .game-card {
    grid-template-columns: minmax(106px, 42%) minmax(0, 1fr) !important;
  }
}

/* Absolute mobile homepage/game fixes. Keep this block at EOF. */
html body .content.tag,
html body .content.page.posts-expand:has(.tag-cloud),
html body .tag-cloud,
html body .tag-cloud-section,
html body .tag-cloud-tags {
  overflow: visible !important;
}

html body .tag-cloud,
html body .tag-cloud-section {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

html body .tag-cloud-tags {
  align-items: flex-start !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 9px !important;
  line-height: 1.6 !important;
  padding: 8px 0 14px !important;
}

html body .tag-cloud-link,
html body .tag-cloud-tags a {
  box-sizing: border-box !important;
  display: inline-flex !important;
  line-height: 1.25 !important;
  margin: 0 0 2px !important;
  max-width: 100% !important;
  min-height: 34px !important;
  overflow: visible !important;
  padding: 8px 12px !important;
  white-space: normal !important;
}

@media (max-width: 767px) {
  html body .content.index.posts-expand {
    padding: 12px !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview,
  html body .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even),
  html body .content.index > article.post-block.post-card-preview,
  html body .content.index > article.post-block.post-card-preview:nth-of-type(even) {
    align-items: stretch !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    height: 136px !important;
    max-height: 136px !important;
    min-height: 136px !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 100% !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-cover,
  html body .content.index > article.post-block.post-card-preview > .post-card-cover,
  html body .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even) > .post-card-cover,
  html body .content.index > article.post-block.post-card-preview:nth-of-type(even) > .post-card-cover {
    align-self: stretch !important;
    aspect-ratio: auto !important;
    border-radius: 20px 0 0 20px !important;
    display: block !important;
    flex: 0 0 48% !important;
    height: 100% !important;
    max-width: 48% !important;
    min-height: 0 !important;
    min-width: 48% !important;
    order: 0 !important;
    overflow: hidden !important;
    width: 48% !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-cover img,
  html body .content.index > article.post-block.post-card-preview > .post-card-cover img {
    display: block !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-info,
  html body .content.index > article.post-block.post-card-preview > .post-card-info,
  html body .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even) > .post-card-info,
  html body .content.index > article.post-block.post-card-preview:nth-of-type(even) > .post-card-info {
    box-sizing: border-box !important;
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 136px !important;
    min-height: 0 !important;
    min-width: 0 !important;
    opacity: 1 !important;
    order: 1 !important;
    overflow: hidden !important;
    padding: 9px 10px !important;
    position: relative !important;
    transform: none !important;
    visibility: visible !important;
    width: auto !important;
  }

  html body .content.index .post-card-info .post-header {
    flex: 0 0 auto !important;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  html body .content.index .post-card-info .post-title {
    display: -webkit-box !important;
    font-size: .88rem !important;
    line-height: 1.25 !important;
    margin: 0 0 4px !important;
    max-height: 2.5em !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body .content.index .post-card-info .post-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    font-size: .64rem !important;
    gap: 1px 6px !important;
    line-height: 1.28 !important;
    margin: 0 0 4px !important;
    max-height: 2.6em !important;
    overflow: hidden !important;
  }

  html body .content.index .post-card-info .post-meta br,
  html body .content.index .post-card-info .post-meta .post-meta-item-text,
  html body .content.index .post-card-info .post-meta .post-meta-item:nth-last-child(-n+2) {
    display: none !important;
  }

  html body .content.index .post-card-info .post-description,
  html body .content.index .post-card-info .post-body {
    color: #4e5b70 !important;
    display: -webkit-box !important;
    flex: 1 1 auto !important;
    font-size: .74rem !important;
    line-height: 1.38 !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body .content.index .post-card-info .post-body p {
    display: inline !important;
    margin: 0 !important;
  }

  html body .content.index .post-card-info .post-button {
    flex: 0 0 auto !important;
    margin-top: 5px !important;
  }

  html body .content.index .post-card-info .post-button .btn {
    font-size: .68rem !important;
    height: 24px !important;
    line-height: 24px !important;
    min-height: 24px !important;
    min-width: 68px !important;
    padding: 0 9px !important;
  }

  html body .game-card {
    overflow: visible !important;
  }

  html body .game-achievements {
    flex-wrap: nowrap !important;
    gap: 4px !important;
    overflow: visible !important;
  }

  html body .game-achievement {
    flex: 0 0 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    overflow: hidden !important;
    width: 22px !important;
  }

  html body .game-achievement:nth-child(n+4):not(.game-achievement-more) {
    display: none !important;
  }

  html body .game-achievement-more {
    border-radius: 999px !important;
    flex: 0 0 24px !important;
    gap: 0 !important;
    height: 24px !important;
    justify-content: center !important;
    min-width: 24px !important;
    padding: 0 !important;
    width: 24px !important;
  }

  html body .game-achievement-more i {
    font-size: .72rem !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  html body .game-achievement-more span {
    display: none !important;
  }
}

@media (max-width: 420px) {
  html body .content.index.posts-expand > article.post-block.post-card-preview,
  html body .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even),
  html body .content.index > article.post-block.post-card-preview,
  html body .content.index > article.post-block.post-card-preview:nth-of-type(even) {
    height: 128px !important;
    max-height: 128px !important;
    min-height: 128px !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-cover,
  html body .content.index > article.post-block.post-card-preview > .post-card-cover {
    flex-basis: 50% !important;
    max-width: 50% !important;
    min-width: 50% !important;
    width: 50% !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-info,
  html body .content.index > article.post-block.post-card-preview > .post-card-info {
    max-height: 128px !important;
    padding: 8px !important;
  }

  html body .content.index .post-card-info .post-title {
    font-size: .82rem !important;
  }

  html body .content.index .post-card-info .post-description,
  html body .content.index .post-card-info .post-body {
    -webkit-line-clamp: 2 !important;
  }
}

/* Final 1/2/3/7 mobile fixes. Keep this at the real EOF. */
html body .content.tag,
html body .content.tag .post-block,
html body .content.tag .post-body,
html body .content.page.posts-expand .post-block,
html body .content.page.posts-expand .post-body,
html body .content.page.posts-expand:has(.tag-cloud),
html body .content.page.posts-expand:has(.tag-cloud) .post-block,
html body .content.page.posts-expand:has(.tag-cloud) .post-body,
html body .tag-cloud,
html body .tag-cloud-section,
html body .tag-cloud-tags {
  overflow: visible !important;
}

html body .tag-cloud {
  padding-bottom: 18px !important;
}

html body .tag-cloud-tags {
  align-items: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px 10px !important;
  justify-content: center !important;
  line-height: 1.7 !important;
  padding: 10px 6px 20px !important;
}

html body .tag-cloud-tags a {
  border-radius: 10px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  min-height: 36px !important;
  overflow: visible !important;
  padding: 8px 13px !important;
  white-space: normal !important;
}

html body .tag-cloud-tags a::after {
  bottom: -8px !important;
  max-width: 100% !important;
}

@media (max-width: 767px) {
  html body .content.index.posts-expand,
  html body .content.index {
    box-sizing: border-box !important;
    overflow: visible !important;
    padding: 10px !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview,
  html body .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even),
  html body .content.index > article.post-block.post-card-preview,
  html body .content.index > article.post-block.post-card-preview:nth-of-type(even),
  html body.index .content.index.posts-expand > article.post-block.post-card-preview,
  html body.index .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even) {
    align-items: stretch !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    grid-template-columns: none !important;
    height: 132px !important;
    max-height: 132px !important;
    min-height: 132px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: relative !important;
    width: 100% !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-cover,
  html body .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even) > .post-card-cover,
  html body .content.index > article.post-block.post-card-preview > .post-card-cover,
  html body .content.index > article.post-block.post-card-preview:nth-of-type(even) > .post-card-cover {
    align-self: stretch !important;
    aspect-ratio: auto !important;
    border-radius: 18px 0 0 18px !important;
    bottom: auto !important;
    display: block !important;
    flex: 0 0 46% !important;
    height: 100% !important;
    inset: auto !important;
    left: auto !important;
    max-height: none !important;
    max-width: 46% !important;
    min-height: 0 !important;
    min-width: 46% !important;
    order: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 46% !important;
    z-index: auto !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-cover img,
  html body .content.index > article.post-block.post-card-preview > .post-card-cover img {
    display: block !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-info,
  html body .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even) > .post-card-info,
  html body .content.index > article.post-block.post-card-preview > .post-card-info,
  html body .content.index > article.post-block.post-card-preview:nth-of-type(even) > .post-card-info {
    background: transparent !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex: 1 1 54% !important;
    flex-direction: column !important;
    height: 100% !important;
    inset: auto !important;
    max-height: 132px !important;
    min-height: 0 !important;
    min-width: 0 !important;
    opacity: 1 !important;
    order: 1 !important;
    overflow: hidden !important;
    padding: 9px 10px !important;
    position: relative !important;
    transform: none !important;
    visibility: visible !important;
    width: auto !important;
    z-index: auto !important;
  }

  html body .content.index .post-card-info .post-title {
    color: #202938 !important;
    display: -webkit-box !important;
    font-size: .84rem !important;
    line-height: 1.24 !important;
    margin: 0 0 4px !important;
    max-height: 2.5em !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body .content.index .post-card-info .post-meta {
    color: #7b8596 !important;
    display: flex !important;
    flex: 0 0 auto !important;
    flex-wrap: wrap !important;
    font-size: .6rem !important;
    gap: 1px 5px !important;
    line-height: 1.25 !important;
    margin: 0 0 4px !important;
    max-height: 2.5em !important;
    overflow: hidden !important;
  }

  html body .content.index .post-card-info .post-body,
  html body .content.index .post-card-info .post-description {
    color: #4e5b70 !important;
    display: -webkit-box !important;
    flex: 1 1 auto !important;
    font-size: .7rem !important;
    line-height: 1.36 !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body .content.index .post-card-info .post-body p {
    display: inline !important;
    margin: 0 !important;
  }

  html body .content.index .post-card-info .post-button {
    display: none !important;
  }

  html body .books-container .book-card,
  html body .books-wrapper .book-card {
    overflow: hidden !important;
  }

  html body .books-container .book-buttons,
  html body .books-wrapper .book-buttons {
    box-sizing: border-box !important;
    column-gap: 3px !important;
    display: grid !important;
    grid-auto-columns: unset !important;
    grid-auto-flow: column !important;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 4px 3px 6px !important;
    width: 100% !important;
  }

  html body .books-container .book-buttons .btn,
  html body .books-wrapper .book-buttons .btn {
    box-sizing: border-box !important;
    display: inline-flex !important;
    font-size: .5rem !important;
    height: 18px !important;
    justify-content: center !important;
    line-height: 18px !important;
    max-width: 100% !important;
    min-height: 18px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 2px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    width: 100% !important;
  }

  html body .books-container .book-buttons:has(> .btn:only-child),
  html body .books-wrapper .book-buttons:has(> .btn:only-child) {
    align-items: center !important;
    display: flex !important;
    justify-content: center !important;
  }

  html body .books-container .book-buttons > .btn:only-child,
  html body .books-wrapper .book-buttons > .btn:only-child {
    flex: 0 0 50px !important;
    max-width: 50px !important;
    min-width: 50px !important;
    width: 50px !important;
  }

  html body .game-card {
    box-sizing: border-box !important;
    grid-template-columns: minmax(104px, 40%) minmax(0, 1fr) !important;
    overflow: hidden !important;
    padding: 8px !important;
  }

  html body .game-info,
  html body .game-mainline {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  html body .game-achievements {
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 3px !important;
    margin-top: 6px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  html body .game-achievement {
    border: 0 !important;
    box-shadow: none !important;
    flex: 0 0 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 20px !important;
  }

  html body .game-achievement:nth-child(n+3):not(.game-achievement-more) {
    display: none !important;
  }

  html body .game-achievement-more {
    align-items: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    display: inline-flex !important;
    flex: 0 0 22px !important;
    gap: 0 !important;
    height: 22px !important;
    justify-content: center !important;
    min-width: 22px !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 22px !important;
  }

  html body .game-achievement-more i {
    font-size: .7rem !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  html body .game-achievement-more span {
    display: none !important;
  }
}

@media (max-width: 420px) {
  html body .content.index.posts-expand > article.post-block.post-card-preview,
  html body .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even),
  html body .content.index > article.post-block.post-card-preview,
  html body .content.index > article.post-block.post-card-preview:nth-of-type(even),
  html body.index .content.index.posts-expand > article.post-block.post-card-preview,
  html body.index .content.index.posts-expand > article.post-block.post-card-preview:nth-of-type(even) {
    height: 124px !important;
    max-height: 124px !important;
    min-height: 124px !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-cover,
  html body .content.index > article.post-block.post-card-preview > .post-card-cover {
    flex-basis: 48% !important;
    max-width: 48% !important;
    min-width: 48% !important;
    width: 48% !important;
  }

  html body .content.index.posts-expand > article.post-block.post-card-preview > .post-card-info,
  html body .content.index > article.post-block.post-card-preview > .post-card-info {
    max-height: 124px !important;
    padding: 8px !important;
  }

  html body .content.index .post-card-info .post-title {
    font-size: .78rem !important;
  }

  html body .books-container .book-buttons > .btn:only-child,
  html body .books-wrapper .book-buttons > .btn:only-child {
    flex-basis: 46px !important;
    max-width: 46px !important;
    min-width: 46px !important;
    width: 46px !important;
  }
}

/* Final mobile game achievement card polish. */
@media (max-width: 767px) {
  html body .game-card {
    overflow: hidden !important;
  }

  html body .game-achievements {
    align-items: center !important;
    align-self: flex-start !important;
    background: rgba(255, 255, 255, .84) !important;
    border: 1px solid rgba(0, 0, 0, .08) !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 16px rgba(20, 24, 32, .08) !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex: 0 1 auto !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    margin-top: 6px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 4px !important;
    width: auto !important;
  }

  html body .game-achievement {
    align-items: center !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, .1) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #111 !important;
    display: inline-flex !important;
    flex: 0 0 24px !important;
    height: 24px !important;
    justify-content: center !important;
    min-width: 24px !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 24px !important;
  }

  html body .game-achievement img {
    display: block !important;
    height: 100% !important;
    object-fit: cover !important;
    width: 100% !important;
  }

  html body .game-achievement:nth-child(n+4):not(.game-achievement-more) {
    display: none !important;
  }

  html body .game-achievement-more {
    background: #fff !important;
    border-color: rgba(0, 0, 0, .1) !important;
    flex-basis: 24px !important;
    gap: 0 !important;
    height: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    width: 24px !important;
  }

  html body .game-achievement-more i {
    color: #111 !important;
    font-size: .72rem !important;
  }

  html body .game-achievement-more span {
    display: none !important;
  }

  html body .game-achievement:hover {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
    transform: none !important;
  }

  html body .game-achievement:hover img {
    filter: none !important;
  }

  html body .game-achievement-more:hover i {
    color: #fff !important;
  }
}

/* Last-pass fixes for the game page and compact mobile cards. */
html body:has(.content.games-page) .main-menu > .menu-item-pages > a,
html body:has(.content.games-page) .main-menu > .menu-item-pages > .popup-trigger,
html body:has(.content.games-page) .main-menu > .mobile-from-pages.menu-item-steam > a {
  background: #111 !important;
  border-color: #111 !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .14) !important;
  color: #fff !important;
}

@media (max-width: 767px) {
  html body .books-container .book-buttons,
  html body .books-wrapper .book-buttons {
    justify-items: center !important;
  }

  html body .books-container .book-buttons > .btn:only-child,
  html body .books-wrapper .book-buttons > .btn:only-child {
    justify-self: center !important;
  }

  html body .content.games-page,
  html body .games-container {
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  html body .games-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  html body .games-list {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  html body .game-card {
    gap: 8px !important;
    grid-template-columns: minmax(104px, 42%) minmax(0, 1fr) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 8px !important;
    width: 100% !important;
  }

  html body .game-cover {
    border-radius: 12px !important;
    min-height: 92px !important;
  }

  html body .game-info {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  html body .game-achievements {
    gap: 3px !important;
    padding: 3px !important;
  }

  html body .game-achievement {
    flex-basis: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    width: 22px !important;
  }

  html body .game-achievement-more {
    flex-basis: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    width: 22px !important;
  }
}

@media (max-width: 420px) {
  html body .game-card {
    grid-template-columns: minmax(98px, 41%) minmax(0, 1fr) !important;
  }

  html body .game-achievement:nth-child(n+3):not(.game-achievement-more) {
    display: none !important;
  }

  html body .game-achievement,
  html body .game-achievement-more {
    flex-basis: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    width: 20px !important;
  }

  html body .game-achievement-more i {
    font-size: .68rem !important;
  }
}

/* Keep the achievement summary readable on mobile: trophy + earned/total. */
@media (max-width: 767px) {
  html body .game-achievements {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  html body .game-achievement-more {
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    gap: 4px !important;
    height: 22px !important;
    min-width: 48px !important;
    padding: 0 6px !important;
    width: auto !important;
  }

  html body .game-achievement-more i {
    flex: 0 0 auto !important;
    font-size: .68rem !important;
    line-height: 1 !important;
  }

  html body .game-achievement-more span {
    display: inline !important;
    flex: 0 0 auto !important;
    font-size: .58rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
}

html body .pagination .page-number,
html body .pagination .extend {
  align-items: center !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  height: 40px !important;
  justify-content: center !important;
  line-height: 1 !important;
  min-height: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  width: 40px !important;
}

html body .pagination .page-number.current,
html body .pagination span.page-number.current,
html body .pagination span.current {
  background: #111 !important;
  border-color: #111 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16) !important;
  color: #fff !important;
  cursor: default !important;
  pointer-events: none !important;
}

/* Keep the book category picker attached to its button on mobile. */
@media (max-width: 767px) {
  html body .books-wrapper .main-category-selector {
    display: inline-flex !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 40 !important;
  }

  html body .books-wrapper .sub-category-dropdown {
    left: 50% !important;
    margin-top: 8px !important;
    max-height: min(58vh, 380px) !important;
    max-width: calc(100vw - 28px) !important;
    min-width: min(300px, calc(100vw - 28px)) !important;
    overflow-y: auto !important;
    position: absolute !important;
    top: 100% !important;
    transform: translateX(-50%) !important;
    z-index: 80 !important;
  }

  html body .books-wrapper .sub-category-dropdown.show {
    display: block !important;
  }
}
