/* Конкурс «Новый год с Пегасом БелГУ» — /pegas/.
   Шрифты и зелёный — как на юбилейном сайте (styles.css), палитра наклеек
   и модульный паттерн — из юбилейного брендбука. Движение мягкое: сильнее
   всего откликается то, на что навели или нажали. */

.pegas-body {
  --pg-green: #00583e; --pg-green-h: #00432f; --pg-leaf: #009b68; --pg-mint: #7fcdbb;
  --pg-lilac: #cebdd9; --pg-violet: #9657bc; --pg-gold: #c09a42;
  --pg-ink: #13241f; --pg-text: #22302c; --pg-muted: #5d6b67; --pg-line: #dde3e0; --pg-line-2: #c6cfcb;
  --pg-warm: #f8f7f5; --pg-bad: #a8261b;
  background: #fff;
}
.pegas-body .site-header .header-actions { display: flex; }
.pg-site { color: var(--pg-muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.pg-site:hover { color: var(--pg-green); }
.pegas-shell { display: block; }

.pg { color: var(--pg-text); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
.pg a { color: var(--pg-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pg a:hover { color: var(--pg-green-h); }
.pg :focus-visible { outline: 2px solid var(--pg-leaf); outline-offset: 2px; }
.pg h1, .pg h2 { margin: 0; color: var(--pg-ink); font-family: var(--serif); font-weight: 700; letter-spacing: -.005em; }
.pg h1 { color: var(--pg-green); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }
.pg h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.pg h3 { margin: 0; color: var(--pg-ink); font-size: 17px; line-height: 1.35; }
.pg p { margin: 0; }
.pg-lead { max-width: 62ch; color: var(--pg-text); font-size: 18px; line-height: 1.55; }
.pg-sub { max-width: 64ch; margin-top: 6px !important; color: var(--pg-muted); }
.pg-small { font-size: 14px; }

/* --- навигация конкурса --- */
.pg-notice { margin: 0 0 12px; padding: 10px 14px; border-radius: 6px; background: #fbf3df; color: #5c4510; font-size: 15px; }
/* Шапка конкурса: тёмно-зелёная полоса, разделы — переключатели, активный — золотой.
   Прилипает к верху при прокрутке: переключиться можно в любой момент. */
.pg-nav { position: sticky; top: 8px; z-index: 40; display: flex; align-items: center; gap: 22px; padding: 8px 8px 8px 22px;
  border-radius: 14px; background: #0f3a2d; color: #f4efe2; box-shadow: 0 6px 20px rgba(9, 34, 26, .18); }
.pg-nav-title { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.pg-nav-title:hover { color: #f0d48e !important; }
.pg-nav-title .pg-st { width: 32px; height: 32px; }
.pg-nav ul { display: flex; gap: 4px; margin: 0; padding: 4px; border-radius: 11px; background: rgba(255, 255, 255, .08); list-style: none; }
.pg-nav ul a { display: block; padding: 9px 16px; border-radius: 8px; color: rgba(244, 239, 226, .9) !important; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color 140ms, color 140ms; }
.pg-nav ul a:hover { background: rgba(255, 255, 255, .1); color: #fff !important; }
.pg-nav ul a[aria-current] { background: #e3bd62; color: #17261e !important; }
.pg-nav-me { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pg-nav .pg-link { padding: 9px 12px; color: #fff !important; text-decoration: none; }
.pg-nav .pg-link:hover { color: #f0d48e !important; }
.pg-nav .pg-btn { border-color: #e3bd62; background: #e3bd62; color: #17261e !important; }
.pg-nav .pg-btn:hover { border-color: #eccb7c; background: #eccb7c; }
.pg-me { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: 999px; color: #fff !important; font-size: 15px; font-weight: 700; text-decoration: none; transition: background-color 140ms; }
.pg-me:hover, .pg-me.is-on { background: rgba(255, 255, 255, .12); }
.pg-me-short { display: none; }
.pg-me-ava { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #e3bd62; color: #17261e; font-size: 12.5px; font-weight: 800; }
.pg-flash { margin: 18px 0 0; padding: 12px 16px; border: 1px solid #b9dccb; border-radius: 6px; background: #eef7f2; color: #164a37; }
.pg-flash.is-warn { border-color: #e8d39b; background: #fbf5e4; color: #5c4510; }
.pg-body { padding: 36px 0 56px; }

/* --- кнопки и ссылки --- */
.pg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid var(--pg-green); border-radius: 8px;
  background: var(--pg-green); color: #fff !important; font: 700 15.5px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 120ms; }
.pg-btn:hover { background: var(--pg-green-h); border-color: var(--pg-green-h); }
.pg-btn.is-ghost { background: #fff; color: var(--pg-green) !important; }
.pg-btn.is-ghost:hover { background: #eef5f2; }
.pg-btn.is-small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.pg-btn[disabled] { opacity: .6; cursor: progress; }
.pg-link { font-weight: 600; }
.pg-link-btn { padding: 0; border: 0; background: none; color: var(--pg-green); font: 600 15px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.pg-soon { padding: 10px 14px; border: 1px solid var(--pg-line-2); border-radius: 8px; color: var(--pg-ink); font-weight: 600; }

/* --- наклейки --- */
.pg-st { display: inline-grid; flex: none; width: 40px; height: 40px; place-items: center; vertical-align: middle; }
.pg-st img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pg-st.is-xs { width: 20px; height: 20px; }
.pg-st.is-sm { width: 28px; height: 28px; }
.pg-st.is-xl { width: 128px; height: 128px; }

/* --- о конкурсе: зимний вечер, гирлянда, ёлочные игрушки --- */
.pg-intro { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 24px;
  min-height: 540px; padding: 96px 48px 56px 56px; border-radius: 16px; color: #f4efe2;
  background: radial-gradient(55% 65% at 72% 0%, rgba(240, 196, 92, .16), transparent 70%), #0f3a2d; }
.pg-intro::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34%; max-width: 400px; aspect-ratio: 900 / 692;
  background: url("pattern-corner.webp") right bottom / contain no-repeat; opacity: .9; pointer-events: none; }
.pg-intro-text { position: relative; z-index: 2; max-width: 640px; }
.pg-intro-kicker { margin-bottom: 10px !important; color: #e8c879; font-size: 15px; font-weight: 700; }
.pg-intro h1 { max-width: 16ch; margin-bottom: 18px; color: #fff; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.06; }
.pg-intro .pg-lead { color: rgba(244, 239, 226, .92); }
.pg-intro a:not(.pg-btn) { color: #f0d48e; }
.pg-intro a:not(.pg-btn):hover { color: #fff; }
.pg-intro .pg-btn { border-color: #e3bd62; background: #e3bd62; color: #17261e !important; }
.pg-intro .pg-btn:hover { border-color: #eccb7c; background: #eccb7c; }
.pg-intro .pg-soon { border-color: rgba(244, 239, 226, .35); color: #fff; }
.pg-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 28px 0 0; }
.pg-facts > div { padding: 0 22px; border-left: 1px solid rgba(244, 239, 226, .22); }
.pg-facts > div:first-child { padding-left: 0; border-left: 0; }
.pg-facts dt { color: rgba(244, 239, 226, .65); font-size: 13px; }
.pg-facts dd { margin: 2px 0 0; color: #fff; font-weight: 700; }
.pg-mine { margin-top: 26px !important; padding: 12px 16px; border-radius: 8px; background: rgba(255, 255, 255, .08); }

.pg-garland { position: absolute; top: -4px; left: 0; z-index: 1; display: block; width: 100%; height: auto; pointer-events: none; }
.pg-garland-wire { fill: none; stroke: #2f5d4b; stroke-width: 1.6; }
.pg-bulb rect { fill: #2f5d4b; }
.pg-bulb-glass { animation: pg-bulb calc(2.6s + var(--b) * .45s) ease-in-out infinite; animation-delay: calc(var(--b) * -.7s); }
.pg-bulb.is-green .pg-bulb-glass { fill: #46d39a; filter: drop-shadow(0 0 6px rgba(70, 211, 154, .7)); }
.pg-bulb.is-gold .pg-bulb-glass { fill: #f6c95e; filter: drop-shadow(0 0 6px rgba(246, 201, 94, .75)); }
.pg-bulb.is-gradient .pg-bulb-glass { fill: #c8a6ee; filter: drop-shadow(0 0 6px rgba(200, 166, 238, .7)); }
.pg-bulb-shine { fill: rgba(255, 255, 255, .55); }
@keyframes pg-bulb { 50% { opacity: .45; } }
.pg-garland.is-strip { position: relative; z-index: 1; margin: -8px auto 0; width: calc(100% - 28px); height: auto; }
.pg-garland.is-narrow { display: none; }
.pg-garland.is-strip .pg-garland-wire { stroke: #0f3a2d; stroke-width: 1.8; }
.pg-garland.is-strip .pg-bulb rect { fill: #0f3a2d; }
.pg-garland.is-strip .pg-bulb-glass { filter: none; }

.pg-snow { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.pg-snow i { position: absolute; top: -12px; width: var(--s); height: var(--s); border-radius: 50%; background: rgba(255, 255, 255, .8);
  animation: pg-fall var(--d) linear var(--delay) infinite; }
@keyframes pg-fall { 0% { transform: translate(0, 0); } 50% { transform: translate(14px, 270px); } 100% { transform: translate(-6px, 560px); opacity: .2; } }

/* Наклейки: настоящие, чуть вкось и внахлёст. Отклик — на наведение и нажатие. */
.pg-stickers { position: relative; z-index: 2; aspect-ratio: 1 / .92; width: 100%; max-width: 560px; justify-self: end; perspective: 900px; }
.pg-stk { position: absolute; width: 58%; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transform: rotate(var(--r)) translate(var(--tx, 0), var(--ty, 0)); transition: transform 380ms cubic-bezier(.3, 1.4, .5, 1), filter 200ms;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .3)); animation: pg-float 6s ease-in-out infinite; animation-delay: calc(var(--n) * -2s); }
.pg-stk-gold { top: 0; left: 27%; z-index: 3; width: 44%; --r: -4deg; }
.pg-stk-green { top: 40%; left: 2%; z-index: 2; width: 42%; --r: -8deg; }
.pg-stk-gradient { top: 33%; right: 2%; z-index: 1; width: 38%; --r: 7deg; }
.pg-stk .pg-stk-img { display: block; width: 100%; height: auto; transition: transform 380ms cubic-bezier(.3, 1.4, .5, 1); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.pg-stk:hover, .pg-stk:focus-visible { z-index: 4; --tx: 0; --ty: -10px; filter: drop-shadow(0 24px 26px rgba(0, 0, 0, .38)); animation-play-state: paused; }
.pg-stk:focus-visible { outline: 2px dashed #f0d48e; outline-offset: 6px; border-radius: 12px; }
.pg-stk.is-pop { animation: pg-pop 640ms cubic-bezier(.3, 1.5, .5, 1); }
@keyframes pg-pop { 0% { transform: rotate(var(--r)) scale(1); } 30% { transform: rotate(calc(var(--r) * -1.6)) scale(1.12) translateY(-16px); } 60% { transform: rotate(calc(var(--r) * .6)) scale(.97); } 100% { transform: rotate(var(--r)) scale(1); } }
@keyframes pg-float { 50% { translate: 0 -6px; } }
.pg-stk-pts { position: absolute; left: 50%; top: 8%; padding: 4px 11px; border-radius: 999px; background: #e3bd62; color: #17261e; font: 800 15px/1.2 var(--sans); white-space: nowrap;
  opacity: 0; transform: translate(-50%, 6px) rotate(calc(var(--r) * -1)); transition: opacity 180ms, transform 280ms cubic-bezier(.3, 1.5, .5, 1); pointer-events: none; }
.pg-stk:hover .pg-stk-pts, .pg-stk:focus-visible .pg-stk-pts, .pg-stk.is-pop .pg-stk-pts { opacity: 1; transform: translate(-50%, -14px) rotate(calc(var(--r) * -1)); }
.pg-spark { position: absolute; z-index: 5; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; animation: pg-spark 700ms ease-out forwards; }
@keyframes pg-spark { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }
.pg-stickers.is-mini { width: 300px; max-width: 100%; justify-self: end; }
.pg-stickers.is-mini .pg-stk { filter: drop-shadow(0 8px 10px rgba(9, 34, 26, .22)); }
.pg-stickers.is-mini .pg-stk-pts { font-size: 13px; }

.pg-wish { margin: 48px 0 26px !important; color: var(--pg-green); font-family: var(--serif); font-size: 22px; text-align: center; }
.pg-wish span { display: block; margin-top: 4px; color: var(--pg-muted); font-family: var(--sans); font-size: 14px; }

.pg-parts, .pg-dates, .pg-start { margin-top: 56px; }
.pg-parts-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-top: 22px; }
.pg-part { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 26px; border: 1px solid var(--pg-line); border-radius: 10px; }
.pg-part-mark { display: flex; gap: 6px; min-height: 28px; align-items: center; }
.pg-pin-inline.is-big { width: 22px; height: 28px; }
.pg-part h3 { font-family: var(--serif); font-size: 22px; }
.pg-part h3 a { color: var(--pg-ink); text-decoration: none; }
.pg-part h3 a:hover { color: var(--pg-green); text-decoration: underline; }
.pg-part-prize { color: var(--pg-ink); font-weight: 600; }
.pg-part .pg-link { margin-top: auto; }

.pg-timeline { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--pg-line); }
.pg-timeline li { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--pg-line); }
.pg-timeline time { color: var(--pg-ink); font-weight: 700; }

.pg-steps { display: grid; gap: 14px; max-width: 72ch; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: pg-step; }
.pg-steps li { position: relative; padding-left: 40px; counter-increment: pg-step; }
.pg-steps li::before { content: counter(pg-step); position: absolute; left: 0; top: -3px; color: var(--pg-green); font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.2; }

/* --- страницы с правилами --- */
.pg-head { max-width: 760px; }
.pg-head.is-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; max-width: none; }
.pg-head.is-split > div { max-width: 760px; }
.pg-head h1 { margin-bottom: 14px; }
.pg-up { margin-bottom: 14px !important; font-size: 15px; }
.pg-doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; margin-top: 36px; }
.pg-toc { position: sticky; top: 96px; align-self: start; font-size: 15px; }
.pg-toc b { display: block; margin-bottom: 8px; color: var(--pg-muted); font-size: 13px; font-weight: 600; }
.pg-toc ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--pg-line); }
.pg-toc a { display: block; padding: 5px 0 5px 14px; color: var(--pg-text); text-decoration: none; }
.pg-toc a:hover { color: var(--pg-green); }
.pg-doc-body { max-width: 760px; }
.pg-doc.has-aside { grid-template-columns: 200px minmax(0, 1fr) 290px; gap: 44px; }
.pg-aside-card { position: sticky; top: 96px; align-self: start; display: grid; gap: 16px; padding: 22px; border-radius: 14px; background: #0f3a2d; color: #f4efe2; }
.pg .pg-aside-card h2 { color: #fff; font-size: 22px; }
.pg-aside-card dl { display: grid; gap: 12px; margin: 0; }
.pg-aside-card dt { color: rgba(244, 239, 226, .65); font-size: 13px; }
.pg-aside-card dd { margin: 2px 0 0; color: #fff; font-weight: 700; }
.pg-aside-pts { display: flex; gap: 14px; }
.pg-aside-pts span { display: inline-flex; align-items: center; gap: 6px; }
.pg-aside-act .pg-btn { width: 100%; border-color: #e3bd62; background: #e3bd62; color: #17261e !important; }
.pg-aside-act .pg-btn:hover { border-color: #eccb7c; background: #eccb7c; }
.pg-aside-act .pg-soon { border-color: rgba(244, 239, 226, .35); color: #fff; }
.pg-aside-links { display: grid; gap: 4px; font-size: 15px; }
.pg .pg-aside-links a { color: #f0d48e; }
.pg-stk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.pg-stk-cards li { display: grid; gap: 2px; align-content: start; padding: 16px 16px 18px; border: 1px solid var(--pg-line); border-radius: 12px; background: var(--pg-warm); }
.pg-stk-cards .pg-stk-img { width: 100%; height: auto; aspect-ratio: 900 / 1038; object-fit: contain; margin-bottom: 10px; transition: transform 300ms cubic-bezier(.3, 1.4, .5, 1); transform: rotate(-3deg); }
.pg-stk-cards li:hover .pg-stk-img { transform: rotate(2deg) scale(1.04); }
.pg-stk-cards b { color: var(--pg-ink); font-family: var(--serif); font-size: 20px; }
.pg-stk-cards-pts { color: var(--pg-green); font-weight: 700; }
.pg-stk-cards-n { color: var(--pg-muted); font-size: 14px; }
.pg-doc-body section { padding-top: 6px; margin-bottom: 44px; }
.pg [id] { scroll-margin-top: 96px; }
.pg-doc-body h2 { margin-bottom: 14px; }
.pg-doc-body h3 { margin: 22px 0 8px; }
.pg-doc-body section > p + p, .pg-doc-body section > p { margin-top: 12px; }
.pg-table { width: 100%; margin: 6px 0 0; border-collapse: collapse; font-size: 15.5px; }
.pg-table th { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--pg-line-2); color: var(--pg-muted); font-size: 13.5px; font-weight: 600; text-align: left; }
.pg-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--pg-line); vertical-align: middle; }
.pg-colors td:nth-child(n+2) { font-variant-numeric: tabular-nums; }
.pg-cell-st { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.pg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pg-two h3 { margin-top: 0 !important; }
.pg-list { display: grid; gap: 6px; margin: 8px 0 0; padding: 0 0 0 20px; }
.pg-list.is-yes li::marker { content: "✓  "; color: var(--pg-leaf); }
.pg-list.is-no li::marker { content: "×  "; color: var(--pg-bad); font-weight: 700; }
.pg-states { display: grid; gap: 10px; margin: 14px 0 0; }
.pg-states div { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: baseline; }
.pg-states dd { margin: 0; }
.pg-noms { display: grid; gap: 10px; margin: 8px 0 0; }
.pg-noms div { display: grid; grid-template-columns: 240px 1fr; gap: 14px; }
.pg-noms dt { color: var(--pg-ink); font-weight: 700; }
.pg-noms dd { margin: 0; }

.pg-badge { display: inline-block; padding: 2px 9px; border-radius: 4px; background: #eef1f0; color: var(--pg-ink); font-size: 13px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.pg-badge.is-approved { background: #e2f2ea; color: #0b5a3c; }
.pg-badge.is-retake { background: #fbf0d6; color: #6b4d0c; }
.pg-badge.is-rejected { background: #f8e4e1; color: #8b2219; }
.pg-badge.is-replaced { background: #f1f1f1; color: #6c6c6c; }

/* --- онлайн-задания и карта --- */
.pg-quests { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; margin-top: 32px; align-items: start; }
.pg-quests-list h2 { margin-bottom: 14px; }
.pg-empty { max-width: 60ch; color: var(--pg-muted); }
.pg-qlist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--pg-line); }
.pg-qlist li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--pg-line); }
.pg-qlist li > div { display: grid; gap: 3px; justify-items: start; }
.pg-qlist span:not(.pg-badge) { color: var(--pg-muted); font-size: 14px; }
.pg-qn { color: var(--pg-green); font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.3; }
.pg-qlist li.is-soon .pg-qn, .pg-qlist li.is-soon b { color: var(--pg-muted); }
.pg-qlist li.is-closed .pg-qn { color: var(--pg-muted); }
.pg-howq { margin-top: 52px; }

.pg-map { margin: 0; }
.pg-map-stage { position: relative; overflow: hidden; border: 1px solid var(--pg-line); border-radius: 10px; background: #f3f6f5; touch-action: none; user-select: none; -webkit-user-select: none; }
.pg-map-svg { display: block; width: 100%; height: auto; cursor: grab; }
.pg-map-svg.is-dragging { cursor: grabbing; }
.pg-d { fill: #fff; stroke: #c3cdc9; stroke-width: .8; stroke-linejoin: round; fill-rule: evenodd; vector-effect: non-scaling-stroke; transition: fill 120ms; }
.pg-d:hover { fill: #edf4f1; }
.pg-outline { fill: none; stroke: var(--pg-green); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.pg-labels { font-size: 11px; pointer-events: none; }
.pg-labels text { fill: #3a4a45; font-family: var(--serif); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.pg-towns { font-size: 9px; pointer-events: none; }
.pg-towns circle { fill: #7d8d88; }
.pg-towns .is-city circle { fill: var(--pg-green); }
.pg-towns text { fill: #6a7a75; opacity: 0; paint-order: stroke; stroke: #fff; stroke-width: 2.4px; }
.pg-map.is-zoomed .pg-towns text { opacity: 1; }
.pg-map.is-small:not(.is-zoomed) .pg-labels { opacity: 0; }
.pg-pin { cursor: pointer; }
.pg-pin-body { fill: #fff; stroke: var(--pg-green); stroke-width: 1.8; }
.pg-pin use { color: var(--pg-green); }
.pg-pin-n circle { fill: var(--pg-green); stroke: #fff; stroke-width: 1.4; }
.pg-pin-n text { fill: #fff; font: 800 9px var(--sans); text-anchor: middle; }
.pg-pin-ok circle { fill: var(--pg-leaf); stroke: #fff; stroke-width: 1.4; }
.pg-pin-ok path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pg-pin.is-soon { cursor: default; }
.pg-pin.is-soon .pg-pin-body { stroke: #9aa8a3; stroke-dasharray: 3 2; }
.pg-pin.is-soon use, .pg-pin.is-closed use { color: #9aa8a3; }
.pg-pin.is-soon .pg-pin-n circle, .pg-pin.is-closed .pg-pin-n circle { fill: #9aa8a3; }
.pg-pin:hover .pg-pin-body, .pg-pin:focus-visible .pg-pin-body { fill: #e7f3ee; }
.pg-zoom { position: absolute; top: 10px; right: 10px; display: grid; gap: 4px; }
.pg-zoom button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--pg-line-2); border-radius: 6px; background: #fff; color: var(--pg-ink); font-size: 20px; line-height: 1; cursor: pointer; }
.pg-zoom button:hover { border-color: var(--pg-green); color: var(--pg-green); }
.pg-zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pg-map figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 8px; color: var(--pg-muted); font-size: 13px; }
.pg-legend { display: inline-flex; align-items: center; gap: 8px; }
.pg-pin-inline { display: inline-block; width: 14px; height: 18px; vertical-align: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-14 -36 28 37'%3E%3Cpath d='M0 0C-4 -7 -13 -12.5 -13 -22A13 13 0 0 1 13 -22C13 -12.5 4 -7 0 0Z' fill='%23fff' stroke='%2300583e' stroke-width='2.4'/%3E%3Ccircle cy='-22' r='5' fill='%2300583e'/%3E%3C/svg%3E") center / contain no-repeat; }

.pg-quest { max-width: 760px; }
.pg-qmeta { margin-bottom: 8px !important; color: var(--pg-muted); font-size: 15px; }
.pg-quest-text { margin-top: 24px; font-size: 17px; line-height: 1.65; }
.pg-answer { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--pg-line); }
.pg-answer h2 { margin-bottom: 14px; }
.pg-my-answer { margin: 12px 0; padding: 12px 16px; border-radius: 6px; background: var(--pg-warm); }

/* --- вопросы и тексты --- */
.pg-faq { display: grid; gap: 36px; max-width: 800px; margin-top: 32px; }
.pg-faq h2 { margin-bottom: 8px; }
.pg-faq details { border-bottom: 1px solid var(--pg-line); }
.pg-faq summary { position: relative; padding: 14px 36px 14px 0; color: var(--pg-ink); font-weight: 700; cursor: pointer; list-style: none; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 9px; height: 9px; border-right: 2px solid var(--pg-green); border-bottom: 2px solid var(--pg-green); transform: rotate(45deg); }
.pg-faq details[open] summary::after { top: 26px; transform: rotate(-135deg); }
.pg-faq details p { max-width: 68ch; padding: 0 0 16px; }
.pg-prose { display: grid; gap: 14px; max-width: 72ch; margin-top: 24px; }

/* --- формы --- */
.pg-narrow { max-width: 480px; }
.pg-narrow.is-wide { max-width: 780px; }
.pg-narrow h1 { margin-bottom: 12px; }
.pg-narrow .pg-lead { font-size: 17px; }
.pg-form { display: grid; gap: 18px; margin-top: 26px; }
.pg-form fieldset { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0 0 22px; border: 0; border-bottom: 1px solid var(--pg-line); }
.pg-form legend { margin-bottom: 12px; padding: 0; color: var(--pg-ink); font-family: var(--serif); font-size: 21px; font-weight: 700; }
.pg-row2, .pg-row3 { display: grid; align-items: start; gap: 16px; }
.pg-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-field { display: grid; gap: 6px; min-width: 0; }
.pg-field > label, .pg-field > legend { color: var(--pg-ink); font-size: 15px; font-weight: 700; }
.pg-opt { color: var(--pg-muted); font-weight: 400; }
.pg-field input, .pg-field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--pg-line-2); border-radius: 8px; background: #fff; color: var(--pg-ink); font: 16px/1.4 var(--sans); }
.pg-field textarea { min-height: 120px; resize: vertical; }
.pg-field input:focus, .pg-field textarea:focus { border-color: var(--pg-leaf); outline: 2px solid rgba(0, 155, 104, .25); outline-offset: 0; }
.pg-field.is-bad input, .pg-field.is-bad textarea { border-color: var(--pg-bad); }
.pg-hint { color: var(--pg-muted); font-size: 14px; line-height: 1.45; }
.pg-error { color: var(--pg-bad); font-size: 14px; font-weight: 600; }
.pg-error.is-form { margin-top: 18px !important; padding: 10px 14px; border: 1px solid #ecc5c0; border-radius: 6px; background: #fcf1ef; }
.pg-check label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.pg-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pg-green); }
.pg-check .pg-error { margin: 4px 0 0 32px; }
.pg-guardian { display: grid; gap: 14px; padding: 16px; border-radius: 8px; background: var(--pg-warm); }
.pg-guardian[hidden] { display: none; }
.pg-aside { margin-top: 18px !important; color: var(--pg-muted); }
.pg-form > .pg-btn { justify-self: start; min-width: 200px; }
.pg-file input[type=file] { padding: 8px; font-size: 15px; cursor: pointer; }
.pg-file input[type=file]::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 1px solid var(--pg-green); border-radius: 6px; background: #fff; color: var(--pg-green); font: 700 14px var(--sans); cursor: pointer; }
.pg-file-preview img { display: block; max-width: 100%; max-height: 340px; border-radius: 6px; }
.pg-form .pg-colors-pick { margin: 0; padding: 0; border: 0; }
.pg-colors-pick > div { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-colors-pick label { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border: 1px solid var(--pg-line-2); border-radius: 8px; cursor: pointer; }
.pg-colors-pick input { accent-color: var(--pg-green); }
.pg-colors-pick label:has(input:checked) { border-color: var(--pg-green); background: #eef5f2; }
.pg-colors-pick span:not(.pg-st) { display: grid; font-weight: 700; line-height: 1.25; }
.pg-colors-pick small { color: var(--pg-muted); font-size: 13px; font-weight: 400; }
/* выбор Пегаса, место которого открыто на карте: тот же вид, что у выбора цвета, но списком */
.pg-form .pg-cells-pick { margin: 0; padding: 0; border: 0; }
.pg-cells-pick > div { display: grid; gap: 8px; }
.pg-cells-pick label { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border: 1px solid var(--pg-line-2); border-radius: 8px; cursor: pointer; }
.pg-cells-pick input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--pg-green); }
.pg-cells-pick label:has(input:checked) { border-color: var(--pg-green); background: #eef5f2; }
.pg-cells-pick .pg-st { flex: none; }
.pg-cells-pick span:not(.pg-st) { display: grid; font-weight: 700; line-height: 1.25; }
.pg-cells-pick small { color: var(--pg-muted); font-size: 13px; font-weight: 400; }

/* --- кабинет --- */
.pg-cab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.pg-cab-head p { margin-top: 6px !important; color: var(--pg-muted); }
.pg-tabs { display: flex; gap: 22px; margin-top: 18px; border-bottom: 1px solid var(--pg-line); overflow-x: auto; }
.pg-tabs a { padding: 10px 0; border-bottom: 2px solid transparent; color: var(--pg-text) !important; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pg-tabs a[aria-current] { border-bottom-color: var(--pg-green); color: var(--pg-green) !important; }
.pg-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 20px; padding: 14px 16px; border: 1px solid #e8d39b; border-radius: 8px; background: #fbf5e4; color: #4d3a0e; }
.pg-callout p { max-width: 70ch; }
.pg-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 26px; padding: 18px 22px; border-radius: 10px; background: var(--pg-warm); }
.pg-summary dl { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; }
.pg-summary dt { color: var(--pg-muted); font-size: 13.5px; }
.pg-summary dd { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--pg-ink); font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.pg-summary dd.pg-small { font-family: var(--sans); font-size: 15px; }
.pg-mix { display: inline-flex; gap: 8px; font-family: var(--sans); font-size: 14px; font-weight: 600; }
.pg-mix span { display: inline-flex; align-items: center; gap: 4px; }
.pg-of { color: var(--pg-muted); font-family: var(--sans); font-size: 15px; font-weight: 600; }
.pg-cab-sec { margin-top: 40px; }
.pg-cab-sec h2 { margin-bottom: 12px; }
.pg-entries { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--pg-line); }
.pg-entry { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--pg-line); }
.pg-entry-img img { display: block; width: 96px; height: 96px; border-radius: 6px; object-fit: cover; background: var(--pg-warm); }
.pg-entry-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pg-entry-code b { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; letter-spacing: .02em; }
.pg-entry-code span:not(.pg-st) { color: var(--pg-muted); font-size: 14px; }
.pg-entry-meta { margin-top: 2px !important; color: var(--pg-muted); font-size: 14px; }
.pg-entry-reason { margin-top: 6px !important; color: #5a420b; font-size: 14.5px; }
.pg-entry-side { display: grid; justify-items: end; gap: 8px; }
.pg-entry-pts { color: var(--pg-green); font-size: 15px; }
.pg-upload { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; max-width: 1000px; }
.pg-upload-rules { margin-top: 26px; padding: 20px; border-radius: 10px; background: var(--pg-warm); font-size: 15px; }
.pg-upload-rules h2 { margin-bottom: 6px; font-size: 19px; }
.pg-upload-rules p { margin-top: 12px; }
.pg-profile { display: grid; gap: 36px; max-width: 640px; margin-top: 28px; }
.pg-profile h2 { margin-bottom: 4px; font-size: 22px; }
.pg-profile .pg-form { margin-top: 12px; }
.pg-kv { display: grid; gap: 8px; margin: 12px 0; }
.pg-kv div { display: grid; grid-template-columns: 190px 1fr; gap: 12px; }
.pg-kv dt { color: var(--pg-muted); }
.pg-kv dd { margin: 0; color: var(--pg-ink); }

/* --- подвал --- */
.pg-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 26px 0 8px; border-top: 1px solid var(--pg-line); color: var(--pg-muted); font-size: 14.5px; }
.pg-foot b { display: block; margin-bottom: 4px; color: var(--pg-ink); }

/* --- адаптив --- */
@media (max-width: 1000px) {
  .pg-nav { flex-wrap: wrap; gap: 8px 16px; padding: 10px 10px 10px 16px; }
  .pg-nav ul { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .pg-nav ul a { padding: 8px 13px; }
  .pg-doc, .pg-doc.has-aside { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pg-aside-card { position: static; order: -1; }
  .pg-toc { position: static; }
  .pg-toc ul { display: flex; flex-wrap: wrap; gap: 4px 18px; border-left: 0; }
  .pg-toc a { padding: 2px 0; }
  .pg-quests, .pg-upload { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pg-body { padding-top: 24px; }
  .pg-intro { grid-template-columns: 1fr; gap: 8px; min-height: 0; padding: 52px 20px 120px; }
  .pg-intro::after { width: 60%; }
  .pg-intro .pg-stickers { order: -1; max-width: 400px; aspect-ratio: 1 / .8; justify-self: center; margin-top: -8px; }
  .pg-head.is-split { grid-template-columns: 1fr; gap: 8px; }
  .pg-head.is-split .pg-stickers { display: none; }
  .pg-stk-cards { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .pg-stk-cards li { padding: 10px; }
  .pg-stk-cards b { font-size: 16px; }
  .pg-stk-cards-n { display: none; }
  .pg-garland.is-wide { display: none; }
  .pg-garland.is-narrow { display: block; }
  .pg-facts { display: grid; gap: 10px; }
  .pg-facts > div { padding: 0; border-left: 0; }
  .pg-parts-grid, .pg-two, .pg-row2, .pg-row3, .pg-foot { grid-template-columns: 1fr; }
  .pg-timeline li, .pg-states div, .pg-noms div, .pg-kv div { grid-template-columns: 1fr; gap: 2px; }
  .pg-entry { grid-template-columns: 72px minmax(0, 1fr); }
  .pg-entry-img img { width: 72px; height: 72px; }
  .pg-entry-side { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; justify-content: start; }
  .pg-cab-head { align-items: flex-start; }
  .pg-form > .pg-btn { justify-self: stretch; }
  .pg-nav { position: relative; top: 0; }
  .pg [id] { scroll-margin-top: 12px; }
  .pg-nav { gap: 10px 8px; padding: 10px; }
  .pg-nav-name { display: none; }
  .pg-nav-title .pg-st { display: inline-grid; width: 34px; height: 34px; }
  .pg-nav-me { gap: 4px; }
  .pg-nav .pg-link { padding: 8px 8px; font-size: 14.5px; }
  .pg-me-long { display: none; }
  .pg-me-short { display: inline; }
  .pg-nav ul { display: grid; grid-template-columns: 1fr 1fr; }
  .pg-nav ul a { padding: 8px 6px; font-size: 14px; text-align: center; }
  .pg-nav .pg-btn.is-small { min-height: 34px; padding: 0 12px; }
}

/* --- карта: движение --- */
.pg-d.is-active { fill: #fdf3d8; stroke: #c09a42; stroke-width: 1.6; }
.pg-pin.is-hot .pg-pin-body { fill: #fdf3d8; }
.pg-pin-pulse { fill: none; stroke: var(--pg-green); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pg-pulse 2.6s ease-out infinite; }
@keyframes pg-pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2); } }
.pg-map.is-anim:not(.is-shown) .pg-pin-drop { opacity: 0; }
.pg-map.is-anim.is-shown .pg-pin-drop { animation: pg-drop .75s cubic-bezier(.3, 1.45, .55, 1) backwards; animation-delay: calc(.1s + var(--i) * .12s); }
@keyframes pg-drop { from { opacity: 0; transform: translateY(-44px); } to { opacity: 1; transform: none; } }
.pg-map-tip { position: absolute; z-index: 3; padding: 4px 9px; border-radius: 5px; background: #13241f; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); }
.pg-map-card { position: absolute; left: 12px; bottom: 12px; z-index: 4; display: grid; gap: 4px; justify-items: start; width: min(340px, calc(100% - 70px)); padding: 14px 40px 16px 16px;
  border: 1px solid var(--pg-line-2); border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(15, 40, 35, .14); animation: pg-card-in .28s ease-out; }
@keyframes pg-card-in { from { opacity: 0; transform: translateY(8px); } }
.pg-map-card-t { color: var(--pg-ink); font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.pg-map-card-s { color: var(--pg-muted); font-size: 13.5px; }
.pg-map-card-mine { margin-top: 2px; padding: 1px 8px; border-radius: 4px; background: #e2f2ea; color: #0b5a3c; font-size: 13px; font-weight: 700; }
.pg-map-card ul { margin: 6px 0 0; padding: 0; list-style: none; }
.pg-map-card li button, .pg-qlist-map { padding: 2px 0; border: 0; background: none; color: var(--pg-green); font: 600 14px var(--sans); text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pg-map-card p { color: var(--pg-text); font-size: 14.5px; }
.pg-map-card .pg-btn { margin-top: 8px; }
.pg-map-card-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 6px; background: none; color: var(--pg-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.pg-map-card-x:hover { background: #eef3f1; color: var(--pg-ink); }
.pg-qlist-map { justify-self: start; font-size: 13px; }
.pg-d { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .pg-bulb-glass, .pg-snow i, .pg-stk, .pg-spark, .pg-pin-pulse, .pg-map-card { animation: none !important; }
  .pg-stk, .pg-stk .pg-stk-img { transition: none; }
  .pg-snow { display: none; }
  .pg-pin-drop { opacity: 1 !important; animation: none !important; }
}
.pg-map-card[hidden], .pg-map-tip[hidden] { display: none; }

/* --- варианты онлайн-этапа (/pegas/onlajn/varianty/) --- */
.pg-vtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; padding: 4px; border-radius: 11px; background: #eef3f1; width: fit-content; max-width: 100%; }
.pg-vtabs a { padding: 9px 16px; border-radius: 8px; color: var(--pg-ink) !important; font-weight: 700; text-decoration: none; }
.pg-vtabs a:hover { background: #fff; }
.pg-vtabs a[aria-current] { background: #0f3a2d; color: #fff !important; }
.pg-variant { margin-top: 28px; }
.pg-variant-text { display: grid; gap: 12px; max-width: 78ch; margin-bottom: 22px; }
.pg-note { padding: 10px 14px; border-left: 3px solid #e3bd62; background: #fbf6e8; color: #4d3a0e; font-size: 15px; }
.pg-who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.pg-vmap { position: relative; }
.pg-vmap .pg-map-svg { cursor: default; }
.pg-ds.is-tinted .pg-d { stroke: #8fb3a3; }
.pg-ds.is-tinted .pg-d:hover { filter: brightness(.97); }
.pg-rt-line { fill: none; stroke: #0f3a2d; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pg-rt-pt { cursor: pointer; }
.pg-rt-halo { fill: transparent; }
.pg-rt-pt.is-today .pg-rt-halo { fill: rgba(227, 189, 98, .45); transform-box: fill-box; transform-origin: center; animation: pg-pulse 2.6s ease-out infinite; }
.pg-rt-dot { fill: #fff; stroke: #0f3a2d; stroke-width: 2.4; transition: fill 150ms; }
.pg-rt-town { fill: #13241f; font: 700 11.5px var(--sans); text-anchor: middle; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 3px; pointer-events: none; }
.pg-rt-chip rect { fill: #fff; stroke: #0f3a2d; stroke-width: 1; }
.pg-rt-chip text { fill: #13241f; font: 600 8.5px var(--sans); text-anchor: middle; pointer-events: none; }
.pg-rt-pt.is-start .pg-rt-chip rect, .pg-rt-pt.is-finish .pg-rt-chip rect { fill: #9fd5bb; }
.pg-rt-pt.is-finish .pg-rt-dot { fill: #0f3a2d; }
.pg-rt-pt:hover .pg-rt-dot, .pg-rt-pt:focus-visible .pg-rt-dot, .pg-rt-pt.is-on .pg-rt-dot { fill: #e3bd62; }
.pg-rt-pt.is-on .pg-rt-chip rect { fill: #e3bd62; }
.pg-rt-pt.is-done .pg-rt-dot { fill: var(--pg-leaf); }
.pg-rt-card { position: absolute; left: 12px; bottom: 12px; z-index: 4; display: grid; gap: 8px; width: min(400px, calc(100% - 24px)); padding: 16px 40px 16px 16px;
  border: 1px solid var(--pg-line-2); border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(15, 40, 35, .16); animation: pg-card-in .28s ease-out; }
.pg-rt-card[hidden] { display: none; }
.pg-rt-form { display: flex; gap: 8px; }
.pg-rt-form input { flex: 1; min-width: 0; min-height: 36px; padding: 6px 10px; border: 1px solid var(--pg-line-2); border-radius: 8px; font: 15px var(--sans); }
.pg-rt-res, .pg-pz-res { min-height: 1.4em; font-weight: 700; }
.pg-rt-res.is-ok, .pg-pz-res.is-ok { color: var(--pg-leaf); }
.pg-rt-res.is-bad, .pg-pz-res.is-bad { color: var(--pg-bad); }
.pg-pz { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.pg-pz-brush { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pg-pz-b { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--pg-line-2); border-radius: 999px; background: #fff; color: var(--pg-ink); font: 700 14px var(--sans); cursor: pointer; }
.pg-pz-b.is-erase { padding-left: 12px; }
.pg-pz-b[aria-checked="true"] { border-color: #0f3a2d; background: #0f3a2d; color: #fff; }
.pg-pz-x { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #e7ecea; color: #5d6b67; font-size: 18px; }
.pg-pz .pg-d.is-green { fill: #46c08d; }
.pg-pz .pg-d.is-gradient { fill: #a98ad0; }
.pg-pz .pg-d.is-gold { fill: #e3bd62; }
.pg-pz .pg-d.is-none { fill: #dfe5e3; }
.pg-pz .pg-d.is-clash { stroke: var(--pg-bad); stroke-width: 2.4; }
.pg-pz-info { min-height: 3em; margin-top: 10px !important; color: var(--pg-text); font-size: 15px; }
.pg-pz-side { position: sticky; top: 96px; display: grid; gap: 10px; padding: 20px; border-radius: 14px; background: var(--pg-warm); }
.pg-pz-side h3 { font-family: var(--serif); font-size: 19px; }
.pg-pz-clues { display: grid; gap: 8px; margin: 0; padding-left: 22px; }
.pg-pz-count { color: var(--pg-muted); font-size: 14px; }
.pg-pz-act { display: flex; align-items: center; gap: 16px; }
.pg-pz-demo { color: var(--pg-muted); font-size: 14px; }
.pg-vcmp th[scope=row] { width: 26%; color: var(--pg-ink); font-weight: 700; }
.pg-vcmp td, .pg-vcmp th { vertical-align: top; }
@media (max-width: 1000px) { .pg-pz { grid-template-columns: 1fr; } .pg-pz-side { position: static; } }
@media (max-width: 760px) {
  .pg-rt-card { position: static; width: auto; margin-top: 10px; box-shadow: none; }
  .pg-vcmp { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .pg-rt-halo { animation: none !important; } }
.pg-vmap .pg-map-stage { touch-action: auto; }
.pg-vmap .pg-labels { font-size: 10px; }

/* --- первый экран: только регистрация, вокруг — Пегасы --- */
.pg-hero { position: relative; overflow: hidden; display: grid; place-items: center; min-height: min(860px, calc(100vh - 140px)); padding: 90px 20px 50px; border-radius: 22px; color: #f4efe2;
  background: radial-gradient(60% 55% at 50% 45%, rgba(240, 196, 92, .2), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(150, 87, 188, .3), transparent 70%), radial-gradient(40% 50% at 100% 100%, rgba(70, 211, 154, .22), transparent 70%), #0d3428; }
.pg-hero-pegasi { position: absolute; inset: 0; pointer-events: none; }
.pg-hero-peg { position: absolute; width: clamp(110px, 15vw, 230px); height: auto; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .35)); animation: pg-float 6s ease-in-out infinite; }
.pg-hero-peg.is-a { top: 9%; left: 5%; rotate: -10deg; }
.pg-hero-peg.is-b { bottom: 6%; left: 9%; rotate: 8deg; animation-delay: -2s; width: clamp(120px, 17vw, 260px); }
.pg-hero-peg.is-c { top: 12%; right: 6%; rotate: 9deg; animation-delay: -1s; }
.pg-hero-peg.is-d { bottom: 8%; right: 7%; rotate: -7deg; animation-delay: -3s; width: clamp(110px, 14vw, 210px); }
.pg-hero-peg.is-e { top: 46%; left: 20%; width: clamp(60px, 7vw, 110px); rotate: 14deg; opacity: .9; animation-delay: -4s; }
.pg-hero-peg.is-f { top: 50%; right: 20%; width: clamp(60px, 7vw, 110px); rotate: -12deg; opacity: .9; animation-delay: -5s; }
.pg-hero-card { position: relative; z-index: 3; display: grid; gap: 12px; width: min(520px, 100%); margin-top: 26px; padding: 30px 30px 24px; border-radius: 20px; background: #fffdf8; color: var(--pg-text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 2px rgba(227, 189, 98, .7); }
.pg-hero-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 16px; margin-left: -8px; background: linear-gradient(90deg, #c9a24a, #f0d48e 50%, #c9a24a); opacity: .16; pointer-events: none; }
.pg-hero-card::after { content: ""; position: absolute; top: -38px; left: 50%; width: 110px; height: 60px; margin-left: -55px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 50'%3E%3Cpath d='M46 34C30 8 6 4 6 20s24 18 40 14zM46 34C62 8 86 4 86 20S62 38 46 34z' fill='%23e3bd62' stroke='%23a87a26' stroke-width='2'/%3E%3Cpath d='M40 36l-12 13M52 36l12 13' stroke='%23c9a24a' stroke-width='6' stroke-linecap='round'/%3E%3Ccircle cx='46' cy='34' r='7' fill='%23f0d48e' stroke='%23a87a26' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.pg-hero-card > * { position: relative; z-index: 1; }
.pg-hero-card h1 { color: var(--pg-green); font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; text-align: center; }
.pg-hero-card-k { color: #a87a26; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-align: center; text-transform: uppercase; }
.pg-hero-card-s { margin-top: -4px !important; color: var(--pg-muted); font-size: 14.5px; text-align: center; }
.pg-hero-card-f { color: var(--pg-muted); font-size: 14px; text-align: center; }
.pg-hero-card .pg-btn { width: 100%; }
.pg-qform { display: grid; gap: 10px; margin-top: 4px; }
.pg-qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pg-qf { display: grid; gap: 4px; min-width: 0; color: var(--pg-ink); font-size: 13.5px; font-weight: 700; }
.pg-qf input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--pg-line-2); border-radius: 10px; background: #fff; font: 15.5px var(--sans); }
.pg-qf input:focus { border-color: var(--pg-leaf); outline: 2px solid rgba(0, 155, 104, .22); }
.pg-qform .pg-check label { font-size: 13.5px; line-height: 1.4; }
.pg-btn.is-gold { border-color: #e3bd62; background: #e3bd62; color: #17261e !important; }
.pg-btn.is-gold:hover { border-color: #d6ad4c; background: #d6ad4c; }
.pg-btn.is-big { min-height: 54px; padding: 0 30px; border-radius: 12px; font-size: 17px; }
.pg-hero-card.is-me { text-align: center; }
.pg-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0; }
.pg-hero-stats div { padding: 10px; border-radius: 12px; background: #f4efe2; }
.pg-hero-stats dt { color: var(--pg-muted); font-size: 12.5px; }
.pg-hero-stats dd { margin: 0; color: var(--pg-green); font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1.1; }

/* --- инфографика правил --- */
.pg-info { margin-top: 64px; }
.pg-info-head { max-width: 760px; }
.pg-info-head h2 { font-size: clamp(26px, 3vw, 38px); }
.pg-info-steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.pg-info-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 118px; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, #e3bd62 0 14px, transparent 14px 24px); opacity: .7; }
.pg-info-step { position: relative; display: grid; gap: 6px; align-content: start; padding: 0 4px; }
.pg-info-art { display: grid; place-items: center; height: 104px; border-radius: 16px; background: linear-gradient(160deg, #0f3a2d, #155440); box-shadow: inset 0 0 0 1px rgba(227, 189, 98, .35); transition: transform 300ms cubic-bezier(.3, 1.4, .5, 1); }
.pg-info-step:hover .pg-info-art { transform: translateY(-6px) rotate(-1.5deg); }
.pg-info-art svg { width: 108px; height: 86px; }
.pg-info-art .a-card { fill: #fffdf8; } .pg-info-art .a-gold { fill: #e3bd62; } .pg-info-art .a-green { fill: #2fb67f; } .pg-info-art .a-violet { fill: #9b7be0; }
.pg-info-art .a-line { fill: #cfe9dc; } .pg-info-art .a-line2 { fill: #e3dbef; }
.pg-info-art .a-fold { fill: none; stroke: #b9c9c2; stroke-width: 3; stroke-linecap: round; }
.pg-info-art .a-lock { fill: none; stroke: #e3bd62; stroke-width: 4; }
.pg-info-art .a-check { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.pg-info-art .a-plus { fill: #e3bd62; font: 800 18px var(--sans); }
.pg-info-n { position: relative; z-index: 1; display: grid; width: 34px; height: 34px; margin: -18px 0 4px 12px; place-items: center; border-radius: 50%; background: #e3bd62; color: #17261e; font: 800 15px var(--sans); box-shadow: 0 0 0 4px #fff; }
.pg-info-step h3 { font-family: var(--serif); font-size: 19px; }
.pg-info-step p { font-size: 15px; line-height: 1.5; }
.pg-info-unlock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 28px; padding: 20px 24px; border-radius: 14px; background: #fbf6e8; box-shadow: inset 0 0 0 1px #ecd9a4; }
.pg-info-unlock > div { max-width: 70ch; }
.pg-info-unlock b { display: block; margin-bottom: 4px; color: var(--pg-ink); font-family: var(--serif); font-size: 19px; }
.pg-info-play { display: grid; justify-items: center; gap: 10px; margin-top: 36px; text-align: center; }
.pg-info-play p { color: var(--pg-muted); }

/* --- игра: на весь экран, поверх сайта --- */
body:has(.pg-play), body:has(.pg-is-game) { overflow-x: hidden; background: #030712; }
body:has(.pg-play) { overflow: hidden; }
body:has(.pg-play) > .site-header, body:has(.pg-play) > .site-wide-footer, body:has(.pg-is-game) > .site-header, body:has(.pg-is-game) > .site-wide-footer { display: none; }
.pg-play { position: fixed; inset: 0; z-index: 2000; overflow: hidden; overflow: clip; background: #030712; color: #f4efe2; font-family: var(--sans); -webkit-user-select: none; user-select: none; }
.pg-play-view { position: absolute; inset: 0; overflow: hidden; overflow: clip; cursor: grab; touch-action: none; }
.pg-play-view.is-drag { cursor: grabbing; }
.pg-board { position: absolute; left: 0; top: 0; width: 3600px; height: 2200px; transform-origin: 0 0; will-change: transform; }
.pg-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(110% 85% at 50% 50%, transparent 58%, rgba(2, 6, 14, .7) 100%); }
.pg-star { fill: #fff; opacity: .55; animation: pg-twinkle var(--d) ease-in-out infinite; animation-delay: calc(var(--o) * -3s); }
.pg-twinkle { animation: pg-twinkle var(--d) ease-in-out infinite; }
@keyframes pg-twinkle { 50% { opacity: .15; } }
/* гравированная золотая линия */
.pg-art, .pg-art use, .pg-compass path, .pg-compass circle { fill: none; stroke: #e2b65c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pg-art { opacity: .55; }
.pg-art.is-fire { stroke: #ffcf7a; opacity: .95; }
.pg-coast { fill: none; stroke: #e2b65c; stroke-width: 3; opacity: .75; }
.pg-coast.is-outer { stroke-width: 1.4; opacity: .4; }
.pg-coast.is-far { stroke-width: 1; opacity: .22; stroke-dasharray: 2 10; }
.pg-contours path { fill: none; stroke: #9fc0e6; stroke-width: 1.4; opacity: .16; }
.pg-lake { fill: rgba(126, 186, 240, .1); stroke: #9fc0e6; stroke-width: 2; opacity: .7; }
.pg-beam { stroke: #c7a2ff !important; stroke-width: 1.4 !important; opacity: .35; stroke-dasharray: 3 9; }
.pg-compass { opacity: .7; }
.pg-compass .is-thin { stroke-width: 1; stroke-dasharray: 3 7; }
.pg-compass .is-fill { fill: #e2b65c; }
.pg-compass text { fill: #e2b65c; font: 600 26px var(--serif); text-anchor: middle; }
.pg-cartouche path { stroke: #e2b65c; stroke-width: 1.6; fill: none; opacity: .7; }
.pg-cartouche .pg-land-dia { fill: #e2b65c; stroke: none; }
.pg-cartouche text { fill: #f6ecd2; font: 500 56px var(--serif); letter-spacing: .04em; text-anchor: middle; }
.pg-cartouche text.is-k { fill: #e2b65c; font: 700 20px var(--sans); letter-spacing: .42em; }
.pg-edge-bed { display: none; }
.pg-edge { fill: none; stroke-linecap: round; }
.pg-edge.is-lit { stroke: url(#pg-gold); stroke: #e8bf63; stroke-width: 4; filter: drop-shadow(0 0 6px rgba(243, 198, 107, .55)); }
.pg-edge.is-dim { stroke: #e2b65c; stroke-width: 2; opacity: .4; stroke-dasharray: 10 10; }
.pg-edge.is-ghost { stroke: #9fc0e6; stroke-width: 1.6; opacity: .18; stroke-dasharray: 2 12; }
.pg-ghost { fill: #0a1b36; stroke: #9fc0e6; stroke-width: 1.6; opacity: .35; }
.pg-camp-ring { fill: none; stroke: #e2b65c; stroke-width: 2; opacity: .6; }
.pg-camp-ring.is-thin { stroke-width: 1; stroke-dasharray: 3 8; opacity: .45; }
.pg-camp .pg-art { opacity: .95; stroke-width: 3; }
.pg-camp-flag { fill: #e2b65c; }
.pg-camp-t { fill: #f6ecd2; font: 600 28px var(--sans); letter-spacing: .32em; text-anchor: middle; }
.pg-land-name path { stroke: #e2b65c; stroke-width: 1.6; opacity: .7; fill: none; }
.pg-land-name .pg-land-dia { fill: #e2b65c; stroke: none; opacity: .9; }
.pg-land-name text { fill: #f6ecd2; font: 500 34px var(--serif); letter-spacing: .22em; text-anchor: middle; }
.pg-land-name .pg-land-sub { fill: #e2b65c; font: 700 15px var(--sans); letter-spacing: .4em; opacity: .8; }
.pg-land-name.is-fog text:not(.pg-land-sub) { opacity: .55; }
/* ячейки */
.pg-node { cursor: pointer; outline: none; }
.pg-node-in { transition: transform 260ms cubic-bezier(.3, 1.5, .5, 1); }
.pg-node:hover .pg-node-in, .pg-node:focus-visible .pg-node-in, .pg-node.is-on .pg-node-in { transform: scale(1.12); }
.pg-node-glow { fill: url(#pg-glow); }
.pg-node-pulse { fill: none; stroke: #f3c66b; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pg-ripple 2.6s ease-out infinite; }
@keyframes pg-ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(2.1); opacity: 0; } }
.pg-node-ring2 { fill: none; stroke: #e2b65c; stroke-width: 1.6; stroke-dasharray: 4 6; opacity: .8; }
.pg-node-ring2.is-dim { opacity: .35; stroke-dasharray: 2 6; }
.pg-node-disc.is-open { fill: url(#pg-gold); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.pg-node-inner { fill: none; stroke: #7a5418; stroke-width: 1.4; opacity: .45; }
.pg-node-n { fill: #1b1306; font: 800 30px var(--sans); text-anchor: middle; }
.pg-node-mark { fill: #e2b65c; stroke: none; }
.pg-node.is-offline .pg-node-mark { fill: none; stroke: #e2b65c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pg-node-disc.is-locked { fill: #0b1d38; stroke: rgba(159, 192, 230, .55); stroke-width: 2; }
.pg-node-lock { fill: none; stroke: #9fc0e6; stroke-width: 2.4; stroke-linejoin: round; opacity: .85; }
.pg-node-disc.is-mine { fill: #f6ecd2; stroke: url(#pg-gold); stroke-width: 4; }
.pg-node.is-locked .pg-node-in { opacity: .85; }
.pg-node.is-new image { animation: pg-pop 700ms cubic-bezier(.3, 1.5, .5, 1); transform-box: fill-box; transform-origin: center; }
.pg-hud { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 5; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.pg-hud > * { pointer-events: auto; }
.pg-hud-home, .pg-hud-stats, .pg-hud-btn, .pg-hud-tools button { border-radius: 14px; background: rgba(6, 16, 30, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 30px rgba(0, 0, 0, .35); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.pg-hud-home { display: grid; place-items: center; width: 52px; height: 52px; text-decoration: none; }
.pg-hud-home .pg-st { width: 38px; height: 38px; }
.pg-hud-stats { display: flex; gap: 2px; margin: 0 auto; padding: 6px 8px; }
.pg-hud-stats div { min-width: 74px; padding: 2px 10px; text-align: center; }
.pg-hud-stats div + div { border-left: 1px solid rgba(227, 189, 98, .3); }
.pg-hud-stats dt { color: rgba(244, 239, 226, .65); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pg-hud-stats dd { margin: 0; color: #fff; font: 700 22px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.pg-hud-stats small { color: rgba(244, 239, 226, .55); font: 600 13px var(--sans); }
.pg-hud-me { display: flex; gap: 8px; }
.pg-hud-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 6px; color: #fff !important; font-weight: 700; text-decoration: none; }
.pg-hud-btn:not(:has(.pg-me-ava)) { padding: 0 16px; }
.pg-hud-btn.is-gold { background: #e3bd62; color: #17261e !important; }
.pg-hud-tools { position: absolute; right: 12px; bottom: 16px; z-index: 5; display: grid; gap: 8px; }
.pg-hud-tools button { display: grid; place-items: center; width: 46px; height: 46px; border: 0; color: #fff; font: 600 22px var(--sans); cursor: pointer; }
.pg-hud-tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pg-hud-tools button:hover { color: #f0d48e; }
.pg-hud-tip { position: absolute; left: 50%; bottom: 18px; z-index: 5; max-width: calc(100% - 140px); padding: 10px 18px; border-radius: 999px; background: rgba(6, 16, 30, .62); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #f4efe2; font-size: 14.5px; text-align: center; transform: translateX(-50%); pointer-events: none; }
.pg-play .pg-snow { z-index: 3; }
.pg-modal { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(4, 12, 24, .55); animation: pg-card-in .2s ease-out; }
.pg-modal[hidden] { display: none; }
.pg-modal-box { position: relative; display: grid; gap: 12px; width: min(540px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 30px 28px 26px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(20, 44, 70, .96), rgba(6, 16, 30, .97)); color: #e9eef5; box-shadow: 0 40px 100px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 1px rgba(216, 172, 78, .5); -webkit-user-select: text; user-select: text; animation: pg-pop-in .35s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes pg-pop-in { from { opacity: 0; transform: scale(.85) translateY(20px); } }
.pg-modal-box h2 { color: #fff; font-family: var(--serif); font-size: 30px; line-height: 1.15; }
.pg-modal-box a:not(.pg-btn) { color: #f0d48e; }
.pg-modal-k { color: #d8ac4e; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pg-modal-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.pg-game-task { white-space: pre-line; font-size: 16.5px; line-height: 1.55; }
.pg-game-kind { justify-self: start; padding: 3px 12px; border-radius: 999px; background: rgba(216, 172, 78, .18); color: #f0d48e; font-size: 13px; font-weight: 800; }
.pg-game-kind.is-offline { background: rgba(63, 208, 164, .16); color: #8ef0c4; }
.pg-game-form { display: flex; gap: 8px; }
.pg-game-form input { flex: 1; min-width: 0; min-height: 50px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; font: 17px var(--sans); }
.pg-game-form input:focus { border-color: #e3bd62; outline: none; }
.pg-game-res { min-height: 1.4em; font-weight: 700; }
.pg-game-res.is-bad { color: #ff9b8f; animation: pg-shake .4s; }
@keyframes pg-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.pg-game-bar { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pg-game-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #2fb67f, #e3bd62); }
.pg-game-note { color: rgba(233, 238, 245, .7); font-size: 14.5px; }
.pg-game-reveal { display: grid; justify-items: center; gap: 10px; padding: 20px; border-radius: 18px; background: radial-gradient(70% 80% at 50% 0%, rgba(227, 189, 98, .35), transparent 70%), rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(216, 172, 78, .45); color: #f4efe2; text-align: center; animation: pg-pop-in .45s cubic-bezier(.3, 1.4, .5, 1); }
.pg-game-reveal b { color: #f0d48e; font-family: var(--serif); font-size: 20px; }
.pg-game-reveal img { width: 110px; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); animation: pg-float 4s ease-in-out infinite; }
.pg-game-reveal .pg-btn { border-color: #e3bd62; background: #e3bd62; color: #17261e !important; }
.pg-game-reveal a.pg-link { color: #f0d48e; }
.pg-help { display: grid; gap: 10px; margin: 0; padding-left: 20px; }

@media (max-width: 1000px) {
  .pg-info-steps { grid-template-columns: 1fr 1fr; }
  .pg-info-steps::before { display: none; }
}
@media (max-width: 760px) {
  .pg-hero { min-height: 0; padding: 120px 14px 120px; }
  .pg-hero-peg.is-e, .pg-hero-peg.is-f { display: none; }
  .pg-hero-peg.is-a { top: 2%; left: -2%; width: 120px; } .pg-hero-peg.is-c { top: 3%; right: -2%; width: 116px; }
  .pg-hero-peg.is-b { bottom: 1%; left: 2%; width: 128px; } .pg-hero-peg.is-d { bottom: 1%; right: 2%; width: 116px; }
  .pg-hero-card { padding: 24px 18px 18px; }
  .pg-qrow { grid-template-columns: 1fr; }
  .pg-info-steps { grid-template-columns: 1fr; }
  .pg-info-step { grid-template-columns: 96px 1fr; column-gap: 14px; }
  .pg-info-art { grid-row: span 3; height: 90px; } .pg-info-art svg { width: 84px; } .pg-info-n { margin: 0; }
  .pg-hud { flex-wrap: wrap; gap: 8px; }
  .pg-hud-tools { bottom: 12px; gap: 6px; }
  .pg-hud-tools button { width: 40px; height: 40px; font-size: 19px; }
  .pg-hud-home { width: 46px; height: 46px; }
  .pg-hud-stats { order: 3; width: 100%; justify-content: space-around; margin: 0; }
  .pg-hud-stats div { min-width: 0; padding: 0 6px; }
  .pg-hud-stats dd { font-size: 18px; }
  .pg-hud-me { margin-left: auto; }
  .pg-hud-long { display: none; }
  .pg-hud-tip { left: 12px; right: 64px; bottom: 14px; max-width: none; font-size: 13px; transform: none; }
  .pg-modal { align-items: end; padding: 0; }
  .pg-modal-box { width: 100%; max-height: 82vh; border-radius: 22px 22px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-hero-peg, .pg-star, .pg-twinkle, .pg-aurora, .pg-edge, .pg-node-beam, .pg-node-halo, .pg-node-ring, .pg-fire path, .pg-game-reveal img { animation: none !important; }
}

/* --- главная как экран игры --- */
.pg-is-game { padding: 0; }
body:has(.pg-is-game) .pegas-shell { width: 100%; max-width: none; padding: 0; }
body:has(.pg-is-game) { background: #030712; }
.pg-is-game .pg-hero { min-height: 100vh; min-height: 100svh; border-radius: 0; }
.pg-topbar { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 20; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.pg-topbar > * { pointer-events: auto; }
.pg-topbar-logo .pg-st { width: 48px; height: 48px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.pg-topbar .pg-hud-btn { border-radius: 14px; background: rgba(6, 16, 30, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); backdrop-filter: blur(12px); }
.pg-is-game .pg-info { margin: 0; padding: 80px max(24px, calc((100% - 1200px) / 2)) 90px; background: radial-gradient(60% 50% at 50% 0%, rgba(216, 172, 78, .12), transparent 70%), #061122; color: #e9eef5; }
.pg-is-game .pg-info h2 { color: #fff; }
.pg-is-game .pg-info .pg-sub, .pg-is-game .pg-info-step p, .pg-is-game .pg-info-play p { color: rgba(233, 238, 245, .75); }
.pg-is-game .pg-info-step h3 { color: #fff; }
.pg-is-game .pg-info-art { background: linear-gradient(160deg, #10284a, #0b1c34); box-shadow: inset 0 0 0 1px rgba(216, 172, 78, .4), 0 20px 40px rgba(0, 0, 0, .35); }
.pg-is-game .pg-info-n { box-shadow: 0 0 0 4px #061122; }
.pg-is-game .pg-info-unlock { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(216, 172, 78, .35); }
.pg-is-game .pg-info-unlock b { color: #f0d48e; }
.pg-is-game .pg-flash { position: fixed; top: 76px; left: 50%; z-index: 30; transform: translateX(-50%); }
/* первый экран — в одной гамме с игровым полем: ночь, сияние, тёмное стекло */
.pg-is-game .pg-hero { background: radial-gradient(70% 45% at 50% 0%, rgba(63, 208, 164, .22), transparent 70%), radial-gradient(50% 40% at 85% 10%, rgba(138, 124, 255, .22), transparent 70%), radial-gradient(60% 60% at 50% 60%, rgba(216, 172, 78, .14), transparent 70%), linear-gradient(#030712, #0b2240 70%, #10304f); }
.pg-is-game .pg-hero-card { background: linear-gradient(160deg, rgba(20, 44, 70, .82), rgba(6, 16, 30, .88)); color: #e9eef5; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 1px rgba(216, 172, 78, .55); }
.pg-is-game .pg-hero-card::before { opacity: .1; }
.pg-is-game .pg-hero-card h1 { color: #fff; }
.pg-is-game .pg-hero-card-k { color: #d8ac4e; }
.pg-is-game .pg-hero-card-s, .pg-is-game .pg-hero-card-f { color: rgba(233, 238, 245, .65); }
.pg-is-game .pg-hero-card a:not(.pg-btn) { color: #f0d48e; }
.pg-is-game .pg-qf { color: rgba(233, 238, 245, .85); }
.pg-is-game .pg-qf input { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; }
.pg-is-game .pg-qf input::placeholder { color: rgba(233, 238, 245, .4); }
.pg-is-game .pg-qf input:focus { border-color: #d8ac4e; outline: 2px solid rgba(216, 172, 78, .25); }
.pg-is-game .pg-check label { color: rgba(233, 238, 245, .85); }
.pg-is-game .pg-check input { accent-color: #d8ac4e; }
.pg-is-game .pg-hero-stats div { background: rgba(255, 255, 255, .06); }
.pg-is-game .pg-hero-stats dt { color: rgba(233, 238, 245, .6); }
.pg-is-game .pg-hero-stats dd { color: #fff; }
.pg-is-game .pg-guardian { background: rgba(255, 255, 255, .05); }
.pg-is-game .pg-hero .pg-garland-wire { stroke: #1d3a57; }
.pg-is-game .pg-hero-card::before { display: none; }
/* --- трёхмерное поле --- */
.pg-3d { position: absolute; inset: 0; }
.pg-3d canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.pg-play.is-3d .pg-play-view { display: none; }
.pg-play.is-3d .pg-3d::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 62%, rgba(2, 6, 14, .55) 100%); }
.pg-3d-loading { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: #050c1a; color: #e2b65c; font: 600 14px var(--sans); letter-spacing: .3em; transition: opacity .8s; pointer-events: none; }
.pg-3d-loading.is-gone { opacity: 0; }

/* ── Правила на весь экран поверх игры: шаги-истории.
   Снимок выезжает и встаёт на место, текст появляется следом, полоски сверху
   показывают шаг; на «канале» и «закрытом Пегасе» всплывают подписчики и реакции. */
html.pg-rules-open { overflow: hidden; }
.pg-rules { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; z-index: 1000; display: grid; overflow: hidden; color: #e9eef6; background: radial-gradient(110% 80% at 80% 0%, #24456f 0%, #0d1d38 50%, #050c1a 100%); opacity: 0; transition: opacity .35s ease; font-family: var(--sans); touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.pg-rules:not([open]) { display: none; }
.pg-rules[open] { opacity: 1; }
.pg-rules-snow { position: absolute; inset: -50% 0 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 120px 80px, #fff 50%, transparent 51%), radial-gradient(2.5px 2.5px at 200px 160px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 60px 220px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 260px 40px, #fff 50%, transparent 51%);
  background-size: 300px 260px; animation: pg-rules-snow 18s linear infinite; }
@keyframes pg-rules-snow { to { transform: translateY(50%); } }
.pg-rules-bars { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 16px; right: 16px; z-index: 3; display: flex; gap: 6px; }
.pg-rules-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.pg-rules-bars b { display: block; height: 100%; width: 0; background: #e8bf68; }
.pg-rules-bars i.is-done b { width: 100%; }
.pg-rules-bars i.is-on b { width: 100%; transition: width .9s cubic-bezier(.4, 0, .2, 1); }
.pg-rules-bars i:not(.is-on):not(.is-done) b { transition: none; }
.pg-rules-top { position: absolute; top: calc(max(14px, env(safe-area-inset-top)) + 14px); left: 16px; right: 16px; z-index: 3; display: flex; align-items: center; justify-content: space-between; }
.pg-rules-kicker { color: #e8bf68; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pg-rules-x { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.pg-rules-x:hover { background: rgba(255, 255, 255, .22); }
.pg-rules-track { position: relative; margin: 0; padding: 0; list-style: none; }
.pg-rules-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: 90px clamp(24px, 7vw, 120px) 70px; visibility: hidden; }
.pg-rules-slide.is-active { visibility: visible; }
.pg-rules-slide:focus-visible { outline: 2px solid #e8bf68; outline-offset: -2px; }
.pg-rules-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pg-rules-big { position: absolute; right: 4vw; bottom: -6vh; color: rgba(232, 191, 104, .07); font: 700 clamp(220px, 38vw, 520px)/1 var(--serif); pointer-events: none; transform: translateY(30px); opacity: 0; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1), opacity .8s; }
.pg-rules-slide.is-active .pg-rules-big { transform: none; opacity: 1; }
.pg-rules-shot { position: relative; display: grid; place-items: center; height: min(66vh, 600px); margin: 0; perspective: 1200px; }
.pg-rules-shot img { display: block; max-width: 100%; max-height: min(66vh, 600px); object-fit: contain; border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
.pg-rules-shot > img { width: auto; height: auto; }
.pg-rules-shot.is-phone img { border-radius: 30px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 8px #18263a, 0 0 0 9px rgba(255, 255, 255, .14); }
.pg-rules-shot > * { opacity: 0; transform: translate3d(0, 60px, 0) rotateX(12deg) scale(.92); transition: opacity .6s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.pg-rules-slide.is-back .pg-rules-shot > * { transform: translate3d(-60px, 0, 0) scale(.95); }
.pg-rules-slide.is-active .pg-rules-shot > * { opacity: 1; transform: none; transition-delay: .08s; }
.pg-rules-slide.is-active .pg-rules-shot img { animation: pg-rules-float 6s ease-in-out 1s infinite; }
@keyframes pg-rules-float { 50% { transform: translateY(-8px); } }
.pg-rules-text > * { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.pg-rules-slide.is-active .pg-rules-text > * { opacity: 1; transform: none; }
.pg-rules-slide.is-active .pg-rules-text > :nth-child(1) { transition-delay: .2s; }
.pg-rules-slide.is-active .pg-rules-text > :nth-child(2) { transition-delay: .3s; }
.pg-rules-slide.is-active .pg-rules-text > :nth-child(3) { transition-delay: .42s; }
.pg-rules-slide.is-active .pg-rules-text > :nth-child(4) { transition-delay: .54s; }
.pg-rules-n { display: inline-block; padding: 5px 12px; border-radius: 99px; background: rgba(232, 191, 104, .14); color: #e8bf68; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pg .pg-rules-text h2, .pg-rules-text h2 { margin: 16px 0 14px; color: #fff; font: 700 clamp(28px, 3.6vw, 48px)/1.08 var(--serif); }
.pg-rules-text p { max-width: 34em; margin: 0 0 24px; color: #c9d4e3; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; }
.pg-rules-act { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-rules-arrow { position: absolute; top: 50%; z-index: 3; width: 52px; height: 52px; margin-top: -26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px; cursor: pointer; transition: background .2s, opacity .2s; }
.pg-rules-arrow:hover { background: rgba(232, 191, 104, .32); }
.pg-rules-arrow:disabled { opacity: 0; pointer-events: none; }
.pg-rules-arrow.is-prev { left: 16px; }
.pg-rules-arrow.is-next { right: 16px; animation: pg-rules-nudge 2.4s ease-in-out 2s infinite; }
@keyframes pg-rules-nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(6px); } 90% { transform: translateX(-2px); } }
.pg-rules-links {
  position: absolute; bottom: max(10px, env(safe-area-inset-bottom)); inset-inline: 12px; z-index: 3;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; font-size: 13px;
}
.pg-rules-links a { display: inline-flex; align-items: center; min-height: 40px; color: #e5edf9 !important; text-underline-offset: .2em; }
.pg-rules-links a.pg-rules-document { color: #ffe1a2 !important; font-weight: 750; }
.pg-rules-links a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* всплывающие «+1» и реакции */
.pg-rules-pops { position: absolute; inset: 0; pointer-events: none; transform: none !important; opacity: 1 !important; }
.pg-rules-pops i { position: absolute; bottom: 18%; left: calc(18% + var(--i) * 15%); padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: #2b6ae0; font: 700 15px/1 var(--sans); font-style: normal; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); opacity: 0; }
.pg-rules-slide.is-active .pg-rules-pops i { animation: pg-rules-pop 2.6s ease-out calc(.9s + var(--i) * .45s) infinite; }
.is-unlock .pg-rules-pops i { background: rgba(15, 30, 55, .9); font-size: 18px; }
@keyframes pg-rules-pop { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; transform: translateY(-20px) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-160px) scale(.9); } }
/* «сфотографируйтесь»: видоискатель, вспышка */
.pg-rules-shot.is-art { grid-template-rows: 1fr auto; gap: 18px; }
.pg-rules-cam { position: relative; display: grid; place-items: center; width: min(340px, 72vw); aspect-ratio: 3 / 4; border-radius: 30px; background: linear-gradient(160deg, #3a4f6e, #1a2740); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 8px #18263a; overflow: hidden; }
.pg-rules-cam .pg-stk-img { width: 58%; height: auto; background: none; box-shadow: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.pg-rules-slide.is-active .pg-rules-cam .pg-stk-img { animation: pg-rules-focus 3.2s ease-in-out .8s infinite; }
@keyframes pg-rules-focus { 0%, 100% { filter: blur(0) drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); } 20% { filter: blur(3px) drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); } 35% { filter: blur(0) drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); } }
.pg-rules-cam-frame { position: absolute; inset: 14%; --c: rgba(255, 255, 255, .85); background: linear-gradient(var(--c) 0 0) top left / 30px 3px, linear-gradient(var(--c) 0 0) top left / 3px 30px, linear-gradient(var(--c) 0 0) top right / 30px 3px, linear-gradient(var(--c) 0 0) top right / 3px 30px, linear-gradient(var(--c) 0 0) bottom left / 30px 3px, linear-gradient(var(--c) 0 0) bottom left / 3px 30px, linear-gradient(var(--c) 0 0) bottom right / 30px 3px, linear-gradient(var(--c) 0 0) bottom right / 3px 30px; background-repeat: no-repeat; }
.pg-rules-cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.pg-rules-slide.is-active .pg-rules-cam-flash { animation: pg-rules-flash 3.2s ease-out 1.5s infinite; }
@keyframes pg-rules-flash { 0%, 100% { opacity: 0; } 4% { opacity: .85; } 14% { opacity: 0; } }
.pg-rules-cam-dot { position: absolute; bottom: 5%; width: 50px; height: 50px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .3); }
.pg-rules-checks { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pg-rules-checks li { padding: 7px 14px 7px 32px; border-radius: 99px; background: rgba(127, 205, 187, .15) no-repeat 11px 50% / 14px; color: #bfe8dc; font-size: 15px; font-weight: 600; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='%237fcdbb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* баллы: наклейки подпрыгивают по очереди */
.pg-rules-pts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: min(640px, 100%); margin: 0; padding: 0; list-style: none; }
.pg-rules-pts li { display: grid; justify-items: center; gap: 6px; padding: 22px 10px 18px; border-radius: 22px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); text-align: center; }
.pg-rules-pts .pg-stk-img { width: 84%; max-width: 150px; height: auto; background: none; box-shadow: none; border-radius: 0; }
.pg-rules-slide.is-active .pg-rules-pts .pg-stk-img { animation: pg-rules-hop .9s cubic-bezier(.3, 1.6, .5, 1) both; }
.pg-rules-slide.is-active .pg-rules-pts li:nth-child(2) .pg-stk-img { animation-delay: .15s; }
.pg-rules-slide.is-active .pg-rules-pts li:nth-child(3) .pg-stk-img { animation-delay: .3s; }
@keyframes pg-rules-hop { 0% { transform: translateY(40px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.pg-rules-pts b { color: #fff; font: 700 44px/1 var(--serif); }
.pg-rules-pts li.is-gold b { color: #e8bf68; }
.pg-rules-pts span { color: #9fb0c6; font-size: 13px; line-height: 1.3; }
@media (max-width: 760px) {
  .pg-rules-slide { grid-template-columns: 1fr; align-content: center; align-items: center; gap: 18px; padding: 84px 20px max(56px, calc(env(safe-area-inset-bottom) + 44px)); }
  .pg-rules-shot { height: 44vh; }
  .pg-rules-shot img { max-height: 44vh; }
  .pg-rules-shot.is-art { height: auto; }
  .pg-rules-text h2 { margin: 12px 0 10px; font-size: 26px; }
  .pg-rules-text p { margin-bottom: 16px; font-size: 15.5px; }
  .pg-rules-arrow { top: auto; bottom: max(10px, env(safe-area-inset-bottom)); width: 40px; height: 44px; margin-top: 0; }
  .pg-rules-arrow.is-prev { left: 10px; }
  .pg-rules-arrow.is-next { right: 10px; animation: none; }
  .pg-rules-links { inset-inline: 54px; gap: 0 12px; }
  .pg-rules-big { font-size: 60vw; bottom: -4vh; top: auto; right: 2vw; }
  .pg-rules-cam { width: min(240px, 60vw); }
  .pg-rules-pts { gap: 10px; }
  .pg-rules-pts b { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-rules *, .pg-rules { animation: none !important; transition: none !important; }
  .pg-rules-shot > *, .pg-rules-text > * { opacity: 1; transform: none; }
}

.pg-rules-example {
  display: grid;
  justify-items: center;
  gap: .65rem;
  width: min(350px, 100%);
  padding: clamp(16px, 3.1vw, 34px);
  text-align: center;
  border: 1px solid #d5b66588;
  border-radius: 22px;
  background: radial-gradient(ellipse at top, #214567, #0d1d36 76%);
  color: #f9f5e9;
  box-shadow: 0 30px 60px -26px #000a;
}
.pg-rules-example .pg-stk-img { width: clamp(42px, 6vw, 68px); height: auto; margin-bottom: .2rem; box-shadow: none; }
.pg-rules-example small { color: #e4bb6c; font-weight: 700; letter-spacing: .07em; }
.pg-rules-example strong { font: 700 clamp(19px, 2.4vw, 27px) var(--serif, Georgia, serif); }
.pg-rules-example p { margin: 0; color: #dee7ef; font-size: clamp(.82rem, 1.4vw, 1rem); }
.pg-rules-example > span { border-radius: 9px; padding: 6px 11px; background: #f0d188; color: #18372f; font-size: .82rem; font-weight: 700; }
@media (max-width: 760px) {
  .pg-rules-example { gap: .42rem; max-width: 275px; }
  .pg-rules-checks { flex-wrap: wrap; justify-content: center; }
}

@media (max-height: 680px), (max-width: 760px) {
  .pg-rules-track {
    position: absolute;
    inset: calc(max(14px, env(safe-area-inset-top)) + 56px) 0 calc(max(10px, env(safe-area-inset-bottom)) + var(--pg-rules-footer, 50px));
    overflow: hidden;
  }
  .pg-rules-slide {
    align-content: start;
    align-content: safe center;
    padding-block: 12px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #7893ad transparent;
  }
  .pg-rules-big { inset-block: 0; display: flex; align-items: flex-end; overflow: hidden; }
}
@media (max-height: 680px) {
  .pg-rules-slide { gap: 14px; align-items: start; }
  .pg-rules-shot:not(.is-art) { height: min(38dvh, 270px); }
  .pg-rules-shot img { max-height: min(38dvh, 270px); }
  .pg .pg-rules-text h2, .pg-rules-text h2 { font-size: clamp(24px, 3.1vw, 36px); }
  .pg-rules-text p { margin-bottom: 14px; }
  .pg-rules-cam { width: min(240px, 52vw, 26dvh); }
}
@media (min-width: 761px) and (max-height: 680px) {
  .pg-rules-slide { padding-inline: max(76px, 7vw); }
}
@media (max-width: 360px) {
  .pg-rules-track { --pg-rules-footer: 86px; }
}
@media (max-width: 760px) and (max-height: 540px) and (orientation: landscape) {
  .pg-rules-slide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
@media (max-width: 760px), (pointer: coarse) {
  html.pg-rules-open .pg-campus .atlas-viewport { visibility: hidden; content-visibility: hidden; }
  .pg-rules-slide:not(.is-active) { display: none; }
  .pg-rules, .pg-rules-slide *, .pg-rules-snow, .pg-rules-arrow, .pg-rules-bars b {
    animation: none !important;
    transition: none !important;
  }
  .pg-rules-snow { inset: 0; }
  .pg-rules-shot { perspective: none; }
  .pg-rules-cam .pg-stk-img { filter: none; }
  .pg-modal, .pg-modal-box, .pg-game-reveal, .pg-game-reveal img { animation: none; }
  .pg-game-reveal img { filter: none; }
}

/* Страницы участника */
body:has(.pg-is-window), .pg-is-window {
  background: #f7f6f1;
}
.pg-is-window {
  --pg-green: #164f3d;
  --pg-green-h: #103d30;
  --pg-ink: #202b26;
  --pg-text: #29362f;
  --pg-muted: #54635a;
  --pg-line: #d7dfd7;
  --pg-warm: #eeefe8;
  min-height: 100svh;
  padding: 0 clamp(16px, 4vw, 52px) 40px;
}
.pg-wbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  max-width: 1040px;
  min-height: 62px;
  margin-inline: auto;
  border-bottom: 1px solid var(--pg-line);
  font-size: 14px;
}
.pg-wbar a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--pg-green);
  font-weight: 650;
}
.pg-wbar-back { gap: 8px; }
.pg-wbar-back span { font-size: 18px; line-height: 1; }
.pg-wbar-links { display: flex; flex-wrap: wrap; gap: 0 clamp(12px, 2.7vw, 26px); }
.pg-wbar-links a[aria-current="page"] { box-shadow: inset 0 -2px var(--pg-green); }
.pg-wbar a:hover { text-decoration: underline; }

.pg-window { max-width: 1040px; margin-inline: auto; padding-block: clamp(30px, 5.5vw, 64px); }
.pg-is-window .pg-body { padding: 0; }
.pg-is-window h1 { color: var(--pg-ink); }
.pg-is-window .pg-head, .pg-is-window .pg-narrow { margin-inline: 0; }
.pg-is-window .pg-narrow.is-wide { max-width: 720px; }
.pg-is-window :is(.pg-prose, .pg-contest-links, .pg-cab-sec) a:not(.pg-btn) { text-decoration: underline; }
.pg-is-window .pg-notice, .pg-is-window > .pg-flash { max-width: 1040px; margin: 10px auto 0; }
.pg-is-window > .pg-flash { position: static; transform: none; }
.pg-is-window .pg-check label { color: var(--pg-text); }
.pg-is-window .pg-check input { accent-color: var(--pg-green); }
.pg-is-window .pg-guardian { background: var(--pg-warm); }

.pg-wfoot { max-width: 1040px; margin-inline: auto; }
.pg-wfoot .pg-foot { font-size: 14px; }
.pg-wfoot .pg-foot a { text-decoration: underline; }
.pg-wfoot .pg-foot b { font-weight: 700; }

.pg-auth .pg-form { gap: 15px; }
.pg-auth .pg-lead { color: var(--pg-muted); }
.pg-auth .pg-aside { font-size: 14px; }
.pg-auth .pg-aside a { text-decoration: underline; }
.pg-cab-head { gap: 8px 18px; }
.pg-cab-head p { font-size: 14px; }
.pg-tabs { margin-top: 24px; gap: 20px; }
.pg-tabs a { padding-block: 11px; }
.pg-summary {
  padding: 16px 0;
  border-top: 1px solid var(--pg-line);
  border-bottom: 1px solid var(--pg-line);
  border-radius: 0;
  background: transparent;
}
.pg-summary dl { gap: 12px clamp(16px, 5vw, 52px); }
.pg-summary dt { font-size: 13px; }
.pg-summary dd { font-family: var(--sans); font-size: clamp(21px, 4vw, 28px); font-weight: 700; }
.pg-entry-code b { font-family: var(--sans); letter-spacing: 0; }
.pg-entry-side .pg-badge { font-size: 12px; }
.pg-entry-img img { width: 80px; height: 80px; }
.pg-entry { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 12px 16px; }
.pg-cab-sec { margin-top: 30px; }
.pg-is-window .pg-callout:not(.is-warn) { border-color: var(--pg-line); background: var(--pg-warm); color: var(--pg-text); }
.pg-is-window .pg-upload-rules { border-top: 1px solid var(--pg-line); border-radius: 0; background: transparent; padding: 16px 0 0; }

@media (max-width: 760px) {
  .pg-wbar { min-height: 56px; }
  .pg-wfoot .pg-foot { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 560px) {
  .pg-entry { grid-template-columns: 64px minmax(0, 1fr); }
  .pg-entry-img img { width: 64px; height: 64px; }
  .pg-entry-side { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-items: start; }
  .pg-cab-head { align-items: flex-start; }
  .pg-mix { flex-wrap: wrap; }
}

.pg-hud-tools .pg-fog-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pg-hud-tools .pg-fog-btn[aria-pressed="true"] { background: #e8bf68; color: #1b1406; }

.pg-contest-links { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
.pg-contest-waves { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 12px; margin-block: 18px; }
.pg-contest-waves > * { padding: 16px; border: 1px solid var(--pg-line); border-radius: 12px; min-width: 0; }
.pg-contest-waves h2 { margin: 0 0 8px; font-size: 1.12rem; }
.pg-contest-waves dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.pg-contest-waves dd { margin: 4px 0 0; font-weight: 700; color: var(--pg-green); }
.pg-contest-entry { grid-column: 1 / -1; min-width: 0; }
.pg-contest-entry summary { cursor: pointer; color: var(--pg-green); font-weight: 700; }
.pg-contest-entry form { max-width: 38rem; margin-block: 8px; }
.pg-contest-entry p { margin-block: 8px; overflow-wrap: anywhere; }

.pg-reg-table { overflow-x: auto; }
.pg-reg-table .pg-table { min-width: 460px; }

.pg-vk-collection { display: flex; flex-wrap: wrap; gap: .7rem 1rem; justify-content: space-between; align-items: center; }
.pg-vk-collection p { margin: .25rem 0 0; }

.pg-photo-gallery {
  max-width: 65rem;
  margin-inline: auto;
}

.pg-photo-header {
  padding-bottom: clamp(1rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--pg-line);
}

.pg-photo-header h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
}

.pg p.pg-photo-terms {
  margin-top: .65rem;
  color: var(--pg-muted);
  font-size: .95rem;
}

.pg p.pg-photo-empty {
  margin-top: clamp(.9rem, 3vw, 1.5rem);
  padding: .85rem clamp(.9rem, 3vw, 1.25rem);
  border-radius: .55rem;
  background: var(--pg-warm);
  color: var(--pg-muted);
  font-size: .95rem;
}

.pg p.pg-photo-status {
  margin-top: 1rem;
  color: var(--pg-muted);
  font-size: .95rem;
}

.pg-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: clamp(.85rem, 3vw, 1.55rem);
  margin: clamp(1.2rem, 4vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
}

.pg-photo-grid li { min-width: 0; }
.pg-photo-grid figure { margin: 0; }

.pg-photo-image {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: .55rem;
  background: var(--pg-warm);
}

.pg-photo-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.pg-photo-grid figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  padding-block: .65rem;
}

.pg-photo-grid h2 {
  color: var(--pg-ink);
  font-family: inherit;
  font-size: .95rem;
}

.pg-photo-grid figcaption p { color: var(--pg-muted); font-size: .85rem; }
