/* DramaGood – main stylesheet (system fonts, no external requests = fast Core Web Vitals) */
:root {
	--g: #01875f;
	--g-dark: #056449;
	--g-soft: #e6f4ef;
	--bg: #ffffff;
	--bg-2: #f8faf9;
	--text: #1f1f1f;
	--muted: #5f6368;
	--line: #e3e6e8;
	--chip: #f1f3f4;
	--star: #f4b400;
	--radius: 16px;
	--shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #111413; --bg-2: #171b19; --text: #e8eaed; --muted: #a8b0ad; --line: #2a302d;
		--chip: #222826; --g-soft: #13342a; --g: #2fbf8a; --g-dark: #5fd4a8;
		--shadow: 0 1px 2px rgba(0,0,0,.4);
		color-scheme: dark;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--g); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
button, input { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--g); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--g); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.5) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 21px; flex: none; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; }
.brand__name { letter-spacing: -.02em; }
.header-search { flex: 1; max-width: 520px; margin-left: auto; position: relative; }
.header-search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: var(--muted); }
.header-search input { width: 100%; height: 44px; border: 1px solid transparent; border-radius: 99px; background: var(--chip); padding: 0 16px 0 44px; outline: none; transition: .2s; }
.header-search input:focus { background: var(--bg); border-color: var(--g); box-shadow: var(--shadow); }
.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 8px 14px; border-radius: 99px; color: var(--text); font-weight: 500; font-size: 15px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--g-soft); color: var(--g-dark); text-decoration: none; }
.primary-nav .sub-menu { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; flex: none; }
.menu-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }
@media (max-width: 860px) {
	.header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
	.header-search { order: 3; flex-basis: 100%; max-width: none; }
	.menu-toggle { display: block; margin-left: auto; }
	.primary-nav { display: none; flex-basis: 100%; order: 4; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; }
	.brand__name { font-size: 19px; }
}

