:root {
  --mmg-primary: #07142c;
  --mmg-deep: #041022;
  --mmg-secondary: #089ee3;
  --mmg-accent: #a7d22e;
  --mmg-highlight: #ff8506;
  --mmg-border: rgba(255, 255, 255, 0.1);
  --mmg-text-soft: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #fff;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(1100px 540px at -8% -10%, rgba(8, 158, 227, 0.26), transparent 68%),
    radial-gradient(900px 420px at 108% 18%, rgba(255, 133, 6, 0.16), transparent 63%),
    linear-gradient(180deg, #041022 0%, #07142c 52%, #041022 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.mmg-menu-open,
body.mmg-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.mmg-shell {
  min-height: 100vh;
}

.mmg-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: none;
  width: 270px;
  height: 100vh;
  padding: 22px 16px 18px;
  border-right: 1px solid var(--mmg-border);
  background:
    linear-gradient(180deg, rgba(7, 20, 44, 0.98) 0%, rgba(4, 16, 34, 0.98) 100%);
  backdrop-filter: blur(20px);
}

.mmg-sidebar-inner {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 18px;
}

.mmg-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 64px;
  padding: 6px 8px 14px;
}

.mmg-logo img {
  width: auto;
  height: 54px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.mmg-nav {
  display: grid;
  gap: 6px;
  padding-top: 6px;
}

.mmg-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 14px 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.96rem;
  font-weight: 700;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mmg-nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.mmg-nav-link.is-active {
  border-color: rgba(167, 210, 46, 0.5);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 24px rgba(8, 158, 227, 0.2);
  color: var(--mmg-accent);
}

.mmg-nav-icon {
  width: 20px;
  text-align: center;
  color: inherit;
}

.mmg-sidebar-tools {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--mmg-border);
}

.mmg-search {
  position: relative;
}

.mmg-search i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.9rem;
}

.mmg-search input {
  width: 100%;
  border: 1px solid var(--mmg-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 13px 16px 13px 42px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.mmg-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.mmg-search input:focus {
  border-color: rgba(167, 210, 46, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.mmg-terms-link,
.mmg-auth-button,
.mmg-language-trigger,
.mmg-auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-radius: 999px;
  padding: 13px 16px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mmg-terms-link,
.mmg-language-trigger,
.mmg-auth-secondary {
  border: 1px solid var(--mmg-border);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
}

.mmg-terms-link:hover,
.mmg-language-trigger:hover,
.mmg-auth-secondary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mmg-auth-button {
  border: 1px solid transparent;
  background: var(--mmg-accent);
  color: var(--mmg-primary);
  box-shadow: 0 0 25px rgba(167, 210, 46, 0.32);
}

.mmg-auth-button:hover {
  transform: translateY(-1px);
}

.mmg-language-block {
  display: grid;
  gap: 8px;
}

.mmg-language-label {
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.mmg-language-dropdown {
  position: relative;
}

.mmg-language-trigger {
  justify-content: space-between;
}

.mmg-language-current {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mmg-language-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.mmg-language-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mmg-language-menu {
  position: absolute;
  right: 0;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 30;
  display: none;
  gap: 4px;
  max-height: min(24rem, 54vh);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(4, 16, 34, 0.98) 0%, rgba(7, 20, 44, 0.98) 100%);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.48);
}

.mmg-language-dropdown.is-open .mmg-language-menu {
  display: grid;
}

.mmg-language-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.mmg-language-option:hover,
.mmg-language-option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(1px);
  outline: none;
}

.mmg-language-option.is-active {
  background: rgba(167, 210, 46, 0.12);
  color: var(--mmg-accent);
}

.mmg-mobile-header {
  position: sticky;
  top: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--mmg-border);
  background: rgba(7, 20, 44, 0.84);
  padding: 14px 16px;
  backdrop-filter: blur(16px);
}

.mmg-mobile-header .mmg-logo {
  min-height: auto;
  padding: 0;
}

.mmg-mobile-header .mmg-logo img {
  height: 42px;
}

.mmg-mobile-actions {
  display: flex;
  gap: 10px;
}

.mmg-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--mmg-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.mmg-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: none;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(2px);
}

.mmg-mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 35;
  width: min(360px, 92vw);
  transform: translateX(100%);
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(7, 20, 44, 0.99) 0%, rgba(4, 16, 34, 0.99) 100%);
  padding: 18px 16px 24px;
  transition: transform 0.24s ease;
}

