html {
  overflow-y: auto;
}

body {
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

#game-launcher {
  background-color: #f6f6f6;
  width: 100%;
  min-height: 100%;
}

#game-launcher .container {
  display: none;
  width: 100%;
  min-height: 100vh;
}

#game-launcher .container.active {
  display: flex;
  padding: 0;
}

.sidebar {
  width: 194px;
  box-shadow: 0 0 13px 1px #0003;
  background-color: #333;
  color: #fff;
  flex-grow: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width 0.3s ease;
}

.sidebar.minimized {
  width: 40px;
}

.sidebar .mobile-toggle {
  flex: none;
  width: 100%;
  text-align: right;
  margin-top: 0;
}

@media screen and (max-width: 768px) {
  .sidebar .mobile-toggle {
    display: none;
  }
}

.sidebar .mobile-toggle button {
  width: 40px;
  border: none;
  background: none;
  height: 30px;
  font-size: 20px;
  line-height: 20px;
  color: inherit;
  transition: transform 0.3s ease;
  padding-bottom: 6px;
  color: #fff;
  cursor: pointer;
}

.sidebar.minimized .mobile-toggle button {
  transform: scaleX(-1);
}

.sidebar .mobile-toggle button:hover {
  background-color: #0000001a;
}

.sidebar .logo {
  width: 175px;
  height: 80px;
  text-align: center;
  font-size: 10px;
  color: #fff;
  margin: 0 auto 20px 8px;
  background-image: url("/api/assets/ms-logo-small.png");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: contain;
}

.sidebar.minimized .logo {
  display: block;
  width: 32px;
  height: 52px;
  background-image: url(/api/assets/ms-logo-icon.png?v=1) !important;
  margin-left: 4px;
}

@media screen and (max-width: 768px) {
  .sidebar.minimized .logo {
    margin-top: 10px;
  }
}

.sidebar .option-item {
  position: relative;
  display: flex;
  transition: background-color 0.5s ease;
  cursor: pointer;
  font-size: 12px;
  padding: 12px 12px;
  height: 44px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  cursor: pointer;
}

.sidebar.minimized .option-item {
  height: 50px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
}

.sidebar .option-item:hover {
  background-color: #00000014;
}

.sidebar .option-item .option-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /*background-image: url(../../assets/mays/icons/games.png);*/
  margin-right: 12px;
  margin-bottom: 0;
  color: #fff;
}

.sidebar.minimized .option-item .option-icon {
  margin-right: 0;
}

.sidebar .option-item .option-value,
.sidebar .option-item .option-short {
  color: #fff;
}

.sidebar.minimized .option-item .option-value {
  display: none;
}

.sidebar .option-item .option-short {
  display: none;
}