/* ---------- Generic ---------- */
.site-main { padding-top: 20px; padding-bottom: 48px; min-height: 60vh; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: 13.5px; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.breadcrumbs a { color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 500; background: var(--bg); }
.chip:hover, .chip.is-active { background: var(--g-soft); border-color: transparent; color: var(--g-dark); text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--primary { background: var(--g); color: #fff; min-width: 220px; }
.btn--primary:hover { background: var(--g-dark); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--g); background: var(--bg); }
.btn--ghost:hover { background: var(--g-soft); }
.btn--icon { width: 46px; padding: 0; border-color: var(--line); background: var(--bg); color: var(--g); }
.empty { padding: 24px; background: var(--bg-2); border-radius: var(--radius); }

/* ---------- Home ---------- */
.home-hero { text-align: center; padding: 40px 16px 28px; margin: 0 -16px 8px; background: radial-gradient(1000px 300px at 50% -60px, var(--g-soft), transparent 70%); border-radius: 0 0 28px 28px; }
.home-hero h1 { font-size: clamp(26px, 4.4vw, 42px); max-width: 860px; margin: 0 auto 10px; }
.home-hero__tag { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto 22px; }
.hero-search { display: flex; max-width: 620px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 5px; box-shadow: var(--shadow); }
.hero-search input { flex: 1; border: 0; background: none; padding: 0 18px; height: 46px; outline: none; min-width: 0; }
.hero-search button { border: 0; background: var(--g); color: #fff; border-radius: 99px; padding: 0 22px; font-weight: 600; cursor: pointer; }
.hero-search button:hover { background: var(--g-dark); }
.home-section { margin: 28px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 21px; margin: 0; }
.section-more { font-weight: 600; font-size: 14px; white-space: nowrap; }
.home-about { margin-top: 48px; padding: 28px; background: var(--bg-2); border-radius: var(--radius); }

/* ---------- App cards (grid) ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
@media (max-width: 520px) { .app-grid { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; } }
.app-card { min-width: 0; }
.app-card__link { display: block; color: var(--text); }
.app-card__link:hover { text-decoration: none; }
.app-card__icon, .app-icon { width: 100%; aspect-ratio: 1; height: auto; border-radius: 22%; object-fit: cover; box-shadow: var(--shadow); background: var(--chip); transition: transform .2s; }
.app-card__link:hover .app-card__icon { transform: translateY(-3px); }
.app-icon--ph { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 34px; background: linear-gradient(135deg, hsl(var(--h) 65% 48%), hsl(calc(var(--h) + 40) 70% 40%)); }
.app-card__title { font-size: 14.5px; font-weight: 500; margin: 8px 0 2px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-card__meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.app-card__cat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 18px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.post-card__img img, .post-card__ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: linear-gradient(135deg, var(--g-soft), var(--chip)); }
.post-card__body { padding: 14px 16px 16px; }
.post-card__title { font-size: 17px; margin: 0 0 4px; }
.post-card__title a { color: var(--text); }
.post-card__meta { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.post-card__excerpt { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Single app ---------- */
.app-hero { display: flex; gap: 28px; align-items: flex-start; padding: 8px 0 24px; }
.app-hero__icon { flex: none; width: 168px; }
.app-icon--xl { width: 168px; border-radius: 22%; }
.app-icon--xl.app-icon--ph { font-size: 64px; }
.app-hero__info { flex: 1; min-width: 0; }
.app-hero__title { font-size: clamp(26px, 4vw, 44px); margin-bottom: 6px; font-weight: 600; }
.app-hero__dev { margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 600; }
.app-hero__dev .dev { color: var(--g); }
.app-hero__dev .cat { color: var(--muted); font-weight: 500; }
.app-stats { list-style: none; display: flex; padding: 0; margin: 0 0 22px; overflow-x: auto; scrollbar-width: none; }
.app-stats::-webkit-scrollbar { display: none; }
.app-stats li { flex: none; display: flex; flex-direction: column; align-items: center; padding: 0 22px; text-align: center; position: relative; }
.app-stats li:first-child { padding-left: 0; align-items: flex-start; }
.app-stats li + li::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--line); }
.app-stats strong { font-size: 15px; font-weight: 600; white-space: nowrap; }
.app-stats span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 640px) {
	.app-hero { display: grid; grid-template-columns: 84px 1fr; gap: 4px 16px; align-items: center; }
	.app-hero__icon, .app-icon--xl { width: 84px; }
	.app-hero__icon { grid-row: 1 / 3; }
	.app-icon--xl.app-icon--ph { font-size: 36px; }
	.app-hero__info { display: contents; }
	.app-hero__title { grid-column: 2; font-size: 24px; margin: 0; align-self: end; }
	.app-hero__dev { grid-column: 2; margin: 0; align-self: start; font-size: 14px; }
	.app-stats, .app-actions { grid-column: 1 / -1; }
	.app-stats { margin: 16px 0; }
	.app-actions .btn--primary { flex: 1 1 100%; min-width: 0; }
	.app-actions .btn--ghost { flex: 1; }
}

.shots { margin: 0 -16px 24px; }
.shots__track { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shot { flex: none; scroll-snap-align: start; }
.shot img { height: 300px; width: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--chip); }
@media (max-width: 640px) { .shot img { height: 240px; } }

