/* ip-page.css — оформление игры «Собери подушку семьи» под тему Reboot и палитру сайта (вариант А, 28.09.2026). */
#ip-game [hidden]{display:none !important}
#ip-game{margin:24px 0 32px;padding:22px 18px;background:#f5f8fb;border:1px solid #d5dee7;border-radius:8px;color:#1F3A52}
#ip-game .ip-progress{margin:0 0 6px;font-size:14px;color:#5a6472;text-transform:uppercase;letter-spacing:.04em}
#ip-game .ip-title{margin:0 0 12px;font-size:22px;line-height:1.3;color:#1F3A52;outline:none}
#ip-game .ip-hint{margin:0 0 14px;font-size:15px;line-height:1.5;color:#5a6472}
#ip-game .ip-btn{display:inline-block;padding:13px 24px;background:#a84e33;color:#fff !important;border:0;border-radius:6px;font-size:17px;font-weight:600;line-height:1.2;text-decoration:none !important;cursor:pointer}
#ip-game .ip-btn:hover,#ip-game .ip-btn:focus{background:#8f412a}
#ip-game .ip-btn:disabled{background:#b9c6d3;cursor:default}
#ip-game .ip-back{padding:8px 0;background:none;border:0;font-size:16px;color:#5a6472;text-decoration:underline;cursor:pointer}
#ip-game .ip-nav{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:20px 0 0}
#ip-game .ip-exp{display:flex;flex-direction:column;gap:8px}
#ip-game .ip-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;background:#fff;border:1px solid #d5dee7;border-radius:6px}
#ip-game .ip-row.ip-off{opacity:.55}
#ip-game .ip-check{display:flex;gap:10px;align-items:center;flex:1 1 180px;font-size:16px;line-height:1.3;cursor:pointer}
#ip-game .ip-check input{flex:none;width:22px;height:22px;margin:0;accent-color:#a84e33}
#ip-game .ip-ctl{display:flex;align-items:center;gap:6px;margin-left:auto}
#ip-game .ip-pm{width:40px;height:40px;padding:0;background:#fff;border:1px solid #b9c6d3;border-radius:6px;font-size:22px;line-height:1;color:#1F3A52;cursor:pointer}
#ip-game .ip-pm:disabled{color:#b9c6d3;cursor:default}
#ip-game .ip-sum{min-width:84px;text-align:center;font-size:16px;font-weight:600;white-space:nowrap}
#ip-game .ip-total{display:flex;justify-content:space-between;gap:12px;margin:14px 0 0;padding:12px;border-top:2px solid #1F3A52;font-size:17px}
#ip-game .ip-error{margin:8px 0 0;color:#a84e33;font-size:15px;font-weight:600}
#ip-game .ip-error:empty{display:none}
#ip-game .ip-slider{margin:0 0 18px}
#ip-game .ip-slider-top{display:flex;justify-content:space-between;gap:12px;margin:0 0 8px;font-size:16px}
#ip-game .ip-slider input{width:100%;height:32px;margin:0;accent-color:#a84e33}
#ip-game .ip-rule{margin:0;padding:12px 14px;background:#fff;border-left:4px solid #1F3A52;font-size:16px;line-height:1.5}
#ip-game .ip-meter{padding:14px;background:#fff;border:1px solid #d5dee7;border-radius:6px}
#ip-game .ip-meter-top{display:flex;justify-content:space-between;margin:0 0 10px;font-size:17px}
#ip-game .ip-bar{position:relative;height:18px;margin:0 0 22px;background:#e3e9ef;border-radius:9px}
#ip-game .ip-bar-fill{height:100%;background:#3c7a4e;border-radius:9px;transition:width .4s ease}
#ip-game .ip-mark{position:absolute;top:-3px;height:24px;border-left:2px dashed #1F3A52}
#ip-game .ip-mark span{position:absolute;top:26px;left:-1px;transform:translateX(-50%);font-size:13px;line-height:1;color:#5a6472;white-space:nowrap}
#ip-game .ip-meter-months{margin:0;font-size:16px;font-weight:600}
#ip-game .ip-card{margin:14px 0 0;padding:16px;background:#fff;border:2px solid #1F3A52;border-radius:10px;box-shadow:0 3px 0 #1F3A52}
#ip-game .ip-card-minus,#ip-game .ip-card-job{border-color:#a84e33;box-shadow:0 3px 0 #a84e33}
#ip-game .ip-card-plus{border-color:#3c7a4e;box-shadow:0 3px 0 #3c7a4e}
#ip-game .ip-card-title{margin:0 0 6px;font-size:19px;font-weight:700}
#ip-game .ip-card-text{margin:0 0 10px;font-size:16px;line-height:1.5}
#ip-game .ip-card-sums{margin:0;padding:0;list-style:none;font-size:15px;color:#1F3A52}
#ip-game .ip-card-sums li{display:flex;justify-content:space-between;gap:12px;margin:0;padding:5px 0;border-bottom:1px dotted #d5dee7}
#ip-game .ip-card-sums .ip-val{white-space:nowrap;font-weight:600}
#ip-game .ip-card-sums .ip-after{border-bottom:0;border-top:2px solid #1F3A52;font-weight:700}
#ip-game .ip-cond{margin:6px 0 0;font-size:13px;color:#5a6472}
#ip-game .ip-card-sums .ip-minus{color:#a84e33;font-weight:600}
#ip-game .ip-card-sums .ip-plus{color:#3c7a4e;font-weight:600}
#ip-game .ip-result{padding-left:14px;border-left:4px solid #3c7a4e}
#ip-game .ip-result-low{border-left-color:#c08a2e}
#ip-game .ip-text{margin:0 0 10px;font-size:17px;line-height:1.5}
#ip-game .ip-talk-title{margin:24px 0 6px;font-weight:600;font-size:17px}
#ip-game .ip-talk{margin:0 0 16px 20px;padding:0;font-size:16px;line-height:1.5}
#ip-game .ip-talk li{margin:0 0 4px}
#ip-game .ip-source,#ip-game .ip-podpis{margin:8px 0 0;font-size:14px;line-height:1.5;color:#5a6472}
@media (prefers-reduced-motion:reduce){#ip-game .ip-bar-fill{transition:none}}
/* Тема статей вставляет абзацам пустой ::before (блок 135 px), во флекс-строках игры он ломает раскладку (замер 26.10.2026). */
#ip-game p::before,#ip-game p::after{content:none !important;display:none !important}
