/* Header, shortcut and navigation adaptation layer, formerly in playallrummy.css. */

.par-theme .site-header {
  margin-inline: auto;
}

.par-theme .site-header {
  position: relative;
  border: 0;
}

.par-theme .hamburger {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}

.par-theme .mobile-drawer {
  width: min(620px,100%);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  background: var(--par-ink);
  color: #fff;
  border-radius: 0;
  max-height: 75vh;
  overflow: auto;
}

.par-theme .back-to-top {
  right: max(12px,calc((100vw - 620px)/2 + 12px));
}

@media (min-width:621px) {
  .par-theme .site-header {
    border-radius: 14px 14px 0 0;
  }
}

.par-theme.single-apk_brand .back-to-top {
  background: var(--par-orange);
  color: #fff;
  border-color: var(--par-orange);
}

.par-theme .site-header {
  max-width: none;
  border-radius: 0;
}

.par-theme .hamburger {
  color: var(--par-ink);
  border: 1px solid var(--par-line);
  background: #f5f7fb;
  border-radius: 10px;
}

.par-theme.single-apk_brand .site-header {
  border: 0;
}

.par-theme.single-apk_brand .hamburger {
  background: #ffffff15;
  color: #fff;
  border-color: #ffffff40;
}

@media (min-width:960px) {
  .par-theme .hamburger {
    display: none;
  }
}

.par-shortcuts {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 20px 22px 0;
  padding: 8px;
  border: 1px solid var(--par-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px #153e4c05;
}

.par-shortcuts a {
  font-size: 12px;
  font-weight: 700;
  padding: 9px 8px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--par-orange);
  white-space: nowrap;
}

.par-shortcuts a:hover,.par-shortcuts a:focus-visible {
  background: var(--par-soft);
}

@media (min-width:960px) {
  .par-shortcuts {
    margin: 24px 30px 0;
    justify-content: center;
    gap: 30px;
  }

  .par-shortcuts a {
    font-size: 13px;
    padding: 9px 15px;
  }
}

@media (max-width:359px) {
  .par-shortcuts {
    margin-inline: 16px;
    gap: 1px;
    padding: 5px;
  }

  .par-shortcuts a {
    font-size: 11px;
    padding: 9px 6px;
  }
}

@media (min-width:960px) {
  .par-theme .site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    box-shadow: 0 3px 14px #14223c0c;
  }

  .par-theme.admin-bar .site-header {
    top: 32px;
  }
}

.par-theme .par-header-menu a {
  display: flex;
  align-items: center;
  gap: 7px;
}

.par-header-menu svg {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.par-theme .par-header-menu [data-par-header-search] {
  color: var(--par-orange);
  background: var(--par-soft);
  padding: 10px 12px;
  border-radius: 7px;
}

.par-theme .mobile-menu.par-header-menu [data-par-header-search] {
  color: #fff;
  background: #ffffff15;
  padding: 13px 10px;
  margin-top: 8px;
}

.par-theme.single-apk_brand .desktop-menu.par-header-menu [data-par-header-search] {
  background: #fff;
  color: var(--par-brand);
}

@media (min-width:960px) {
  .par-theme .desktop-menu.par-header-menu {
    gap: 22px;
  }
}

.par-theme .mobile-drawer {
  animation: none;
}

@media (min-width:768px) and (max-width:959px) {
  .par-theme .mobile-drawer:not([hidden]) {
    display: block !important;
  }
}

.par-theme .site-header .site-nav--desktop {
  display: none !important;
}

.par-theme .site-header .hamburger {
  display: flex;
}

.par-theme .site-header .brand {
  flex: 1;
}

.par-theme .mobile-drawer:not([hidden]) {
  display: block !important;
}

.par-theme .mobile-drawer {
  z-index: 65;
}

.par-theme .par-shortcuts {
  padding: 7px;
  margin-top: 20px;
  display: block;
}

.par-theme .par-shortcut-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 4px;
}

