/* Paw Play — ночное стекло. Каталог и окно игры рисует PawYume Games; их тёмный вариант — pyg-dark.css. */
:root {
	--pp-accent: #8a2be2;
	--pp-indigo: #6366f1;
	--pp-grad: linear-gradient(135deg, var(--pp-indigo), var(--pp-accent));
	--pp-bg: #0b0918;
	--pp-ink: #ece8fb;
	--pp-ink-2: #cfc8e8;
	--pp-ink-3: #a9a1cf;
	--pp-line: rgba(255, 255, 255, .14);
	--pp-head: 'Russo One', Manrope, sans-serif;
	--pp-text: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--pp-mono: 'JetBrains Mono', ui-monospace, monospace;
	--pyg-head-font: var(--pp-head);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--pp-bg); }
body.pp {
	margin: 0;
	min-height: 100vh;
	color: var(--pp-ink);
	font: 500 16px/1.55 var(--pp-text);
	background-color: var(--pp-bg);
	background-image:
		radial-gradient(38% 26% at 86% 3%, rgba(255, 140, 60, .40), transparent 70%),
		radial-gradient(34% 24% at 6% 22%, rgba(139, 108, 255, .42), transparent 70%),
		radial-gradient(30% 20% at 74% 40%, rgba(255, 111, 174, .28), transparent 70%),
		radial-gradient(34% 20% at 20% 62%, rgba(87, 224, 200, .18), transparent 70%),
		radial-gradient(36% 22% at 82% 80%, rgba(139, 108, 255, .32), transparent 70%),
		linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
	background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 56px 56px, 56px 56px;
	background-attachment: fixed;
}
body.pp a { color: var(--pp-ink); text-decoration: none; }
body.pp a:hover { color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pp-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: #fff; color: #140f2a !important; font-weight: 800; }
.pp-skip:focus { top: 12px; }
body.pp :focus-visible { outline: 3px solid #a78bfa; outline-offset: 3px; }

/* стекло */
.pp-glass {
	background: linear-gradient(140deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04) 60%, rgba(255, 255, 255, .08));
	-webkit-backdrop-filter: blur(22px) saturate(170%);
	backdrop-filter: blur(22px) saturate(170%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 60px -28px rgba(0, 0, 0, .7);
}

/* раскладка */
.pp-shell { display: grid; grid-template-columns: 96px minmax(0, 1fr); min-height: 100vh; }
.pp-rail {
	position: sticky; top: 12px; z-index: 5;
	height: calc(100vh - 24px); margin: 12px 0 12px 12px; padding: 16px 0;
	border-radius: 26px;
	display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.pp-logo { width: 50px; height: 50px; margin-bottom: 12px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; color: #fff !important; background: var(--pp-grad); box-shadow: 0 10px 24px -10px var(--pp-accent), inset 0 1px 0 rgba(255,255,255,.4); }
.pp-logo img { width: 100%; height: 100%; object-fit: cover; }
.pp-rail-i { position: relative; width: 62px; min-height: 58px; padding: 6px 4px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #a9a1cf !important; font: 700 10.5px/1.15 var(--pp-text); text-align: center; transition: background .2s, color .2s; }
.pp-rail-i:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }
.pp-rail-i.is-on { background: rgba(255, 255, 255, .12); color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.pp-rail-i.is-dash { border: 1px dashed rgba(255, 255, 255, .2); }
.pp-rail-gap { flex: 1 1 auto; }
.pp-dot { position: absolute; right: 9px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: #ff6fae; box-shadow: 0 0 0 3px rgba(255, 111, 174, .25); }
.pp-body { min-width: 0; display: flex; flex-direction: column; }

.pp-top {
	position: sticky; top: 12px; z-index: 4;
	margin: 12px 20px 0; padding: 10px 14px 10px 20px; border-radius: 22px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.pp-word { font: 400 22px/1 var(--pp-head); letter-spacing: -.01em; }
.pp-word span { background: var(--pp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pp-live { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255, 111, 174, .14); color: #ffb3d1 !important; font: 700 12px var(--pp-mono); text-transform: uppercase; }
.pp-live i { width: 8px; height: 8px; border-radius: 50%; background: #ff6fae; box-shadow: 0 0 0 4px rgba(255, 111, 174, .25); animation: ppPulse 2s ease-in-out infinite; }
.pp-search { flex: 1 1 220px; max-width: 460px; margin-left: auto; }
.pp-search label { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--pp-line); color: #a9a1cf; }
.pp-search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; color: var(--pp-ink); font: 500 15px var(--pp-text); }
.pp-search input::placeholder { color: #8f88b3; }
.pp-bal { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--pp-line); font-weight: 800; font-size: 14px; }
.pp-bal i { width: 11px; height: 11px; border-radius: 3px; transform: rotate(45deg); background: var(--pp-grad); }
.pp-me img { display: block; width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px var(--pp-bg), 0 0 0 4px var(--pp-accent); }
.pp-login { height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; background: #fff; color: #140f2a !important; font-weight: 800; font-size: 14px; }

.pp-main { flex: 1 1 auto; width: 100%; max-width: 1340px; margin: 0 auto; padding: 26px 32px 60px; display: flex; flex-direction: column; gap: 56px; }
.pp-sec { min-width: 0; }
.pp-sec-h { display: flex; align-items: baseline; gap: 16px; margin: 0 0 20px; }
.pp-sec-h h2 { margin: 0; font: 400 32px/1.1 var(--pp-head); }
.pp-idx { font: 700 14px var(--pp-mono); color: #6f6896; }
.pp-kicker { margin: 0; font: 700 12px var(--pp-mono); letter-spacing: .08em; color: #c4b5fd; }
.pp-btn { position: relative; overflow: hidden; height: 56px; display: inline-flex; align-items: center; gap: 10px; padding: 0 28px; border-radius: 999px; border: 3px solid #fff; background: var(--pp-grad); color: #fff !important; font-weight: 800; font-size: 16px; box-shadow: 0 12px 30px -8px var(--pp-accent); transition: transform .15s, box-shadow .15s; }
.pp-btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 16px 36px -8px var(--pp-accent); }

.pp-launch { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 32px 34px; border-radius: 28px; }
.pp-launch > div { position: relative; flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; }
.pp-launch h2 { margin: 0; font: 400 28px/1.15 var(--pp-head); }
.pp-launch p { margin: 0; color: var(--pp-ink-2); }
.pp-launch-glow { position: absolute; right: 200px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 108, 255, .45), transparent); }

.pp-page { padding: 34px clamp(20px, 4vw, 48px); border-radius: 28px; }
.pp-h1 { margin: 0 0 18px; font: 400 clamp(28px, 4vw, 40px)/1.1 var(--pp-head); }
.pp-h2 { margin: 0 0 12px; font: 400 26px/1.15 var(--pp-head); }
.pp-prose { color: var(--pp-ink-2); font-size: 17px; line-height: 1.7; }
.pp-prose a { color: #c4b5fd !important; text-decoration: underline; text-underline-offset: 3px; }
.pp-prose img { max-width: 100%; height: auto; border-radius: 16px; }
.pp-list { display: flex; flex-direction: column; gap: 20px; }
.pp-note { padding: 22px 26px; border-radius: 22px; }
.pp-404 { max-width: 640px; margin: 40px auto; padding: 40px; border-radius: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pp-404 p { margin: 0; color: var(--pp-ink-2); }

.pp-foot { width: 100%; max-width: 1340px; margin: 0 auto; padding: 24px 32px 32px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; color: var(--pp-ink-3); font-size: 14px; border-top: 1px solid rgba(255,255,255,.06); }
.pp-foot-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.pp-foot-nav a { color: var(--pp-ink-2) !important; }

.pp-dock { display: none; }

/* каталог PawYume Games: стекло поверх тёмного варианта (pyg-dark.css) */
body.pp .pyg-hub { color: var(--pp-ink); }
body.pp .pyg-cs-list { background: #1a1438 !important; box-shadow: 0 18px 40px rgba(0,0,0,.6) !important; }
body.pp .pyg-hub .pyg-cs-trigger, body.pp .pyg-hub .pyg-search input { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
body.pp .pyg-hub .pyg-search input::placeholder { color: #8f88b3; }
body.pp .pyg-tile-ava { background: rgba(20, 14, 44, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: rgba(99, 102, 241, .45); box-shadow: 0 16px 34px -18px rgba(0,0,0,.9), 0 0 30px -10px rgba(99, 102, 241, .55); }
body.pp .pyg-tile:hover .pyg-tile-title { color: #c4b5fd; }
body.pp .pyg-row-h { font-family: var(--pp-head); font-weight: 400; }
body.pp .pyg-new { background: var(--pp-grad); }

/* лаунчер: окно уже само «приложение» — меньше отступов, без блока «скачайте лаунчер» */
body.pp-launcher .pp-rail { top: 0; height: 100vh; margin: 0; border-radius: 0 22px 22px 0; }
body.pp-launcher .pp-top { top: 0; margin: 0 16px; border-radius: 0 0 20px 20px; }
body.pp-launcher .pp-foot { display: none; }

/* телефон */
@media (max-width: 860px) {
	.pp-shell { grid-template-columns: minmax(0, 1fr); }
	.pp-rail { display: none; }
	.pp-top { margin: 8px 8px 0; top: 8px; padding: 8px 10px 8px 14px; }
	.pp-word { flex: 1 1 auto; }
	.pp-live, .pp-hide-m { display: none; }
	.pp-search { order: 5; flex-basis: 100%; max-width: none; }
	.pp-login { height: 40px; padding: 0 16px; }
	.pp-me img { width: 40px; height: 40px; }
	.pp-bal { height: 40px; padding: 0 12px; }
	.pp-main { padding: 18px 14px 120px; gap: 40px; }
	.pp-foot { padding-bottom: 110px; }
	.pp-dock {
		position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20;
		display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px; border-radius: 24px;
		background: rgba(20, 14, 44, .62);
	}
	.pp-dock a { position: relative; min-height: 54px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 800 11px var(--pp-text); color: #b4acd6 !important; }
	.pp-dock a.is-on { background: var(--pp-grad); color: #fff !important; }
	.pp-dock .pp-dot { right: 14px; top: 6px; }
	.pp-launch { padding: 24px; }
}
@media (max-width: 860px) {
	/* размытия на телефоне тормозят прокрутку — плотнее фон, меньше blur */
	.pp-glass { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
	body.pp { background-attachment: scroll; }
}
@keyframes ppPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(255,111,174,.25); } 50% { box-shadow: 0 0 0 8px rgba(255,111,174,0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
