/*
Theme Name:   APP Review
Theme URI:    https://t.me/AltarLee
Description:  App and game directory theme built on GeneratePress.
Author:       Telegram @AltarLee
Author URI:   https://t.me/AltarLee
Template:     generatepress
Version:      1.0.0
Requires PHP: 7.4
License:      GNU General Public License v2 or later
Text Domain:  appvault
*/

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------ */
:root {
	--av-bg: #f5f7f3;
	--av-surface: #ffffff;
	--av-ink: #15181c;
	--av-muted: #5a6270;
	--av-line: #e1e5dd;
	--av-leaf: #17784a;
	--av-leaf-ink: #ffffff;
	--av-leaf-soft: #e3f1e8;
	--av-star: #f2b92b;
	--av-focus: #1a73e8;
	--av-radius-icon: 22%;
	--av-radius: 14px;
	--av-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
	--av-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--av-wrap: 1180px;
}
/* Dark palette: follows the device ("Auto") or forced with Customizer → Colour mode → Dark */
:root[data-theme="dark"] {
	--av-bg: #111316; --av-surface: #1a1d21; --av-ink: #eceeea; --av-muted: #9aa2ad; --av-line: #2a2f35;
	--av-leaf: #2fae6c; --av-leaf-ink: #06140c; --av-leaf-soft: #17301f; --av-warn: #f0a04b; color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--av-bg: #111316;
		--av-surface: #1a1d21;
		--av-ink: #eceeea;
		--av-muted: #9aa2ad;
		--av-line: #2a2f35;
		--av-leaf: #2fae6c;
		--av-leaf-ink: #06140c;
		--av-leaf-soft: #17301f;
	}
}

/* ------------------------------------------------------------------
   Base (on top of GeneratePress)
------------------------------------------------------------------ */
body {
	background: var(--av-bg);
	color: var(--av-ink);
	font-family: var(--av-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--av-leaf); }
a:hover, a:focus { color: var(--av-ink); }
:focus-visible { outline: 2px solid var(--av-focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, .av-display {
	font-family: var(--av-display);
	color: var(--av-ink);
	letter-spacing: -0.01em;
	line-height: 1.15;
}
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
img { height: auto; max-width: 100%; }

.av-wrap { max-width: var(--av-wrap); margin: 0 auto; padding: 0 20px; }
.av-screen-reader { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* GeneratePress chrome */
.site-header, .main-navigation, .main-navigation ul ul { background: var(--av-surface); }
.site-header { border-bottom: 1px solid var(--av-line); }
.inside-header { padding-top: 14px; padding-bottom: 14px; }
.main-title a, .site-title a { font-family: var(--av-display); font-weight: 800; color: var(--av-ink); letter-spacing: -0.02em; }
.main-navigation .main-nav ul li a { color: var(--av-ink); font-weight: 600; }
.main-navigation .main-nav ul li:hover > a, .main-navigation .main-nav ul li.current-menu-item > a { color: var(--av-leaf); }
.site-content, .separate-containers .inside-article, .one-container .container, .separate-containers .site-main > * { background: transparent; }
.av-full .site-content { display: block; padding: 0; }
.av-full #primary, .av-full .content-area { width: 100%; float: none; }
.av-full .site-main { margin: 0 !important; }
.av-full .inside-article { padding: 0 !important; background: transparent !important; }
.site-footer, .site-info { background: var(--av-surface); color: var(--av-muted); border-top: 1px solid var(--av-line); }
.site-info a { color: var(--av-muted); }

/* ------------------------------------------------------------------
   Shared bits
------------------------------------------------------------------ */
.av-icon {
	display: block;
	aspect-ratio: 1;
	width: 100%;
	object-fit: cover;
	border-radius: var(--av-radius-icon);
	background: var(--av-line);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.av-icon--empty {
	display: grid;
	place-items: center;
	font-family: var(--av-display);
	font-weight: 800;
	font-size: 1.6em;
	color: var(--av-muted);
}
.av-stars { display: inline-flex; align-items: center; gap: 6px; color: var(--av-muted); font-size: .9rem; }
.av-stars__bar {
	--pct: 0%;
	font-size: 1rem;
	letter-spacing: 1px;
	line-height: 1;
	background: linear-gradient(90deg, var(--av-star) var(--pct), var(--av-line) var(--pct));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.av-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.av-chips::-webkit-scrollbar { display: none; }
.av-chip {
	flex: none;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--av-surface);
	border: 1px solid var(--av-line);
	color: var(--av-ink);
	font-weight: 600;
	font-size: .92rem;
	text-decoration: none;
	white-space: nowrap;
}
.av-chip:hover, .av-chip:focus { border-color: var(--av-leaf); color: var(--av-leaf); }
.av-chip[aria-current="page"] { background: var(--av-ink); border-color: var(--av-ink); color: var(--av-bg); }

.av-crumbs { font-size: .88rem; color: var(--av-muted); margin: 18px 0 14px; }
.av-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.av-crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--av-line); }
.av-crumbs a { color: var(--av-muted); text-decoration: none; }
.av-crumbs a:hover { color: var(--av-leaf); text-decoration: underline; }

/* ------------------------------------------------------------------
   App cards and rails
------------------------------------------------------------------ */
.av-section { margin: 34px 0; }
.av-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.av-section__head h2 { margin: 0; }
.av-section__head p { margin: 2px 0 0; color: var(--av-muted); font-size: .95rem; }
.av-section__more { font-weight: 600; text-decoration: none; white-space: nowrap; }

.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 22px 18px; list-style: none; margin: 0; padding: 0; }
.av-rail { list-style: none; margin: 0; padding: 0; }
@media (max-width: 760px) {
	.av-rail {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 96px;
		gap: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin: 0 -20px;
		padding: 0 20px 6px;
		scroll-padding: 0 20px;
		scrollbar-width: none;
	}
	.av-rail::-webkit-scrollbar { display: none; }
	.av-rail > li { scroll-snap-align: start; }
}
@media (min-width: 761px) {
	.av-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px 20px; }
	.av-rail > li:nth-child(n+7) { display: none; }
}
@media (min-width: 1000px) {
	.av-rail { grid-template-columns: repeat(8, 1fr); }
	.av-rail > li:nth-child(n+7) { display: list-item; }
	.av-rail > li:nth-child(n+9) { display: none; }
	.av-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

.av-card { position: relative; text-decoration: none; color: var(--av-ink); display: block; }
.av-card__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 8px;
	font-weight: 600;
	font-size: .93rem;
	line-height: 1.3;
}
.av-card__meta { color: var(--av-muted); font-size: .82rem; margin-top: 2px; }
.av-card:hover .av-card__name, .av-card:focus .av-card__name { color: var(--av-leaf); }
.av-card:hover .av-icon { transform: translateY(-2px); }
.av-icon { transition: transform .18s ease; }

