/* nullyovka XP — «Батьківський контроль»: перемикач, вікно налаштувань у дусі браузера 2010-го,
   режим ВИКЛ (чорний «дед інсайд», наліпки 18+, матюки) і глітч-перехід між режимами. */

html:not(.pk-js) .pk-js-only { display: none !important; }
.brand { position: relative; }

/* ---------- щит ---------- */
.pk-shield-off { display: none; }
html.pk-off .pk-shield-on { display: none; }
html.pk-off .pk-shield-off { display: inline; }

/* ---------- кнопка справа в шапці меню «пуск» ---------- */
.start__who { flex: 1 1 auto; min-width: 0; }
.pk-switch {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 5px 9px 5px 6px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.07) 100%);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.35), inset -1px -1px 0 rgba(0, 0, 0, 0.3);
  color: #FFFFFF;
  text-align: left;
  cursor: pointer;
}
.pk-switch:active { box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.4); }
.pk-switch__text { display: flex; flex-direction: column; gap: 2px; }
.pk-switch__label { max-width: 96px; font-size: 11px; line-height: 1.15; text-shadow: 1px 1px 0 var(--shade); }
.pk-switch__state { font-size: 15px; line-height: 1; letter-spacing: 1px; color: #B9E8C1; text-shadow: 0 0 6px rgba(150, 230, 160, 0.6), 1px 1px 0 var(--shade); }
html.pk-off .pk-switch__state { color: #FF8F8F; text-shadow: 0 0 7px rgba(255, 70, 70, 0.7), 1px 1px 0 #000000; }

/* ---------- щит у треї ---------- */
.pk-tray { padding: 0; border: 0; background: transparent; cursor: pointer; }

/* ---------- рядок у «Подробицях» ---------- */
.panel__text .pk-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 10px; padding-top: 8px; border-top: 1px dotted var(--bevel-mid); font-size: 13px; }
.pk-line__btn {
  padding: 1px 8px;
  border: 1px solid;
  border-color: #FFFFFF var(--bevel-darkest) var(--bevel-darkest) #FFFFFF;
  background: var(--btn-face);
  box-shadow: inset -1px -1px 0 var(--bevel-dark);
  color: #2E5E3A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
}
html.pk-off .pk-line__btn { color: #8E1B1B; }

/* ---------- вікно налаштувань ---------- */
.pk-modal { position: absolute; z-index: 70; inset: 0 0 var(--tb) 0; display: grid; place-items: center; padding: 16px; }
.pk-modal__scrim { position: absolute; inset: 0; padding: 0; border: 0; background: rgba(14, 14, 20, 0.4); cursor: default; }
.pk-ff { position: relative; width: min(600px, 100%); max-height: 100%; overflow-y: auto; animation: pop 0.18s ease-out both; }
.pk-ff .win__bar { gap: 10px; }
.pk-ff__app {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
  padding: 3px 9px 4px 10px;
  border: 1px solid #6B3410;
  background: linear-gradient(180deg, #E6A060 0%, #D07A35 42%, #B65F21 100%);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.4), inset -1px -1px 0 rgba(0, 0, 0, 0.22);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}
.pk-ff__app svg { display: block; width: 9px; height: 9px; }
.pk-ff__panes { display: flex; gap: 2px; padding: 6px 8px; overflow-x: auto; border-bottom: 1px solid var(--bevel-mid); background: linear-gradient(180deg, #FFFFFF 0%, #EEECE6 100%); scrollbar-width: none; }
.pk-ff__panes::-webkit-scrollbar { display: none; }
.pk-ff__pane { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 74px; padding: 6px 6px 5px; border: 1px solid transparent; color: #3A3A46; font-size: 12px; line-height: 1.1; }
.pk-ff__pane.is-on { border-color: var(--bevel-mid); background: linear-gradient(180deg, #FFFFFF 0%, #E4E7F2 100%); box-shadow: inset 0 -3px 0 var(--sel); color: var(--ink); font-weight: 700; }
.pk-ff__body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 4px; background: var(--face); }
.pk-ff__group { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; }
.pk-ff__opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border: 1px solid transparent; cursor: pointer; }
.pk-ff__opt input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--sel); }
.pk-ff__opt b { display: block; font-size: 15px; line-height: 1.2; }
.pk-ff__opt small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.pk-ff__opt:has(input:checked) { border-color: var(--bevel-mid); background: var(--sheet); }
.pk-ff__opt--off .pk-shield-on { display: none; }
.pk-ff__opt--off .pk-shield-off { display: inline; }
.pk-ff__age { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; font-size: 15px; font-weight: 700; cursor: pointer; }
.pk-ff__age input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--sel); }
.pk-modal:not(.is-off) .pk-ff__age { opacity: 0.45; cursor: default; }
.pk-ff__warn { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 8px 10px; border: 1px solid var(--ink); background: var(--tooltip); font-size: 13px; line-height: 1.4; }
.pk-ff__btns { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px 16px; background: var(--face); }
.pk-ff__btns .btn { min-width: 96px; }

/* ---------- режим ВИКЛ: чорний «дед інсайд» ---------- */
html.pk-off body {
  --ink: #141416;
  --muted: #4A4A50;
  --paper: #151517;
  --face: #E3E3E1;
  --line: #BEBEBA;
  --sheet: #F4F4F2;
  --tooltip: #EFEFEC;
  --bevel-mid: #9D9D99;
  --bevel-dark: #868682;
  --bevel-darkest: #2C2C2E;
  --mustard: #8E1B1B;
  --mustard-line: #8E1B1B;
  --tape: rgba(14, 14, 16, 0.95);
  --toolbar: linear-gradient(180deg, #F2F2F1 0%, #DADAD8 100%);
  --btn-face: linear-gradient(180deg, #FFFFFF 0%, #EBEBE9 55%, #D1D1CE 100%);
  --green: linear-gradient(180deg, #48484E 0%, #27272B 45%, #141416 100%);
  --green-start: linear-gradient(180deg, #A44646 0%, #8A2D2D 12%, #6F1E1E 50%, #661B1B 80%, #4C1313 100%);
  --green-down: linear-gradient(180deg, #0A0A0B 0%, #141416 40%, #1E1E21 100%);
  --green-hi: #707076;
  --green-lo: #000000;
  --green-inner: #050506;
  --brick: linear-gradient(180deg, #B05A5A 0%, #8E2F2F 45%, #6E1E1E 100%);
  --brick-edge: #2A0808;
  --frame: #1B1B1E; --edge: #000000; --shade: #000000;
  --bar: linear-gradient(180deg, #5E5E66 0%, #2B2B30 8%, #1C1C20 40%, #25252A 88%, #2A2A30 93%, #1B1B1E 95%, #0B0B0D 96%, #0B0B0D 100%);
  --ctrl: linear-gradient(180deg, #74747C 0%, #3A3A40 45%, #28282D 100%);
  --task: linear-gradient(180deg, #000000 0%, #2C2C31 3%, #34343A 6%, #3A3A40 10%, #34343A 12%, #2D2D32 15%, #28282D 20%, #242428 38%, #28282D 54%, #2B2B30 86%, #28282D 92%, #1E1E22 95%, #151518 100%);
  --task-edge: #55555C;
  --btn: linear-gradient(180deg, #4A4A51 0%, #36363C 40%, #2F2F35 100%);
  --btn-on: linear-gradient(180deg, #0B0B0D 0%, #111114 30%, #17171A 100%);
  --btn-edge: #000000;
  --tray: linear-gradient(180deg, #000000 0%, #26262B 6%, #2D2D33 10%, #26262B 14%, #222226 19%, #1F1F23 63%, #252529 81%, #222226 91%, #19191C 97%, #111113 100%);
  --tray-edge: #000000;
  --pane: linear-gradient(180deg, #4C4C53 0%, #2E2E33 100%);
  --pane-head: linear-gradient(90deg, #FFFFFF 0%, #CFCFCD 100%);
  --pane-body: linear-gradient(180deg, #F4F4F3 0%, #E2E2E0 100%);
  --link: #141416; --sel: #7E1F1F;
  --side: linear-gradient(180deg, #EFEFEE 0%, #DADAD8 100%); --side-edge: #BEBEBA;
  --input: #77777D;
}
html.pk-off .os {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}
/* шпалери «Безхмарність» уночі: чорне небо з червоним маревом над обрієм, чорні пагорби з червоним контуром */
html.pk-off {
  --w-s1: #060608; --w-s2: #121216; --w-s3: #3A1214;
  --w-sun1: rgba(142, 27, 27, 0.42); --w-sun2: rgba(142, 27, 27, 0);
  --w-f1: #1D1D22; --w-f2: #121215;
  --w-h1: #18181B; --w-h2: #0E0E10; --w-h3: #050506;
  --w-dot: rgba(142, 27, 27, 0.22); --w-scan: rgba(255, 255, 255, 0.03);
  --w-grass: rgba(142, 27, 27, 0.35); --w-rim: rgba(200, 52, 52, 0.75);
  --w-r: rgba(200, 40, 40, 0.8); --w-c: rgba(255, 255, 255, 0.35); --w-tint: rgba(200, 40, 40, 0.3);
}
/* фото-шпалери вночі — те саме фото без одягу (файл без змін); боки — середні кольори країв цього фото */
html.pk-off { --wall-img: var(--wall-night); --wall-l: #365987; --wall-r: #884F1E; --wall-avg: #4E3D37; }
html.pk-off .desk-brand .brand__art { filter: grayscale(1) contrast(1.15) drop-shadow(0 0 18px rgba(142, 27, 27, 0.45)); }
html.pk-off .ring, html.pk-off .trust__logo { filter: grayscale(1) contrast(1.15); }
html.pk-off .pusk .ring { filter: grayscale(1) contrast(1.15) drop-shadow(1px 0 0 #DCDAD5) drop-shadow(-1px 0 0 #DCDAD5) drop-shadow(0 1px 0 #DCDAD5) drop-shadow(0 -1px 0 #DCDAD5) drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.45)); }
html.pk-off .cell-select { border-color: #8E1B1B; }
html.pk-off .cell-select::after { background: #8E1B1B; }
html.pk-off .dicon { color: #E7E5E0; }
html.pk-off .dicon__label { background: rgba(10, 10, 12, 0.86); color: #E7E5E0; }
html.pk-off .dicon.is-sel .dicon__label { background: var(--sel); color: #FFFFFF; }
html.pk-off .dicon .ico { filter: drop-shadow(1px 0 0 #DCDAD5) drop-shadow(-1px 0 0 #DCDAD5) drop-shadow(0 1px 0 #DCDAD5) drop-shadow(0 -1px 0 #DCDAD5); }
html.pk-off .win { box-shadow: inset 0 0 0 1px var(--edge), 6px 6px 0 rgba(0, 0, 0, 0.55); }
html.pk-off .brand__name { color: #EDEBE6; }
html.pk-off .brand__tag { color: #B9B8B3; }
html.pk-off .foot-note { color: #A9A8A3; }
html.pk-off .foot-note a { color: #EDEBE6; }
html.pk-off .desk-about { color: #A9A8A3; }
html.pk-off .tile__tape, html.pk-off .tape--b, html.pk-off .soon-box .tape--c { color: #EDEBE6; box-shadow: 0 -2px 0 #8E1B1B, 0 2px 0 #8E1B1B; }
html.pk-off .tape--a { box-shadow: 0 -2px 0 #8E1B1B, 0 2px 0 #8E1B1B; }
html.pk-off .sizebox__tape { color: #EDEBE6; box-shadow: 0 -2px 0 #8E1B1B, 0 2px 0 #8E1B1B; }
html.pk-off .badge { color: #FFFFFF; }
html.pk-off .done { border-color: var(--ink); background: #EDEDEB; color: var(--ink); }
html.pk-off .tile__thumb, html.pk-off .product__frame, html.pk-off .owner__frame, html.pk-off .cart__thumb { background-color: #F0F0EE; }
html.pk-off .tile__img, html.pk-off .tile__svg, html.pk-off .product__img, html.pk-off .thumb img, html.pk-off .cart__thumb img, html.pk-off .owner__frame img { filter: grayscale(1) contrast(1.08); }
html.pk-off .sitem small { color: #5A5A60; }
html.pk-off .sitem:hover small, html.pk-off .sitem:focus-visible small { color: #F2D9D9; }
html.pk-off .start { box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6); }
html.pk-off .balloon { box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5); }
html.pk-off .pusk { border-color: #C77070 #2A0808 #2A0808 #C77070; box-shadow: inset -1px -1px 0 #3A0B0B, inset 1px 1px 0 rgba(255, 255, 255, 0.2); }
html.pk-off .pusk[aria-expanded="true"] { border-color: #2A0808 #C77070 #C77070 #2A0808; background: linear-gradient(180deg, #3A0B0B 0%, #4C1313 40%, #661B1B 100%); box-shadow: inset 1px 1px 0 #2A0808; }
html.pk-off .fx__grain { mix-blend-mode: screen; opacity: 0.06; }
html.pk-off .brand__art { filter: grayscale(1) contrast(1.15); }
html.pk-off .fx-on .brand__art { animation-name: pkGlitchLogo; }
html.pk-off .fx-on .brand__name { text-shadow: -2px 0 rgba(178, 34, 34, 0.8), 2px 0 rgba(255, 255, 255, 0.35); animation-name: pkGlitchText; }@media (hover: hover) {
  html.pk-off .dicon:hover .dicon__label { background: #2A2A2F; }
  html.pk-off .dicon.is-sel:hover .dicon__label { background: var(--sel); }
}

/* ---------- наліпки 18+ ---------- */
.pk-sticker { display: none; }
html.pk-off .pk-sticker,
html.pk-off .desk > .win::before,
html.pk-off .win--shop.is-wm::before,
html.pk-off .avatar::after,
html.pk-off .pusk::after {
  content: "18+";
  position: absolute;
  z-index: 6;
  display: grid;
  place-items: center;
  border: 3px solid #F1EEE6;
  background: #8E1B1B;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
  color: #F1EEE6;
  font-family: 'Press Start 2P', 'PT Sans', monospace;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  text-shadow: none;
  pointer-events: none;
}
html.pk-off .pk-sticker--logo { right: 4%; top: 2%; width: 76px; height: 76px; font-size: 17px; transform: rotate(12deg); }
html.pk-off .desk > .win::before, html.pk-off .win--shop.is-wm::before { right: 96px; top: -14px; width: 56px; height: 40px; font-size: 12px; transform: rotate(-7deg); }
html.pk-off .avatar { position: relative; }
html.pk-off .avatar::after { left: -10px; top: -8px; width: 36px; height: 24px; border-width: 2px; font-size: 8px; transform: rotate(-10deg); }
html.pk-off .pusk { position: relative; }
html.pk-off .pusk::after { right: -12px; top: -13px; width: 38px; height: 24px; border-width: 2px; font-size: 8px; transform: rotate(9deg); }

/* ---------- поки довантажуються тексти без цензури ---------- */
html.pk-wait .screen, html.pk-wait .start, html.pk-wait .tasks, html.pk-wait .balloon { visibility: hidden; }

/* ---------- глітч між режимами ---------- */
.pk-glitch { position: absolute; z-index: 90; inset: 0; overflow: hidden; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 3px); animation: pkFade 0.72s steps(1, end) both; }
.pk-glitch span {
  position: absolute;
  left: -10%;
  width: 120%;
  background: linear-gradient(90deg, transparent 0 6%, rgba(214, 56, 86, 0.6) 6% 22%, rgba(255, 255, 255, 0.55) 22% 31%, transparent 31% 48%, rgba(56, 170, 214, 0.5) 48% 63%, rgba(10, 10, 12, 0.75) 63% 78%, transparent 78% 100%);
  mix-blend-mode: difference;
  animation: pkBar 0.1s steps(1, end) infinite;
}
html.pk-glitching .screen, html.pk-glitching .taskbar { animation: pkShake 0.72s steps(1, end) both; }

@keyframes pkBar { 0% { transform: translateX(-6%); } 33% { transform: translateX(5%); } 66% { transform: translateX(-2%); } 100% { transform: translateX(3%); } }
@keyframes pkFade { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pkShake {
  0%, 100% { transform: none; filter: none; }
  10% { transform: translate(-7px, 0) skewX(5deg); filter: grayscale(1) contrast(1.4); }
  22% { transform: translate(6px, 1px); filter: grayscale(1) contrast(1.4); }
  34% { transform: translate(-3px, -1px) skewX(-3deg); filter: none; }
  48% { transform: translate(8px, 0); }
  58% { transform: translate(-4px, 1px) skewX(2deg); filter: contrast(1.25); }
  70% { transform: translate(3px, 0); filter: none; }
  84% { transform: translate(-1px, 0); }
}
@keyframes pkGlitchText {
  0%, 90%, 96%, 100% { transform: none; text-shadow: -2px 0 rgba(178, 34, 34, 0.8), 2px 0 rgba(255, 255, 255, 0.35); }
  91% { transform: translate(3px, 0); text-shadow: -6px 0 rgba(178, 34, 34, 0.95), 4px 0 rgba(255, 255, 255, 0.5); }
  93% { transform: translate(-4px, 1px); text-shadow: 4px 0 rgba(178, 34, 34, 0.95), -4px 0 rgba(255, 255, 255, 0.5); }
  95% { transform: translate(1px, 0); }
}
@keyframes pkGlitchLogo {
  0%, 86%, 92%, 100% { transform: none; filter: grayscale(1) contrast(1.15) drop-shadow(-2px 0 rgba(178, 34, 34, 0.6)) drop-shadow(2px 0 rgba(255, 255, 255, 0.25)); }
  87% { transform: translate(-5px, 0) skewX(-4deg); filter: grayscale(1) contrast(1.3) drop-shadow(-6px 0 rgba(178, 34, 34, 0.85)) drop-shadow(5px 0 rgba(255, 255, 255, 0.4)); }
  89% { transform: translate(4px, 2px); filter: grayscale(1) contrast(1.3) drop-shadow(5px 0 rgba(178, 34, 34, 0.85)) drop-shadow(-5px 0 rgba(255, 255, 255, 0.4)); }
}

/* ---------- телефон ---------- */
@media (max-width: 999px) {
  .pk-switch { gap: 5px; padding: 4px 7px 4px 5px; }
  .pk-switch .ico { width: 24px; height: 24px; }
  .pk-switch__label { max-width: 70px; font-size: 10px; }
  .pk-switch__state { font-size: 14px; }
  .pk-tray { min-width: 44px; height: 44px; justify-content: center; }
  .pk-modal { padding: 10px; }
  .pk-ff__pane { min-width: 66px; }
  .pk-ff__body { padding: 12px 12px 4px; }
  .pk-ff__btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 12px 12px; }
  .pk-ff__btns .btn { min-width: 0; padding: 0 6px; }
  html.pk-off .desk > .win::before, html.pk-off .win--shop.is-wm::before { right: 54px; top: 4px; }
  html.pk-off .pk-sticker--logo { right: auto; left: 104px; top: -6px; width: 44px; height: 44px; border-width: 2px; font-size: 10px; }
}
