/*
 * GP Digital Polska · ekran LED
 * Paint only. The existing camera owns every panel's position, size, state and motion.
 * All new paint is on .screen-hit or its descendants; the photographed facade is untouched.
 */
.screen-hit {
  --led-rgb: 179 158 166;
  --led-key: #ead9dc;
  --led-status: #d3a7af;
  --led-tint: #1b171e;
  --led-glass: #0b1117;
}

.screen-hit[data-screen="marki"] {
  --led-rgb: 134 184 218;
  --led-key: #d3eaf9;
  --led-status: #9dc9e7;
  --led-tint: #122734;
}

.screen-hit[data-screen="technologie"] {
  --led-rgb: 121 198 174;
  --led-key: #d7eee5;
  --led-status: #9fcdbb;
  --led-tint: #132821;
}

.screen-hit[data-screen="media"] {
  --led-rgb: 223 160 89;
  --led-key: #f5e5ce;
  --led-status: #e9b981;
  --led-tint: #2a1e17;
}

.screen-hit[data-screen="wspolpraca"] {
  --led-rgb: 182 148 156;
  --led-key: #f2dfe3;
  --led-status: #d7aeb7;
  --led-tint: #281c24;
}

/* Recessed glass; the frame is painted inside the exact existing mask. */
.screen-hit .screen-chassis {
  background:
    radial-gradient(ellipse at 87% 68%, rgb(var(--led-rgb) / .16), transparent 56%),
    linear-gradient(124deg, #0b1015 21%, var(--led-glass) 53%, var(--led-tint) 100%);
}

.screen-hit .screen-chassis::before {
  background:
    linear-gradient(90deg, #0a1015f5 0%, #0a1015e8 27%, #0a1116ae 49%, #0a111636 76%, #0a101535 100%),
    repeating-linear-gradient(90deg, #aad0e80a 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, #05070b4d 0 1px, transparent 1px 4px);
  box-shadow: inset 0 0 36px #05080bc9;
}

.screen-hit .screen-chassis::after {
  inset: 0;
  background:
    /* Tool marks and four recessed fixings, all inside the glass cutout. */
    radial-gradient(circle at 7px 7px, #939da5 0 1px, #222b33 1.5px 2.7px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 7px) 7px, #939da5 0 1px, #222b33 1.5px 2.7px, transparent 3.6px),
    radial-gradient(circle at 7px calc(100% - 7px), #818990 0 1px, #202830 1.5px 2.7px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), #818990 0 1px, #202830 1.5px 2.7px, transparent 3.6px),
    repeating-linear-gradient(90deg, #89969c6b 0 1px, transparent 1px 5px) right 18px top 5px / 8.5% 2px no-repeat,
    repeating-linear-gradient(90deg, #68757f76 0 1px, transparent 1px 5px) left 18px bottom 5px / 10% 2px no-repeat,
    linear-gradient(90deg, transparent, rgb(var(--led-rgb) / .58) 57%, transparent) right 8% top 10px / 37% 1px no-repeat,
    linear-gradient(90deg, transparent 0%, rgb(var(--led-rgb) / .23) 29%, rgb(var(--led-rgb) / .72) 61%, transparent 98%) right 4% bottom 10px / 70% 1px no-repeat,
    linear-gradient(160deg, #def0fb0b, transparent 23% 69%, #9db8c20b 91%, transparent);
  box-shadow:
    inset 0 1px #b4c0c18c,
    inset 1px 0 #73848c71,
    inset -1px -1px #06090bbc,
    inset 0 0 0 4px #12191dd9,
    inset 0 0 0 8px #2c373e90,
    inset 0 0 0 9px #080f146b,
    inset 0 1px 18px rgb(var(--led-rgb) / .10);
  transition: box-shadow .38s ease;
}

/* No new glow on the facade or on the existing puddle layer. */
.screen-hit:is(:hover, :focus-visible, [aria-current]) .screen-chassis::after {
  box-shadow:
    inset 0 1px #bdc9cd9f,
    inset 1px 0 #82919670,
    inset -1px -1px #06090bbc,
    inset 0 0 0 4px #12191de6,
    inset 0 0 0 8px #3a464d91,
    inset 0 0 0 9px #080f146b,
    inset 0 1px 21px rgb(var(--led-rgb) / .19);
}

/* Studio graphics are decorative and never replace the live HTML copy or links. */
.screen-hit[data-screen="start"] .screen-art {
  background:
    linear-gradient(105deg, transparent 28%, #a28e9d26 72%, transparent 73%),
    repeating-linear-gradient(90deg, #b5c5d215 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, #b5c5d218 0 1px, transparent 1px 24px),
    radial-gradient(ellipse at 74% 44%, #57424c70, transparent 69%);
  mask-image: linear-gradient(90deg, transparent 9%, #000 74%);
}

.screen-hit[data-screen="marki"] .screen-art {
  background:
    radial-gradient(ellipse at 84% 78%, rgb(var(--led-rgb) / .22), transparent 59%),
    linear-gradient(109deg, transparent 56%, #4f758922 92%);
}

.screen-hit[data-screen="technologie"] .screen-art {
  inset: 11% 3.7% 10% 48%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 260' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='1' y2='1'%3E%3Cstop stop-color='%23162c28'/%3E%3Cstop offset='1' stop-color='%23091416'/%3E%3C/linearGradient%3E%3Cpattern id='p' width='22' height='22' patternUnits='userSpaceOnUse'%3E%3Cpath d='M22 0H0V22' stroke='%2379baa5' stroke-opacity='.22'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath d='M46 15h34m-17-12v24M422 239h34m-17-12v24M60 221v25m-11-12h22m360-191h30' stroke='%238abfb2' opacity='.44'/%3E%3Crect x='47' y='37' width='318' height='177' rx='5' fill='url(%23g)' stroke='%2397ccba' stroke-width='2'/%3E%3Crect x='57' y='47' width='298' height='155' rx='1' fill='url(%23p)' stroke='%2380b6a2' stroke-opacity='.44'/%3E%3Cpath d='M29 214h354l21 8v3H11v-3z' fill='%231b302c' stroke='%239bc3b6' stroke-opacity='.75'/%3E%3Cpath d='M71 175c40-10 91-50 150-55 44-4 86 5 112-37M70 181c63-12 104-42 150-47 44-5 86 3 114-40M82 187c57-11 110-41 155-43 34-2 68 2 96-36' stroke='%2399d8bd' stroke-opacity='.66'/%3E%3Cpath d='M57 63h298m-282-8h8m6 0h8m6 0h8' stroke='%23acdbcd' stroke-opacity='.64'/%3E%3Crect x='360' y='88' width='79' height='137' rx='9' fill='url(%23g)' stroke='%23a4d5c4' stroke-width='2'/%3E%3Crect x='366' y='96' width='67' height='120' rx='5' fill='url(%23p)' stroke='%2371aa98' stroke-opacity='.57'/%3E%3Cpath d='M383 105h31M374 187c11-15 35-38 49-36M374 197c16-16 29-34 49-39' stroke='%2395ccb6' stroke-opacity='.75'/%3E%3C/svg%3E") right center / contain no-repeat,
    radial-gradient(ellipse at 71% 75%, rgb(var(--led-rgb) / .14), transparent 63%);
}

.screen-hit[data-screen="technologie"] .screen-art::before,
.screen-hit[data-screen="technologie"] .screen-art::after {
  content: none;
}

.screen-hit[data-screen="media"] .screen-art {
  inset: 13% 3.5% 13% 51%;
  clip-path: none;
  mask-image: linear-gradient(90deg, transparent, #000 27%);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 474 210' fill='none'%3E%3Cdefs%3E%3Cpattern id='g' width='28' height='28' patternUnits='userSpaceOnUse'%3E%3Cpath d='M28 0H0V28' stroke='%23cbab8e' stroke-opacity='.24'/%3E%3C/pattern%3E%3ClinearGradient id='s'%3E%3Cstop stop-color='%237f5741'/%3E%3Cstop offset='.45' stop-color='%23cb9360'/%3E%3Cstop offset='1' stop-color='%23efbd7b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M11 18H460v169H11z' fill='url(%23g)'/%3E%3Cpath d='M16 171c36-8 66-39 98-47s57 4 87-10 37-34 62-42 54 4 81-10 52-31 85-35' stroke='%23c08850' stroke-opacity='.18' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M16 171c36-8 66-39 98-47s57 4 87-10 37-34 62-42 54 4 81-10 52-31 85-35' stroke='url(%23s)' stroke-width='2.3'/%3E%3Cg fill='%23251813' stroke='%23e3b584' stroke-width='1.5'%3E%3Ccircle cx='114' cy='124' r='4.4'/%3E%3Ccircle cx='263' cy='72' r='4.4'/%3E%3Ccircle cx='344' cy='62' r='4.4'/%3E%3Ccircle cx='429' cy='27' r='4.4'/%3E%3C/g%3E%3Cpath d='M330 185v-19h12v19zm24 0v-32h12v32zm24 0v-48h12v48zm24 0v-66h12v66zm24 0v-91h12v91z' fill='%23c79160' fill-opacity='.67'/%3E%3Cpath d='M318 186h135M18 18v12m-5-6h10m423 163h13m-7-6v12' stroke='%23d1aa85' stroke-opacity='.44'/%3E%3C/svg%3E") right center / contain no-repeat,
    radial-gradient(ellipse at 83% 70%, rgb(var(--led-rgb) / .17), transparent 65%);
}

.screen-hit[data-screen="wspolpraca"] .screen-art {
  background:
    repeating-radial-gradient(ellipse at 63% 45%, #cab3c333 0 1px, transparent 1.5px 12px),
    radial-gradient(ellipse at 64% 46%, #5b374957, #1a232e2e 59%);
}

/* Identical layout and text metrics; only the panel's palette and treatment change. */
.screen-hit .screen-headline {
  color: #f2f5f6;
  text-shadow: 0 2px 13px #05080cdb;
}

.screen-hit .screen-headline em {
  color: var(--led-key);
  text-shadow: 0 0 13px rgb(var(--led-rgb) / .25), 0 2px 12px #080d12ba;
}

.screen-hit .screen-caption { color: #e0e7eb; }
.screen-hit :is(.screen-kicker, .screen-jump) { color: var(--led-key); }
.screen-hit .screen-kicker::before {
  background: var(--led-status);
  box-shadow: 0 0 7px rgb(var(--led-rgb) / .35);
}
.screen-hit:is(:hover, :focus-visible) .screen-jump { color: #f6f8fa; }

.screen-hit .screen-action {
  border-color: rgb(var(--led-rgb) / .62);
  background: linear-gradient(165deg, rgb(var(--led-rgb) / .12), #0c131acb 64%);
  box-shadow: inset 0 1px rgb(var(--led-rgb) / .22), inset 0 -7px 16px #0a111771;
}
.screen-hit .screen-action:is(:hover, :focus-visible) { border-color: var(--led-status); }

.screen-hit .screen-brands > span {
  border-color: rgb(var(--led-rgb) / .28);
  background: linear-gradient(143deg, #15252fef, #101921dc 72%);
  box-shadow: inset 0 1px rgb(var(--led-rgb) / .19);
}

@media (max-width: 720px) {
  /* Heavy graphics recede under the existing mobile copy. */
  .screen-hit:is([data-screen="technologie"], [data-screen="media"]) .screen-art { opacity: .53; }
  .screen-hit .screen-chassis::before {
    background:
      linear-gradient(90deg, #0a1015ee 0%, #0a1015df 31%, #0a1116b7 65%, #0a111659 100%),
      repeating-linear-gradient(0deg, #06101a37 0 1px, transparent 1px 5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-hit .screen-chassis::after { transition: none; }
}