/* Wide rows (lists, search) */
.av-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 22px; }
.av-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: var(--av-radius); text-decoration: none; color: var(--av-ink); }
.av-row:hover, .av-row:focus { background: var(--av-surface); }
.av-row__name { font-weight: 600; line-height: 1.3; }
.av-row__meta { color: var(--av-muted); font-size: .85rem; }
.av-row__go { font-weight: 700; color: var(--av-leaf); font-size: .9rem; padding: 6px 12px; border-radius: 999px; background: var(--av-leaf-soft); }

/* Featured banners */
.av-featured { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.av-featured::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .av-featured { grid-auto-columns: calc((100% - 32px) / 3); } }
.av-feature { scroll-snap-align: start; position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--av-ink); text-decoration: none; }
.av-feature__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.av-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%); }
.av-feature__body { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; color: #fff; }
.av-feature__body .av-icon { box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.av-feature__name { font-family: var(--av-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.av-feature__meta { font-size: .82rem; opacity: .8; }
.av-feature__go { background: #fff; color: #111; font-weight: 700; font-size: .85rem; padding: 7px 14px; border-radius: 999px; }

/* ------------------------------------------------------------------
   Home intro
------------------------------------------------------------------ */
.av-intro { padding: 34px 0 6px; }
.av-intro h1 { margin: 0 0 6px; max-width: 22ch; }
.av-intro p { color: var(--av-muted); margin: 0 0 18px; max-width: 52ch; }
.av-search { display: flex; max-width: 560px; background: var(--av-surface); border: 1px solid var(--av-line); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.av-search input[type=search] { flex: 1; border: 0; background: transparent; padding: 10px 16px; font-size: 1rem; color: var(--av-ink); min-width: 0; }
.av-search input[type=search]:focus { outline: none; }
.av-search:focus-within { border-color: var(--av-leaf); box-shadow: 0 0 0 3px var(--av-leaf-soft); }
.av-search button { border: 0; border-radius: 999px; background: var(--av-ink); color: var(--av-bg); font-weight: 700; padding: 0 20px; cursor: pointer; }

/* ------------------------------------------------------------------
   Single app
------------------------------------------------------------------ */
.av-app__head { display: grid; grid-template-columns: 112px 1fr; gap: 22px; align-items: start; }
@media (max-width: 600px) { .av-app__head { grid-template-columns: 84px 1fr; gap: 16px; } }
.av-app__title { margin: 0; }
.av-app__dev { font-weight: 600; text-decoration: none; }
.av-app__tagline { color: var(--av-muted); margin: 8px 0 0; max-width: 60ch; }
.av-app__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--av-muted); font-size: .9rem; }

/* The download ticket: the one bold element */
.av-ticket {
	--notch: 12px;
	display: inline-grid;
	grid-template-columns: auto auto;
	margin: 22px 0 6px;
	text-decoration: none;
	color: var(--av-leaf-ink);
	filter: drop-shadow(0 6px 14px rgba(23, 120, 74, .28));
	transition: transform .15s ease, filter .15s ease;
}
.av-ticket:hover, .av-ticket:focus-visible { transform: translateY(-1px); color: var(--av-leaf-ink); filter: drop-shadow(0 9px 18px rgba(23, 120, 74, .34)); }
.av-ticket:active { transform: translateY(1px); }
.av-ticket__main, .av-ticket__stub { background: var(--av-leaf); padding: 14px 22px; }
.av-ticket__main {
	border-radius: 14px 0 0 14px;
	font-family: var(--av-display);
	font-weight: 700;
	font-size: 1.15rem;
	display: flex;
	align-items: center;
	gap: 10px;
	-webkit-mask: radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
		radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
	mask: radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
		radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
}
.av-ticket__stub {
	border-radius: 0 14px 14px 0;
	border-left: 2px dashed rgba(255, 255, 255, .55);
	font-size: .8rem;
	line-height: 1.35;
	display: grid;
	align-content: center;
	opacity: .96;
	-webkit-mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
		radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
	mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
		radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
}
.av-ticket__stub b { font-size: .95rem; }
.av-ticket svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 600px) {
	.av-ticket { display: grid; width: 100%; grid-template-columns: 1fr auto; }
	.av-ticket__main { font-size: 1.05rem; padding: 14px 16px; white-space: nowrap; }
	.av-ticket__stub { padding: 12px 16px; white-space: nowrap; }
}
.av-note { color: var(--av-muted); font-size: .85rem; margin: 6px 0 0; }

.av-shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; margin: 26px -20px 0; padding: 0 20px 8px; scrollbar-width: thin; list-style: none; }
.av-shots li { flex: none; scroll-snap-align: start; }
.av-shots button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; border-radius: 12px; overflow: hidden; }
.av-shots img { height: 260px; width: auto; display: block; border-radius: 12px; }
@media (max-width: 600px) { .av-shots img { height: 200px; } }

.av-app__body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; margin-top: 30px; }
@media (max-width: 960px) { .av-app__body { grid-template-columns: 1fr; gap: 26px; } }
.av-app__aside { align-self: start; position: sticky; top: 20px; }
@media (max-width: 960px) { .av-app__aside { position: static; order: -1; } }