.sidebar.minimized .option-item .option-short {
  width: 40px;
  padding: 0 5px;
  text-align: center;
  display: block;
  font-size: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar .option-item .option-title {
  font-size: 10px;
  font-weight: bold;
  color: #fff;
}

.sidebar.minimized .option-item .option-title {
  display: none;
}

.sidebar .option-item .option-detail {
  display: flex;
  flex-direction: column;
}

.sidebar .option-item .option-list {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 125px;
  width: auto;
  height: auto;
  background-color: #fff;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 13px 1px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar .option-item .option-list.multiple-columns {
  flex-wrap: wrap;
  flex-direction: row;
  width: 200px;
}

.sidebar .option-item .option-list.multiple-columns .option-list-item {
  width: 50px;
}

.sidebar .option-item:hover .option-list {
  opacity: 1;
  pointer-events: auto;
}

.sidebar .option-item .option-list.disable {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.sidebar .option-item .option-list .option-list-item {
  display: flex;
  align-items: center;
  color: rgb(85, 85, 85);
  height: 44px;
  background-color: transparent;
  padding: 0px 12px !important;
  font-size: 12px;
  white-space: nowrap;
}

.sidebar .option-item .option-list .option-list-item:hover {
  background-color: rgba(0, 0, 0, 0.08) !important;
}

.mainbar {
  flex-grow: 1;
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
  padding: 50px 30px 30px 30px;
  gap: 30px;
}

@media screen and (max-width: 1020px) {
  .mainbar {
    gap: 20px;
    padding: 40px 20px 20px 20px;
  }
}

@media screen and (max-width: 768px) {
  .mainbar {
    gap: 10px;
    padding: 10px 10px 10px 10px;
  }

  .mainbar.padding-mobile {
    padding-top: 40px;
  }
}

.topbar {
  width: 100%;
  min-height: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-grow: 0;
  flex-shrink: 0;
  flex-wrap: wrap;
}

@media screen and (max-width: 1020px) {
  .topbar {
    gap: 15px;
  }

  .topbar.hide-mobile {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .topbar {
    gap: 10px;
  }
}

.topbar .topbar-left,
.topbar .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media screen and (max-width: 1020px) {
  .topbar .topbar-left,
  .topbar .topbar-right {
    gap: 15px;
  }
}

@media screen and (max-width: 768px) {
  .topbar .topbar-left,
  .topbar .topbar-right {
    gap: 10px;
  }
}

.topbar .topbar-right {
  gap: 10px;
}

@media screen and (max-width: 1020px) {
  .topbar .topbar-right #launcher-help,
  .topbar .topbar-right #launcher-user {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .topbar .topbar-left #filter-phase,
  .topbar .topbar-left #filter-preferences {
    display: none;
  }
}

.topbar .default-input {
  width: 140px;
}

@media screen and (max-width: 1020px) {
  .topbar .default-input {
    width: 125px;
  }
}

@media screen and (max-width: 768px) {
  .topbar .default-input {
    width: 110px;
  }
}

.filter-options,
.view-options,
.game-options,
.user-detail {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media screen and (max-width: 1020px) {
  .filter-options,
  .view-options,
  .game-options,
  .user-detail {
    gap: 15px;
  }
}

@media screen and (max-width: 840px) {
  .view-options {
    width: 60px;
    gap: 0 !important;
  }
}

@media screen and (max-width: 768px) {
  .filter-options,
  .view-options,
  .game-options,
  .user-detail {
    gap: 10px;
  }
}

.filter-container {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.filter-mode .mode-item {
  color: #acacac;
  cursor: pointer;
}

.filter-mode .mode-item.active {
  color: #3e3e3e;
}

.view-options {
  gap: 10px;
}

.sort-icon,
.layout-icon {
  width: 30px;
  height: 30px;
  padding: 5px;
  opacity: 0.3;
  cursor: pointer;
}

.sort-icon.google-icon,
.layout-icon.google-icon {
  opacity: 0.5;
  padding: 3px 5px;
}

.sort-icon.active,
.sort-icon:hover,
.layout-icon.active,
.layout-icon:hover {
  opacity: 0.75;
}

.sort-icon.google-icon.active,
.sort-icon.google-icon:hover,
.layout-icon.google-icon.active,
.layout-icon.google-icon:hover {
  opacity: 1;
}

.sort-icon img,
.layout-icon img {
  width: 100%;
  height: 100%;
}

.filter-title,
.output-title,
.game-option-title {
  font-weight: 700;
  padding: 0 0 10px 15px;
  font-size: 11px;
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
}

.output-values.flex-mode,
.game-option-values.flex-mode {
  display: flex;
  align-items: center;
}

.popup-option {
  font-size: 14px;
  width: 30px;
  height: 30px;
  padding: 3px 5px;
  opacity: 1;
  cursor: pointer;
  color: #3e3e3e;
}

#popup-overlay {
  position: absolute;
  background-color: rgba(51, 51, 51, 0.95);
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.4;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 315px;
  width: max-content;
  transform: translateY(-100%);
  margin-top: -10px;
}

#popup-overlay b {
  color: #fff;
}

#popup-overlay b.main {
  font-size: 14px;
  color: #fff;
}

.games-container {
  display: flex;
  position: relative;
}

.games-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

@media screen and (max-width: 768px) {
  .games-list {
    gap: 10px;
  }
}

@media screen and (max-width: 500px) {
  .games-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
}

.games-list .game-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  aspect-ratio: 200 / 270;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  container-type: inline-size;
}

