/* V95 — CO Games All Games catalog overlay */

html.co-all-games-open,
html.co-all-games-open body,
html.co-all-games-sheet-open,
html.co-all-games-sheet-open body {
  overflow: hidden;
}
html.co-all-games-open #app > *:not(#co-all-games-root),
html.co-all-games-sheet-open #app > *:not(#co-all-games-root) {
  visibility: hidden !important;
}

.co-all-games {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 10rem;
  height: 100%;
  height: 100dvh;
  z-index: 110;
  display: flex;
  flex-direction: column;
  background: #1a211e;
  color: #f5fff8;
  font-family: inherit;
  box-sizing: border-box;
  overflow: hidden;
}

.co-all-games *,
.co-all-games *::before,
.co-all-games *::after {
  box-sizing: border-box;
}

.co-all-games-header {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  min-height: calc(1.35rem + env(safe-area-inset-top, 0px));
  height: calc(1.35rem + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 0.3rem 0;
  background: #182722;
  border-bottom: 1px solid rgba(104, 255, 166, 0.08);
}

.co-all-games-back {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f2fff6;
  cursor: pointer;
}

.co-all-games-back__surface {
  width: 0.8rem;
  height: 0.8rem;
  display: grid;
  place-items: center;
  border-radius: 0.175rem;
  background: rgba(64, 84, 77, 0.60);
  color: #f2fff6;
  pointer-events: none;
}

.co-all-games-back:focus-visible,
.co-all-games-tab:focus-visible,
.co-all-games-filter-btn:focus-visible,
.co-all-games-sheet__close:focus-visible,
.co-all-games-sheet__row:focus-visible {
  outline: 0.05rem solid #24ee89;
  outline-offset: 0.05rem;
}

.co-all-games-back svg,
.co-all-games-back__surface svg {
  width: 0.45rem;
  height: 0.45rem;
  display: block;
}

.co-all-games-header h1 {
  margin: 0;
  padding: 0;
  color: #f4fff7;
  font-size: 0.42667rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.co-all-games-header-spacer {
  width: 1rem;
  min-width: 44px;
}

.co-all-games-scroll {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(1.76rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.co-all-games-search {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  height: 1.12rem;
  margin: 0.24rem 0.4rem 0.16rem;
  padding: 0 0.24rem 0 0.32rem;
  border: 1px solid rgba(104, 255, 166, 0.16);
  border-radius: 0.21333rem;
  background: rgba(18, 30, 26, 0.88);
}

.co-all-games-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5fff8;
  font-size: 0.37333rem;
}

.co-all-games-search input::placeholder {
  color: rgba(210, 230, 218, 0.45);
}

.co-all-games-search-clear,
.co-all-games-search-icon {
  flex: none;
  width: 0.85333rem;
  height: 0.85333rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #24ee89;
  cursor: pointer;
}

.co-all-games-search-clear {
  color: rgba(224, 255, 233, 0.55);
}

.co-all-games-search-icon {
  pointer-events: none;
}

.co-all-games-search svg {
  width: 0.48rem;
  height: 0.48rem;
  display: block;
}

.co-all-games-tabs {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  min-width: 0;
  margin: 0 0.4rem 0.16rem;
  padding: 0.04rem 0 0.08rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.co-all-games-tabs::-webkit-scrollbar {
  display: none;
}

.co-all-games-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  min-height: 0.85rem;
  height: 0.85rem;
  padding: 0 0.25rem;
  border: 0;
  border-radius: 0.2rem;
  background: transparent;
  color: rgba(235, 255, 241, 0.72);
  font-size: 0.3rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.co-all-games-tab svg {
  width: 0.35rem;
  height: 0.35rem;
  display: block;
}

.co-all-games-tab.is-active,
.co-all-games-tab[aria-selected="true"] {
  background: rgba(8, 17, 14, 0.78);
  color: #f2fff6;
  box-shadow: inset 0 0 0 1px rgba(80, 255, 160, 0.14);
}

.co-all-games-tab.is-active svg,
.co-all-games-tab[aria-selected="true"] svg {
  color: #24ee89;
}

.co-all-games-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem;
  margin: 0 0.4rem 0.22rem;
}

.co-all-games-filter-btn {
  min-width: 0;
  min-height: 44px;
  height: 1.05rem;
  display: flex;
  align-items: center;
  padding: 0 0.7rem 0 0.25rem;
  border: 1px solid rgba(60, 170, 113, 0.22);
  border-radius: 0.2rem;
  background: rgba(10, 20, 17, 0.78);
  color: #f0fff4;
  font-size: 0.3rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.co-all-games-filter-btn::after {
  content: "";
  position: absolute;
  right: 0.22rem;
  top: 50%;
  width: 0.28rem;
  height: 0.18rem;
  transform: translateY(-50%);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%232ee37d' d='M1 1l5 5 5-5'/></svg>") no-repeat center;
  background-size: contain;
  pointer-events: none;
}

.co-all-games-filter-btn .k {
  color: rgba(245, 255, 248, 0.78);
  font-weight: 600;
}

.co-all-games-filter-btn .v {
  color: #33e887;
  font-weight: 800;
}

.co-all-games-sheet {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.co-all-games-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.co-all-games-sheet__panel {
  position: relative;
  z-index: 1;
  max-height: 72%;
  display: flex;
  flex-direction: column;
  background: #1b2220;
  border-radius: 0.42667rem 0.42667rem 0 0;
  padding: 0 0 calc(0.32rem + env(safe-area-inset-bottom, 0px));
}

.co-all-games-sheet__head {
  position: relative;
  flex: none;
  height: 1.28rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.co-all-games-sheet__head h2 {
  margin: 0;
  color: #fff;
  font-size: 0.42667rem;
  font-weight: 800;
}

.co-all-games-sheet__close {
  position: absolute;
  right: 0.21333rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.17333rem;
  height: 1.17333rem;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(224, 255, 233, 0.7);
  cursor: pointer;
}

.co-all-games-sheet__close svg {
  width: 0.48rem;
  height: 0.48rem;
}

.co-all-games-sheet__list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0.32rem 0.32rem;
}

.co-all-games-sheet__row {
  display: flex;
  align-items: center;
  gap: 0.24rem;
  width: 100%;
  min-height: 1.06rem;
  padding: 0 0.24rem;
  margin: 0 0 0.06rem;
  border: 0;
  border-radius: 0.16rem;
  background: transparent;
  color: #f5fff8;
  font-size: 0.34667rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.co-all-games-sheet__row.is-on {
  background: rgba(27, 181, 104, 0.12);
}

.co-all-games-sheet__ico {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  color: rgba(224, 255, 233, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.08rem;
}

.co-all-games-sheet__row.is-on .co-all-games-sheet__ico {
  color: #24ee89;
}

.co-all-games-sheet__ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.co-all-games-sheet__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.co-all-games-sheet__initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #123d2e;
  color: #7dffb1;
  font-size: 0.22rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.co-all-games-sheet__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.co-all-games-sheet__mark {
  width: 0.48rem;
  height: 0.48rem;
  flex: none;
  border-radius: 999px;
  border: 0.04rem solid rgba(224, 255, 233, 0.35);
  background: transparent;
}

.co-all-games-sheet__row.is-on .co-all-games-sheet__mark {
  border-color: #24ee89;
  background: #24ee89;
  box-shadow: inset 0 0 0 0.07rem #1b2220;
}

.co-all-games-sheet--provider .co-all-games-sheet__mark {
  border-radius: 0.1rem;
}

.co-all-games-sheet--provider .co-all-games-sheet__row.is-on .co-all-games-sheet__mark {
  box-shadow: none;
}

.co-all-games-sheet__row.is-check .co-all-games-sheet__mark {
  border-color: #24ee89;
  background: #24ee89 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='white' d='M3 8.2l3.2 3.2L13 4.6' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 0.32rem no-repeat;
  box-shadow: none;
}

.co-all-games-sheet__row.is-minus .co-all-games-sheet__mark {
  border-color: #24ee89;
  background: #24ee89 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path stroke='white' stroke-width='2' stroke-linecap='round' d='M4 8h8'/></svg>") center / 0.32rem no-repeat;
  box-shadow: none;
}

.co-all-games-grid {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0.2rem;
  row-gap: 0.4rem;
  padding: 0.2rem 0.4rem 0.32rem;
  box-sizing: border-box;
}

.co-all-games-card {
  position: relative;
  min-width: 0;
}

.co-all-games-card__launch {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.co-all-games-card__image-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 0.78;
  overflow: hidden;
  border-radius: 0.2rem;
  background: #123b2d;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.20);
}

.co-all-games-card__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(112, 255, 164, 0.18);
  border-radius: inherit;
  z-index: 1;
}

.co-all-games-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.co-all-games-card__image-wrap.is-cover .co-all-games-card__image {
  object-fit: cover;
}

.co-all-games-card__image-wrap.is-contain .co-all-games-card__image {
  object-fit: contain;
}

.co-all-games-card__name {
  margin: 0.175rem 0 0;
  color: #f2fff6;
  font-size: 0.325rem;
  font-weight: 750;
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.co-all-games-card__provider {
  margin: 0.075rem 0 0;
  color: rgba(230, 255, 238, 0.58);
  font-size: 0.275rem;
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.co-all-games-card__favorite {
  position: absolute;
  top: 0.10667rem;
  right: 0.10667rem;
  z-index: 2;
  width: 0.74667rem;
  height: 0.74667rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 18, 16, 0.55);
  color: rgba(245, 255, 248, 0.88);
  cursor: pointer;
}

.co-all-games-card__favorite.is-on {
  color: #24ee89;
}

.co-all-games-card__favorite svg {
  width: 0.4rem;
  height: 0.4rem;
  display: block;
}

.co-all-games-badge {
  position: absolute;
  left: 0.10667rem;
  top: 0.10667rem;
  z-index: 2;
  padding: 0.05333rem 0.16rem;
  border-radius: 0.10667rem;
  background: #1bb568;
  color: #fff;
  font-size: 0.24rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.co-all-games-skel {
  pointer-events: none;
}

.co-all-games-skel .co-all-games-card__image-wrap,
.co-all-games-skel .co-all-games-card__name,
.co-all-games-skel .co-all-games-card__provider {
  background: linear-gradient(90deg, #1c2d27 0%, #274038 50%, #1c2d27 100%);
  background-size: 200% 100%;
  animation: co-all-games-shimmer 1.2s ease-in-out infinite;
}

.co-all-games-skel .co-all-games-card__name,
.co-all-games-skel .co-all-games-card__provider {
  height: 0.32rem;
  border-radius: 0.08rem;
}

.co-all-games-skel .co-all-games-card__provider {
  width: 60%;
}

@keyframes co-all-games-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.co-all-games-empty,
.co-all-games-error {
  padding: 1.2rem 0.64rem;
  text-align: center;
}

.co-all-games-empty p,
.co-all-games-error p {
  margin: 0 0 0.42667rem;
  color: rgba(224, 255, 233, 0.72);
  font-size: 0.37333rem;
}

.co-all-games-reset,
.co-all-games-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.06667rem;
  padding: 0 0.48rem;
  border: 0;
  border-radius: 0.21333rem;
  background: #1bb568;
  color: #fff;
  font-size: 0.34667rem;
  font-weight: 700;
  cursor: pointer;
}

.co-all-games-toast {
  position: absolute;
  left: 50%;
  bottom: calc(2.1rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 4;
  max-width: 82%;
  padding: 0.26667rem 0.42667rem;
  border-radius: 0.21333rem;
  background: rgba(12, 20, 18, 0.94);
  color: #f5fff8;
  font-size: 0.32rem;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
}

.co-all-games-toast--action {
  pointer-events: auto;
  display: grid;
  gap: 0.2rem;
  justify-items: center;
}

.co-all-games-toast--action p {
  margin: 0;
}

.co-all-games-launch-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0.8rem;
  padding: 0 0.4rem;
  border: 0;
  border-radius: 0.16rem;
  background: #1bb568;
  color: #fff;
  font-size: 0.32rem;
  font-weight: 700;
  cursor: pointer;
}

.co-all-games-card.is-launching .co-all-games-card__launch {
  cursor: progress;
}

.co-all-games-card__opening {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: rgba(10, 18, 16, 0.55);
  color: #f2fff6;
  font-size: 0.29333rem;
  font-weight: 700;
  pointer-events: none;
}

.co-all-games-launching {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 16, 14, 0.55);
  color: #24ee89;
  font-size: 0.37333rem;
  font-weight: 700;
}

@media (min-width: 501px) {
  .co-all-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