.av-info { background: var(--av-surface); border: 1px solid var(--av-line); border-radius: var(--av-radius); padding: 6px 18px; }
.av-info h2 { font-size: 1.05rem; margin: 12px 0 4px; }
.av-info dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.av-info dt, .av-info dd { padding: 9px 0; border-top: 1px solid var(--av-line); margin: 0; font-size: .92rem; }
.av-info dt { color: var(--av-muted); padding-right: 14px; }
.av-info dd { text-align: right; font-weight: 600; word-break: break-word; }
.av-info dl > :nth-child(1), .av-info dl > :nth-child(2) { border-top: 0; }

.av-share { display: flex; gap: 8px; margin: 14px 0 0; flex-wrap: wrap; }
.av-share a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--av-line); background: var(--av-surface); color: var(--av-ink); font-size: .85rem; font-weight: 600; text-decoration: none; }
.av-share a:hover, .av-share a:focus { border-color: var(--av-leaf); color: var(--av-leaf); }

.av-new { background: var(--av-leaf-soft); border-radius: var(--av-radius); padding: 14px 18px; margin-bottom: 24px; }
.av-new h2 { font-size: 1.05rem; margin: 0 0 6px; }
.av-new p { margin: 0; white-space: pre-line; }

.av-article { max-width: 70ch; font-size: 1.04rem; }
.av-article h2 { margin: 1.8em 0 .5em; }
.av-article h3 { margin: 1.5em 0 .4em; }
.av-article img { border-radius: 12px; }
.av-article ul, .av-article ol { margin-left: 1.3em; }
.av-article li { margin-bottom: .35em; }

/* Download page */
.av-dl { background: var(--av-surface); border: 1px solid var(--av-line); border-radius: 20px; padding: 28px; margin: 6px 0 30px; display: grid; grid-template-columns: 96px 1fr; gap: 22px; }
@media (max-width: 600px) { .av-dl { grid-template-columns: 1fr; padding: 20px; } .av-dl .av-icon { width: 80px; } }
.av-dl h1 { margin: 0 0 4px; font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); }
.av-dl__wait { color: var(--av-muted); margin: 10px 0 0; min-height: 1.6em; }
.av-dl__alt { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.av-btn { display: inline-block; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--av-line); color: var(--av-ink); font-weight: 600; text-decoration: none; background: var(--av-bg); }
.av-btn:hover, .av-btn:focus { border-color: var(--av-leaf); color: var(--av-leaf); }
.av-ticket[aria-disabled="true"] { pointer-events: none; filter: grayscale(.4); opacity: .75; }
.av-steps { max-width: 70ch; }
.av-steps ol { margin-left: 1.3em; }

/* Reviews */
.av-reviews { margin: 40px 0; max-width: 760px; }
.av-reviews__summary { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.av-reviews__score { font-family: var(--av-display); font-weight: 800; font-size: 3rem; line-height: 1; }
.av-reviews ol.commentlist, .av-reviews ol.children { list-style: none; margin: 0; padding: 0; }
.av-reviews ol.children { margin-left: 24px; }
.av-review { padding: 14px 0; border-top: 1px solid var(--av-line); }
.av-review__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.av-review__name { font-weight: 700; }
.av-review__date { color: var(--av-muted); font-size: .85rem; }
.av-review__body p { margin: 6px 0 0; }
.av-review .reply a { font-size: .85rem; font-weight: 600; }
.av-reviews .comment-respond { background: var(--av-surface); border: 1px solid var(--av-line); border-radius: var(--av-radius); padding: 18px 20px; margin-top: 18px; }
.av-reviews .comment-reply-title { font-size: 1.15rem; margin-top: 0; }
.av-reviews .comment-form label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 4px; }
.av-reviews .comment-form input[type=text], .av-reviews .comment-form input[type=email], .av-reviews .comment-form textarea { box-sizing: border-box; width: 100%; border: 1px solid var(--av-line); border-radius: 10px; background: var(--av-bg); color: var(--av-ink); padding: 10px 12px; }
.av-reviews .form-submit .submit { background: var(--av-ink); color: var(--av-bg); border: 0; border-radius: 10px; padding: 10px 20px; font-weight: 700; cursor: pointer; }
.av-empty { color: var(--av-muted); }

