/* GNVID — main stylesheet. Logical properties only, so RTL (ar) and LTR (en) share it. */


:root {
	--bg: #0b1020;
	--bg-deep: #070b17;
	--surface: #131a2e;
	--surface-2: #0e1428;
	--surface-3: #151d38;
	--line: #243052;
	--line-soft: #1c2542;
	--text: #e8ecf5;
	--text-2: #c3cbe0;
	--muted: #9aa6c2;
	--accent: #1fcb7a;
	--accent-hi: #5be3a2;
	--on-accent: #06281a;
	--gold: #f7b731;
	--danger: #ff5a5f;
	--radius: 16px;
	--radius-lg: 20px;
	--wrap: 1280px;
	--f-display: "Cairo", "Tajawal", system-ui, sans-serif;
	--f-body: "Tajawal", "Cairo", system-ui, sans-serif;
	color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.6;
}

[lang="en"] body,
body.lang-en { --f-display: "Cairo", system-ui, sans-serif; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.3; margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; inset-inline-start: 16px; inset-block-start: 16px; z-index: 100;
	width: auto; height: auto; clip: auto; background: var(--accent); color: var(--on-accent);
	padding: 10px 16px; border-radius: 10px;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }

.ic { flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent;
	font-family: var(--f-display); font-weight: 700; font-size: 15px; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hi); color: var(--on-accent); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); border-color: #3a4880; }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 18px; border-radius: 14px; }

/* ---------- top bar & header ---------- */
.topbar { background: var(--bg-deep); border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { color: var(--muted); }
.lang-btn {
	color: var(--text) !important; border: 1px solid #2a3560; padding: 2px 10px; border-radius: 6px;
	font-family: var(--f-display); font-weight: 700;
}

.site-header { background: var(--surface-2); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
	width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--on-accent);
	display: grid; place-items: center;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: .5px; }
.brand-name small { font-size: 12px; color: var(--muted); }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.main-nav a { color: var(--text); padding: 8px 14px; border-radius: 10px; }
.main-nav a:hover { background: var(--surface-3); color: var(--text); }
.main-nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

.search-form {
	flex: 1 1 260px; display: flex; align-items: center; gap: 8px; min-height: 48px;
	background: var(--surface-3); border: 1px solid #2a3560; border-radius: 12px; padding-inline: 14px 6px;
	color: var(--muted);
}
.search-form input {
	flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text);
	font: inherit; font-size: 15px; padding-block: 12px; outline: none;
}
.search-form input::placeholder { color: var(--muted); }
.search-form button {
	background: var(--accent); color: var(--on-accent); border: 0; border-radius: 9px;
	padding: 8px 16px; min-height: 36px; font-family: var(--f-display); font-weight: 700; font-size: 14px;
}

.menu-toggle { display: none; }

@media (max-width: 900px) {
	.site-header .wrap { gap: 12px; }
	.menu-toggle {
		display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
		background: var(--surface-3); border: 1px solid #2a3560; color: var(--text);
	}
	.brand { margin-inline-end: auto; }
	.main-nav { display: none; order: 3; width: 100%; flex-direction: column; }
	.main-nav.open { display: flex; }
	.search-form { order: 4; flex-basis: 100%; }
	.topbar .tb-text { display: none; }
}