.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .app-layout { grid-template-columns: 1fr; } }
.app-side { position: sticky; top: 84px; }
@media (max-width: 960px) { .app-side { position: static; } }
.app-about > h2, .app-box > h2 { font-size: 21px; }
.app-box { margin-top: 28px; }
.app-side .app-box:first-child { margin-top: 0; }
.info-box, .rate-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.info-list { margin: 0; }
.info-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.info-list div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.feature-list { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.feature-list li { position: relative; padding: 10px 14px 10px 40px; background: var(--bg-2); border-radius: 12px; }
.feature-list li::before { content: "✓"; position: absolute; left: 14px; color: var(--g); font-weight: 700; }
.whats-new { background: var(--bg-2); border-radius: 12px; padding: 4px 16px; }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.mini-list a { display: flex; gap: 12px; align-items: center; color: var(--text); }
.mini-list a:hover { text-decoration: none; }
.mini-list a:hover strong { color: var(--g); }
.app-icon--sm { width: 52px; flex: none; border-radius: 22%; }
.app-icon--sm.app-icon--ph { font-size: 20px; }
.mini-list span { display: flex; flex-direction: column; min-width: 0; }
.mini-list strong { font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list small { color: var(--muted); font-size: 12.5px; }

/* Ratings */
.stars { position: relative; display: inline-block; width: 90px; height: 18px; background: linear-gradient(90deg, var(--line) 0 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 18'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M9 1.5l2.3 4.8 5.2.7-3.8 3.6.9 5.2L9 13.3l-4.6 2.5.9-5.2L1.5 7l5.2-.7z'/%3E%3Cuse href='%23s' x='18'/%3E%3Cuse href='%23s' x='36'/%3E%3Cuse href='%23s' x='54'/%3E%3Cuse href='%23s' x='72'/%3E%3C/g%3E%3C/svg%3E") no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 18'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M9 1.5l2.3 4.8 5.2.7-3.8 3.6.9 5.2L9 13.3l-4.6 2.5.9-5.2L1.5 7l5.2-.7z'/%3E%3Cuse href='%23s' x='18'/%3E%3Cuse href='%23s' x='36'/%3E%3Cuse href='%23s' x='54'/%3E%3Cuse href='%23s' x='72'/%3E%3C/g%3E%3C/svg%3E") no-repeat; }
.stars__fill { position: absolute; inset: 0 auto 0 0; background: var(--g); }
.rate-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.rate-summary small { display: block; color: var(--muted); font-size: 13px; }
.rate-avg { font-size: 44px; font-weight: 600; line-height: 1; }
.rate-input { display: flex; gap: 4px; }
.rate-input button { border: 0; background: none; font-size: 34px; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; transition: transform .1s, color .1s; }
.rate-input button.is-on { color: var(--star); }
.rate-input button:hover { transform: scale(1.12); }
.rate-msg { margin: 6px 0 0; font-size: 14px; color: var(--g-dark); min-height: 1.4em; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.tag-list a { padding: 6px 12px; background: var(--chip); border-radius: 99px; font-size: 13.5px; color: var(--text); }
.tag-list a:hover { background: var(--g-soft); color: var(--g-dark); text-decoration: none; }

/* ---------- Article typography ---------- */
.entry { font-size: 17px; line-height: 1.75; overflow-wrap: break-word; }
.entry > * + * { margin-top: 1em; }
.entry h2 { font-size: 24px; margin: 1.6em 0 .5em; }
.entry h3 { font-size: 20px; margin: 1.4em 0 .4em; }
.entry p { margin: 0 0 1em; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li { margin-bottom: .35em; }
.entry img { border-radius: 12px; margin: 1em auto; }
.entry a { text-decoration: underline; text-underline-offset: 2px; }
.entry blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 4px solid var(--g); background: var(--bg-2); border-radius: 0 12px 12px 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.entry th { background: var(--bg-2); }
.entry code { background: var(--chip); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.toc { margin: 1.4em 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.toc summary { cursor: pointer; padding: 12px 16px; font-weight: 600; }
.toc ol { margin: 0; padding: 0 16px 14px 36px; font-size: 15px; }
.toc a { text-decoration: none; }
.toc .toc__l3 { margin-left: 16px; list-style: circle; }

.article-head h1 { font-size: clamp(28px, 4.2vw, 40px); }
.article-meta { color: var(--muted); font-size: 14px; }
.article-cover img { border-radius: var(--radius); width: 100%; }
.article-cover { margin: 0 0 24px; }
.archive-head { margin-bottom: 16px; }
.archive-head h1 { font-size: clamp(26px, 3.6vw, 36px); }
.archive-head h1 small { font-size: .55em; color: var(--muted); font-weight: 500; }
.archive-intro { color: var(--muted); max-width: 860px; font-size: 16px; }

/* Pagination */
.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-weight: 500; }
.page-numbers.current { background: var(--g); color: #fff; border-color: var(--g); }
.page-numbers:hover { text-decoration: none; border-color: var(--g); }

/* 404 */
.not-found { text-align: center; padding: 40px 0 16px; }
.not-found__code { font-size: 96px; font-weight: 800; color: var(--g); margin: 0; line-height: 1; }

/* Comments */
.comments { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12.5px; }
.comment-metadata a { color: var(--muted); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.comment-form .submit { background: var(--g); color: #fff; border: 0; border-radius: 10px; padding: 11px 22px; font-weight: 600; cursor: pointer; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: grid; place-items: center; z-index: 200; padding: 16px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 32px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-col--about { grid-column: 1 / -1; } }
.footer-col p { color: var(--muted); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text); }
.footer-title { font-size: 15px; margin-bottom: 12px; }
.brand--footer { margin-bottom: 10px; }
.online-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--g-soft); color: var(--g-dark) !important; font-weight: 600; }
.online-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0 24px; text-align: center; }
.footer-bottom p { margin: 4px 0; }
.footer-note { font-size: 12.5px; color: var(--muted); }

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

/* ---------- Submit CTA (home) ---------- */
.submit-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding: 24px 28px; border-radius: var(--radius); background: var(--g-soft); }
.submit-cta h2 { font-size: 21px; margin-bottom: 4px; }
.submit-cta p { margin: 0; color: var(--muted); }
.btn--lg { height: 52px; font-size: 16px; padding: 0 32px; }

/* ---------- Ads ---------- */
.dg-ad { margin: 20px auto; text-align: center; max-width: 100%; overflow: hidden; clear: both; }
.dg-ad__label { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.dg-ad__in { display: flex; justify-content: center; align-items: center; min-height: 50px; }
.dg-ad__in > * { max-width: 100%; }
.dg-ad--header { margin: 12px auto 0; padding: 0 16px; }
.dg-ad--app_before_download { margin: 0 0 14px; text-align: left; }
.dg-ad--app_before_download .dg-ad__in { justify-content: flex-start; }
.dg-ad--sidebar { margin-top: 0; margin-bottom: 20px; }
.entry .dg-ad { margin: 28px auto; }
.grid-ad { grid-column: 1 / -1; }
.grid-ad .dg-ad { margin: 4px auto; }
@media (max-width: 767px) { .dg-ad--only-desktop { display: none !important; } }
@media (min-width: 768px) { .dg-ad--only-mobile { display: none !important; } .dg-sticky { display: none; } }
.dg-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); }
.dg-sticky .dg-ad { margin: 0 auto; }
.dg-sticky .dg-ad__label { display: none; }
.dg-sticky__close { position: absolute; top: -28px; right: 8px; width: 28px; height: 28px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--bg); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.dg-modal { position: fixed; inset: 0; z-index: 300; background: rgba(15,20,18,.6); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; }
.dg-modal[hidden] { display: none; }
.dg-modal__box { position: relative; width: 100%; max-width: 420px; background: var(--bg); border-radius: 20px; padding: 26px 22px 22px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dg-modal__x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--chip); color: var(--text); font-size: 20px; cursor: pointer; }
.dg-modal__title { font-weight: 700; font-size: 18px; margin: 0 0 12px; }
.dg-modal__count { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 50%; border: 4px solid var(--g); color: var(--g); margin-bottom: 8px; }
.dg-modal__count[hidden] { display: none; }
.dg-modal__count span { font-size: 30px; font-weight: 800; line-height: 1; }
.dg-modal__count small { font-size: 11px; color: var(--muted); }
.dg-modal__go { width: 100%; margin-top: 10px; }
body.dg-modal-open { overflow: hidden; }
[hidden] { display: none !important; }
@media (max-width: 640px) { .app-hero .dg-ad { grid-column: 1 / -1; margin: 12px 0 0; } .dg-ad--app_before_download .dg-ad__in { justify-content: center; } .dg-ad--app_before_download { text-align: center; } }