/* Star input (AppVault Core plugin markup) */
.avc-rating-input { border: 0; margin: 0 0 12px; padding: 0; }
.avc-rating-input legend { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.avc-stars-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.avc-stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.av-reviews .avc-stars-input label, .avc-stars-input label { display: inline-block; font-size: 2rem; font-weight: 400; line-height: 1; color: #c4cabf; cursor: pointer; margin: 0; padding: 0 2px; transition: color .1s; }
.av-reviews .comment-form-cookies-consent label { display: inline; font-weight: 400; margin-left: 6px; }
.av-reviews .avc-stars-input label:hover, .av-reviews .avc-stars-input label:hover ~ label, .av-reviews .avc-stars-input input:checked ~ label { color: var(--av-star); }
.avc-stars-input input:focus-visible + label { outline: 2px solid var(--av-focus); border-radius: 4px; }

/* Archive */
.av-archive-head { padding: 6px 0 10px; }
.av-archive-head h1 { margin: 0 0 6px; }
.av-archive-head p { color: var(--av-muted); margin: 0 0 14px; max-width: 65ch; }
.av-pagination { margin: 34px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.av-pagination .page-numbers { padding: 8px 14px; border-radius: 10px; background: var(--av-surface); border: 1px solid var(--av-line); text-decoration: none; color: var(--av-ink); font-weight: 600; }
.av-pagination .current { background: var(--av-ink); color: var(--av-bg); border-color: var(--av-ink); }

/* Footer columns */
.av-footer { background: var(--av-surface); border-top: 1px solid var(--av-line); padding: 36px 0 10px; }
.av-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 26px; }
@media (max-width: 760px) { .av-footer__grid { grid-template-columns: 1fr 1fr; } .av-footer__about { grid-column: 1 / -1; } }
.av-footer h2 { font-size: 1rem; margin: 0 0 10px; }
.av-footer p { color: var(--av-muted); font-size: .92rem; max-width: 36ch; }
.av-footer ul { list-style: none; margin: 0; padding: 0; }
.av-footer li { margin: 0 0 6px; }
.av-footer a { color: var(--av-muted); text-decoration: none; font-size: .92rem; }
.av-footer a:hover { color: var(--av-leaf); }
.av-footer + .site-footer { border-top: 0; }

/* Lightbox */
.av-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.av-lightbox::backdrop { background: rgba(0, 0, 0, .86); }
.av-lightbox img { max-height: 88vh; width: auto; border-radius: 12px; display: block; }
.av-lightbox button { position: fixed; top: 14px; right: 14px; border: 0; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #111; font-size: 1.4rem; cursor: pointer; }

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

/* Providers */
.av-devs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.av-devs a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px; border: 1px solid var(--av-line); border-radius: 12px; background: var(--av-surface); text-decoration: none; color: var(--av-ink); }
.av-devs a:hover, .av-devs a:focus { border-color: var(--av-leaf); }
.av-devs__name { font-weight: 700; }
.av-devs__count { color: var(--av-muted); font-size: .85rem; white-space: nowrap; }

/* Pillar article + table of contents */
.av-pillar { margin: 48px 0 20px; padding-top: 34px; border-top: 1px solid var(--av-line); }
.av-pillar > h2 { margin-top: 0; }
.av-toc { max-width: 70ch; background: var(--av-surface); border: 1px solid var(--av-line); border-radius: var(--av-radius); padding: 14px 20px; margin-bottom: 26px; }
.av-toc summary { font-family: var(--av-display); font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.av-toc ol { margin: 10px 0 2px 1.2em; columns: 2 240px; column-gap: 28px; }
.av-toc li { margin-bottom: 4px; break-inside: avoid; }
.av-toc a { text-decoration: none; }
.av-toc a:hover { text-decoration: underline; }
.av-article h2 { scroll-margin-top: 16px; }
.av-article table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.av-article th, .av-article td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--av-line); }
.av-article th { color: var(--av-muted); font-weight: 600; }

/* Wide tables scroll inside the article instead of widening the page */
.av-article table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.av-article { overflow-wrap: break-word; }

/* Phone: icon beside title + developer; facts, tagline and the download ticket use the full width */
@media (max-width: 600px) {
	.av-app__head { grid-template-columns: 76px 1fr; column-gap: 14px; row-gap: 0; }
	.av-app__head > div { display: contents; }
	.av-app__head > .av-icon { grid-row: 1 / span 2; align-self: start; }
	.av-app__title { grid-column: 2; align-self: end; font-size: clamp(1.45rem, 1.1rem + 2vw, 1.9rem); }
	.av-app__dev { grid-column: 2; align-self: start; margin-top: 2px; }
	.av-app__facts, .av-app__tagline, .av-app__head .av-ticket { grid-column: 1 / -1; }
	.av-app__facts { margin-top: 14px; }
	.av-app__head .av-ticket { margin-top: 18px; }
}

/* GeneratePress menu, mobile toggle and search follow the theme colours (incl. dark mode) */
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items,
.main-navigation .menu-bar-item > a,
.main-navigation .mobile-bar-items a { color: var(--av-ink); background: transparent; }
.main-navigation.toggled .main-nav > ul,
.main-navigation .main-nav ul ul { background: var(--av-surface); }
.main-navigation .main-nav ul ul li a { color: var(--av-ink); }
.navigation-search input[type="search"],
.navigation-search input[type="search"]:focus { background: var(--av-surface); color: var(--av-ink); }

/* Header: site name and menu always on one tidy row */
.site-header .inside-header { gap: 24px; padding-top: 6px; padding-bottom: 6px; }
.site-header .site-branding, .site-header .site-logo { flex: 0 1 auto; min-width: 0; }
.site-header .site-logo img { max-height: 44px; width: auto; }
.main-title { margin: 0; font-size: clamp(19px, 1rem + 0.45vw, 23px); line-height: 1.15; }
.main-title a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 769px) {
	.site-header .site-branding { max-width: 36%; }
	.site-header #site-navigation { flex: 0 1 auto; min-width: 0; margin-left: auto; }
	.main-navigation .inside-navigation, .main-navigation .main-nav > ul { flex-wrap: nowrap; }
	.main-navigation .main-nav > ul > li > a { padding-left: 14px; padding-right: 14px; line-height: 58px; font-size: 15px; white-space: nowrap; }
	.main-navigation .main-nav > ul > li.menu-item-has-children > a { padding-right: 0; }
	.main-navigation .main-nav > ul > li > a .dropdown-menu-toggle { padding-left: 5px; padding-right: 14px; opacity: .7; }
	.main-navigation .menu-bar-item > a { padding-left: 14px; padding-right: 4px; line-height: 58px; }
	.main-navigation .main-nav ul li.current-menu-item > a,
	.main-navigation .main-nav ul li.current-menu-ancestor > a { box-shadow: inset 0 -3px 0 var(--av-leaf); }
}
@media (min-width: 769px) and (max-width: 1100px) {
	.main-navigation .main-nav > ul > li > a { padding-left: 10px; padding-right: 10px; font-size: 14px; }
	.main-navigation .main-nav > ul > li > a .dropdown-menu-toggle { padding-right: 10px; }
	.main-navigation .menu-bar-item > a { padding-left: 10px; }
}
/* Dropdown (e.g. Games > Sports, Action…) */
.main-navigation .main-nav ul ul { width: 220px; padding: 6px; border: 1px solid var(--av-line); border-radius: 12px; box-shadow: 0 14px 34px rgba(15, 23, 20, .16); }
.main-navigation .main-nav ul ul li a { padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.main-navigation .main-nav ul ul li a:hover,
.main-navigation .main-nav ul ul li.current-menu-item > a { background: var(--av-leaf-soft); color: var(--av-leaf); }
@media (max-width: 768px) {
	.site-header .inside-header { gap: 8px; padding-left: 16px; padding-right: 8px; }
	.has-inline-mobile-toggle .site-branding, .has-inline-mobile-toggle .site-logo { flex: 1 1 0; min-width: 0; }
	.has-inline-mobile-toggle .mobile-menu-control-wrapper { flex: 0 0 auto; flex-wrap: nowrap; margin-left: auto; }
	.mobile-menu-control-wrapper .menu-bar-item > a, .mobile-menu-control-wrapper .menu-toggle { padding-left: 12px; padding-right: 12px; line-height: 52px; }
	.main-navigation.toggled .main-nav > ul { border-top: 1px solid var(--av-line); padding: 6px 0 10px; }
	.main-navigation.toggled .main-nav ul li a { line-height: 46px; }
	.main-navigation.toggled .main-nav ul ul { border: 0; box-shadow: none; padding: 0 0 0 12px; width: auto; }
	.main-navigation.toggled .main-nav ul ul li a { padding: 11px 20px; line-height: 1.3; }
}

/* ==================================================================
   News & reviews
================================================================== */
:root { --av-warn: #b4531a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --av-warn: #f0a04b; } }

.av-post-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--av-line); }
.av-post-img--icon { display: grid; place-items: center; background: var(--av-leaf-soft); }
.av-post-img--icon .av-icon { width: 30%; max-width: 96px; }

