body:not(.game-mode) .zamn-home-header {
  background: none !important;
  color: #351750;
}

body:not(.game-mode) .zamn-home-header::after {
  content: none;
}

body:not(.game-mode) .zamn-home-header .zamn-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "brand nav account";
  gap: 8px 16px;
  max-width: 1168px;
  padding: 14px clamp(22px, 3vw, 40px) 0;
}

body:not(.game-mode) .zamn-home-header .zamn-header-brand {
  grid-area: brand;
  justify-self: start;
}

body:not(.game-mode) .zamn-home-header .zamn-experience-switch {
  grid-area: nav;
  width: auto;
}

body:not(.game-mode) .zamn-home-header .zamn-experience-switch .zamn-section-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid #b99ed8;
  border-radius: 999px;
  padding: 4px;
  background: #eadef8;
}

body:not(.game-mode) .zamn-home-header .zamn-experience-switch .zamn-section-nav a {
  min-width: 0;
  min-height: 44px;
  padding: 8px clamp(10px, 2vw, 24px);
  border: 0 !important;
  border-radius: 999px;
  background: none !important;
  color: #53366f !important;
  box-shadow: none !important;
  white-space: nowrap;
}

body:not(.game-mode) .zamn-home-header .zamn-experience-switch .zamn-section-nav a:not(.is-active, [aria-disabled="true"]):hover {
  background: #f5ecff !important;
  color: #542296 !important;
}

body:not(.game-mode) .zamn-home-header .zamn-experience-switch .zamn-section-nav a[aria-disabled="true"] {
  color: #6b5580 !important;
  cursor: not-allowed;
}

body:not(.game-mode) .zamn-home-header .zamn-experience-switch .zamn-section-nav a.is-active {
  background: #5a269f !important;
  color: #fff !important;
  box-shadow: 0 2px 4px #44206d2b !important;
}

body:not(.game-mode) .zamn-home-header .baynana-new-badge {
  color: #58367e !important;
  border-color: #baa4d2 !important;
}

body:not(.game-mode) .zamn-home-header #homeLogin {
  grid-area: account;
  justify-self: end;
  min-height: 44px;
  background: none !important;
  border-color: #bda8d6 !important;
  color: #351750 !important;
  white-space: nowrap;
}

body:not(.game-mode) .zamn-home-header a:focus-visible {
  outline-color: #7849b0;
}

#homeHero.zamn-welcome {
  position: relative;
  max-width: 1168px;
  margin: clamp(18px, 3vw, 36px) auto 0;
  padding-inline: clamp(22px, 3vw, 40px);
  overflow: visible;
  background: none !important;
}

#homeHero.zamn-welcome::before,
#homeHero.zamn-welcome::after {
  content: none;
}

.zamn-welcome-card {
  position: relative;
  isolation: isolate;
  min-height: clamp(300px, 29vw, 386px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  grid-template-areas: "copy art";
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  padding: clamp(26px, 3vw, 36px) clamp(24px, 4.4vw, 58px);
  color: #291243;
}

.zamn-welcome-card::before {
  content: "";
  position: absolute;
  inset: 0 4px 4px 0;
  z-index: -1;
  border: 2px solid #38205d;
  border-radius: 11px 24px 13px 21px;
  background: linear-gradient(137deg, #c9a8f8 0 27%, #e3ccff 27% 67%, #edddff 100%);
  box-shadow: 6px 7px 0 #3e2166;
  transform: skewY(-0.75deg);
}

.zamn-welcome-art {
  grid-area: art;
  display: block;
  min-width: 0;
  width: min(100%, 485px);
  justify-self: center;
}

.zamn-welcome-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.zamn-welcome-copy {
  grid-area: copy;
  min-width: 0;
  text-align: start;
}

.zamn-welcome-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5.55vw, 78px);
  font-weight: 900;
  line-height: 0.98;
}

.zamn-welcome-copy h1 span {
  display: block;
  margin-block-start: 0.06em;
  color: #5a269f;
}