.par-theme .par-shortcut-menu li {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.par-theme .par-shortcut-menu a,.par-theme .par-shortcut-menu [data-par-header-search] {
  display: flex;
  justify-content: center;
  font-size: 11px;
  color: var(--par-orange);
  background: transparent;
  border: 0;
  border-radius: 7px;
  line-height: 1.2;
  text-decoration: none;
}

.par-theme .par-shortcut-menu a:hover,.par-theme .par-shortcut-menu a:focus-visible {
  background: var(--par-soft);
}

@media (min-width:960px) {
  .par-theme .par-shortcut-menu a,.par-theme .par-shortcut-menu [data-par-header-search] {
    font-size: 13px;
    padding-block: 12px;
  }

  .par-theme .mobile-drawer {
    left: auto;
    transform: none;
    width: 360px;
    border-radius: 0 0 14px 14px;
  }
}

@media (max-width:359px) {
  .par-theme .par-shortcuts {
    padding: 5px;
  }

  .par-theme .par-shortcut-menu {
    gap: 1px;
  }

  .par-theme .par-shortcut-menu a,.par-theme .par-shortcut-menu [data-par-header-search] {
    padding-inline: 0;
  }
}

.par-theme .site-header {
  z-index: 60;
}

.par-theme .par-shortcut-menu a,.par-theme .par-shortcut-menu [data-par-header-search] {
  flex-direction: row;
  gap: 6px;
  min-height: 44px;
  padding: 10px 5px;
}

.par-theme .par-shortcut-menu a svg {
  order: 0;
  flex-basis: 17px;
  width: 17px;
  height: 17px;
}

.par-theme .par-shortcut-menu a span {
  order: 1;
}

@media (max-width:600px) {
  .par-theme .par-shortcut-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 5px;
  }

  .par-theme .par-shortcut-menu li {
    flex: 0 0 auto;
  }

  .par-theme .par-shortcut-menu a,.par-theme .par-shortcut-menu [data-par-header-search] {
    font-size: 11px;
    gap: 5px;
    padding: 10px 6px;
  }

  .par-theme .par-shortcut-menu a svg {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
}

@media (max-width:959px) {
  .par-theme .par-shortcut-menu {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 3px;
  }

  .par-theme .par-shortcut-menu li {
    min-width: 0;
  }

  .par-theme .par-shortcut-menu a,.par-theme .par-shortcut-menu [data-par-header-search] {
    flex-direction: column;
    gap: 7px;
    padding: 9px 1px;
    min-height: 58px;
    font-size: 11px;
  }

  .par-theme .par-shortcut-menu a svg {
    order: 0;
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .par-theme .par-shortcut-menu a span {
    order: 1;
  }
}

@media (max-width:359px) {
  .par-theme .par-shortcut-menu a,.par-theme .par-shortcut-menu [data-par-header-search] {
    font-size: 10px;
  }
}

@media (min-width:960px) {
  .par-theme .mobile-drawer {
    right: max(48px,calc((100vw - 1000px)/2));
  }
}

.par-theme .mobile-drawer__inner {
  padding: 20px;
}

.par-theme .mobile-drawer .mobile-menu {
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.par-theme .mobile-drawer .mobile-menu li {
  margin: 0;
  padding: 0;
  width: 100%;
}

.par-theme .mobile-drawer .mobile-menu a,.par-theme .mobile-drawer .mobile-menu [data-par-header-search] {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  min-height: 48px;
  border: 1px solid #ffffff16;
  border-radius: 9px;
  box-sizing: border-box;
  background: #ffffff08;
  color: #fff;
  text-align: left;
}

.par-theme .mobile-drawer .mobile-menu a:hover,.par-theme .mobile-drawer .mobile-menu a:focus-visible {
  background: #ffffff16;
}

.par-theme .mobile-drawer .mobile-menu svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

@media (max-width:480px) {
  .par-theme .mobile-drawer__inner {
    padding: 16px;
  }
}

.par-theme .site-header {
  margin-block: 0;
}

.par-theme.single-apk_brand .site-header .par-identity__lead {
  color: #e9f4ed;
}

.par-theme.single-apk_brand .site-header .par-identity__main {
  color: #ffdd7a;
  text-shadow: 0 1px #71531a;
}

.par-theme.single-apk_brand .site-header .par-identity__domain {
  color: #d4e2db;
}

.par-theme.single-apk_brand .site-header .par-identity__wordmark {
  color: #fff;
}

.par-header-search-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dfe7ef;
  border-radius: 10px;
  background: #f5f7fb;
  color: #203449;
  cursor: pointer;
  flex: 0 0 44px;
}

.par-header-search-button:hover {
  background: #eaf0f7;
}

.par-header-search-button:focus-visible {
  outline: 2px solid #3157b8;
  outline-offset: 3px;
}

.par-theme.single-apk_brand .par-header-search-button {
  background: #ffffff15;
  color: #fff;
  border-color: #ffffff40;
}

.par-theme .site-header .hamburger {
  flex-shrink: 0;
}

@media (max-width:359px) {
  .par-theme .site-header .par-identity__mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .par-theme .site-header .par-identity__wordmark {
    font-size: 18px;
    letter-spacing: -.8px;
  }

  .par-theme .site-header .par-identity {
    gap: 5px;
  }
}

.par-theme .header-inner>.par-header-search-button {
  order: 1;
}

.par-theme .header-inner>.hamburger {
  order: 2;
}

.par-theme.home .par-shortcuts {
  border-color: #dce7df;
  background: #fff;
}

.par-theme.home .par-shortcut-menu a,.par-theme.home .par-shortcut-menu [data-par-header-search] {
  color: #25573e;
}

.par-theme:not(.single-apk_brand) .mobile-drawer {
  background: #12392a;
}

.par-theme.home .par-shortcuts {
  box-shadow: 0 2px 0 #edf4ee,0 5px 14px #174b2e08;
}

.par-theme.home .par-shortcut-menu a {
  color: #126d40;
}

.par-theme.home .par-shortcut-menu a:hover {
  background: #edf9f0;
  color: #078046;
}

.par-theme .back-to-top,.par-theme .back-to-top.is-visible {
  position: fixed;
  right: max(14px,env(safe-area-inset-right,0px));
  bottom: 16px;
  width: 44px;
  height: 48px;
  margin: 0;
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0a6c42;
  border-radius: 12px;
  background: linear-gradient(180deg,#16824f,#09613b);
  color: #fff;
  box-shadow: inset 0 1px #ffffff40,0 3px 0 #06472e,0 5px 14px #0b48292b;
  z-index: 48;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  transition: opacity .15s ease;
}

.par-theme .back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.par-theme .back-to-top[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion:reduce) {
  .par-theme .back-to-top {
    transition: none;
  }
}

.par-bottom-nav {
  display: none;
}

@media (max-width:959px) {
  .par-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    background: linear-gradient(110deg,#062e20,#084529);
    border-top: 1px solid #6ca552;
    border-radius: 15px 15px 0 0;
    padding: 6px 5px calc(7px + env(safe-area-inset-bottom,0px));
    box-shadow: 0 -3px 16px #002e2826;
  }

  .par-bottom-nav a {
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 2px;
    border-radius: 10px;
    text-decoration: none;
    color: #f2fff6;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
  }

  .par-bottom-nav a[aria-current=page] {
    background: #0d6338;
    color: #ffeb50;
    box-shadow: inset 0 0 0 1px #35a249;
  }

  .par-bottom-nav svg {
    width: 23px;
    height: 23px;
  }

  .par-bottom-nav a:focus-visible {
    outline: 2px solid #ffe977;
    outline-offset: -2px;
  }
}

/* Shared cards: base component rules, extracted from playallrummy.css. */

.par-featured {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--par-line);
}

.par-app {
  display: flex;
  align-items: center;
  min-height: 91px;
  border-bottom: 1px solid var(--par-line);
  background: transparent;
}

.par-app__identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1;
  text-decoration: none;
}

.par-app__logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  background: #e4e8df;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
}

.par-app__logo img {
  display: block;
  max-width: 100%;
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}

.par-app__copy strong {
  display: block;
}

.par-app__copy small {
  line-height: 1.55;
  display: block;
  color: var(--par-muted);
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.par-app__action {
  flex: 0 0 auto;
  font-weight: 700;
  text-decoration: none;
}

.par-app__action span {
  padding-left: 3px;
}

@media (min-width:621px) {
  .par-featured {
    padding-inline: 30px;
  }
}

@media (max-width:359px) {
  .par-featured {
    padding-inline: 16px;
  }

  .par-app__logo,.par-app__logo img {
    width: 46px;
    height: 46px;
  }

  .par-app__logo {
    flex-basis: 46px;
  }

  .par-app__identity {
    gap: 10px;
  }
}

.par-featured {
  margin: 0 22px;
}

.par-featured .par-app:last-child {
  border-bottom: 0;
}

.par-featured .par-app {
  min-height: 82px;
  border-color: #dce4f6;
}

.par-app__logo,.par-app__logo img {
  border-radius: 14px;
}

.par-app__action {
  border: 0;
  border-radius: 7px;
  padding: 10px 13px;
  min-height: 40px;
}

.par-app__action span {
  color: #fff;
}

.par-app__copy strong {
  font-size: 16px;
  letter-spacing: -.3px;
}

.par-app__copy small {
  font-size: 12px;
}

@media (max-width:359px) {
  .par-app__action {
    padding-inline: 10px;
  }
}

.par-featured {
  background: #fff;
  border: 1px solid var(--par-line);
  padding: 18px 14px;
  border-radius: 14px;
  box-shadow: 0 5px 20px #183e4a06;
}

.par-featured .par-section-heading {
  padding: 0 4px;
  margin-bottom: 18px;
}

.par-theme .par-featured .par-section-heading h2 {
  font-size: 18px;
}

.par-featured .par-section-heading>span {
  font-size: 10px;
}

.par-featured-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

.par-featured .par-app {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 11px;
  border: 0;
  padding: 0;
  min-width: 0;
}

.par-featured .par-app__identity {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  flex: 1;
}

.par-featured .par-app__copy strong {
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.35;
  min-height: 32px;
}

.par-featured .par-app__copy small {
  font-size: 10px;
  line-height: 1.4;
  margin-top: 2px;
}

.par-featured .par-app__logo,.par-featured .par-app__logo img {
  width: 56px;
  height: 56px;
}

.par-featured .par-app__logo {
  flex-basis: 56px;
}

.par-featured .par-app__action {
  display: block;
  text-align: center;
  font-size: 11px;
  padding: 10px 4px;
  min-height: 36px;
  border-radius: 6px;
}

.par-featured .par-app__action span {
  display: none;
}

.par-app-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.par-directory .par-app {
  border: 1px solid var(--par-line);
  border-radius: 10px;
  padding: 13px 10px;
  min-height: 86px;
  background: #fff;
  gap: 8px;
}

.par-directory .par-app__identity {
  gap: 10px;
}

.par-directory .par-app__copy strong {
  font-size: 14px;
}

.par-directory .par-app__copy small {
  font-size: 11px;
}

.par-directory .par-app__logo,.par-directory .par-app__logo img {
  width: 48px;
  height: 48px;
}

.par-directory .par-app__logo {
  flex-basis: 48px;
}

.par-directory .par-app__action {
  font-size: 11px;
  padding: 9px 11px;
  min-height: 36px;
}

.par-directory .par-app__action span {
  display: none;
}

@media (min-width:960px) {
  .par-featured {
    padding: 24px;
    margin-inline: 30px;
  }

  .par-featured-grid {
    gap: 24px;
  }

  .par-featured .par-app__copy strong {
    font-size: 15px;
    min-height: 0;
  }

  .par-featured .par-app__copy small {
    font-size: 12px;
  }

  .par-featured .par-app__logo,.par-featured .par-app__logo img {
    width: 66px;
    height: 66px;
  }

  .par-featured .par-app__logo {
    flex-basis: 66px;
  }

  .par-featured .par-app__action {
    font-size: 12px;
  }

  .par-directory .par-app {
    padding: 16px;
  }

  .par-directory .par-app__copy strong {
    font-size: 16px;
  }

  .par-directory .par-app__action {
    font-size: 13px;
    padding-inline: 22px;
  }
}

@media (max-width:359px) {
  .par-featured {
    margin-inline: 16px;
    padding: 16px 10px;
  }

  .par-featured-grid {
    gap: 7px;
  }

  .par-directory .par-app__copy strong {
    font-size: 12px;
  }

  .par-directory .par-app__copy small {
    font-size: 10px;
  }

  .par-directory .par-app__action {
    padding-inline: 8px;
  }

  .par-featured .par-section-heading>span {
    display: none;
  }
}

.par-theme.home .par-featured {
  border-top: 3px solid #d18a28;
}

.par-theme.home .par-directory .par-app:nth-child(4n/**/+2) {
  background: #f7faff;
  border-color: #dde7f7;
}

.par-theme.home .par-directory .par-app:nth-child(4n/**/+4) {
  background: #f8fcfa;
  border-color: #deebe4;
}

.par-app__logo {
  position: relative;
  overflow: visible;
}

.par-app__rank {
  position: absolute;
  z-index: 1;
  top: -7px;
  left: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #3157b8;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.par-card-download {
  flex: 0 0 auto;
  max-width: 125px;
}

.par-theme .par-app__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border: 0;
  font: 700 11px/1.3 "Segoe UI",Arial,sans-serif;
  min-height: 38px;
}