.av-post-card { position: relative; display: grid; gap: 12px; align-content: start; min-width: 0; }
.av-post-card__media { position: relative; display: block; }
.av-post-card__title { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.av-post-card__title a { color: var(--av-ink); text-decoration: none; }
.av-post-card__title a:hover, .av-post-card__title a:focus { color: var(--av-leaf); }
.av-post-card__excerpt { margin: 6px 0 0; color: var(--av-muted); font-size: .94rem; line-height: 1.5; }
.av-post-meta { display: inline-flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 6px; color: var(--av-muted); font-size: .84rem; }
.av-kicker { display: block; margin-bottom: 4px; font-weight: 700; font-size: .82rem; color: var(--av-leaf); }

.av-score {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 7px;
	border-radius: 12px; background: var(--av-leaf); color: var(--av-leaf-ink);
	font-family: var(--av-display); font-weight: 800; font-size: 1.05rem; line-height: 1;
}
.av-score--on-media { position: absolute; left: 10px; top: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .28); }
.av-score--xl { min-width: 84px; height: 84px; border-radius: 22px; font-size: 2.3rem; }

/* Lead: image beside text */
.av-post-card--lead { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.av-post-card--lead .av-post-card__title { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem); line-height: 1.2; }
.av-post-card--lead .av-post-card__excerpt { font-size: 1rem; }
@media (max-width: 700px) { .av-post-card--lead { grid-template-columns: 1fr; gap: 12px; } }

