/* Noob Factory studio home + game pages. Loads after site.css (same variables, fonts, buttons, header, footer, social icons).
   Two languages: every text is a pair of elements with data-l="en" / data-l="ar"; html[lang] decides which one shows. */
html:not([lang="ar"]) [data-l="ar"], html[lang="ar"] [data-l="en"] { display: none !important; }
body.nf { padding-top: 66px; }
body.nf .top { background: rgba(6, 7, 11, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
body.nf .brand { margin-inline-end: auto; }
.top-link { color: #e8e6df; font-weight: 800; font-size: 15px; }
.top-link:hover { color: var(--gold); }
@media (max-width: 420px) { .brand-name { font-size: 15px; } .top { gap: 12px; padding-inline: 14px; } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: "Cairo", sans-serif; font-weight: 900; }

/* ------------------------------------------------ studio hero */
.s-hero { text-align: center; padding: 46px 0 30px; }
.s-hero img { width: 150px; height: auto; margin: 0 auto 14px; filter: drop-shadow(0 12px 30px rgba(255, 157, 26, 0.28)); }
.s-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 8vw, 58px); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); }
html[dir="rtl"] .s-hero h1 { font-family: var(--display); }
.s-hero p { max-width: 640px; margin: 14px auto 0; color: #d9d6cc; font-size: clamp(17px, 4.4vw, 21px); }
.s-hero .tag { display: inline-block; margin-top: 18px; font-weight: 800; font-size: 14px; letter-spacing: 0.08em; color: var(--muted); }

.sec-title { text-align: center; font-size: clamp(26px, 6vw, 38px); margin: 26px 0 26px; }
html:not([dir="rtl"]) .sec-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.03em; }

/* ------------------------------------------------ game cards */
.games { display: grid; grid-template-columns: 1fr; gap: 20px; padding-bottom: 56px; }
@media (min-width: 760px) { .games { grid-template-columns: 1fr 1fr; gap: 24px; } }
.gcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform 0.2s, border-color 0.2s; }
.gcard:hover { transform: translateY(-4px); border-color: rgba(255, 207, 46, 0.4); }
.gpic { position: relative; display: block; aspect-ratio: 16 / 9; background: #11131c; overflow: hidden; }
.gpic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gcard:hover .gpic img { transform: scale(1.04); }
.gpic .badge-s { position: absolute; top: 12px; inset-inline-start: 12px; }
.gbody { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gbody h3 { font-size: 26px; color: #fff; }
.gbody h3 small { display: block; font-size: 15px; font-weight: 700; color: var(--gold); font-family: "Cairo", sans-serif; letter-spacing: 0.02em; }
.gbody p { margin: 4px 0 0; color: #d9d6cc; font-size: 16px; }
.gact { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gact .btn { font-size: 15px; padding: 10px 18px; }
.gact .lnk { font-weight: 800; font-size: 14px; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 7px 14px; }
.gact .lnk:hover { border-color: var(--gold); color: var(--gold); }

.badge-s { display: inline-block; font-family: "Cairo", sans-serif; font-weight: 900; font-size: 13px; line-height: 1; padding: 7px 12px; border-radius: 999px; background: rgba(6, 7, 11, 0.82); border: 1px solid var(--gold); color: var(--gold); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.badge-s.out { border-color: #86efac; color: #86efac; }

/* ------------------------------------------------ game page */
.g-hero { display: flex; gap: 26px; align-items: center; padding: 34px 0 20px; }
.g-hero .ico { flex: none; width: 150px; height: 150px; border-radius: 34px; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.14); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); background: #f7f4ec; }
.g-hero .logo { flex: none; width: 190px; height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6)); }
.g-hero h1 { font-size: clamp(34px, 7vw, 54px); color: #fff; }
.g-hero h1 small { display: block; font-size: 0.45em; color: var(--gold); font-weight: 800; font-family: "Cairo", sans-serif; letter-spacing: 0.03em; margin-top: 2px; }
.g-hero p { margin: 12px 0 0; color: #d9d6cc; font-size: clamp(17px, 4.2vw, 20px); max-width: 640px; }
.g-hero .badge-s { margin-top: 14px; font-size: 14px; padding: 9px 16px; }
.g-hero .note { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .g-hero { flex-direction: column; text-align: center; gap: 16px; } .g-hero .ico { width: 120px; height: 120px; border-radius: 28px; } .g-hero .logo { width: 150px; } }

.back { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 800; font-size: 15px; color: var(--muted); }
.back::before { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
html[dir="rtl"] .back::before { transform: rotate(-135deg); }
.back:hover { color: var(--gold); }

.gal { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 -2px; -webkit-overflow-scrolling: touch; }
.gal figure { margin: 0; flex: none; width: min(84vw, 520px); scroll-snap-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.gal figure img { width: 100%; height: auto; aspect-ratio: var(--ar, 16 / 9); object-fit: cover; background: #11131c; }
.gal figcaption { padding: 10px 14px 12px; font-weight: 700; font-size: 15px; color: #d9d6cc; }
.gal.tall figure { width: min(58vw, 250px); }
@media (min-width: 1000px) {
	.gal { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 16px; }
	.gal figure { width: auto; }
	.gal.tall { grid-template-columns: repeat(6, 1fr); }
	.gal.tall figure { width: auto; }
}

.fgrid { display: grid; grid-template-columns: 1fr; gap: 14px; padding-bottom: 12px; }
@media (min-width: 700px) { .fgrid { grid-template-columns: 1fr 1fr 1fr; } }
.fc { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.fc h3 { font-size: 21px; color: var(--gold); margin-bottom: 6px; }
.fc p { margin: 0; color: #d9d6cc; font-size: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding-bottom: 12px; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px; font-weight: 800; font-size: 18px; color: #fff; text-align: center; line-height: 1.25; }
.chip small { display: block; font-size: 13px; font-weight: 700; color: var(--gold); }

.cta { text-align: center; padding: 40px 0 56px; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 18px; }
.sec { padding-top: 22px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.stores .btn { font-family: "Cairo", sans-serif; font-weight: 900; text-transform: none; }