.par-theme .par-app__action span {
  display: inline;
  padding: 0;
  color: inherit;
}

.par-app__action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.par-app__action:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.par-card-download .par-download-status {
  display: block;
  max-width: 125px;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.par-card-download .par-download-status:empty {
  display: none;
}

.par-featured .par-card-download {
  width: 100%;
  max-width: none;
}

.par-featured .par-app__action {
  width: 100%;
  padding-inline: 4px;
}

.par-featured .par-app__action svg {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}

@media (max-width:359px) {
  .par-directory .par-app {
    gap: 6px;
    padding-inline: 8px;
  }

  .par-directory .par-app__identity {
    gap: 7px;
  }

  .par-directory .par-app__logo,.par-directory .par-app__logo img {
    width: 40px;
    height: 40px;
  }

  .par-directory .par-app__logo {
    flex-basis: 40px;
  }

  .par-theme .par-app__action {
    font-size: 10px;
    gap: 3px;
    padding-inline: 7px;
  }

  .par-app__action svg {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .par-featured .par-app__action {
    font-size: 9px;
  }

  .par-card-download {
    max-width: 105px;
  }
}

.par-theme .par-featured-star {
  flex: 0 0 22px;
}

.par-theme .par-app__action>svg {
  flex-shrink: 0;
}

.par-featured-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.par-featured-controls [role=tablist] {
  display: flex;
}

.par-featured-controls button {
  border: 1px solid #eadcc5;
  background: #fff;
  color: #78531d;
  border-radius: 7px;
  min-height: 36px;
  padding: 7px 13px;
  font-size: 12px;
  cursor: pointer;
}

.par-featured-controls [aria-selected=true] {
  font-weight: 800;
}

.par-featured-controls button:focus-visible {
  outline: 2px solid #3157b8;
  outline-offset: 3px;
}

.par-theme .par-featured-grid {
  display: block;
}

.par-featured-grid>[data-par-featured-panel]+[data-par-featured-panel] {
  margin-top: 12px;
}

.par-featured-grid>[data-par-featured-panel][role=tabpanel] {
  margin: 0;
}

.par-theme .par-featured .par-app__copy small {
  font-size: 12px;
}

@media (max-width:480px) {
  .par-theme .par-featured .par-app {
    gap: 8px;
  }

  .par-theme .par-featured .par-app__identity {
    gap: 9px;
  }

  .par-theme .par-featured .par-app__logo,.par-theme .par-featured .par-app__logo img {
    width: 44px;
    height: 44px;
  }

  .par-theme .par-featured .par-app__logo {
    flex-basis: 44px;
  }

  .par-theme .par-featured .par-app__copy strong {
    font-size: 12px;
  }

  .par-theme .par-featured .par-app__copy small {
    font-size: 10px;
  }

  .par-theme .par-featured .par-card-download {
    width: 85px;
    flex-basis: 85px;
  }

  .par-theme .par-featured .par-app__action {
    font-size: 10px;
  }
}

.par-theme .par-featured .par-section-heading {
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.par-theme .par-featured-controls {
  flex: 1;
  align-items: center;
  gap: 10px;
}

.par-featured-controls [role=tablist] {
  gap: 5px;
}

.par-featured-controls [role=tab] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
}

.par-featured-controls [data-par-featured-pause] {
  margin-left: auto;
  padding: 6px 8px;
}

@media (max-width:600px) {
  .par-theme .par-featured .par-section-heading {
    gap: 8px;
    position: relative;
    padding-bottom: 34px;
  }

  .par-theme .par-featured .par-section-heading h2 {
    letter-spacing: -.4px;
  }

  .par-theme .par-featured-star {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }

  .par-theme .par-featured-controls {
    flex: 1;
    justify-content: flex-end;
    gap: 0;
  }

  .par-featured-controls [role=tablist] {
    gap: 3px;
  }

  .par-featured-controls [role=tab] {
    gap: 2px;
    padding: 5px 3px;
    min-height: 32px;
    font-size: 10px;
  }

  .par-featured-controls [data-par-featured-pause] {
    position: absolute;
    right: 4px;
    bottom: 0;
    min-height: 28px;
    font-size: 10px;
  }
}

@media (max-width:359px) {
  .par-theme .par-featured .par-section-heading {
    flex-wrap: nowrap;
    gap: 5px;
    padding-inline: 0;
  }

  .par-theme .par-featured .par-section-heading h2 {
    font-size: 12px;
  }

  .par-theme .par-featured-star {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  .par-featured-controls [role=tab] {
    font-size: 9px;
    padding-inline: 2px;
  }

  .par-featured-controls [role=tablist] {
    gap: 2px;
  }
}

.par-results>.par-app-list {
  margin: 24px 0;
}

.par-theme .par-featured {
  grid-template-columns: minmax(0,1fr) minmax(110px,35%);
  gap: 18px;
  align-items: center;
}

.par-theme .par-featured .par-section-heading {
  display: block;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.par-theme .par-featured-controls {
  margin-top: 14px;
}

.par-featured-preview {
  font-size: 12px;
  line-height: 1.6;
  color: #7b705f;
  margin: 15px 0 0;
}

.par-featured-preview strong {
  color: #654621;
  font-weight: 600;
}

.par-theme .par-featured .par-app__identity {
  text-align: center;
}

@media (max-width:600px) {
  .par-theme .par-featured {
    gap: 12px;
  }

  .par-theme .par-featured-controls {
    margin-top: 11px;
  }

  .par-theme .par-featured .par-section-heading h2 {
    font-size: 13px;
  }

  .par-featured-preview {
    font-size: 10px;
    line-height: 1.55;
    margin-top: 12px;
  }

  .par-theme .par-featured .par-app__copy small {
    font-size: 10px;
  }
}

.par-theme.home .par-featured .par-section-heading h2,.par-theme.home .par-featured-preview strong {
  color: #204c34;
}

.par-theme.home .par-featured-preview {
  color: #68745f;
}

.par-theme.home .par-featured .par-app__action {
  background: #145b3d;
  color: #fff;
}

.par-theme.home .par-featured .par-app__action:hover {
  background: #10492f;
}

.par-theme.home .par-featured .par-app__copy strong {
  color: #203e2c;
}

.par-featured-controls [role=tab] {
  border-color: #ddd9c7;
  background: #fffef9;
  color: #5b623f;
}

.par-theme:not(.single-apk_brand) .par-directory .par-app {
  background: #fff;
  border-color: #dce7df;
}

.par-theme:not(.single-apk_brand) .par-directory .par-app:nth-child(even) {
  background: #f6faf6;
  border-color: #e1e9dd;
}

.par-theme.home .par-directory .par-app__copy strong {
  color: #254733;
}

.par-theme .par-app,.par-theme .par-directory .par-app:nth-child(n),.par-theme:not(.single-apk_brand) .par-directory .par-app:nth-child(n) {
  background: #fff;
  border-color: #dce7df;
}

.par-theme:not(.single-apk_brand) .par-directory .par-app:nth-child(n) {
  background: #fff;
  border: 1px solid #cfe1d5;
  transition: box-shadow .18s ease,border-color .18s ease;
}

.par-theme:not(.single-apk_brand) .par-app__action,.par-theme.home .par-featured .par-app__action {
  border: 1px solid #0b6b40;
}

.par-theme:not(.single-apk_brand) .par-app__action:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 2px #03472b30,0 1px 0 #06472d;
}

.par-theme:not(.single-apk_brand) .par-app__action:focus-visible {
  outline: 3px solid #dfb64b;
  outline-offset: 3px;
}

.par-theme.home .par-featured {
  border-top-width: 3px;
}

.par-theme.home .par-featured .par-section-heading h2 {
  color: #185636;
}

.par-theme .par-featured-star {
  color: #e4ae17;
  filter: drop-shadow(0 1px 0 #a0781930);
}

@media (prefers-reduced-motion:reduce) {
  .par-theme .par-app {
    transition: none !important;
  }
}

.par-theme:not(.single-apk_brand) .par-directory .par-app:nth-child(n) {
  border-color: #b9dfc6;
  box-shadow: 0 2px 0 #d8efdf,0 6px 16px #19a65d12;
}

.par-theme:not(.single-apk_brand) .par-directory .par-app:hover {
  border-color: #69cc91;
  box-shadow: 0 2px 0 #bde5cb,0 8px 20px #16a45a20;
}

.par-theme:not(.single-apk_brand) .par-app__action,.par-theme.home .par-featured .par-app__action {
  background: linear-gradient(180deg,#66eea3 0%,#38d782 55%,#24bf6e 100%);
  color: #063b24 !important;
  border-color: #21ac61;
  box-shadow: inset 0 1px 0 #ddffe8,0 3px 0 #138c4d,0 6px 12px #1baa6028;
  text-shadow: none;
}

.par-theme:not(.single-apk_brand) .par-app__action:hover,.par-theme.home .par-featured .par-app__action:hover {
  background: linear-gradient(180deg,#85f6b6,#45df8d 60%,#2dcb77);
  color: #063b24 !important;
  box-shadow: inset 0 1px #ecfff2,0 3px 0 #138c4d,0 8px 15px #1baa6030;
}

.par-theme:not(.single-apk_brand) .par-app__rank {
  background: linear-gradient(145deg,#39d282,#12a95c);
  color: #063c23;
  box-shadow: 0 2px 4px #1fa36324;
}

.par-theme.home .par-featured {
  border-color: #ebd081;
  border-top-color: #efc443;
}

.par-featured-controls [aria-selected=true] {
  background: linear-gradient(180deg,#fff4a7,#f9d652);
  border-color: #d9b229;
  box-shadow: inset 0 1px #fffde4,0 2px 0 #d4ac30,0 4px 8px #c8a32220;
  color: #493509;
}

.par-theme.home .par-featured {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box,linear-gradient(115deg,#fff0ad 0%,#d0a330 24%,#f8edb8 46%,#86cda3 72%,#d8b64e 100%) border-box;
  background-color: #fff;
  box-shadow: 0 3px 0 #ede3bd,0 9px 25px #b5932718;
}

.par-theme.home .par-featured::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #d9bb5d40;
  border-radius: 10px;
  pointer-events: none;
}

.par-theme.home .par-featured::after {
  content: "";
  position: absolute;
  left: 24px;
  top: -2px;
  width: 74px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg,#e0b32d,#fff9d9,#d9b345);
  box-shadow: 0 0 7px #f2d46b60;
  pointer-events: none;
}

.par-app {
  border-radius: 15px !important;
  padding: 12px !important;
  gap: 12px !important;
  box-shadow: 0 3px 0 #dfece4,0 7px 16px #0d4c2010 !important;
}

.par-app__copy {
  min-width: 0;
}

.par-app__copy strong {
  color: #08351e !important;
  line-height: 1.2;
}

.par-app__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #40584a;
  margin-top: 5px;
}

.par-app__bonus {
  color: #087b3e;
  font-weight: 650;
}

.par-app__minimum {
  color: #53605a;
}

.par-app__category {
  display: inline-flex;
  font-size: 10px;
  line-height: 1.3;
  background: #f0f6f2;
  color: #45624d;
  border: 1px solid #dce9df;
  border-radius: 4px;
  padding: 2px 5px;
  margin-top: 5px;
  pointer-events: none;
}

.par-app__copy a {
  text-decoration: none;
  color: inherit;
}

.par-app__logo {
  flex-shrink: 0;
}

.par-app__action {
  border-color: #078a3d !important;
  box-shadow: inset 0 1px #ffffff70,0 3px #086c32,0 5px 10px #098c3e22 !important;
  font-size: 12px !important;
}

@media (max-width:959px) {
  .par-app {
    gap: 8px !important;
    padding: 10px !important;
  }

  .par-app__logo {
    width: 48px;
    height: 48px;
  }

  .par-app__copy strong {
    font-size: 14px !important;
  }

  .par-app__metrics {
    font-size: 10px;
    gap: 0 7px;
  }

  .par-app__action {
    font-size: 10px !important;
    padding: 10px 7px !important;
    min-height: 38px;
    gap: 3px !important;
  }

  .par-app__action svg {
    width: 15px !important;
    height: 15px !important;
  }

  .par-featured .par-app__metrics {
    justify-content: center;
  }
}

.par-app__action {
  scroll-margin-bottom: 100px;
}

.par-app__action {
  background: linear-gradient(180deg,#64eda0,#27c570);
  color: #063b24;
}

.par-theme .par-app__metrics {
  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 3px;
  margin-top: 5px;
}

.par-theme .par-app__metrics .par-app__bonus {
  color: #08783c;
  font-weight: 650;
  font-size: 11px;
  line-height: 1.45;
}

.par-theme .par-app__metrics .par-app__minimum {
  color: #855bb2;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.45;
}

.par-app__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 6px;
  align-items: center;
}

.par-badge {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  font-size: 10px;
  font-weight: 650;
  line-height: 18px;
  white-space: nowrap;
}

.par-badge svg {
  display: block;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  overflow: visible;
}

.par-badge--hot {
  color: #b32816;
}

.par-badge--popular {
  color: #7c5200;
}

.par-badge--new {
  color: #145973;
}

.par-badge--verified {
  color: #1e5694;
}

.par-featured .par-app__badges {
  justify-content: center;
}

@media (max-width:359px) {
  .par-theme .par-app__metrics .par-app__bonus,.par-theme .par-app__metrics .par-app__minimum {
    font-size: 10px;
  }

  .par-app__badges {
    column-gap: 6px;
  }

  .par-badge {
    font-size: 9px;
  }
}

.par-badge {
  padding: 1px 5px 1px 3px;
  border: 1px solid;
  border-radius: 5px;
}

.par-badge--hot {
  background: #fff4f0;
  border-color: #f2c8bc;
}

.par-badge--popular {
  background: #fff9e0;
  border-color: #e6d18d;
}

.par-badge--new {
  background: #f1f9fc;
  border-color: #bddfe9;
}

.par-badge--verified {
  background: #eef5fd;
  border-color: #c8dcf3;
}

.par-theme .par-simple-collection .par-app-list {
  gap: 12px;
  margin: 0;
  padding: 0;
}

.par-theme .par-app[hidden] {
  display: none !important;
}

.par-theme .par-home [data-par-app][hidden] {
  display: none !important;
}

/* Shared cards and navigation refinements. */

/* Shared preview cards and mobile collection navigation. */

.par-theme .par-app__heading {
  display: flex;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.par-theme .par-app__heading>strong {
  min-width: 0;
  flex: 0 1 auto;
  overflow-wrap: anywhere;
}

.par-theme .par-app__heading .par-app__badges {
  margin: 0;
  display: flex;
  flex: 0 0 auto;
  gap: 3px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 50%;
}

.par-theme .par-badge--verified {
  color: #046a30;
  background: #f0fdf4;
  border-color: #9de0b3;
}

.par-theme .par-app__action,.par-theme .par-app__action span {
  color: #fff;
}

.par-theme .par-app__action {
  background: linear-gradient(180deg,#19c765,#079a43) !important;
  text-shadow: 0 1px 1px #00622866;
}

.par-theme .par-featured .par-app__badges {
  display: none !important;
}

@media (max-width:959px) {
  .par-theme .par-app__heading {
    gap: 4px 6px;
    align-items: flex-start;
  }

  .par-theme .par-app__heading .par-app__badges {
    max-width: 48%;
    column-gap: 2px;
    row-gap: 2px;
  }

  .par-theme .par-app__heading .par-badge {
    font-size: 8px;
    line-height: 12px;
    padding: 1px 3px;
    gap: 2px;
  }

  .par-theme .par-app__heading .par-badge svg {
    width: 11px;
    height: 11px;
    flex-basis: 11px;
  }

  .par-theme .par-app__copy {
    min-width: 0;
  }

  .par-theme .par-bottom-nav {
    gap: 5px;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom,0px));
    background: linear-gradient(135deg,#002c1d,#00482d 55%,#002e20);
    border-top: 1px solid #91c69f;
    border-radius: 19px 19px 0 0;
    box-shadow: 0 -4px 18px #00452624,inset 0 1px #e9fff326;
  }

  .par-theme .par-bottom-nav a {
    min-height: 55px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #f1fff5;
    gap: 4px;
    padding: 4px 2px;
    font-size: 10px;
    font-weight: 600;
    text-shadow: 0 1px 2px #001b13;
  }

  .par-theme .par-bottom-nav svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 2px 1px #001b1355);
    overflow: visible;
  }

  .par-theme .par-bottom-nav a[aria-current=page] {
    color: #ffe351;
    background: radial-gradient(ellipse at 50% 110%,#19b43175,transparent 75%),linear-gradient(180deg,#004024,#005625);
    border: 1px solid #258c3c;
    border-bottom: 2px solid #e6ce21;
    box-shadow: inset 0 1px 2px #b3ef9140,inset 0 -5px 9px #10b82633,0 3px 5px #001e1670;
    transform: translateY(-2px);
  }

  .par-theme .par-bottom-nav a[aria-current=page] svg {
    color: #b3f44b;
    filter: drop-shadow(0 2px 1px #00310f);
  }

  .par-theme .par-bottom-nav a:active {
    transform: translateY(1px);
  }
}

/* Ordinary directory cards: logo, flexible copy, and a vertically centred action. */
.par-theme .par-app[data-par-app] {
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px !important;
  min-height: 0;
}
.par-theme .par-app[data-par-app] .par-app__identity { display: contents; }
.par-theme .par-app[data-par-app] .par-app__logo {
  width: 56px; height: 56px; grid-column: 1; align-self: center;
}
.par-theme .par-app[data-par-app] .par-app__logo img { width: 100%; height: 100%; }
.par-theme .par-app[data-par-app] .par-app__copy { min-width: 0; grid-column: 2; }
.par-theme .par-app[data-par-app] .par-app__heading { overflow-wrap: anywhere; }
.par-theme .par-app[data-par-app] .par-app__heading .par-app__badges { max-width: none; }
.par-theme .par-app[data-par-app] .par-app__metrics {
  display: flex; flex-direction: row; flex-wrap: wrap;
  align-items: center; justify-content: flex-start;
  gap: 2px 8px; padding-right: 0; min-height: 0;
}
.par-theme .par-app[data-par-app] .par-card-download {
  position: static; grid-column: 3; grid-row: 1;
  align-self: center; justify-self: end; margin: 0;
}
@media (max-width:600px) {
  .par-theme .par-app[data-par-app] {
    grid-template-columns: 42px minmax(0,1fr) auto;
    gap: 6px !important; padding: 10px !important;
  }
  .par-theme .par-app[data-par-app] .par-app__logo { width: 42px; height: 42px; }
  .par-theme .par-app[data-par-app] .par-badge { font-size: 9px; line-height: 13px; }
  .par-theme .par-app[data-par-app] .par-app__metrics small { margin-top: 0; font-size: 11px; line-height: 1.4; white-space: nowrap; }
  .par-theme .par-app[data-par-app] .par-app__minimum { white-space: nowrap; }
}


/* Keep cloud white; its even-odd lightning cutout stays transparent. Featured medal stars retain their colors. */

.par-theme .par-app:not(.par-featured .par-app) .par-app__action svg {
  color: #fff;
  fill: #fff;
}

/* Featured ranking strip: compact horizontal card with independent existing rotation. */

.par-theme .par-featured {
  position: relative;
  display: block;
  padding: 14px 14px 14px 54px;
  border-radius: 17px;
  min-height: 174px;
}

.par-theme .par-featured::before,.par-theme .par-featured::after {
  display: none;
}

.par-theme .par-featured>.par-section-heading {
  display: block;
  margin: 0;
  padding: 0;
  width: auto;
}

.par-theme .par-featured h2 {
  position: absolute;
  inset: 0 auto 0 0;
  width: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 750;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  padding: 12px 0;
  border: 0;
}

.par-theme .par-featured h2 svg {
  display: none;
}

.par-theme .par-featured-controls {
  margin: 0;
  display: block;
}

.par-theme .par-featured-controls[hidden] {
  display: none;
}

.par-theme .par-featured-controls [role=tablist] {
  display: flex;
  gap: 7px;
  justify-content: flex-start;
}

.par-theme .par-featured-controls [role=tab] {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #c82b38;
  border-radius: 9px;
  background: linear-gradient(180deg,#ed5261,#d92b3c);
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff40,0 2px 3px #9b15251a;
  font-size: 12px;
  transform: none;
}

.par-theme .par-featured-controls [role=tab][aria-selected=true] {
  color: #fff;
  background: linear-gradient(180deg,#c91e31,#a70d20);
  border-color: #870c1b;
  box-shadow: inset 0 0 0 1px #ffcd7880,0 0 0 2px #ffd879,0 3px 7px #a8183430;
}

.par-theme .par-featured-controls [role=tab] .par-top-star {
  color: inherit !important;
}

.par-theme .par-featured-preview {
  font-size: 11px !important;
  line-height: 1.4 !important;
  color: #708078 !important;
  margin: 8px 0 10px !important;
  font-weight: 400;
}

.par-theme .par-featured-rotator,.par-theme .par-featured-grid {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.par-theme .par-featured .par-app {
  flex-direction: row;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(110deg,#fafdfb,#f3faf5);
  border: 1px solid #e2eee6;
  border-radius: 12px !important;
  box-shadow: none;
  min-height: 86px;
}

.par-theme .par-featured .par-app__identity {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.par-theme .par-featured .par-app__copy {
  display: block;
  text-align: left;
  min-width: 0;
}

.par-theme .par-featured .par-app__heading {
  justify-content: flex-start;
}

.par-theme .par-featured .par-app__copy strong {
  min-height: 0;
  white-space: normal;
}

.par-theme .par-featured .par-app__logo,.par-theme .par-featured .par-app__logo img {
  width: 51px;
  height: 51px;
  flex: 0 0 51px;
  border-radius: 11px;
}

.par-theme .par-featured .par-app__metrics {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 5px;
}

.par-theme .par-featured .par-app__metrics small {
  line-height: 1.3;
}

.par-theme .par-featured .par-card-download {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
}

.par-theme .par-featured .par-app__action {
  width: auto;
  border-radius: 22px;
}

@media (max-width:600px) {
  .par-theme .par-featured {
    min-height: 158px;
  }

  .par-theme .par-featured-controls [role=tab] {
    padding: 5px 6px;
    min-height: 28px;
    font-size: 10px;
    gap: 3px;
  }

  .par-theme .par-featured-controls [role=tab] svg {
    width: 11px;
    height: 11px;
  }

  .par-theme .par-featured .par-app {
    gap: 7px;
    flex-wrap: wrap;
  }

  .par-theme .par-featured .par-app__logo,.par-theme .par-featured .par-app__logo img {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .par-theme .par-featured .par-app__action {
    gap: 3px;
  }

  .par-theme .par-featured .par-featured-preview {
    font-size: 10px !important;
  }
}

@media (max-width:359px) {
  .par-theme .par-featured .par-app__identity {
    flex-basis: 100%;
  }

  .par-theme .par-featured .par-card-download {
    margin-left: auto;
  }

  .par-theme .par-featured .par-app__metrics {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.par-theme .par-featured>.par-section-heading {
  position: static;
}

.par-theme .par-featured h2 {
  white-space: nowrap;
  height: auto;
  max-height: none;
}

/* One mobile alignment line: inset the banner, widen the sections below. */

@media (max-width:959px) {
  .par-theme .par-home>.par-carousel,.par-theme .par-home>.par-shortcuts,.par-theme .par-home>.par-hero,.par-theme .par-home>.par-featured,.par-theme .par-home>.par-directory,.par-theme .par-home>.par-guides,.par-theme .par-home>.par-home-information {
    width: calc(100% - 24px);
    max-width: none;
    margin-left: 12px;
    margin-right: 12px;
    box-sizing: border-box;
  }

  .par-theme .par-home>.par-carousel .par-announcement {
    width: 100% !important;
    margin-inline: 0 !important;
  }

  .par-theme .par-home>.par-carousel {
    border-radius: 13px !important;
    overflow: hidden;
  }

  .par-theme .par-home>.par-shortcuts {
    margin-bottom: 12px;
  }
}

/* The outline fades from warm gold on the left to emerald on the right. */

.par-theme .par-featured {
  border: 2px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box,linear-gradient(105deg,#f7c95b 0%,#e5d885 36%,#88d6a7 70%,#26ac73 100%) border-box !important;
  box-shadow: 0 5px 16px #1d694d12 !important;
  margin-top: 28px;
  overflow: visible;
}

.par-theme .par-featured h2 {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

@media (max-width:959px) {
  .par-theme .par-home>.par-carousel {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
  }

  .par-theme .par-home>.par-hero {
    margin-top: 12px !important;
  }
}

/* Keep the chosen reference layout and green ranking rail; only the surrounding outline is gold-to-green. */

.par-theme .par-featured h2 {
  background: linear-gradient(180deg,#08bb60,#009b4b);
}

/* All templates share the homepage content edges; header/footer retain their wider frame. */

.par-theme .site-main>.container {
  padding-left: 30px !important;
  padding-right: 30px !important;
}

.par-theme .brand-archive-page .game-list-results.par-directory {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

@media (max-width:959px) {
  .par-theme .site-main>.container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .par-theme main.par-results.par-directory {
    margin-left: 12px !important;
    margin-right: 12px !important;
    width: calc(100% - 24px) !important;
  }
}

.par-theme .par-featured h2 {
  transform: rotate(180deg);
  border-radius: 0 13px 13px 0;
}

/* Featured refinements: medal crowns, a single metrics line, text-only action. */

.par-theme .par-featured-controls {
  margin-bottom: 12px;
}

.par-theme .par-top-crown {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  filter: drop-shadow(0 1px 1px #49351155);
}

.par-theme .par-top-crown--0 {
  color: #f9cc4b !important;
}

.par-theme .par-top-crown--1 {
  color: #b7c5cf !important;
}

.par-theme .par-top-crown--2 {
  color: #c88955 !important;
}

.par-theme .par-featured .par-app__metrics {
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 7px;
}

.par-theme .par-featured .par-app__metrics small {
  white-space: nowrap;
}

.par-theme .par-featured .par-app__action svg {
  display: block;
  color: #fff;
  fill: #fff;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

@media (max-width:600px) {
  .par-theme .par-featured .par-app__identity {
    gap: 7px;
  }

  .par-theme .par-top-crown {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
}

/* One outer rhythm per viewport; inner typography and component spacing stay independent. */

.par-theme {
  --par-module-gap: 24px;
}

.par-theme .par-home,.par-theme .site-main>.container {
  display: flex;
  flex-direction: column;
  gap: var(--par-module-gap);
}

.par-theme .par-home {
  padding-top: var(--par-module-gap) !important;
  padding-bottom: var(--par-module-gap) !important;
}

.par-theme .par-home>:is(section,nav,.par-carousel,.par-home-information) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.par-theme .par-home-information {
  gap: var(--par-module-gap) !important;
}

.par-theme .site-main {
  padding-top: var(--par-module-gap) !important;
  padding-bottom: var(--par-module-gap) !important;
}

.par-theme .site-main>.container>:is(section,nav,article,.blog-feed) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.par-theme .site-main>.container>.yono-fixed-modules-fallback-anchor {
  display: contents;
}

@media (max-width:959px) {
  .par-theme {
    --par-module-gap: 16px;
  }
}

/* Existing scroll logic and positioning remain unchanged. */

.par-theme .back-to-top {
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
}

.par-theme .back-to-top svg {
  stroke: #fff !important;
}

/* Soft emerald header distinguishes the fixed navigation from the white content. */

.par-theme .back-to-top {
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
}

/* Site-wide header uses the requested solid green, independent of footer palettes. */

.par-theme .site-header {
  background: linear-gradient(90deg,#006115 0%,#398c31 42%,#398c31 58%,#006115 100%);
  color: #fff;
  border-bottom: 1px solid #37614d !important;
  box-shadow: 0 3px 12px #0b2e2b26;
}

.par-theme .site-header .par-identity__wordmark {
  color: #fff;
}

.par-theme .site-header .par-header-search-button,.par-theme .site-header .hamburger {
  background: #234b3b;
  border-color: #47735b;
  color: #fff;
  box-shadow: inset 0 1px #ffffff12,0 2px 5px #00150b22;
}

.par-theme .site-header .par-header-search-button:hover,.par-theme .site-header .hamburger:hover {
  background: #30634b !important;
}

.par-theme .par-featured .par-app,.par-theme .par-featured-rotator {
  border: 0;
  background: transparent;
  box-shadow: none !important;
}

/* The recommendation stays under the logo without widening the mobile card. */

.par-featured-logo {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.par-recommended {
  display: block;
  width: 90px;
  text-align: center;
  white-space: normal;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  color: #278252;
}

.par-recommended svg {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 3px;
  vertical-align: -2px;
}

@media (max-width:600px) {
  .par-recommended {
    width: 78px;
    font-size: 11px;
  }

  .par-recommended svg {
    width: 12px;
    height: 12px;
  }
}

/* Labels follow the title naturally; each label can wrap without stretching the name. */

.par-theme .par-app[data-par-app] .par-app__heading {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
}

.par-theme .par-app[data-par-app] .par-app__heading>strong {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
}

.par-theme .par-app[data-par-app] .par-app__heading .par-app__badges {
  display: contents;
}

.par-theme .par-app[data-par-app] .par-app__heading .par-badge {
  flex: 0 0 auto;
  white-space: nowrap;
  margin: 0;
}

@media (max-width:600px) {
  .par-theme .par-featured .par-app__identity {
    flex-basis: 100%;
  }

  .par-theme .par-featured .par-card-download {
    margin-left: auto;
  }
}

/* Featured identity: logo and larger title align above one independent endorsement line. */

.par-theme .par-featured .par-app {
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) auto;
  column-gap: 16px !important;
  row-gap: 10px !important;
  align-items: center;
  padding: 12px 4px !important;
}

.par-theme .par-featured .par-app__identity,.par-theme .par-featured .par-featured-logo {
  display: contents;
}

.par-theme .par-featured .par-app__logo {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.par-theme .par-featured .par-app__copy {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.par-theme .par-featured .par-app__copy strong {
  font-size: 22px !important;
  line-height: 1.2;
}

.par-theme .par-featured .par-app__metrics small {
  font-size: 12px;
}

.par-theme .par-featured .par-recommended {
  grid-column: 1/3;
  grid-row: 2;
  width: auto;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}

.par-theme .par-featured .par-card-download {
  grid-column: 3;
  grid-row: 1/3;
  margin: 0;
  justify-self: end;
}

.par-theme .par-featured .par-app__action {
  font-size: 15px !important;
  min-height: 46px;
  padding: 12px 24px !important;
}

@media (max-width:600px) {
  .par-theme .par-featured .par-app {
    padding: 8px 2px !important;
  }

  .par-theme .par-featured .par-card-download {
    justify-self: end;
  }

  .par-theme .par-featured .par-recommended {
    font-size: 12px;
  }
}

.par-theme .par-app__rank {
  top: 50%;
  left: 0;
  transform: translate(-50%,-50%);
  width: 20px;
  min-width: 20px;
  padding: 0;
  background: linear-gradient(145deg,#159be0,#0877be) !important;
  color: #fff !important;
  border-color: #d7f1ff;
  font-weight: 700;
  text-shadow: 0 1px 1px #00528c66;
  box-shadow: 0 2px 5px #1687c52b !important;
}

/* Keep the mobile download on the right; metrics and endorsement use full-width rows. */

@media (max-width:600px) {
  .par-theme .par-featured .par-app__heading {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .par-theme .par-featured .par-app__copy strong {
    overflow-wrap: anywhere;
  }

  .par-theme .par-featured .par-card-download {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    align-self: center;
  }

  .par-theme .par-featured .par-app__metrics {
    grid-column: 1/-1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .par-theme .par-featured .par-recommended {
    grid-column: 1/-1;
  }
}

@media (max-width:600px) {
  .par-theme .par-featured {
    padding: 10px;
  }

  .par-theme .par-featured h2 {
    position: static;
    inset: auto;
    transform: none;
    writing-mode: horizontal-tb;
    width: auto;
    min-height: 34px;
    letter-spacing: .5px !important;
    font-size: 13px;
    padding: 9px 12px;
    margin: 0 0 10px !important;
    border-radius: 9px;
  }
}

/* Mobile featured information aligns with the logo, using the shared raised download style. */

@media (max-width:600px) {
  .par-theme .par-featured h2 {
    gap: 9px;
  }

  .par-theme .par-featured h2::before,.par-theme .par-featured h2::after {
    content: "★";
    color: #ffd447;
    font-size: 18px;
    text-shadow: 0 1px 1px #85651455;
  }

  .par-theme .par-featured .par-app {
    column-gap: 7px !important;
    row-gap: 10px;
    grid-template-columns: 40px minmax(0,1fr) auto;
  }

  .par-theme .par-featured .par-app__copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 40px;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .par-theme .par-featured .par-app__copy strong {
    font-size: 16px !important;
  }

  .par-theme .par-featured .par-app__metrics {
    margin-top: 4px;
    gap: 4px;
  }

  .par-theme .par-featured .par-app__metrics small {
    font-size: 10px;
    line-height: 1;
  }

  .par-theme .par-featured .par-app__logo {
    align-self: end;
  }

  .par-theme .par-featured .par-recommended {
    grid-row: 2;
    padding: 1px 0 3px;
  }

  .par-theme .par-featured .par-app__action {
    border: 1px solid #078a3d;
    border-radius: 7px;
    box-shadow: inset 0 1px 0 #ffffff70,0 3px 0 #086c32,0 5px 10px #098c3e22;
    padding: 10px 9px !important;
    font-size: 11px !important;
    min-height: 38px;
  }
}

@media (max-width:359px) {
  .par-theme .par-featured .par-app {
    grid-template-columns: 36px minmax(0,1fr) auto;
    column-gap: 5px !important;
  }

  .par-theme .par-featured .par-app__logo,.par-theme .par-featured .par-app__logo img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .par-theme .par-featured .par-app__copy {
    min-height: 36px;
  }

  .par-theme .par-featured .par-app__copy strong {
    font-size: 14px !important;
  }

  .par-theme .par-featured .par-app__metrics small {
    font-size: 9px;
  }

  .par-theme .par-featured .par-app__metrics {
    gap: 3px;
  }

  .par-theme .par-featured .par-app__action {
    font-size: 10px !important;
    padding: 10px 7px !important;
  }
}

/* Shared chrome uses the brand-page header treatment on every template. */

.par-theme .site-header {
  background: linear-gradient(90deg,#006115 0%,#398c31 42%,#398c31 58%,#006115 100%);
  border-bottom-color: #ffffff33 !important;
  color: #fff;
}

.par-theme .site-header .par-header-search-button,.par-theme .site-header .hamburger {
  background: #ffffff14;
  border-color: #ffffff55;
  color: #fff;
}

.par-theme .site-header .par-header-search-button:hover,.par-theme .site-header .hamburger:hover {
  background: #ffffff2b !important;
}

/* Featured download uses red and aligns with the directory download edge. */

.par-theme .par-featured .par-app__action {
  background: linear-gradient(180deg,#ed5261,#d92b3c) !important;
  color: #fff;
  border-color: #bd2434 !important;
  box-shadow: inset 0 1px 0 #ffffff70,0 3px 0 #a51929,0 5px 10px #b81f3322 !important;
  text-shadow: 0 1px 1px #7f152766;
}

.par-theme .par-featured .par-app {
  padding-right: 21.5px !important;
}

@media (max-width:959px) {
  .par-theme .par-featured .par-app {
    padding-right: 14px !important;
  }
}

@media (max-width:359px) {
  .par-theme .par-featured .par-app {
    padding-right: 10px !important;
  }
}

/* Ranking sits on the outer card edge, not on the logo. */

.par-theme .par-app[data-par-app] {
  position: relative;
  overflow: visible;
}

/* Shared header action geometry; behavior and accessible labels are unchanged. */

.par-theme .site-header .par-header-search-button,.par-theme .site-header .hamburger {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 0;
  border-width: 1px;
  border-style: solid;
  border-radius: 11px;
  line-height: 1;
}

.par-theme .site-header .hamburger {
  margin: 0;
}

.par-theme .site-header .par-header-search-button svg,.par-theme .site-header .hamburger svg {
  display: block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex: 0 0 22px;
  margin: 0;
}

/* Balance the endorsement row and Featured Apps vertical inset. */

.par-theme.home .par-featured {
  padding-top: 14px;
  padding-bottom: 14px;
}

.par-theme.home .par-featured .par-app {
  padding-top: 12px;
  padding-bottom: 12px;
}

.par-theme.home .par-featured .par-recommended {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  line-height: 1.35;
  padding: 2px 0;
  margin: 0;
}

.par-theme.home .par-featured .par-recommended svg {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  vertical-align: baseline;
}

@media (max-width:600px) {
  .par-theme.home .par-featured {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .par-theme.home .par-featured .par-app {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .par-theme.home .par-featured .par-recommended {
    font-size: 13px;
  }

  .par-theme.home .par-featured .par-recommended svg {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
}

/* Wide desktop uses the spare rail beside the 960px content frame. */

@media (min-width:1360px) {
  .par-theme .mobile-drawer {
    left: calc(50% + 492px);
    right: auto;
    width: min(280px,calc((100vw - 960px)/2 - 24px));
    max-width: calc(100vw - 24px);
  }

  .par-theme .mobile-drawer__inner {
    padding: 12px;
  }

  .par-theme .mobile-drawer .mobile-menu a,.par-theme .mobile-drawer .mobile-menu [data-par-header-search] {
    padding: 12px 10px;
  }
}

/* On narrower desktops the original anchored menu remains within the viewport. */

@media (min-width:960px) and (max-width:1359px) {
  .par-theme .mobile-drawer {
    left: auto !important;
    right: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }
}

/* Global return action: red disc with one clear white upward arrow. */

.par-theme .back-to-top {
  background: #db2538 !important;
  background-image: none !important;
  border: 1px solid #c11e31 !important;
  border-radius: 50% !important;
  color: #fff !important;
  box-shadow: 0 3px 10px #8f142d30 !important;
}

.par-theme .back-to-top:hover {
  background: #bc1c2e !important;
}

.par-theme .back-to-top svg {
  width: 24px !important;
  height: 24px !important;
  color: #fff !important;
  display: block;
}

.par-theme .back-to-top:focus-visible {
  outline: 3px solid #f5bc3f !important;
  outline-offset: 3px;
}

.par-featured--empty .par-app--evaluation {
  gap: 16px;
}

.par-featured--empty .par-app__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.par-featured--empty .par-app__logo img {
  object-fit: contain;
}

.par-theme .par-featured--empty .par-evaluation-button {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #b9cdbd;
  border-radius: 7px;
  background: #e6eee8;
  color: #41584a;
  font: inherit;
  font-weight: 750;
  text-align: center;
  cursor: default;
  opacity: 1;
  box-shadow: none;
}

.par-theme .par-tag-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  font: 14px/1 "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  vertical-align: middle;
}

/* Continue the shared header palette through the footer. */
.par-theme .par-desktop-categories,
.par-theme .par-site-copyright {
  background: linear-gradient(90deg,#006115 0%,#398c31 42%,#398c31 58%,#006115 100%);
  color: #fff;
}

.par-theme .par-search-popover .par-search-popover__row button[type=submit] {
  background: #dc3545;
  color: #fff;
}
.par-theme .par-search-popover .par-search-popover__row button[type=submit]:hover {
  background: #c62839;
}


/* Preview copy: brand name, bonus/withdrawal, then the grouped labels. */
.par-theme .par-app[data-par-app] .par-app__copy { display:flex; flex-direction:column; align-items:flex-start; gap:5px; }
.par-theme .par-app[data-par-app] .par-app__heading { display:contents; }
.par-theme .par-app[data-par-app] .par-app__heading .par-app__badges {
 display:flex; flex-direction:row; flex-wrap:wrap; justify-content:flex-start; gap:3px 5px; max-width:100%; order:3;
}
.par-theme .par-app[data-par-app] .par-app__metrics { order:2; margin-top:0; gap:2px 6px; line-height:1.4; }
.par-theme .par-app[data-par-app] .par-app__heading strong { font-size:14px; line-height:1.3; }
.par-theme .par-app[data-par-app] .par-app__metrics small { font-size:12px; line-height:1.4; margin:0; padding:0; white-space:nowrap; }
/* Directory lists sit directly on the page; individual cards retain their own frame. */
.par-theme .par-directory {
 border:0;
 border-radius:0;
 padding:0;
 background:transparent;
 box-shadow:none;
}
.par-theme.home .par-directory { border:0; }
/* Featured metrics remain distinct from ordinary directory cards. */
.par-theme .par-featured .par-app__metrics small { font-size:13px; line-height:1.35; }
.par-theme .par-featured .par-app__metrics { flex-wrap:wrap; }
@media (max-width:600px) {
 .par-theme .par-featured .par-app__metrics small { font-size:12px; }
}
