/* Страница «DNS для игр Supercell» (шаблон page-dns.php). Всё внутри .nl-dns. */
.nl-dns {
	--d-bg: #0b1324;
	--d-bg2: #0f1a31;
	--d-card: #131f3a;
	--d-card2: #17254a;
	--d-line: rgba(255, 255, 255, .08);
	--d-text: #eef1f9;
	--d-muted: #93a0bf;
	--d-accent: #5e72e4;
	--d-accent2: #825ee4;
	--d-ok: #2dce89;
	--d-warn: #fb6340;
	--d-radius: 20px;
	background: var(--d-bg);
	color: var(--d-text);
	overflow: hidden;
}
.nl-dns .container { position: relative; }
.nl-dns h1, .nl-dns h2, .nl-dns h3 { color: var(--d-text); }
.nl-dns code { color: inherit; }

/* Подписи, заголовки */
.nl-dns-eyebrow {
	display: inline-flex; align-items: center; gap: .75rem;
	margin: 0 0 .75rem; color: #7f93ff;
	font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.nl-dns-eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; opacity: .8; }
.nl-dns-h2 { margin: 0 0 2rem; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.nl-dns-h3 { margin: 1.25rem 0 .5rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.nl-dns-h4 { margin: 0 0 .75rem; font-size: 1rem; font-weight: 700; }
.nl-dns-muted { margin: 0; color: var(--d-muted); font-size: .9375rem; font-weight: 400; line-height: 1.6; }
.nl-dns-muted strong { color: var(--d-text); font-weight: 600; }

/* Первый экран */
.nl-dns-hero {
	position: relative;
	padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem);
	background:
		radial-gradient(600px 320px at 85% 10%, rgba(130, 94, 228, .28), transparent 70%),
		radial-gradient(520px 300px at 5% 90%, rgba(94, 114, 228, .22), transparent 70%),
		linear-gradient(180deg, #121d3a 0%, var(--d-bg) 100%);
	border-bottom: 1px solid var(--d-line);
}
.nl-dns-title {
	max-width: 14ch; margin: 0 0 1rem;
	font-size: clamp(2.25rem, 1.4rem + 4vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
}
.nl-dns-lead { max-width: 640px; margin: 0 0 1.5rem; color: #b9c3dd; font-size: 1.125rem; font-weight: 400; line-height: 1.65; }
.nl-dns-games { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.nl-dns-games li {
	padding: .375rem .875rem; border: 1px solid var(--d-line); border-radius: 999px;
	background: rgba(255, 255, 255, .04); color: #d5dcf0; font-size: .875rem; font-weight: 600;
}

/* Плашка с адресом DNS */
.nl-dns-host, .nl-dns-note--info {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	max-width: 560px; padding: 1rem 1rem 1rem 1.25rem;
	border: 1px solid rgba(127, 147, 255, .28); border-radius: 16px;
	background: linear-gradient(135deg, rgba(94, 114, 228, .14), rgba(130, 94, 228, .08));
}
.nl-dns-host-label { display: block; margin-bottom: .125rem; color: var(--d-muted); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nl-dns-host-value { font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 1.125rem; font-weight: 600; color: #fff; word-break: break-all; }

/* Кнопка «Копировать» */
.nl-dns-copy {
	display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0;
	padding: .5rem .875rem; border: 1px solid var(--d-line); border-radius: 10px;
	background: rgba(255, 255, 255, .06); color: var(--d-text);
	font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer;
	transition: background .2s, border-color .2s, color .2s;
}
.nl-dns-copy:hover { background: rgba(255, 255, 255, .12); }
.nl-dns-copy:focus-visible, .nl-dns-switch button:focus-visible, .nl-dns-btn:focus-visible, .nl-dns summary:focus-visible { outline: 2px solid #9fb0ff; outline-offset: 2px; }
.nl-dns-copy.is-copied { border-color: rgba(45, 206, 137, .5); background: rgba(45, 206, 137, .15); color: #7ff0bf; }
.nl-dns-ico { display: block; }

/* Подключение */
.nl-dns-setup { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; background: var(--d-bg); }

/* Переключатель iOS / Android */
.nl-dns-switch {
	position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
	margin: 0 0 2rem; padding: 4px; border: 1px solid var(--d-line); border-radius: 999px;
	background: var(--d-card);
}
.nl-dns-switch button {
	position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-width: 140px; padding: .75rem 1.5rem; border: 0; border-radius: 999px;
	background: transparent; color: var(--d-muted);
	font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; transition: color .25s;
}
.nl-dns-switch button[aria-selected="true"] { color: #fff; }
.nl-dns-switch-thumb {
	position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
	border-radius: 999px; background: linear-gradient(135deg, var(--d-accent), var(--d-accent2));
	box-shadow: 0 8px 24px rgba(94, 114, 228, .45);
	transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.nl-dns-switch[data-active="android"] .nl-dns-switch-thumb { transform: translateX(100%); }

/* Панели и карточки */
.nl-dns-panel { animation: nl-dns-in .35s ease both; }
.nl-dns-panel[hidden] { display: none; }
@keyframes nl-dns-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.nl-dns-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; }
#android .nl-dns-grid { grid-template-columns: 1fr 1fr; margin-top: 1.5rem; }
.nl-dns-card {
	padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
	border: 1px solid var(--d-line); border-radius: var(--d-radius);
	background: linear-gradient(180deg, var(--d-card2), var(--d-card));
}
.nl-dns-card--side { background: rgba(255, 255, 255, .02); }
.nl-dns-card-head { display: flex; align-items: center; gap: .875rem; }
.nl-dns-badge-ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: 1.375rem;
}
.nl-dns-badge-ico--ios { color: #fff; }
.nl-dns-badge-ico--android { color: #3ddc84; }
.nl-dns-kicker { color: var(--d-muted); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Шаги */
.nl-dns-steps { display: grid; gap: .875rem; margin: 1.5rem 0; padding: 0; list-style: none; counter-reset: none; }
.nl-dns-steps li { display: flex; align-items: flex-start; gap: .875rem; margin: 0; }
.nl-dns-num {
	flex-shrink: 0; min-width: 2.25rem; padding: .25rem .5rem; border: 1px solid rgba(127, 147, 255, .35); border-radius: 8px;
	background: rgba(94, 114, 228, .14); color: #9fb0ff; text-align: center;
	font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: .8125rem; font-weight: 700; line-height: 1.5;
}
.nl-dns-step-text { padding-top: .125rem; color: #cdd5ea; font-size: 1rem; font-weight: 400; line-height: 1.5; }
.nl-dns-step-text strong { color: #fff; font-weight: 600; }
.nl-dns-step-text code, .nl-dns-inline-copy code {
	padding: .125rem .375rem; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #fff;
	font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em;
}

/* Кнопки */
.nl-dns-btn {
	display: flex; align-items: center; justify-content: center; gap: .625rem; width: 100%;
	padding: 1rem 1.5rem; border-radius: 14px; font-size: 1.0625rem; font-weight: 700; text-decoration: none;
	transition: transform .2s, box-shadow .2s, filter .2s;
}
.nl-dns-btn--primary {
	background: linear-gradient(90deg, #3a6cf4, var(--d-accent) 45%, var(--d-accent2));
	color: #fff; box-shadow: 0 12px 32px rgba(94, 114, 228, .4);
}
.nl-dns-btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(94, 114, 228, .55); filter: brightness(1.05); }
.nl-dns-btn--primary.is-pulsing { animation: nl-dns-pulse 1.4s ease-in-out 3; }
@keyframes nl-dns-pulse { 50% { box-shadow: 0 0 0 10px rgba(94, 114, 228, .18), 0 12px 32px rgba(94, 114, 228, .4); } }
.nl-dns-status {
	margin: 1rem 0 0; padding: .75rem 1rem; border-radius: 12px;
	background: rgba(45, 206, 137, .12); color: #8ff3c6; font-size: .9375rem; line-height: 1.5;
}
.nl-dns-status.is-warn { background: rgba(251, 99, 64, .12); color: #ffb39f; }
.nl-dns-hint { margin: 1rem 0 0; color: var(--d-muted); font-size: .8125rem; line-height: 1.55; }

/* Список фактов */
.nl-dns-facts { display: grid; gap: 1rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.nl-dns-facts li { display: flex; gap: .875rem; color: #cdd5ea; font-size: .9375rem; line-height: 1.55; }
.nl-dns-facts i { flex-shrink: 0; width: 1.25rem; margin-top: .2rem; color: #9fb0ff; text-align: center; }

/* Плашки */
.nl-dns-note--info { max-width: none; }
.nl-dns-note--warn {
	margin-top: 1.5rem; padding: 1rem 1.25rem; border-left: 3px solid var(--d-warn); border-radius: 12px;
	background: rgba(251, 99, 64, .08);
}
.nl-dns-note--warn p { margin: 0; color: #d6dcec; font-size: .9375rem; line-height: 1.6; }
.nl-dns-note--warn strong { color: #ffb39f; }
.nl-dns-inline-copy { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .75rem; border: 1px dashed var(--d-line); border-radius: 12px; }
.nl-dns-inline-copy code { word-break: break-all; }

/* Раскрывающиеся блоки */
.nl-dns details > summary { list-style: none; cursor: pointer; }
.nl-dns details > summary::-webkit-details-marker { display: none; }
.nl-dns-details { margin-top: .5rem; border-top: 1px solid var(--d-line); padding-top: 1rem; }
.nl-dns-details summary { color: #9fb0ff; font-size: .9375rem; font-weight: 600; }
.nl-dns-details summary::after { content: " ↓"; }
.nl-dns-details[open] summary::after { content: " ↑"; }
.nl-dns-details ul { margin: .75rem 0 0; padding-left: 1.125rem; color: #cdd5ea; font-size: .9375rem; line-height: 1.7; }
.nl-dns-details strong { color: #fff; }

/* Вопросы */
.nl-dns-faq { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; background: var(--d-bg2); border-top: 1px solid var(--d-line); }
.nl-dns-faq-list { display: grid; gap: .75rem; max-width: 860px; }
.nl-dns-qa { border: 1px solid var(--d-line); border-radius: 16px; background: var(--d-card); transition: border-color .2s; }
.nl-dns-qa[open] { border-color: rgba(127, 147, 255, .35); }
.nl-dns-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.125rem 1.25rem; font-size: 1.0625rem; font-weight: 600; color: var(--d-text); }
.nl-dns-qa summary::after {
	content: ""; flex-shrink: 0; width: 10px; height: 10px; margin-right: .25rem;
	border-right: 2px solid #9fb0ff; border-bottom: 2px solid #9fb0ff; transform: rotate(45deg) translateY(-3px); transition: transform .25s;
}
.nl-dns-qa[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.nl-dns-qa p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--d-muted); font-size: .9375rem; font-weight: 400; line-height: 1.65; }
.nl-dns-extra { max-width: 860px; margin-top: 2.5rem; color: #cdd5ea; }
.nl-dns-extra p { color: #cdd5ea; }

/* Мобильные */
@media (max-width: 991.98px) {
	.nl-dns-grid, #android .nl-dns-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
	.nl-dns-switch { display: grid; width: 100%; }
	.nl-dns-switch button { min-width: 0; padding: .75rem 1rem; }
	.nl-dns-host, .nl-dns-note--info { padding: .875rem; }
	.nl-dns-host-value { font-size: 1rem; }
	.nl-dns-lead { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.nl-dns-panel, .nl-dns-btn--primary.is-pulsing { animation: none; }
	.nl-dns-switch-thumb, .nl-dns-btn { transition: none; }
}