/* Row: small thumbnail + headline */
.av-post-card--row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; }
.av-post-card--row .av-post-img { aspect-ratio: 4 / 3; border-radius: 10px; }
.av-post-card--row .av-post-card__title { font-size: .98rem; }
.av-post-card--row .av-post-meta { margin-top: 4px; font-size: .8rem; }
.av-post-card--row .av-score--on-media { min-width: 30px; height: 30px; left: 6px; top: 6px; border-radius: 8px; font-size: .78rem; padding: 0 5px; }

/* Home: latest news (lead story + headlines) */
.av-newsgrid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 30px; }
.av-newsgrid .av-post-card--lead { grid-template-columns: 1fr; gap: 14px; }
.av-newsgrid__list { display: grid; gap: 14px; align-content: start; }
.av-newsgrid__list .av-post-card + .av-post-card { padding-top: 14px; border-top: 1px solid var(--av-line); }
@media (max-width: 860px) { .av-newsgrid { grid-template-columns: 1fr; gap: 22px; } }

/* Home and articles: row of review cards */
.av-cardrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.av-cardrow--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .av-cardrow, .av-cardrow--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.av-cardrow, .av-cardrow--3 {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%;
		overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
		margin: 0 -20px; padding: 0 20px 6px; gap: 16px; scrollbar-width: none;
	}
	.av-cardrow::-webkit-scrollbar { display: none; }
	.av-cardrow > * { scroll-snap-align: start; }
}

/* Article archives */
.av-postgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; margin-top: 8px; }
.av-postgrid > .av-post-card--lead { grid-column: 1 / -1; padding-bottom: 30px; border-bottom: 1px solid var(--av-line); }
@media (max-width: 960px) { .av-postgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .av-postgrid { grid-template-columns: 1fr; } }

/* Single article */
.av-post__head { max-width: 780px; margin: 4px 0 24px; }
.av-post__title { margin: 0 0 12px; font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.8rem); line-height: 1.12; }
.av-post__dek { margin: 0 0 14px; max-width: 62ch; color: var(--av-muted); font-size: 1.15rem; line-height: 1.5; }
.av-post__byline { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0; }
.av-post__byline .av-post-meta { margin: 0; }
.av-post__updated { color: var(--av-muted); font-size: .84rem; }
.av-post__hero { margin: 0 0 30px; }
.av-post__hero .av-post-img { aspect-ratio: 21 / 9; border-radius: 18px; }
@media (max-width: 600px) { .av-post__hero .av-post-img { aspect-ratio: 16 / 9; border-radius: 14px; } }

