:root {
  color-scheme: dark;
  --bg: #050507;
  --bg-elevated: #0b0b10;
  --surface: rgba(18, 18, 25, 0.76);
  --surface-solid: #111118;
  --surface-soft: #15151d;
  --text: #f5f5f7;
  --text-strong: #ffffff;
  --muted: #a6a6b2;
  --muted-strong: #c9c9d2;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);
  --cyan: #14d8ff;
  --blue: #2f7cff;
  --violet: #855cff;
  --magenta: #d946ef;
  --green: #30d77d;
  --discord: #5865f2;
  --danger: #ff6b7a;
  --shadow-lg: 0 38px 100px rgba(0, 0, 0, 0.46);
  --shadow-md: 0 24px 64px rgba(0, 0, 0, 0.32);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1280px;
  --header-height: 78px;
  --font-en: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% -12%, rgba(20, 216, 255, 0.09), transparent 31rem),
    radial-gradient(circle at 88% 4%, rgba(133, 92, 255, 0.09), transparent 31rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

p,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

::selection {
  color: #050507;
  background: #b8edff;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--text-strong);
  color: #050507;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-block-end: 1px solid transparent;
  background: rgba(5, 5, 7, 0.52);
  backdrop-filter: blur(22px) saturate(150%);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(5, 5, 7, 0.84);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-weight: 760;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-logo-shell {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-logo-shell img {
  width: 44px;
  height: 38px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.primary-nav a,
.language-link {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.language-link:hover,
.language-link:focus-visible {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.menu-button span {
  width: 19px;
  height: 1.5px;
  margin: 4px auto;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.button {
  min-height: 50px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 740;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.text-link:focus-visible,
.back-link:focus-visible,
.game-card a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.button-small {
  min-height: 42px;
  padding-inline: 17px;
  font-size: 14px;
}

.button-primary {
  background: linear-gradient(135deg, #f8f8fa 0%, #d7f8ff 52%, #ddd4ff 100%);
  color: #06070a;
  box-shadow: 0 16px 38px rgba(100, 176, 255, 0.16);
}

.button-primary:hover {
  box-shadow: 0 22px 46px rgba(100, 176, 255, 0.24);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.09);
}

.button-light {
  background: #ffffff;
  color: #08080a;
}

.button-discord {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.button-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.hero-section {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  padding: 84px 0 72px;
  display: flex;
  align-items: center;
  overflow: clip;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.hero-copy {
  max-width: 660px;
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bcefff;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

html[lang="ar"] .hero-eyebrow,
html[lang="ar"] .section-eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.hero-eyebrow::before,
.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.hero-copy h1 {
  margin: 22px 0 0;
  max-width: 720px;
  color: var(--text-strong);
  font-size: clamp(50px, 6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 760;
}

html[lang="ar"] .hero-copy h1 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-copy > p {
  margin: 27px 0 0;
  max-width: 620px;
  color: var(--muted-strong);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.75;
}

.hero-actions,
.cta-actions {
  margin-block-start: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-block-start: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(48, 215, 125, 0.12);
}

.hero-product,
.product-visual {
  margin: 0;
  position: relative;
}

.hero-product::before,
.product-visual::before {
  content: "";
  position: absolute;
  inset: 7% 4% -5%;
  z-index: -1;
  border-radius: 40px;
  background: linear-gradient(120deg, rgba(20, 216, 255, 0.13), rgba(133, 92, 255, 0.13));
  filter: blur(32px);
}

.hero-product img,
.product-visual img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 27px;
  box-shadow: var(--shadow-lg);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.9;
  pointer-events: none;
}

.hero-orb-one {
  width: 380px;
  height: 380px;
  inset-inline-end: -160px;
  inset-block-start: 5%;
  background: radial-gradient(circle, rgba(133, 92, 255, 0.17), transparent 68%);
}

.hero-orb-two {
  width: 330px;
  height: 330px;
  inset-inline-start: -180px;
  inset-block-end: -50px;
  background: radial-gradient(circle, rgba(20, 216, 255, 0.14), transparent 68%);
}

.trust-section {
  padding: 0 0 48px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.trust-card {
  min-height: 145px;
  padding: 26px;
  border-inline-end: 1px solid var(--line);
}

.trust-card:last-child {
  border-inline-end: 0;
}

.trust-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.trust-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-shell {
  padding: 112px 0;
}

.section-shell.compact-top {
  padding-block-start: 22px;
}

.section-heading {
  max-width: 790px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered .section-eyebrow {
  justify-content: center;
}

.section-heading.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading.split > div {
  max-width: 760px;
}

.section-heading h2,
.feature-copy h2,
.closing-cta h2,
.page-hero h1,
.game-detail-copy h1,
.error-card h1 {
  margin: 17px 0 0;
  color: var(--text-strong);
  font-size: clamp(38px, 4.7vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 740;
}

html[lang="ar"] .section-heading h2,
html[lang="ar"] .feature-copy h2,
html[lang="ar"] .closing-cta h2,
html[lang="ar"] .page-hero h1,
html[lang="ar"] .game-detail-copy h1,
html[lang="ar"] .error-card h1 {
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-heading p,
.feature-copy > p,
.closing-cta p,
.page-hero p,
.game-detail-copy > p,
.error-card > p {
  margin: 21px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.features-stack {
  margin-block-start: 90px;
  display: grid;
  gap: 128px;
}

.feature-section {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
}

.feature-section.feature-reverse .feature-copy {
  order: 2;
}

.feature-section.feature-reverse .product-visual {
  order: 1;
}

.feature-copy {
  max-width: 570px;
}

.feature-copy h2 {
  font-size: clamp(36px, 4vw, 56px);
}

.feature-list {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted-strong);
}

.check-mark {
  width: 23px;
  height: 23px;
  margin-block-start: 2px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(20, 216, 255, 0.12);
  color: #9cecff;
  font-size: 13px;
  font-weight: 900;
}

.games-preview-section {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
}

.text-link,
.back-link {
  color: #b9ecff;
  font-weight: 700;
}

.text-link {
  padding-block: 8px;
  white-space: nowrap;
}

.text-link span {
  display: inline-block;
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

html[dir="rtl"] .text-link:hover span {
  transform: translate(-2px, -2px);
}

.games-grid {
  margin-block-start: 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(16, 16, 23, 0.75);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(130, 209, 255, 0.28);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.3);
}

.game-card[hidden] {
  display: none;
}

.game-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  background: #0d0d13;
}

.game-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.game-card:hover .game-image > img {
  transform: scale(1.035);
}

.game-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 54%, rgba(5, 5, 7, 0.54));
}

.game-image-placeholder,
.game-detail-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 30% 20%, rgba(20, 216, 255, 0.12), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(133, 92, 255, 0.12), transparent 40%),
    #0d0d13;
}

.game-image-placeholder img,
.game-detail-placeholder img {
  width: 58px;
  height: 52px;
  object-fit: contain;
  opacity: 0.8;
}

.featured-label {
  position: absolute;
  z-index: 2;
  inset-block-start: 13px;
  inset-inline-start: 13px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(6, 7, 10, 0.68);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 760;
}

.game-card-body {
  padding: 18px;
}

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

.game-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.35;
}

.game-card h3 a:hover {
  color: #c7f1ff;
}

.size-chip,
.category-chip,
.count-pill,
.feature-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted-strong);
}

.size-chip {
  padding: 4px 8px;
  flex: 0 0 auto;
  font-size: 11px;
}

.game-card-body > p {
  min-height: 46px;
  margin: 11px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.game-card-footer {
  margin-block-start: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.category-chip {
  max-width: 130px;
  padding: 5px 9px;
  overflow: hidden;
  flex: 0 1 auto;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}

.feature-badge {
  min-height: 25px;
  padding: 3px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
}

.feature-badge svg,
.info-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps-grid {
  margin-block-start: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card,
.info-card,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
}

.step-card {
  min-height: 260px;
  padding: 30px;
}

.step-card > span {
  color: #9fe9ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.step-card h3 {
  margin: 64px 0 0;
  font-size: 24px;
  line-height: 1.3;
}

.step-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.closing-cta {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: clamp(34px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 42px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 0%, rgba(20, 216, 255, 0.36), transparent 36%),
    radial-gradient(circle at 90% 100%, rgba(217, 70, 239, 0.32), transparent 40%),
    linear-gradient(135deg, #4b55e8, #7a45dc 58%, #8b38c8);
  box-shadow: var(--shadow-lg);
}

.closing-cta::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  inset-inline-end: -200px;
  inset-block-start: -210px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.03), 0 0 0 120px rgba(255, 255, 255, 0.02);
}

.closing-cta > * {
  position: relative;
  z-index: 1;
}

.closing-cta h2 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(38px, 4.4vw, 62px);
}

.closing-cta p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
}

.closing-cta .cta-actions {
  margin: 0;
  justify-content: flex-end;
}

.page-hero {
  padding: 112px 0 66px;
}

.page-hero-inner {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.page-hero-inner .section-eyebrow {
  justify-content: center;
}

.page-hero h1 {
  font-size: clamp(48px, 6vw, 80px);
}

.count-pill {
  width: fit-content;
  margin: 28px auto 0;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}

.count-pill strong {
  color: var(--text);
}

.catalog-section {
  padding: 28px 0 110px;
}

.catalog-toolbar {
  padding: 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.search-control,
.select-control {
  min-height: 52px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 160ms ease, background 160ms ease;
}

.search-control:focus-within,
.select-control:focus-within {
  border-color: rgba(20, 216, 255, 0.42);
  background: rgba(255, 255, 255, 0.07);
}

.search-control svg {
  width: 20px;
  height: 20px;
  margin-inline: 16px 5px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search-control input,
.select-control select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-control input {
  padding: 0 14px;
}

.search-control input::placeholder {
  color: #777785;
}

.select-control select {
  padding-inline: 15px 38px;
  cursor: pointer;
}

.select-control option {
  background: #111118;
  color: var(--text);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 58px 26px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
}

.empty-state h3 {
  margin: 0;
  color: var(--text);
}

.empty-state p {
  margin: 10px auto 0;
  max-width: 600px;
}

.filtering-empty {
  margin-block-start: 24px;
}

.game-detail-hero {
  padding: 84px 0 54px;
}

.game-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  align-items: center;
  gap: clamp(42px, 6vw, 82px);
}

.game-detail-copy h1 {
  font-size: clamp(48px, 6vw, 78px);
}

.back-link {
  margin-block-end: 28px;
  display: inline-flex;
  font-size: 14px;
}

.detail-meta {
  margin-block-start: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-meta > span {
  min-width: 130px;
  padding: 12px 15px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
}

.detail-meta small {
  color: var(--muted);
  font-size: 11px;
}

.detail-meta strong {
  font-size: 14px;
}

.game-detail-visual {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: #0d0d13;
  box-shadow: var(--shadow-lg);
}

.game-detail-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content-section {
  padding: 38px 0 112px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  align-items: start;
  gap: 22px;
}

.detail-side {
  display: grid;
  gap: 22px;
}

.detail-panel {
  padding: 28px;
}

.detail-panel h2,
.info-card h2,
.policy-row h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

.detail-panel p,
.info-card p,
.policy-row p {
  color: var(--muted-strong);
}

.detail-panel p:last-child {
  margin-block-end: 0;
}

.detail-feature-list {
  margin-block-start: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-feature-list .feature-badge {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.detail-feature-list .feature-badge svg {
  width: 17px;
  height: 17px;
}

.tag-row {
  margin-block-start: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row .category-chip {
  max-width: none;
}

.preformatted {
  margin-block-start: 16px;
  color: var(--muted-strong);
  white-space: pre-wrap;
}

.muted-copy {
  color: var(--muted);
  font-size: 14px;
}

.info-grid,
.contact-grid {
  display: grid;
  gap: 20px;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
  min-height: 280px;
  padding: 32px;
}

.info-card h2 {
  margin-block-start: 38px;
}

.info-card p {
  margin: 14px 0 0;
}

.info-card .button {
  margin-block-start: 24px;
}

.info-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  color: #b8edff;
}

.info-icon svg {
  width: 23px;
  height: 23px;
}

.accent-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 70, 239, 0.2), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(20, 216, 255, 0.16), transparent 42%),
    #17172a;
}

.policy-list {
  max-width: 940px;
  margin-inline: auto;
  border-block-start: 1px solid var(--line);
}

.policy-row {
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 0.65fr);
  gap: 36px;
  border-block-end: 1px solid var(--line);
}

.policy-row p {
  margin: 0;
}

.error-section {
  min-height: calc(100svh - var(--header-height));
  padding: 90px 0;
  display: grid;
  place-items: center;
}

.error-card {
  max-width: 820px;
  padding: clamp(40px, 7vw, 80px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 0%, rgba(20, 216, 255, 0.12), transparent 38%),
    radial-gradient(circle at 90% 100%, rgba(133, 92, 255, 0.15), transparent 42%),
    rgba(255, 255, 255, 0.025);
  text-align: center;
}

.error-card .section-eyebrow {
  justify-content: center;
}

.error-card .button {
  margin-block-start: 28px;
}

.site-footer {
  margin-block-start: 22px;
  border-block-start: 1px solid var(--line);
  background: #07070a;
}

.footer-grid {
  padding: 62px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
}

.footer-brand {
  max-width: 520px;
}

.footer-brand p {
  margin: 16px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted-strong);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  padding: 21px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-block-start: 1px solid var(--line);
  color: #777785;
  font-size: 12px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease var(--reveal-delay, 0ms), transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
    gap: 44px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 6vw, 72px);
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-section {
    gap: 50px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(var(--container), calc(100% - 48px));
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  html[dir="rtl"] .menu-button {
    justify-self: start;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 18px auto;
    padding: 12px;
    display: grid;
    gap: 3px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: rgba(10, 10, 15, 0.97);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .primary-nav a {
    padding: 12px 14px;
    border-radius: 13px;
  }

  .header-actions .button {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: 70px 0 54px;
  }

  .hero-grid,
  .game-detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
    text-align: center;
    margin-inline: auto;
  }

  .hero-eyebrow,
  .hero-actions,
  .hero-note {
    justify-content: center;
  }

  .hero-product {
    max-width: 820px;
    margin-inline: auto;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-card:nth-child(2) {
    border-inline-end: 0;
  }

  .trust-card:nth-child(-n + 2) {
    border-block-end: 1px solid var(--line);
  }

  .feature-section,
  .feature-section.feature-reverse {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .feature-section .feature-copy,
  .feature-section.feature-reverse .feature-copy {
    max-width: 760px;
    order: 1;
  }

  .feature-section .product-visual,
  .feature-section.feature-reverse .product-visual {
    order: 2;
  }

  .product-visual {
    max-width: 850px;
    margin-inline: auto;
  }

  .features-stack {
    gap: 94px;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closing-cta {
    grid-template-columns: 1fr;
  }

  .closing-cta .cta-actions {
    justify-content: flex-start;
  }

  html[dir="rtl"] .closing-cta .cta-actions {
    justify-content: flex-start;
  }

  .game-detail-copy {
    max-width: 780px;
  }

  .game-detail-visual {
    order: -1;
  }

  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 36px));
  }

  .brand > span:last-child {
    font-size: 14px;
  }

  .header-actions {
    gap: 2px;
  }

  .language-link {
    padding-inline: 8px;
  }

  .hero-section {
    padding-block-start: 54px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 12vw, 60px);
  }

  .hero-copy > p {
    font-size: 17px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-product img,
  .product-visual img {
    border-radius: 20px;
  }

  .trust-grid,
  .games-grid,
  .steps-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .trust-card {
    min-height: 0;
    border-inline-end: 0;
    border-block-end: 1px solid var(--line);
  }

  .trust-card:nth-child(3) {
    border-block-end: 1px solid var(--line);
  }

  .trust-card:last-child {
    border-block-end: 0;
  }

  .section-shell {
    padding: 82px 0;
  }

  .section-heading.split {
    display: block;
  }

  .section-heading.split .text-link {
    margin-block-start: 18px;
    display: inline-flex;
  }

  .section-heading h2,
  .feature-copy h2,
  .page-hero h1,
  .game-detail-copy h1,
  .error-card h1 {
    font-size: clamp(36px, 10vw, 52px);
  }

  .section-heading p,
  .feature-copy > p,
  .page-hero p,
  .game-detail-copy > p,
  .error-card > p {
    font-size: 16px;
  }

  .features-stack {
    margin-block-start: 66px;
    gap: 78px;
  }

  .feature-section {
    min-height: auto;
  }

  .game-card-body > p {
    min-height: 0;
  }

  .step-card {
    min-height: 220px;
  }

  .step-card h3 {
    margin-block-start: 46px;
  }

  .closing-cta {
    min-height: 0;
    border-radius: 26px;
  }

  .closing-cta .button {
    width: 100%;
  }

  .page-hero {
    padding: 78px 0 48px;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .game-detail-hero {
    padding-block-start: 46px;
  }

  .game-detail-grid {
    gap: 34px;
  }

  .game-detail-visual {
    border-radius: 22px;
  }

  .detail-meta > span {
    flex: 1 1 130px;
  }

  .detail-panel,
  .info-card {
    padding: 24px;
  }

  .policy-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  html[dir="rtl"] .footer-links {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .brand-logo-shell {
    width: 34px;
  }

  .brand-logo-shell img {
    width: 40px;
  }

  .brand > span:last-child {
    display: none;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .game-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-badges {
    justify-content: flex-start;
  }

  html[dir="rtl"] .feature-badges {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

.reveal-delay-0 { --reveal-delay: 0ms; }
.reveal-delay-1 { --reveal-delay: 45ms; }
.reveal-delay-2 { --reveal-delay: 90ms; }
.reveal-delay-3 { --reveal-delay: 135ms; }
.reveal-delay-4 { --reveal-delay: 180ms; }
.reveal-delay-5 { --reveal-delay: 225ms; }
.reveal-delay-6 { --reveal-delay: 270ms; }
.reveal-delay-7 { --reveal-delay: 315ms; }
.reveal-delay-8 { --reveal-delay: 320ms; }

/* Vault Website Preview 1.1 refinements */
:root {
  --font-ar: "DIN Next Arabic", "DINNextLTArabic", Tajawal, "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
  font-weight: 400;
  line-height: 1.72;
}

html[lang="ar"] .brand,
html[lang="ar"] .primary-nav a,
html[lang="ar"] .language-link,
html[lang="ar"] .button,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .section-eyebrow,
html[lang="ar"] .featured-label,
html[lang="ar"] .feature-badge {
  letter-spacing: 0;
}

html[lang="ar"] .hero-copy h1,
html[lang="ar"] .section-heading h2,
html[lang="ar"] .feature-copy h2,
html[lang="ar"] .page-hero h1,
html[lang="ar"] .game-detail-copy h1,
html[lang="ar"] .error-card h1 {
  line-height: 1.18;
}

.mobile-nav-actions {
  display: none;
}

.header-discord {
  min-width: 46px;
  min-height: 42px;
  padding-inline: 14px;
  border-color: rgba(88, 101, 242, 0.34);
  background: rgba(88, 101, 242, 0.13);
  color: #eef0ff;
}

.header-discord:hover,
.header-discord:focus-visible {
  border-color: rgba(122, 134, 255, 0.64);
  background: rgba(88, 101, 242, 0.24);
}

.header-discord .button-icon {
  width: 18px;
  height: 18px;
}

.detail-content-stack {
  display: grid;
  gap: 22px;
}

.detail-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  align-items: start;
  gap: 22px;
}

.detail-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.detail-data-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.detail-data-panel {
  min-height: 100%;
}

.supported-features-panel {
  position: sticky;
  inset-block-start: calc(var(--header-height) + 24px);
}

.detail-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.detail-feature-list .feature-badge-large {
  min-height: 42px;
  padding: 8px 11px;
  justify-content: flex-start;
  border-radius: 14px;
  font-size: 12px;
}

.detail-feature-list .feature-badge-large svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.game-detail-visual {
  background: #08090c;
}

.game-detail-visual > img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.006);
}

@media (max-width: 1180px) {
  .header-inner {
    gap: 18px;
  }

  .primary-nav {
    gap: 2px;
  }

  .primary-nav a,
  .language-link {
    padding-inline: 8px;
  }

  .header-discord {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  .header-discord span {
    display: none;
  }
}

@media (max-width: 980px) {
  .mobile-nav-actions {
    padding: 8px 4px 2px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .primary-nav .mobile-nav-actions a {
    min-height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    color: var(--text-strong);
  }

  .primary-nav .mobile-nav-actions .button-primary {
    color: #050507;
  }

  .detail-overview-grid,
  .detail-data-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .supported-features-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .mobile-nav-actions,
  .detail-feature-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-content-stack {
    gap: 16px;
  }

  .detail-overview-grid,
  .detail-data-grid {
    gap: 16px;
  }
}

/* Vault Website Preview 1.2.1 header refinements */
.header-discord {
  width: 44px;
  min-width: 44px;
  min-height: 42px;
  padding: 0;
  border-color: #5865f2;
  background: #5865f2;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(88, 101, 242, 0.28);
}

.header-discord:hover,
.header-discord:focus-visible {
  border-color: #4752c4;
  background: #4752c4;
  box-shadow: 0 16px 34px rgba(88, 101, 242, 0.36);
}

.header-discord .button-icon {
  width: 20px;
  height: 20px;
}

@media (min-width: 981px) {
  .header-inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .header-inner > .brand {
    justify-self: start;
  }

  .primary-nav {
    justify-self: center;
  }

  .header-actions {
    justify-self: end;
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .header-inner {
    gap: 12px;
  }

  .header-actions {
    gap: 7px;
  }

  .header-download {
    padding-inline: 13px;
  }
}

@media (max-width: 980px) {
  .mobile-nav-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-discord {
    border-color: #5865f2;
    background: #5865f2;
    color: #ffffff;
  }

  .mobile-discord:hover,
  .mobile-discord:focus-visible {
    border-color: #4752c4;
    background: #4752c4;
  }
}

@media (max-width: 720px) {
  .mobile-nav-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