.zamn-welcome-copy p {
  margin: 18px 0 23px;
  color: #4a285f;
  font-size: clamp(16px, 1.65vw, 22px);
  font-weight: 600;
  line-height: 1.55;
}

.zamn-welcome-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 9px 16px;
  border: 1px solid #4e297b;
  border-radius: 8px;
  background: #fff7eb;
  color: #371657;
  box-shadow: 3px 3px 0 #4e297b;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

.zamn-welcome-action:focus-visible {
  outline: 3px solid #5a269f;
  outline-offset: 5px;
}

@media (hover: hover) {
  .zamn-welcome-action:hover {
    background: #ffebd1;
  }
}

.zamn-welcome-arrow {
  position: relative;
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #5a269f;
  color: #fff7eb;
}

.zamn-welcome-arrow::before,
.zamn-welcome-arrow::after {
  content: "";
  position: absolute;
}

.zamn-welcome-arrow::before {
  top: 7px;
  left: 14px;
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: currentColor;
}

.zamn-welcome-arrow::after {
  top: 13px;
  left: 11px;
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-bottom-right-radius: 1px;
  transform: rotate(45deg);
}

.zamn-games-heading {
  max-width: 1088px;
  margin: 0 auto 15px;
  color: #3c1764;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.2;
}

@media (max-width: 640px) {
  #homeHero.zamn-welcome {
    padding-inline: 14px;
  }

  .zamn-welcome-card {
    min-height: max(370px, calc(100vw - 18px));
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "art" "copy";
    align-content: center;
    align-items: center;
    gap: 12px;
    padding: clamp(16px, 4vw, 25px) clamp(16px, 5.3vw, 30px) clamp(25px, 5vw, 30px);
  }

  .zamn-welcome-card::before {
    border-radius: 10px 19px 10px 17px;
    background: linear-gradient(149deg, #c9a8f8 0 30%, #e3ccff 30% 74%, #edddff 100%);
    box-shadow: 4px 6px 0 #3e2166;
    transform: skewY(-1deg);
  }

  .zamn-welcome-art {
    width: min(100%, 79vw, 410px);
  }

  .zamn-welcome-copy h1 {
    font-size: clamp(37px, 10.5vw, 62px);
  }

  .zamn-welcome-copy p {
    margin: 12px 0 15px;
    font-size: clamp(15px, 3.9vw, 18px);
  }

  .zamn-welcome-action {
    min-height: 46px;
    padding-block: 7px;
  }
}

@media (max-width: 560px) {
  body:not(.game-mode) .zamn-home-header .zamn-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand account" "nav nav";
    padding-inline: 14px;
  }

  body:not(.game-mode) .zamn-home-header .zamn-experience-switch {
    justify-self: center;
    max-width: 100%;
  }
}

.zamn-store-packages .z-icon {
  width: 19px;
  height: 19px;
  margin: 0;
}

.zamn-store-heading {
  margin: 0 auto clamp(18px, 3vw, 28px);
  text-align: center;
}

.zamn-store-heading .zamn-games-heading {
  width: fit-content;
  margin: 0 auto;
  padding: 10px clamp(24px, 4vw, 44px);
  border-radius: 999px;
  background: #3f2160;
  color: #fff8ee;
  font-size: clamp(23px, 3vw, 32px);
}

.zamn-store-heading p {
  margin: 12px 0 0;
  color: #614f72;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;
}

.zamn-store-tools,
.zamn-store-options {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(6px, 1.2vw, 12px);
}

.zamn-store-tools {
  max-width: 1088px;
  margin: 0 auto clamp(12px, 2.5vw, 24px);
}