.mmg-mobile-drawer.is-open {
  transform: translateX(0);
}

.mmg-mobile-backdrop.is-open {
  display: block;
}

.mmg-mobile-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.mmg-main {
  padding: 22px 16px 72px;
}

.mmg-main-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.mmg-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(167, 210, 46, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(7, 20, 44, 0.96) 0%, rgba(15, 35, 53, 0.94) 100%);
  padding: 22px 22px 26px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.36);
}

.mmg-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--mmg-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.84);
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 700;
}

.mmg-eyebrow {
  display: block;
  margin-top: 20px;
  color: var(--mmg-accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.mmg-hero h1 {
  margin: 12px 0 10px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.04;
}

.mmg-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--mmg-text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.mmg-hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.84);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

.mmg-grid-section {
  margin-top: 26px;
}

.mmg-grid {
  display: grid;
  gap: 18px;
}

.mmg-grid--games,
.mmg-grid--categories {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 22px;
}

.mmg-grid--wallpapers {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mmg-tile-card {
  display: block;
  color: #fff;
}

.mmg-tile-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(8, 158, 227, 0.22), rgba(4, 16, 34, 0.18));
  box-shadow: 0 22px 54px rgba(2, 6, 23, 0.34);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.mmg-tile-card:hover .mmg-tile-media {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.42);
}

.mmg-tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 16, 34, 0.04) 0%, rgba(4, 16, 34, 0.22) 100%);
  pointer-events: none;
}

.mmg-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mmg-tile-card:hover .mmg-tile-media img {
  transform: scale(1.04);
}

.mmg-tile-chip,
.mmg-tile-favorite {
  position: absolute;
  z-index: 1;
}

.mmg-tile-chip {
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 14px;
  background: #ff962e;
  color: #fff;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(255, 150, 46, 0.28);
}

.mmg-tile-chip.is-new {
  background: var(--mmg-accent);
  color: var(--mmg-primary);
  box-shadow: 0 10px 24px rgba(167, 210, 46, 0.24);
}

.mmg-tile-chip.is-browse {
  background: rgba(8, 158, 227, 0.92);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 158, 227, 0.24);
}

.mmg-tile-favorite {
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(8, 22, 44, 0.32);
  color: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px);
}

.mmg-tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.mmg-tile-label {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mmg-tile-value {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 800;
}

.mmg-tile-value.is-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mmg-accent);
  font-size: 1rem;
}

.mmg-tile-title {
  margin: 10px 0 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.18rem, 2vw, 1.9rem);
  line-height: 1.12;
}

.mmg-tile-media.is-category {
  background:
    radial-gradient(circle at 18% 18%, var(--mmg-category-glow-a, rgba(8, 158, 227, 0.24)), transparent 34%),
    radial-gradient(circle at 84% 82%, var(--mmg-category-glow-b, rgba(167, 210, 46, 0.18)), transparent 40%),
    linear-gradient(180deg, rgba(18, 31, 56, 0.96) 0%, rgba(7, 20, 44, 1) 100%);
}

.mmg-category-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mmg-category-visual i {
  font-size: clamp(2.8rem, 8vw, 5rem);
  color: rgba(255, 255, 255, 0.94);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28));
}

.mmg-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.28);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.mmg-card:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 210, 46, 0.28);
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.4);
}

.mmg-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 158, 227, 0.24), rgba(4, 16, 34, 0.1));
}

.mmg-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mmg-card-media.is-wallpaper img {
  object-fit: cover;
}

.mmg-card-top-badge,
.mmg-card-rating {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mmg-card-top-badge {
  background: rgba(167, 210, 46, 0.14);
  color: var(--mmg-accent);
}

.mmg-card-rating {
  background: rgba(4, 16, 34, 0.72);
  color: #fff;
}

.mmg-card-body {
  display: grid;
  gap: 12px;
  padding: 18px 18px 20px;
}

.mmg-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mmg-card-heading h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  line-height: 1.2;
}