/* ---------- layout ---------- */
.site-main { padding-block: 28px 56px; }
.stack { display: flex; flex-direction: column; gap: 40px; }
.section { display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-head h2, .section > h2 { font-weight: 800; font-size: 22px; }
.section-head a { font-family: var(--f-display); font-weight: 600; font-size: 14px; }
.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 24px;
}
.two-col { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.two-col > .main-col { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.two-col > .side-col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* ---------- game icons ---------- */
.gicon { border-radius: 22%; object-fit: cover; background: var(--surface-3); }
.gicon-fallback {
	display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; color: #0b1020;
	background: hsl(var(--h) 70% 62%);
}

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.hero-solo { grid-template-columns: 1fr; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero-main {
	position: relative; min-height: 360px; border-radius: var(--radius-lg); overflow: hidden;
	border: 1px solid #253167; background: #16204a; display: flex; align-items: flex-end; padding: 32px;
	isolation: isolate;
}
.hero-main .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-main::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to top, rgba(7, 11, 23, .95) 10%, rgba(7, 11, 23, .4) 60%, rgba(7, 11, 23, .1));
}
.hero-body { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.hero-body .gicon { width: 104px; height: 104px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); font-size: 34px; }
.hero-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 280px; }
.hero-info h1, .hero-info h2 { font-weight: 800; font-size: clamp(24px, 3vw, 34px); }
.hero-info p { margin: 0; color: var(--text-2); font-size: 15px; }
.hero-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.badge {
	align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 700;
	padding: 3px 10px; border-radius: 999px; background: var(--danger); color: #fff;
}
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side a {
	flex: 1; min-height: 170px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
	padding: 20px; display: flex; gap: 16px; align-items: center; color: var(--text);
}
.hero-side a:hover { border-color: #33427a; color: var(--text); }
.hero-side .gicon { width: 80px; height: 80px; font-size: 26px; }
.hero-side .meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero-side .tag { font-size: 12px; color: var(--accent); font-weight: 700; }
.hero-side .name { font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1.3; }
.hero-side .sub { font-size: 13px; color: var(--muted); }

/* ---------- genre tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.cat {
	background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px;
	display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); text-align: center;
}
.cat:hover { border-color: #33427a; color: var(--text); }
.cat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: hsl(var(--h) 45% 18%); color: hsl(var(--h) 75% 62%); }
.cat b { font-family: var(--f-display); font-size: 14px; }
.cat small { font-size: 12px; color: var(--muted); }

/* ---------- game cards ---------- */
.grid-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
@media (max-width: 480px) { .grid-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.gcard {
	position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 14px; display: flex; flex-direction: column; gap: 10px; color: var(--text);
}
.gcard:hover { border-color: #33427a; color: var(--text); transform: translateY(-2px); }
.gcard { transition: transform .15s ease, border-color .15s ease; }
.gcard .gicon { width: 100%; aspect-ratio: 1; height: auto; border-radius: 18px; font-size: 34px; }
.gcard .name {
	font-family: var(--f-display); font-weight: 700; font-size: 15px; line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.gcard .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.gcard .cta {
	background: rgba(31, 203, 122, .12); color: var(--accent); border-radius: 10px; padding: 8px;
	text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 13px;
}
.gcard .pill {
	position: absolute; inset-block-start: 10px; inset-inline-end: 10px; font-size: 11px; font-weight: 700;
	padding: 2px 8px; border-radius: 999px; color: #fff; background: #2f7bea;
}
.gcard .pill.upd { background: #1e9e62; }

/* ranked list */
.ranked { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.ranked a { display: flex; align-items: center; gap: 12px; color: var(--text); padding-block: 8px; border-bottom: 1px solid #1e2848; }
.ranked li:last-child a { border-bottom: 0; }
.ranked a::before {
	counter-increment: rank; content: counter(rank); width: 28px; text-align: center; flex-shrink: 0;
	font-family: var(--f-display); font-weight: 800; font-size: 18px; color: #5e6a8a;
}
.ranked li:nth-child(-n+3) a::before { color: var(--gold); }
.ranked .gicon { width: 48px; height: 48px; border-radius: 12px; font-size: 16px; }
.ranked .meta { display: flex; flex-direction: column; min-width: 0; }
.ranked .name { font-family: var(--f-display); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranked small { font-size: 12px; color: var(--muted); }
.side-title { font-weight: 800; font-size: 18px; }

.rank-card { display: flex; flex-direction: column; gap: 12px; }
.tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.tabs button {
	flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2);
	font-family: var(--f-display); font-weight: 700; font-size: 13px;
}
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.rank-num { font-family: var(--f-display); font-weight: 800; color: var(--gold); }

/* chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
	background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
	color: var(--text); font-family: var(--f-display); font-weight: 600; font-size: 14px;
}
.chip:hover, .chip.on { border-color: var(--accent); color: var(--text); }
.chip.on { background: var(--accent); color: var(--on-accent); }

.seo-block { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 28px; }
.seo-block h2, .seo-block .seo-h1 { font-size: 20px; margin-bottom: 10px; }
.seo-block p { margin: 0; color: var(--text-2); line-height: 1.9; }

/* ---------- single game ---------- */
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; padding: 0; list-style: none; }
.crumbs a { color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-inline-end: 8px; }
[dir="rtl"] .crumbs li + li::before { content: "‹"; }
.game-head { display: flex; gap: 24px; flex-wrap: wrap; }
.game-head .gicon { width: 140px; height: 140px; border-radius: 30px; font-size: 46px; }
.game-head .info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.game-head h1 { font-weight: 800; font-size: clamp(22px, 3vw, 30px); }
.game-head .sub { margin: 0; color: var(--muted); font-size: 14px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags a, .tags span { background: #1a2340; color: var(--text-2); padding: 4px 10px; border-radius: 8px; font-size: 13px; }
.tags a:hover { color: var(--text); }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 6px; }
.spec { background: var(--surface-2); border: 1px solid #1e2848; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.spec span { font-size: 12px; color: var(--muted); }
.spec b { font-family: var(--f-display); font-size: 15px; overflow-wrap: anywhere; }

.shots { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.shots a { flex: 0 0 auto; scroll-snap-align: start; }
.shots img { height: 200px; width: auto; border-radius: 14px; border: 1px solid #253167; }

.prose { color: var(--text-2); font-size: 16px; line-height: 2; }
.prose h2 { font-size: 20px; color: var(--text); margin: 20px 0 8px; }
.prose h3 { font-size: 17px; color: var(--text); margin: 16px 0 6px; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-inline-start: 20px; }
.prose strong { color: var(--text); }
.card > h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }

.dl-box { background: #0f2a20; border: 1px solid #1f6b49; border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 100px; }
.dl-box h2 { font-size: 20px; font-weight: 800; }
.dl-row {
	background: var(--surface); border: 1px solid #245a42; border-radius: 14px; padding: 14px 16px;
	display: flex; align-items: center; gap: 14px; color: var(--text); flex-wrap: wrap;
}
.dl-row:hover { border-color: var(--accent); color: var(--text); }
.dl-row .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.dl-row .t { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-row .t b { font-family: var(--f-display); font-size: 16px; }
.dl-row .t small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.dl-row .s { font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--accent); }
.note { margin: 0; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.alert { background: #3a1a1f; border: 1px solid #7a2e38; color: #ffd5d8; padding: 14px 16px; border-radius: 12px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.steps li { background: var(--surface-2); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); line-height: 1.7; }
.steps li::before {
	counter-increment: st; content: counter(st); width: 32px; height: 32px; border-radius: 10px;
	background: var(--accent); color: var(--on-accent); font-family: var(--f-display); font-weight: 800;
	display: grid; place-items: center;
}

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq details + details { margin-top: 10px; }
.faq summary { font-family: var(--f-display); font-weight: 700; font-size: 15px; cursor: pointer; padding: 14px 18px; min-height: 48px; }
.faq details p { margin: 0; padding: 0 18px 14px; color: var(--text-2); font-size: 14px; line-height: 1.8; }

.side-dl { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 96px; }
.side-dl .sub { text-align: center; font-size: 13px; color: var(--muted); }
.similar { display: flex; flex-direction: column; gap: 12px; }
.similar a { display: flex; align-items: center; gap: 12px; color: var(--text); }
.similar .gicon { width: 52px; height: 52px; border-radius: 14px; font-size: 16px; }
.similar b { font-family: var(--f-display); font-size: 14px; display: block; }
.similar small { font-size: 12px; color: var(--muted); }

/* ---------- download (countdown) page ---------- */
.dl-page { max-width: 640px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dl-page .gicon { width: 96px; height: 96px; border-radius: 24px; font-size: 30px; }
.dl-page h1 { font-size: 24px; font-weight: 800; }
.ring {
	--p: 0; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
	background: conic-gradient(var(--accent) calc(var(--p) * 1%), #1e2848 0);
	font-family: var(--f-display); font-weight: 800; font-size: 34px;
}
.ring span { width: 92px; height: 92px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.dl-page .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.dl-host { font-size: 12px; color: var(--muted); direction: ltr; }

/* ---------- archive / pagination ---------- */
.archive-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.archive-head h1 { font-size: 28px; font-weight: 800; }
.archive-head p { margin: 0; color: var(--muted); }
.sortbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination .page-numbers {
	min-width: 44px; min-height: 44px; display: grid; place-items: center; padding-inline: 12px;
	border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text);
	font-family: var(--f-display); font-weight: 700;
}
.pagination .current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ---------- install guide (illustrated phone screens) ---------- */
.guide { display: flex; flex-direction: column; gap: 32px; }
.guide h2 { font-size: 22px; font-weight: 800; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; counter-reset: gs; }
.guide-steps > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.guide-steps > li .gs-text { align-self: stretch; }
.guide-steps > li .gs-text b::before {
	counter-increment: gs; content: counter(gs); display: inline-grid; place-items: center; width: 28px; height: 28px;
	border-radius: 8px; background: var(--accent); color: var(--on-accent); margin-inline-end: 8px; font-size: 14px;
}
.gs-text b { font-family: var(--f-display); font-size: 16px; display: flex; align-items: center; }
.gs-text p { margin: 8px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.8; }
.guide-brands { grid-template-columns: minmax(220px, 260px) 1fr; align-items: center; }
@media (max-width: 640px) { .guide-brands { grid-template-columns: 1fr; justify-items: center; } }

.phone {
	width: 220px; aspect-ratio: 9 / 18.5; border-radius: 30px; padding: 8px; background: #05070d;
	border: 2px solid #2a3560; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); flex-shrink: 0;
}
.phone-screen {
	position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: #f4f6fa; color: #1b1f2a;
	font-family: var(--f-body); font-size: 12px; line-height: 1.5; display: flex; flex-direction: column;
}
.ph-status { display: flex; justify-content: space-between; padding: 6px 14px; font-size: 10px; color: #444; direction: ltr; }
.ph-bar { margin: 4px 10px; padding: 6px 10px; background: #e3e7ef; border-radius: 999px; font-size: 11px; direction: ltr; color: #333; }
.ph-body { flex: 1; }
.ph-dim { background: repeating-linear-gradient(180deg, #dfe4ee 0 22px, #f4f6fa 22px 34px); }
.ph-sheet { position: absolute; inset-inline: 0; bottom: 0; background: #fff; border-radius: 16px 16px 0 0; padding: 14px; box-shadow: 0 -6px 20px rgba(0, 0, 0, .15); }
.ph-dialog { position: absolute; inset-inline: 12px; top: 32%; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.ph-sheet b, .ph-dialog b { font-family: var(--f-display); font-size: 13px; }
.ph-sheet p, .ph-dialog p { margin: 6px 0 10px; color: #4a5160; font-size: 11.5px; }
.ph-actions { display: flex; justify-content: flex-end; gap: 14px; font-family: var(--f-display); font-weight: 700; font-size: 12px; color: #1a73e8; }
.ph-actions .hl { color: #fff; background: #1a73e8; padding: 4px 10px; border-radius: 999px; }
.ph-bottom { position: absolute; inset-inline: 12px; bottom: 14px; }
.ring-hl { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
.ph-notif { margin: 6px 8px; background: #fff; border-radius: 14px; padding: 10px; display: flex; gap: 8px; align-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.ph-notif b { display: block; font-size: 10.5px; direction: ltr; word-break: break-all; }
.ph-notif small { font-size: 10px; color: #666; }
.ph-notif .hl { margin-inline-start: auto; color: #1a73e8; font-weight: 700; font-size: 11px; outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; padding: 2px 6px; }
.ph-app { width: 30px; height: 30px; border-radius: 9px; background: #1fcb7a; color: #06281a; display: grid; place-items: center; font-weight: 800; font-size: 11px; flex-shrink: 0; }
.ph-app.big { width: 64px; height: 64px; border-radius: 18px; font-size: 20px; }
.ph-title { padding: 10px 14px; font-family: var(--f-display); font-weight: 800; font-size: 15px; }
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 10px; padding: 12px 6px; border-bottom: 1px solid #e3e7ef; }
.ph-row b { font-size: 12px; } .ph-row small { display: block; color: #666; }
.ph-row > span:first-child:not(.ph-app) { flex: 1; }
.ph-switch { width: 34px; height: 20px; border-radius: 999px; background: #c5cad6; position: relative; flex-shrink: 0; }
.ph-switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.ph-switch.on { background: #1a73e8; }
.ph-switch.on::after { inset-inline-start: auto; inset-inline-end: 3px; }
.ph-small { margin: 10px 14px; font-size: 10.5px; color: #666; }
.ph-chev { color: #999; }
.ph-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ph-center p { margin: 0; color: #4a5160; }
.ph-progress { margin: 14px; height: 6px; background: #e3e7ef; border-radius: 999px; overflow: hidden; }
.ph-progress span { display: block; height: 100%; background: #1a73e8; }
@media (max-width: 640px) {
	.guide-steps { grid-template-columns: 1fr; gap: 12px; }
	.guide-steps > li { flex-direction: row; align-items: flex-start; padding: 12px; gap: 12px; }
	.guide-steps > li .phone { zoom: .62; }
	.guide-steps > li .gs-text { flex: 1; min-width: 0; }
	.gs-text b { align-items: flex-start; font-size: 15px; }
	.guide-brands > div:first-child .phone { zoom: .8; }
}
.guide-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 700; }

/* ---------- ads ---------- */
.ad { display: flex; justify-content: center; }
.ad-ph { border: 1px dashed #3a4880; border-radius: 12px; color: var(--muted); font-size: 13px; align-items: center; min-height: 100px; }
.ad-ph.mrec { min-height: 250px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 36px; }
.site-footer .about { display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.site-footer .about b { font-family: var(--f-display); font-weight: 800; font-size: 20px; color: var(--text); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav a { color: var(--text-2); }
.copy { border-top: 1px solid var(--line-soft); text-align: center; padding: 14px 16px; font-size: 12px; }

/* bigger touch targets for small links */
.lang-btn { min-height: 32px; display: inline-flex !important; align-items: center; }
.section-head a, .guide-link, .game-head .sub a, .dl-page > a { min-height: 36px; display: inline-flex; align-items: center; }
.tags a { min-height: 34px; display: inline-flex; align-items: center; }
.site-footer nav a { padding-block: 8px; display: inline-block; }
.crumbs a { padding-block: 6px; display: inline-block; }

/* sticky download bar on game pages (mobile) */
.dl-bar { display: none; }

/* mobile bottom bar */
.tabbar { display: none; }
@media (max-width: 640px) {
	body { padding-bottom: 68px; }
	.tabbar {
		display: flex; justify-content: space-around; position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
		background: var(--surface-2); border-top: 1px solid var(--line-soft); padding: 6px 0 10px;
	}
	.tabbar a {
		display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 4px;
		color: var(--muted); font-family: var(--f-display); font-size: 11px; font-weight: 700;
	}
	.tabbar a[aria-current="page"] { color: var(--accent); }
	.side-dl { position: static; }
	.site-header { position: static; }
	.game-head .gicon { width: 96px; height: 96px; border-radius: 22px; font-size: 30px; }
	.has-dl-bar .tabbar { display: none; }
	.has-dl-bar .dl-bar {
		display: flex; align-items: center; gap: 10px; position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
		background: var(--surface-2); border-top: 1px solid var(--line-soft); padding: 10px 16px 14px;
	}
	.dl-bar .gicon { width: 44px; height: 44px; border-radius: 12px; font-size: 14px; }
	.dl-bar .t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
	.dl-bar .t b { font-family: var(--f-display); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.dl-bar .t small { color: var(--muted); font-size: 12px; }
	.dl-bar .btn { min-height: 46px; padding-inline: 18px; }
	.hero-main { min-height: 260px; padding: 20px; }
	.hero-body .gicon { width: 72px; height: 72px; font-size: 24px; }
	.card, .dl-box { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Game page: specifications table */
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 9px 4px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); text-align: start; }
.spec-table th { color: var(--muted, #9aa3b5); font-weight: 600; width: 40%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* Static pages */
.muted { color: var(--muted); font-size: 14px; }
.prose .btn { text-decoration: none; }