.av-verdict {
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: start;
	margin: 0 0 34px; padding: 22px 26px; background: var(--av-surface);
	border: 1px solid var(--av-line); border-radius: 18px;
}
.av-verdict__score { display: grid; justify-items: center; gap: 6px; }
.av-verdict__out { color: var(--av-muted); font-size: .82rem; }
.av-verdict h2 { margin: 2px 0 12px; font-size: 1.25rem; }
.av-verdict__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.av-verdict h3 { margin: 0 0 8px; font-size: .95rem; }
.av-verdict ul { list-style: none; margin: 0; padding: 0; }
.av-verdict li { position: relative; margin: 0 0 6px; padding-left: 22px; line-height: 1.45; }
.av-verdict__pros li::before { content: "+"; position: absolute; left: 2px; color: var(--av-leaf); font-weight: 800; }
.av-verdict__cons li::before { content: "\2212"; position: absolute; left: 2px; color: var(--av-warn); font-weight: 800; }
@media (max-width: 700px) {
	.av-verdict { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
	.av-verdict__score { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; }
	.av-verdict .av-score--xl { min-width: 64px; height: 64px; font-size: 1.8rem; border-radius: 18px; }
	.av-verdict__lists { grid-template-columns: 1fr; gap: 14px; }
}

.av-post__body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
.av-post__aside { position: sticky; top: 20px; align-self: start; display: grid; gap: 26px; }
@media (max-width: 960px) {
	.av-post__body { grid-template-columns: 1fr; gap: 30px; }
	.av-post__aside { position: static; }
}
.av-sidelist { display: grid; gap: 14px; }
.av-sidelist h2 { margin: 0; font-size: 1.05rem; }
.av-post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.av-post-comments { max-width: 780px; margin: 30px 0; }

/* Game card inside articles */
.av-gamecard { display: grid; gap: 14px; padding: 16px; background: var(--av-surface); border: 1px solid var(--av-line); border-radius: 16px; }
.av-gamecard__top { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; color: var(--av-ink); text-decoration: none; }
.av-gamecard__name { display: block; font-family: var(--av-display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.av-gamecard__dev { display: block; margin-bottom: 2px; color: var(--av-muted); font-size: .85rem; }
.av-gamecard__top:hover .av-gamecard__name { color: var(--av-leaf); }
.av-ticket--block { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; margin: 0; }
.av-ticket--block .av-ticket__main { padding: 12px 16px; font-size: 1rem; white-space: nowrap; }
.av-ticket--block .av-ticket__stub { padding: 10px 14px; white-space: nowrap; }
.av-gamecard__more { font-size: .88rem; font-weight: 600; text-decoration: none; }

/* Game page: our review + game news */
.av-app__review-link { font-weight: 700; }
.av-app-editorial { margin-top: 36px; }
.av-app-editorial h2 { margin: 0 0 14px; font-size: 1.3rem; }
.av-app-editorial__list { display: grid; gap: 14px; }
.av-app-editorial .av-post-card--lead { gap: 20px; }

/* Game card: in the sidebar on desktop, right under the verdict on phones */
.av-post__gamecard-mobile { display: none; }
@media (max-width: 960px) {
	.av-post__gamecard-mobile { display: block; margin: 0 0 30px; }
	.av-post__gamecard-desktop { display: none; }
}

/* ==================================================================
   Default thumbnails (no featured image). Pure CSS, no downloads.
   --h is the hue of the game (or post), set inline.
================================================================== */
.av-thumb { position: relative; display: block; overflow: hidden; container-type: inline-size; isolation: isolate; color: #fff; }
.av-thumb__text { position: absolute; left: 7%; right: 7%; bottom: 9%; display: grid; gap: .3em; justify-items: start; }
.av-thumb__label { font-size: max(11px, 3.3cqi); font-weight: 700; line-height: 1.2; opacity: .88; }
.av-thumb__name {
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	font-family: var(--av-display); font-weight: 800; font-size: max(15px, 8.2cqi); line-height: 1.02; letter-spacing: -.02em;
	text-wrap: balance;
}
.av-thumb__mono { display: none; font-family: var(--av-display); font-weight: 800; letter-spacing: -.04em; line-height: 1; }

/* 1. Aurora */
.av-thumb--aurora {
	background:
		radial-gradient(70% 95% at 90% 6%, hsl(calc(var(--h) + 50) 92% 66% / .85), transparent 62%),
		radial-gradient(60% 85% at 4% 100%, hsl(calc(var(--h) - 35) 85% 56% / .7), transparent 70%),
		linear-gradient(140deg, hsl(var(--h) 72% 34%), hsl(calc(var(--h) + 20) 70% 15%));
}

/* 2. Grid */
.av-thumb--grid {
	background-color: hsl(var(--h) 42% 13%);
	background-image: radial-gradient(hsl(var(--h) 85% 74% / .3) 1px, transparent 1.6px);
	background-size: 14px 14px;
}
.av-thumb--grid .av-thumb__mono {
	display: block; position: absolute; right: -3%; bottom: -16%;
	font-size: 54cqi; color: hsl(var(--h) 85% 62% / .24);
}
.av-thumb--grid .av-thumb__text::before { content: ""; width: 12cqi; height: 3px; margin-bottom: .35em; border-radius: 2px; background: hsl(var(--h) 88% 62%); }

/* 3. Spotlight */
.av-thumb--spotlight {
	background:
		radial-gradient(55% 80% at 24% 50%, hsl(var(--h) 88% 55% / .55), transparent 70%),
		linear-gradient(120deg, hsl(var(--h) 32% 11%), hsl(calc(var(--h) + 30) 36% 6%));
}
.av-thumb__icon {
	position: absolute; left: 9%; top: 50%; width: 26%; aspect-ratio: 1; transform: translateY(-50%);
	border-radius: 22%; object-fit: cover;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 12px 40px hsl(var(--h) 90% 55% / .55);
}
.av-thumb__icon--text {
	display: grid; place-items: center; color: #fff;
	background: linear-gradient(140deg, hsl(var(--h) 72% 52%), hsl(calc(var(--h) + 30) 70% 30%));
	font-family: var(--av-display); font-weight: 800; font-size: 9cqi;
}
.av-thumb--spotlight .av-thumb__text { left: 43%; right: 6%; top: 50%; bottom: auto; transform: translateY(-50%); }
.av-thumb--spotlight .av-thumb__name { font-size: max(14px, 6.2cqi); }

/* 4. Headline */
.av-thumb--headline { background: hsl(var(--h) 46% 92%); color: hsl(var(--h) 48% 14%); }
.av-thumb--headline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4.5%; background: hsl(var(--h) 72% 42%); }
.av-thumb--headline::after { content: ""; position: absolute; left: 11%; right: 8%; top: 13%; height: 2px; background: hsl(var(--h) 60% 42% / .35); }
.av-thumb--headline .av-thumb__text { left: 11%; right: 8%; bottom: 11%; }
.av-thumb--headline .av-thumb__label { color: hsl(var(--h) 72% 34%); opacity: 1; }
.av-thumb--headline .av-thumb__name { font-size: max(16px, 9.6cqi); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .av-thumb--headline { background: hsl(var(--h) 24% 16%); color: hsl(var(--h) 35% 93%); }
	:root:not([data-theme="light"]) .av-thumb--headline .av-thumb__label { color: hsl(var(--h) 75% 70%); }
}
:root[data-theme="dark"] .av-thumb--headline { background: hsl(var(--h) 24% 16%); color: hsl(var(--h) 35% 93%); }
:root[data-theme="dark"] .av-thumb--headline .av-thumb__label { color: hsl(var(--h) 75% 70%); }

/* Small boxes (headline lists, sidebars): big initials instead of text */
@container (max-width: 220px) {
	.av-thumb .av-thumb__text { display: none; }
	.av-thumb .av-thumb__mono {
		display: grid; place-items: center; position: absolute; inset: 0; right: auto; bottom: auto; width: 100%; height: 100%;
		font-size: 34cqi; color: rgba(255, 255, 255, .94);
	}
	.av-thumb--headline .av-thumb__mono { color: hsl(var(--h) 65% 34%); }
	.av-thumb--spotlight .av-thumb__mono { display: none; }
	.av-thumb--spotlight .av-thumb__icon { left: 50%; width: 46%; transform: translate(-50%, -50%); }
}

/* Featured banners: the banner already shows icon and name, keep only the art */
.av-feature .av-thumb { position: absolute; inset: 0; width: 100%; height: 100%; }
.av-feature .av-thumb__text, .av-feature .av-thumb__mono, .av-feature .av-thumb__icon { display: none; }

/* Letter tile for games without an icon, in the game's colour */
.av-icon--empty[style] { background: linear-gradient(140deg, hsl(var(--h) 66% 48%), hsl(calc(var(--h) + 28) 70% 28%)); color: #fff; }

/* Spotlight under a score badge: drop the icon below the badge */
.av-post-card__media:has(.av-score) .av-thumb--spotlight .av-thumb__icon { top: 64%; width: 22%; }

/* ==================================================================
   Ads & banners
================================================================== */
.av-ad { display: grid; justify-items: center; gap: 4px; margin: 26px auto; text-align: center; max-width: 100%; }
.av-ad__label { font-size: .72rem; color: var(--av-muted); letter-spacing: .02em; }
.av-ad__body { display: block; max-width: 100%; overflow: hidden; }
.av-ad__body iframe, .av-ad__body ins { max-width: 100%; }
.av-ad__link { display: inline-block; line-height: 0; border-radius: 10px; overflow: hidden; }
.av-ad__link:focus-visible { outline: 2px solid var(--av-focus); outline-offset: 3px; }
.av-ad__img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.av-ad-row--top .av-ad { margin: 16px auto 0; }
.av-ad-row--footer .av-ad { margin: 34px auto 30px; }
.av-ad--row { grid-column: 1 / -1; width: 100%; margin: 10px 0; list-style: none; }
.av-ad--section { margin: 34px 0; }
.av-ad--sidebar { margin: 0; }
.av-app__aside .av-ad--sidebar { margin-top: 22px; }
.av-article .av-ad--middle { margin: 30px auto; }
.av-grid, .av-postgrid, .av-list { grid-auto-flow: row dense; }
@media (max-width: 768px) { .av-ad--desktop-only { display: none; } }
@media (min-width: 769px) { .av-ad--mobile-only { display: none; } }

/* Popup: borderless, just the banner */
.av-popup, .av-popup *, .av-popup *::before, .av-popup *::after { box-sizing: border-box; }
.av-popup {
	position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 28px 22px;
	background: rgba(8, 10, 14, .62);
	-webkit-backdrop-filter: blur(6px) saturate(120%); backdrop-filter: blur(6px) saturate(120%);
	animation: av-fade .2s ease-out;
}
.av-popup[hidden] { display: none; }
.av-popup__box {
	position: relative; display: grid; width: fit-content; max-width: min(480px, 100%);
	border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
	animation: av-pop .32s cubic-bezier(.2, .9, .3, 1.2);
}
.av-popup__creative { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 20px; background: transparent; line-height: 0; }
.av-popup__box.has-button .av-popup__creative { border-radius: 20px 20px 0 0; }
.av-popup__creative .av-ad__link { display: block; border-radius: 0; }
.av-popup__creative .av-ad__img { display: block; width: auto; max-width: 100%; max-height: 70vh; height: auto; border-radius: 0; }
.av-popup__download {
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 20px;
	border-radius: 0 0 20px 20px; background: linear-gradient(180deg, #1f8f58, var(--av-leaf));
	color: #fff; font-family: var(--av-display); font-weight: 700; font-size: 1.08rem; line-height: 1.2; text-decoration: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.av-popup__download svg { width: 22px; height: 22px; flex: none; }
.av-popup__download:hover, .av-popup__download:focus-visible { color: #fff; filter: brightness(1.08); }
.av-popup__download:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.av-popup__close {
	position: absolute; top: -14px; right: -14px; z-index: 2; display: grid; place-items: center;
	width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%;
	background: rgba(20, 22, 26, .72); color: #fff; cursor: pointer;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
	transition: transform .15s ease, background .15s ease;
}
.av-popup__close:hover { background: rgba(20, 22, 26, .9); transform: scale(1.06); }
.av-popup__close[hidden] { display: none; }
.av-popup__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 480px) { .av-popup__close { top: -12px; right: -8px; } }
@keyframes av-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes av-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .av-popup, .av-popup__box { animation: none; } }