.games-list .game-item.disabled {
  opacity: 0.33;
  filter: grayscale(1);
  pointer-events: none;
}

.games-list .game-item.secondary .game-image {
  filter: brightness(0.66);
}

.games-list .game-item .game-image {
  position: relative;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.games-list .game-item .game-image .game-code {
  position: absolute;
  top: 5px;
  left: 5px;
  color: #fff;
  font-weight: 900;
  font-size: 7cqi;
  line-height: 7cqi;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.games-list .game-item .game-image .game-name {
  position: absolute;
  left: 0;
  width: 100%;
  bottom: 17%;
  font-family: "Montserrat", sans-serif;
  color: #fff;
  font-weight: 900;
  font-size: 15cqi;
  line-height: 15cqi;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
  text-transform: uppercase;
  text-align: center;
  padding: 0 5px;
  letter-spacing: -1pt;
}

.games-list .game-item .game-image .game-name.small {
  font-size: 13.5cqi;
  line-height: 13.5cqi;
}

.games-list .game-item .game-image .game-name.smaller {
  font-size: 12cqi;
  line-height: 12cqi;
}

.games-list .game-item .game-image .game-name.no-width {
  width: auto;
}

.games-list .game-item .game-image .game-brand-name {
  position: absolute;
  left: 0;
  width: 100%;
  bottom: 9%;
  font-family: "Montserrat", sans-serif;
  font-size: 6cqi;
  line-height: 6cqi;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  letter-spacing: -0.5pt;
}

.games-list .game-item .game-image.imagemode .game-name,
.games-list .game-item .game-image.imagemode .game-brand-name {
  display: none;
}

.games-list .game-item .game-title {
  width: 100%;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
  padding: 0 10px;
  background-color: #ccc;
  display: none;
}

.games-list .game-item .game-favorite {
  position: absolute;
  top: 0;
  right: 0;
  width: 35px;
  height: 35px;
  z-index: 15;
  cursor: pointer;
  flex-grow: 0;
  flex-shrink: 0;
}

@media screen and (max-width: 768px) {
  .games-list .game-item .game-favorite {
    display: none;
  }
}

.games-list .game-item .game-favorite .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 25px;
  height: 25px;
  background-image: url("../images/gamelauncher/game-favorite-white-inactive.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.games-list .game-item .game-favorite.active .icon,
.games-list .game-item .game-favorite:hover .icon {
  background-image: url("../images/gamelauncher/game-favorite-white-active.png");
}

.games-list .game-item .game-brand {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  background-color: #ccc;
  z-index: 1;
  flex-grow: 0;
  flex-shrink: 0;
  display: none;
}

.games-list .game-item .game-options {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 10px 10px 10px 10px;
}

.games-list .game-item:hover .game-options {
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .games-list .game-item .game-options {
    opacity: 1;
    background-color: transparent;
    padding: 0;
  }
}

.games-list .game-item .game-options .game-configurations {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 10px;
}

@media screen and (max-width: 768px) {
  .games-list .game-item .game-options .game-configurations {
    display: none;
  }
}

.games-list .game-item .game-options .game-configurations .option-item {
  width: calc(50% - 5px);
}

.games-list .game-item .game-options .game-configurations .option-item .option-title {
  font-weight: 700;
  padding: 0 0 5px 0;
  font-size: 10px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  display: block;
  white-space: nowrap;
}

.games-list .game-item .game-options .game-configurations .option-item .default-input {
  text-align: center;
  height: 30px;
}

.games-list .game-item .game-options .game-configurations .option-item .default-input.disabled {
  color: #555;
}

.games-list .game-item .game-options .game-actions {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: calc(100% - 20px);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

@media screen and (max-width: 768px) {
  .games-list .game-item .game-options .game-actions {
    justify-content: center;
  }
}

.games-list .game-item .game-options .game-actions .option-item {
  width: 50%;
}

.games-list .game-item .game-options .game-actions .button {
  white-space: inherit;
  line-height: 14px;
}

@media screen and (max-width: 768px) {
  .games-list.grid .game-item .game-options .game-actions {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
  }

  .games-list .game-item .game-options .game-actions .option-item.button-open-page {
    display: none;
  }

  .games-list.grid .game-item .game-options .game-actions .option-item.button-open-new-tab {
    width: 100%;
    height: 100%;
  }

  .games-list .game-item .game-options .game-actions .option-item.button-open-new-tab button {
    transition: none;
  }

  .games-list.grid .game-item .game-options .game-actions .option-item.button-open-new-tab button {
    width: 100%;
    height: 100%;
    background: transparent;
    border: transparent;
    font-size: 0 !important;
  }
}

.games-list.list {
  display: flex;
  flex-direction: column;
}

.games-list.list .game-item {
  width: 100%;
  height: 60px;
  aspect-ratio: auto;
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
}

.games-list.list .game-item .game-image {
  display: none;
}

.games-list.list .game-item .game-brand {
  position: relative;
  top: auto;
  left: auto;
  width: 30px;
  height: 30px;
  margin-left: -5px;
  background-color: transparent;
  display: block;
}

.games-list.list .game-item .game-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.games-list.list .game-item .game-favorite {
  position: relative;
  top: auto;
  right: auto;
}

.games-list.list .game-item .game-favorite .icon {
  background-image: url("../images/gamelauncher/game-favorite-inactive.png");
}

.games-list.list .game-item .game-favorite.active .icon,
.games-list.list .game-item .game-favorite:hover .icon {
  background-image: url("../images/gamelauncher/game-favorite-active.png");
}

.games-list.list .game-item .game-title {
  width: auto;
  font-size: 12px;
  text-align: left;
  background-color: transparent;
  padding: 0;
  flex-grow: 1;
  flex-shrink: 1;
  display: block;
}

.games-list.list .game-item .game-options {
  position: relative;
  top: auto;
  left: auto;
  width: auto;
  height: auto;
  opacity: 1;
  flex-direction: row;
  background: transparent;
  gap: 10px;
  padding: 0;
}

.games-list.list .game-item .game-options .game-configurations {
  width: auto;
  flex-direction: row;
  flex-wrap: nowrap;
}

@media screen and (max-width: 1020px) {
  .games-list.list .game-item .game-options .game-configurations {
    display: none;
  }
}

.games-list.list .game-item .game-options .game-configurations .option-item {
  width: 70px;
}

.games-list.list .game-item .game-options .game-configurations .option-item .option-title {
  color: #555;
}

.games-list.list .game-item .game-options .game-actions {
  position: relative;
  top: auto;
  left: auto;
  bottom: auto;
  width: auto;
  flex-direction: row;
  flex-wrap: nowrap;
}

.games-list.list .game-item .game-options .game-actions .option-item {
  width: 100px;
}

.game-detail {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.game-detail iframe {
  border: 0;
}

.game-detail .close,
.game-detail .new-tab {
  position: absolute;
  top: -32px;
  right: 1px;
  width: 24px;
  height: 24px;
  font-size: 24px;
  color: #f05200;
  z-index: 10;
  cursor: pointer;
}

.game-detail .new-tab {
  right: 40px;
}

.game-container {
  position: relative;
}

.game-container.fullscreen {
  width: 100%;
  height: 100%;
}

.game-container.mobile-portrait {
  width: 375px;
  height: 667px;
}

.game-container.mobile-landscape {
  width: 667px;
  height: 375px;
}

.game-container.tablet-portrait {
  width: 768px;
  height: 1024px;
}

.game-container.tablet-landscape {
  width: 1024px;
  height: 768px;
}

/* ── Mays Access Login Screen ─────────────────────── */
.mays-access-login-wrapper {
  display: none;
  /*min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;*/
  z-index: 9999;
  justify-content: center;
  align-items: center;
  background-color: #383838;
  overflow: hidden;
}
.mays-access-login-wrapper.active {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #383838;
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}
.mays-access-login-wrapper .poly-left {
  background: url(/mays/assets/poly-bottom-left.70583e59.svg) 0 100% no-repeat;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 500px;
  width: 70%;
  z-index: 6;
  pointer-events: none;
  opacity: 0.9;
}
.mays-access-login-wrapper .poly-right-top {
  background: url(/mays/assets/poly-top-right.89788c85.svg) 100% 0% no-repeat;
  position: absolute;
  top: 0;
  right: 0;
  height: 60vh;
  width: 55%;
  z-index: 7;
  pointer-events: none;
  opacity: 0.9;
}
.mays-access-login-wrapper .poly-right-bottom {
  background: url(/mays/assets/poly-bottom-right.843bee3a.svg) 100% 100% no-repeat;
  position: absolute;
  bottom: 0;
  right: -50px;
  height: 60vh;
  width: 55%;
  z-index: 8;
  pointer-events: none;
  opacity: 0.9;
}
.mays-access-login-wrapper .logotype {
  width: 190px;
  height: 80px;
  margin: auto;
  background-position: 50% 50%;
  background-size: contain;
  background-repeat: no-repeat;
}
.mays-access-login-wrapper h1.title {
  font-family: "Montserrat", "Arial", "sans-serif";
  font-size: 2.3rem;
  font-weight: bold;
  margin-bottom: 20px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #000;
  text-align: center;
  margin-left: -30px;
  margin-right: -30px;
}
.login-card {
  background: white;
  border-radius: 6px;
  width: 390px;
  max-width: 90%;
  min-height: 300px;
  border: solid 1px #d7d7d7;
  padding: 30px 50px;
  position: relative;
  z-index: 20;
}
.login-form .form-label {
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0 0 15px 25px;
  display: block;
}
.input-group-premium {
  position: relative;
  margin-bottom: 20px;
}
.input-group-premium input {
  border: solid 1px #d7d7d7;
  width: 100%;
  border-radius: 6px;
  padding: 0 15px;
  background-color: #fff;
  font-weight: 300;
  color: #333;
  transition: border-color 0.3s linear;
  height: 4.6rem;
  line-height: 4.6rem;
  font-size: 1.5rem;
}
.input-group-premium input:hover,
.input-group-premium input:focus {
  border-color: #333 !important;
}
.login-form .button-group {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}
.login-btn-premium {
  padding: 0 24px;
  cursor: pointer;
  text-align: center;
  border-radius: 6px;
  font-size: 1rem;
  text-transform: uppercase;
  display: inline-block;
  height: 40px;
  line-height: 38px;
  font-weight: 700;
  user-select: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  background-color: #f05200;
  border: 1px solid #f05200;
}
.login-btn-premium span {
  color: #fff;
}
.login-btn-premium:hover:not(:disabled) {
  background-color: #fff;
  border-color: #f05200;
}
.login-btn-premium:hover:not(:disabled) span {
  color: #f05200;
}
.login-btn-premium:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.feedback-msg {
  margin-top: 20px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.feedback-msg.success {
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.2);
  color: #2ecc71;
}
.feedback-msg.error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}
.feedback-icon {
  font-size: 18px !important;
  flex-shrink: 0;
}

@media (pointer: coarse) {
  .sidebar .option-item:hover .option-list {
    opacity: 0;
    pointer-events: none;
  }
  .sidebar .option-item.mobile-active .option-list {
    opacity: 1;
    pointer-events: auto;
  }
}