.zamn-store-options button,
.zamn-store-packages {
  min-height: 44px;
  padding: 7px clamp(14px, 2.2vw, 23px);
  border: 1.5px solid #8c68ad;
  border-radius: 999px;
  background: #fbf7ff;
  color: #492367;
  font: 800 clamp(15px, 1.9vw, 17px)/1.25 Tajawal, system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.zamn-store-options button[aria-pressed="true"] {
  border-color: #582697;
  background: #582697;
  color: #fff;
  box-shadow: 0 3px 0 #3b1c58;
}

.zamn-store-options button[aria-pressed="false"]:hover {
  background: #ebddf8;
}

.zamn-store-packages {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.zamn-store-packages:hover { background: #eee3fa; }

.zamn-store-tools :is(button, a):focus-visible,
.zamn-store-feedback :is(button, a):focus-visible {
  outline: 2px solid #7a4cb4;
  outline-offset: 3px;
}

.zamn-store-feedback {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  text-align: center;
  max-width: 1088px;
  margin-inline: auto;
  color: #51326e;
}
.zamn-store-status { margin: 0 0 12px; font-weight: 700; }
.zamn-store-status:empty { display: none; }
.zamn-store-feedback :is(button, a) {
  min-height: 38px;
  padding: 5px 8px;
  border: 0;
  background: none;
  color: #582697;
  font: 800 15px/1.3 Tajawal, system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

#games-list :is(div, a, button, span)[hidden] { display: none !important; }

@media (max-width: 620px) {
  .zamn-store-options button,
  .zamn-store-packages { padding-inline: 12px; }
}

@media (max-width: 360px) {
  .zamn-store-options button,
  .zamn-store-packages { padding-inline: 9px; }
}

/* Feature labels on the home catalog cards. */
body:not(.game-mode) #homeMain #games-list .game-card .game-tags {
  justify-content: center !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 5px !important;
}

body:not(.game-mode) #homeMain #games-list .game-card .game-tags .game-tag {
  gap: .35rem !important;
  min-height: 1.5rem !important;
  padding: .16rem .38rem !important;
  border: 1px solid #e5d7f1 !important;
  border-radius: 8px !important;
  background: #f7effc !important;
  color: #502c70 !important;
  box-shadow: none;
  font-size: clamp(.625rem, 4.8cqi, .75rem) !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

body:not(.game-mode) #homeMain #games-list .game-card .game-tag .z-icon {
  display: inline-block !important;
  flex: 0 0 .8rem !important;
  width: .8rem !important;
  height: .8rem !important;
  color: #694197 !important;
}

body:not(.game-mode) #homeMain #games-list .game-card .game-tags .game-tag > span {
  white-space: nowrap !important;
}

@container (max-width: 208px) {
  body:not(.game-mode) #homeMain #games-list .game-card .game-tags {
    gap: 3px !important;
  }

  body:not(.game-mode) #homeMain #games-list .game-card .game-tags .game-tag {
    min-height: 1.3rem !important;
    padding: .12rem .25rem !important;
    gap: .15rem !important;
    font-size: clamp(.5625rem, 5.65cqi, .6875rem) !important;
    line-height: 1.25 !important;
  }

  body:not(.game-mode) #homeMain #games-list .game-card .game-tag .z-icon {
    flex-basis: .56rem !important;
    width: .56rem !important;
    height: .56rem !important;
  }
}

@container (max-width: 152px) {
  body:not(.game-mode) #homeMain #games-list .game-card .game-tag .z-icon {
    display: none !important;
  }
}

@media (max-width: 899px) {
  body:not(.game-mode) #homeMain #games-list a.game-card {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }

  body:not(.game-mode) #homeMain #games-list .game-card .game-content {
    min-height: 0 !important;
    padding-block: clamp(11px, 2.5vw, 16px) !important;
    gap: clamp(8px, 1.65vw, 10px) !important;
  }
}

@media (max-width: 559px) {
  body:not(.game-mode) #homeMain #games-list .game-card .game-content {
    padding-block: clamp(16px, 3.75vw, 21px) !important;
    gap: clamp(10px, 2vw, 12px) !important;
  }

  body:not(.game-mode) #homeMain #games-list .game-card .game-btn {
    min-height: 42px !important;
  }
}
