/* ============================================================
   post-phone.css — превью поста 1:1 (конструктор v2, 14.11, наброски C, D, E одобрены владельцем).
   iPhone 15 Pro с Telegram для iOS (светлая и тёмная тема). Только сам пост: чужих сообщений нет (владелец 14.11). Разметку
   собирает frontend/post-phone.js, подключают конструктор (frontend/post-builder.js) и пульт рассылки (settings.html). Steam
   окном браузера владелец не взял (14.11) — его превью как на проде.
   Без backdrop-filter: «стекло» Telegram нарисовано полупрозрачным фоном. Иконки: Lucide (ISC) и знак Steam с сайта.
   Узор обоев свой, из иконок Lucide; маски — только data: (CSS-маска url(файл) молча пропадает), их ставит post-phone.js.
   Размер телефона: --pp-s (zoom), 1 = 425×884 css px, экран 393×852 как у iPhone 15 Pro.
   ============================================================ */

/* ---------- iPhone 15 Pro, натуральный титан ---------- */
.pp-iph {
    --pp-s: 1;
    zoom: var(--pp-s);
    position: relative; flex: none;
    width: 425px; height: 884px; border-radius: 72px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 6%, transparent 94%, rgba(0, 0, 0, 0.18)),
        linear-gradient(90deg, #8d897f 0%, #d9d4ca 2.2%, #b7b2a8 5%, #c9c4ba 50%, #b5b0a6 95%, #dcd7cd 97.8%, #8a867c 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 0 0 2.5px rgba(96, 92, 85, 0.45),
        0 0 0 1px #5e5b55,
        0 60px 100px -30px rgba(0, 0, 0, 0.85),
        0 22px 44px -16px rgba(0, 0, 0, 0.6);
    font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
    text-align: left;
}
.pp-iph::before { content: ""; position: absolute; inset: 3.5px; border-radius: 68.5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), inset 0 2px 3px rgba(0, 0, 0, 0.25); pointer-events: none; }
.pp-iph__bezel { position: absolute; inset: 6px; border-radius: 66px; background: #050505; box-shadow: inset 0 0 0 1px #202020, inset 0 0 0 3px #0b0b0b; }
.pp-iph__screen { position: absolute; left: 16px; top: 16px; width: 393px; height: 852px; border-radius: 55px; overflow: hidden; background: #000; isolation: isolate; }
.pp-iph__btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #77736b, #d8d3c9 45%, #a29e94 80%, #77736b); box-shadow: 0 0 0 0.5px #5e5b55; }
.pp-iph__btn--act { left: -3px; top: 168px; height: 32px; }
.pp-iph__btn--vu { left: -3px; top: 232px; height: 62px; }
.pp-iph__btn--vd { left: -3px; top: 306px; height: 62px; }
.pp-iph__btn--pw { right: -3px; top: 266px; height: 98px; background: linear-gradient(270deg, #77736b, #d8d3c9 45%, #a29e94 80%, #77736b); }
.pp-iph__ant { position: absolute; background: rgba(88, 84, 77, 0.55); }
.pp-iph__ant--l1 { left: 0; top: 96px; width: 6px; height: 3px; }
.pp-iph__ant--r1 { right: 0; top: 96px; width: 6px; height: 3px; }
.pp-iph__ant--l2 { left: 0; bottom: 96px; width: 6px; height: 3px; }
.pp-iph__ant--r2 { right: 0; bottom: 96px; width: 6px; height: 3px; }
.pp-iph__ant--b { bottom: 0; left: 88px; width: 3px; height: 6px; }
.pp-iph__island { position: absolute; z-index: 30; top: 11px; left: 50%; transform: translateX(-50%); width: 126px; height: 37px; border-radius: 20px; background: #000; }
.pp-iph__island i { position: absolute; right: 12px; top: 12px; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 36% 34%, #3a4766 0, #121729 38%, #05060b 64%); box-shadow: 0 0 0 1.5px #0d0d0f; }

/* ---------- Telegram для iOS ---------- */
.pp-tg { position: absolute; inset: 0; font-family: 'Inter', -apple-system, sans-serif; letter-spacing: -0.012em; color: #000;
    --bub: #FFFFFF; --txt: #000; --link: #1C7BD6; --time: rgba(60, 60, 67, 0.48); --name: #2E9E3E; --q: rgba(46, 158, 62, 0.1);
    --glass: rgba(255, 255, 255, 0.9); --glass-line: rgba(255, 255, 255, 0.95); --glass-tx: #000; --glass-sub: rgba(60, 60, 67, 0.6); --ico: #1C1C1E; --home: #000;
    --edit-hl: rgba(28, 123, 214, 0.1); --edit-line: rgba(28, 123, 214, 0.55); --edit-soft: rgba(28, 123, 214, 0.28); }
.pp-tg--dark { color: #fff;
    --bub: #262629; --txt: #FFFFFF; --link: #6AB7F5; --time: rgba(235, 235, 245, 0.45); --name: #7BC862; --q: rgba(123, 200, 98, 0.12);
    --glass: rgba(30, 30, 32, 0.92); --glass-line: rgba(255, 255, 255, 0.1); --glass-tx: #fff; --glass-sub: rgba(235, 235, 245, 0.55); --ico: #F2F2F7; --home: #fff;
    --edit-hl: rgba(106, 183, 245, 0.12); --edit-line: rgba(106, 183, 245, 0.6); --edit-soft: rgba(106, 183, 245, 0.3); }
.pp-tg__wall { position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(62% 42% at 14% 10%, #e3e5b4 0%, rgba(227, 229, 180, 0) 72%),
        radial-gradient(58% 46% at 94% 32%, #9fca9b 0%, rgba(159, 202, 155, 0) 72%),
        radial-gradient(66% 50% at 6% 66%, #6fa987 0%, rgba(111, 169, 135, 0) 72%),
        radial-gradient(64% 46% at 88% 94%, #d6dc9c 0%, rgba(214, 220, 156, 0) 72%),
        #abc99b; }
.pp-tg__wall::after { content: ""; position: absolute; inset: 0; background-image: var(--pp-pat-light, none); background-size: 248px 248px; }
.pp-tg--dark .pp-tg__wall { background: #0B0C0C; }
.pp-tg--dark .pp-tg__wall::after { background-image: linear-gradient(155deg, #2f8a63 0%, #3c6e35 38%, #2a6077 70%, #5b7d32 100%); -webkit-mask: var(--pp-pat-mask, none) 0 0 / 248px 248px repeat; mask: var(--pp-pat-mask, none) 0 0 / 248px 248px repeat; opacity: 0.42; }
.pp-tg__feed { position: absolute; inset: 0; z-index: 1; overflow-y: auto; overscroll-behavior: contain; padding: 116px 0 92px; scrollbar-width: none; }
.pp-tg__feed::-webkit-scrollbar { display: none; }
.pp-tg__top { position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; }
.pp-tg__top::before { content: ""; position: absolute; inset: 0 0 -14px; background: linear-gradient(180deg, rgba(236, 240, 226, 0.92) 0%, rgba(236, 240, 226, 0.7) 45%, rgba(236, 240, 226, 0)); }
.pp-tg--dark .pp-tg__top::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 45%, rgba(0, 0, 0, 0)); }
.pp-tg__status { position: relative; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 4px 30px 0 52px; font-weight: 640; font-size: 17px; color: var(--glass-tx); letter-spacing: -0.02em; }
.pp-tg__sicons { display: flex; align-items: center; gap: 6px; }
.pp-tg__sicons svg { display: block; }
.pp-tg__nav { position: relative; height: 52px; padding: 2px 10px 0; display: flex; align-items: center; justify-content: space-between; }
.pp-gl { background: var(--glass); box-shadow: inset 0 0 0 0.5px var(--glass-line), 0 2px 10px rgba(0, 0, 0, 0.1), 0 0.5px 1.5px rgba(0, 0, 0, 0.08); }
.pp-tg--dark .pp-gl { box-shadow: inset 0 0 0 0.5px var(--glass-line), 0 2px 12px rgba(0, 0, 0, 0.45); }
.pp-tg__back { height: 44px; border-radius: 22px; display: flex; align-items: center; gap: 2px; padding: 0 12px 0 6px; color: var(--ico); }
.pp-tg__back svg { width: 28px; height: 28px; }
.pp-tg__back span { min-width: 26px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--ico); color: var(--bub); font-size: 13px; font-weight: 650; display: grid; place-items: center; }
.pp-tg--dark .pp-tg__back span { background: #F2F2F7; color: #1C1C1E; }
.pp-tg__title { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); height: 44px; max-width: 230px; padding: 0 18px; border-radius: 22px; display: grid; align-content: center; justify-items: center; text-align: center; }
.pp-tg__title b { font-size: 15.5px; font-weight: 650; line-height: 1.15; color: var(--glass-tx); white-space: nowrap; }
.pp-tg__title span { font-size: 12px; line-height: 1.2; color: var(--glass-sub); white-space: nowrap; }
.pp-tg__gava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; background: linear-gradient(160deg, #FFA466, #F06A3D); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); }

.pp-tg__date { display: flex; justify-content: center; margin: 4px 0 10px; }
.pp-tg__date span { padding: 3px 10px; border-radius: 11px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(46, 80, 46, 0.32); }
.pp-tg--dark .pp-tg__date span { background: rgba(255, 255, 255, 0.12); }
.pp-tg__msg { display: flex; align-items: flex-end; gap: 8px; padding: 0 8px; margin-bottom: 8px; }
.pp-tg__mava { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(160deg, #60D17E, #26A84F); overflow: hidden; }
.pp-tg__mava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.pp-tg__bub { position: relative; max-width: 304px; min-width: 0; background: var(--bub); color: var(--txt); border-radius: 18px 18px 18px 6px; }
.pp-tg__bub--photo { width: 304px; }
.pp-tg__tail { position: absolute; left: -6px; bottom: 0; width: 12px; height: 18px; fill: var(--bub); }
.pp-tg__clip { border-radius: inherit; overflow: hidden; }
.pp-tg__name { padding: 6px 12px 4px; font-size: 14.5px; font-weight: 650; color: var(--name); line-height: 1.25; }
.pp-tg__photo { position: relative; display: block; min-height: 120px; background: #0B0F14; }
/* width/height у img задают пропорцию (место под картинку до загрузки), высота — по ширине */
.pp-tg__photo img { display: block; width: 100%; height: auto; }
.pp-tg__cap { padding: 6px 12px 7px; font-size: 16px; line-height: 1.32; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--txt); }
.pp-tg__cap b { font-weight: 650; }
.pp-tg__cap i:not([class]) { font-style: italic; }
.pp-tg__cap a { color: var(--link); text-decoration: none; }
.pp-tg__time { float: right; position: relative; top: 7px; margin-left: 10px; font-size: 12px; color: var(--time); letter-spacing: 0; line-height: 1; }
.pp-tg__gap { display: block; height: 0.55em; }
/* цитата Telegram iOS: полоса слева, кавычка справа, свёрнутая — три строки и стрелка */
.pp-tq { position: relative; display: block; margin: 3px 0; padding: 3px 26px 4px 10px; border-radius: 5px; background: var(--q); box-shadow: inset 3px 0 0 var(--name); white-space: pre-wrap; }
.pp-tq::before { content: ""; position: absolute; right: 7px; top: 6px; width: 11px; height: 9px; background: var(--name); -webkit-mask: var(--pp-quote-mask, none) center / contain no-repeat; mask: var(--pp-quote-mask, none) center / contain no-repeat; }
.pp-tq.is-col { max-height: calc(3 * 1.32em + 7px); overflow: hidden; }
.pp-tq.is-col::after { content: ""; position: absolute; left: 3px; right: 0; bottom: 0; height: 1.3em; background: linear-gradient(180deg, transparent, var(--bub) 85%); pointer-events: none; }
.pp-tq__arr { position: absolute; right: 6px; bottom: 3px; z-index: 1; width: 14px; height: 14px; color: var(--name); transition: transform 0.22s ease; }
.pp-tq.is-ex { cursor: pointer; }
.pp-tq.is-ex:focus-visible { outline: 2px solid var(--name); outline-offset: 2px; }
/* раскрытая цитата, где стрелку оставила страница: стрелка смотрит вверх, нажатие сворачивает обратно */
.pp-tq.is-ex:not(.is-col) .pp-tq__arr { transform: rotate(180deg); }
.pp-tg__bar { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; padding: 8px 10px 34px; display: flex; gap: 8px; align-items: flex-end; pointer-events: none; }
.pp-tg__bar::before { content: ""; position: absolute; inset: -22px 0 0; background: linear-gradient(0deg, rgba(236, 240, 226, 0.85) 30%, rgba(236, 240, 226, 0)); }
.pp-tg--dark .pp-tg__bar::before { background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0)); }
.pp-tg__circ { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ico); }
.pp-tg__circ svg { width: 22px; height: 22px; }
.pp-tg__field { position: relative; flex: 1; height: 42px; border-radius: 21px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px 0 16px; font-size: 17px; color: var(--glass-sub); }
.pp-tg__field svg { width: 22px; height: 22px; color: var(--glass-sub); }
.pp-tg__home { position: absolute; z-index: 7; left: 50%; bottom: 8px; width: 136px; height: 5px; border-radius: 3px; transform: translateX(-50%); background: var(--home); pointer-events: none; }
.pp-tg__down { position: absolute; z-index: 6; right: 10px; bottom: 96px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--glass-sub); border: 0; padding: 0; cursor: pointer; }
.pp-tg__down svg { width: 22px; height: 22px; }
.pp-tg__down { transition: opacity 0.2s ease, transform 0.2s ease; }
.pp-tg__down.is-hide { opacity: 0; transform: scale(0.8); pointer-events: none; }
/* светлая кнопка — тёмный значок (правило сайта для светлых кнопок) */
.pp-tg:not(.pp-tg--dark) .pp-tg__down { color: rgba(10, 10, 10, 0.55); }

/* листание картинок круга прямо на фото: наши кнопки поверх фото, в цветах сайта, чтобы не спутать с Telegram */
.pp-ring { position: absolute; inset: 0; pointer-events: none; }
.pp-ring__nav { position: absolute; top: 50%; width: 34px; height: 34px; margin-top: -17px; border: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 10, 10, 0.72); color: #fff; box-shadow: inset 0 0 0 1px rgba(0, 229, 153, 0.55), 0 4px 14px rgba(0, 0, 0, 0.35); cursor: pointer; pointer-events: auto; transition: background 0.15s ease, transform 0.15s ease; }
.pp-ring__nav:hover { background: rgba(10, 10, 10, 0.9); }
.pp-ring__nav:active { transform: scale(0.94); }
.pp-ring__nav:focus-visible { outline: 2px solid #00E599; outline-offset: 2px; }
.pp-ring__nav svg { width: 18px; height: 18px; }
.pp-ring__nav--l { left: 8px; }
.pp-ring__nav--r { right: 8px; }
.pp-ring__pill { position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px); display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 7px; border-radius: 99px; background: rgba(10, 10, 10, 0.78); color: #fff; font-size: 12px; font-weight: 650; box-shadow: inset 0 0 0 1px rgba(0, 229, 153, 0.45); letter-spacing: 0; line-height: 1.3; }
.pp-ring__pill i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #00E599; }
.pp-ring__pill.is-off i { background: #8E948F; }
.pp-ring__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; padding: 0 40px; }
.pp-ring__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); transition: width 0.2s ease; }
.pp-ring__dots i.on { width: 18px; border-radius: 3px; background: #00E599; }
.pp-ring__dots i.off { background: rgba(255, 255, 255, 0.2); }
@media (prefers-reduced-motion: reduce) { .pp-ring__nav, .pp-ring__dots i, .pp-tq__arr, .pp-tg__down { transition: none; } }