.mmg-card-format {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mmg-accent);
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mmg-card p {
  margin: 0;
  color: var(--mmg-text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.mmg-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border-radius: 999px;
  background: var(--mmg-accent);
  color: var(--mmg-primary);
  padding: 12px 14px;
  font-weight: 800;
  text-align: center;
}

.mmg-shell--wallpapers .mmg-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mmg-shell--wallpapers .mmg-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.mmg-shell--wallpapers .mmg-card-action {
  margin-top: auto;
}

.mmg-card.is-category .mmg-card-action {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mmg-card.is-category .mmg-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at top left, rgba(167, 210, 46, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(7, 20, 44, 0.88) 0%, rgba(4, 16, 34, 0.96) 100%);
}

.mmg-card.is-category .mmg-card-media i {
  font-size: 3rem;
  color: var(--mmg-accent);
}

.mmg-empty {
  display: none;
  margin-top: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  padding: 28px 20px;
  text-align: center;
  color: var(--mmg-text-soft);
}

.mmg-empty.is-visible {
  display: block;
}

.mmg-footer {
  margin-top: 26px;
  border-top: 1px solid var(--mmg-border);
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.mmg-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.mmg-modal.is-open {
  display: flex;
}

.mmg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(8px);
}

.mmg-modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(7, 20, 44, 0.98) 0%, rgba(4, 16, 34, 0.98) 100%);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.56);
  padding: 32px 24px 26px;
}

.mmg-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--mmg-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
}

.mmg-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  border: 1px solid rgba(167, 210, 46, 0.35);
  border-radius: 999px;
  background: rgba(167, 210, 46, 0.1);
  color: var(--mmg-accent);
  padding: 8px 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mmg-modal h3 {
  margin: 20px 0 12px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  line-height: 0.98;
  text-align: center;
}

.mmg-modal p {
  margin: 0;
  color: var(--mmg-text-soft);
  line-height: 1.7;
  text-align: center;
}

.mmg-login-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: auto;
  padding: 0;
  background: none;
}

.mmg-login-visual::after {
  display: none;
}

.mmg-login-visual-copy {
  position: relative;
  z-index: 1;
  max-width: 460px;
}

.mmg-login-sheet {
  display: grid;
  gap: 18px;
  padding-top: 28px;
}

.mmg-login-form {
  display: grid;
  gap: 18px;
}

.mmg-auth-fieldset {
  display: grid;
  gap: 10px;
  text-align: left;
}

.mmg-auth-label {
  padding: 0 4px;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
}

.mmg-auth-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding-inline-start: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mmg-auth-field-wrap:focus-within {
  border-color: rgba(167, 210, 46, 0.55);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(167, 210, 46, 0.08);
}

.mmg-auth-field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.48);
}

.mmg-auth-field {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 16px 18px 16px 12px;
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
}

.mmg-auth-field::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.mmg-auth-select {
  padding-right: 48px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.mmg-auth-select option {
  color: #07142c;
}

.mmg-auth-field-end {
  position: absolute;
  inset-inline-end: 18px;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.mmg-auth-helper {
  margin: 2px 0 0;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: left;
}

.mmg-auth-button--submit {
  min-height: 60px;
  margin-top: 4px;
  font-size: 1rem;
}

.mmg-auth-footnote {
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: center;
}

[dir="rtl"] .mmg-auth-fieldset,
[dir="rtl"] .mmg-auth-helper {
  text-align: right;
}

[dir="rtl"] .mmg-auth-field-wrap {
  padding-inline-start: 0;
  padding-inline-end: 16px;
}

[dir="rtl"] .mmg-auth-field {
  padding: 16px 12px 16px 48px;
  text-align: right;
}

[dir="rtl"] .mmg-auth-field-end {
  inset-inline-end: auto;
  inset-inline-start: 18px;
}

.mmg-highlight-card {
  outline: 2px solid rgba(167, 210, 46, 0.45);
  outline-offset: 6px;
}

@media (min-width: 720px) {
  .mmg-modal-panel {
    width: min(580px, 100%);
    padding: 36px 34px 30px;
  }

  .mmg-login-sheet {
    padding-top: 30px;
  }
}

@media (min-width: 1024px) {
  .mmg-sidebar {
    display: block;
  }

  .mmg-mobile-header,
  .mmg-mobile-backdrop,
  .mmg-mobile-drawer {
    display: none;
  }

  .mmg-main {
    margin-left: 270px;
    padding: 30px 22px 80px;
  }

  .mmg-hero {
    padding: 28px 30px 32px;
  }

  .mmg-grid--wallpapers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

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

@media (min-width: 1180px) {
  .mmg-grid--games,
  .mmg-grid--categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1480px) {
  .mmg-grid--games,
  .mmg-grid--categories {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
