
/* =========================================================
   GRAFIKA LIBEREC — ROBOT PIXEL FACE V1
   40 × 16 contiguous square LED matrix
   ========================================================= */

.wl-pixel-robot{
  position:relative;
  display:inline-block;
  line-height:0;
}

.wl-pixel-robot__img{
  display:block;
  width:100%;
  height:auto;
  pointer-events:none;
  user-select:none;
}

/*
  Overlay position is based on the current GrafikaLiberec robot visor.
  The face matrix itself is transparent — only active pixels light up.
*/
.wl-pixel-face{
  --wl-pixel-blue:#c85a56;
  --wl-pixel-blue-soft:#e3a9a7;

  position:absolute;
  z-index:5;
  left:50%;
  top:24.5%;
  width:35.2%;
  aspect-ratio:40 / 16;
  transform:translateX(-50%);
  display:grid;
  grid-template-columns:repeat(40,minmax(0,1fr));
  grid-template-rows:repeat(16,minmax(0,1fr));
  gap:0;
  overflow:visible;
  pointer-events:none;
  filter:drop-shadow(0 0 4px rgba(200, 90, 86,.28));
}

/* Pixels touch edge-to-edge. No gap, no visible inactive grid. */
.wl-pixel-face__px{
  min-width:0;
  min-height:0;
  aspect-ratio:1;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  transition:
    background-color 70ms linear,
    box-shadow 70ms linear,
    opacity 70ms linear;
}

.wl-pixel-face__px[data-level="1"]{
  background:rgba(200, 90, 86,.28);
  box-shadow:0 0 2px rgba(200, 90, 86,.18);
}

.wl-pixel-face__px[data-level="2"]{
  background:rgba(209, 118, 115,.62);
  box-shadow:
    0 0 3px rgba(200, 90, 86,.45),
    0 0 6px rgba(200, 90, 86,.18);
}

.wl-pixel-face__px[data-level="3"]{
  background:var(--wl-pixel-blue-soft);
  box-shadow:
    0 0 3px rgba(225, 163, 161,.9),
    0 0 7px rgba(200, 90, 86,.65),
    0 0 11px rgba(200, 90, 86,.28);
}

@media(prefers-reduced-motion:reduce){
  .wl-pixel-face__px{
    transition:none;
  }
}

/* Demo only */
.wl-pixel-demo{
  min-height:100vh;
  padding:48px 24px;
  display:grid;
  place-items:center;
  box-sizing:border-box;
  background:
    radial-gradient(circle at 50% 35%,rgba(200, 90, 86,.09),transparent 38%),
    #fcf8f7;
}

.wl-pixel-demo__panel{
  width:min(760px,94vw);
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  gap:24px;
  align-items:center;
}

.wl-pixel-demo__robot{
  width:min(500px,100%);
  margin-inline:auto;
}

.wl-pixel-demo__controls{
  padding:22px;
  border:1px solid #fcf8f8;
  border-radius:20px;
  background:#fff;
  box-shadow:0 18px 46px rgba(80, 28, 26,.08);
  line-height:1.4;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.wl-pixel-demo__controls h1{
  margin:0 0 8px;
  font-size:24px;
  letter-spacing:-.04em;
  color:#250d0c;
}

.wl-pixel-demo__controls p{
  margin:0 0 18px;
  color:#a17e7d;
  font-size:13px;
}

.wl-pixel-demo__buttons{
  display:grid;
  gap:8px;
}

.wl-pixel-demo__buttons button{
  min-height:44px;
  padding:0 14px;
  border:1px solid #fcf8f8;
  border-radius:10px;
  background:#fcf8f8;
  color:#6e322f;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.wl-pixel-demo__buttons button:hover,
.wl-pixel-demo__buttons button.is-active{
  border-color:#c85a56;
  background:#fdf7f7;
  color:#ba413c;
}

.wl-pixel-demo__meta{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid #fcf8f8;
  color:#bca4a3;
  font-size:11px;
}

@media(max-width:760px){
  .wl-pixel-demo__panel{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   GRAFIKA LIBEREC — ROBOT PIXEL FACE V2
   +20% face, centered higher, crisp pixels + controlled glow
   ========================================================= */

/* Whole face block: 20% larger and vertically centered in the visor. */
.wl-pixel-face{
  top:21.4%!important;
  width:42.24%!important; /* 35.2% × 1.20 */
  left:50%!important;
  transform:translateX(-50%)!important;

  /* Do NOT blur the complete matrix. */
  filter:none!important;
}

/* Pixels stay hard-edged. Glow lives outside the square only. */
.wl-pixel-face__px{
  border-radius:0!important;
  opacity:1!important;
  transition:
    background-color 55ms steps(1,end),
    box-shadow 55ms steps(1,end)!important;
}

/* Low level: very subtle, still crisp. */
.wl-pixel-face__px[data-level="1"]{
  background:#7e2c29!important;
  box-shadow:
    0 0 0 1px rgba(200, 90, 86,.10),
    0 0 3px rgba(200, 90, 86,.16)!important;
}

/* Medium level. */
.wl-pixel-face__px[data-level="2"]{
  background:#c6534f!important;
  box-shadow:
    0 0 0 1px rgba(218, 143, 140,.20),
    0 0 4px rgba(200, 90, 86,.28)!important;
}

/* Full LED: solid square core, glow only around it. */
.wl-pixel-face__px[data-level="3"]{
  background:#e1a4a2!important;
  box-shadow:
    0 0 0 1px #d5827f,
    0 0 4px rgba(225, 164, 162,.55),
    0 0 8px rgba(200, 90, 86,.22)!important;
}

/* No smoothing effect during state changes. */
@media(prefers-reduced-motion:no-preference){
  .wl-pixel-face__px{
    will-change:background-color,box-shadow;
  }
}


/* =========================================================
   GRAFIKA LIBEREC — ROBOT PIXEL FACE V3
   Move complete face group visibly higher in visor
   ========================================================= */

.wl-pixel-face{
  top:18.2%!important;
}


/* =========================================================
   GRAFIKA LIBEREC — ROBOT PIXEL FACE V4
   Stronger glow while keeping pixel cores perfectly sharp
   ========================================================= */

/* No blur on the matrix itself. */
.wl-pixel-face{
  filter:none!important;
}

/* Keep the actual LED square hard-edged. */
.wl-pixel-face__px[data-level="1"]{
  background:#832e2b!important;
  box-shadow:
    0 0 0 1px rgba(200, 91, 87,.16),
    0 0 4px rgba(200, 90, 86,.24),
    0 0 9px rgba(200, 90, 86,.12)!important;
}

.wl-pixel-face__px[data-level="2"]{
  background:#cb615e!important;
  box-shadow:
    0 0 0 1px rgba(230, 179, 177,.32),
    0 0 5px rgba(216, 138, 136,.62),
    0 0 11px rgba(200, 90, 86,.34),
    0 0 18px rgba(200, 90, 86,.16)!important;
}

.wl-pixel-face__px[data-level="3"]{
  background:#e8b9b8!important;
  box-shadow:
    0 0 0 1px #db9390,
    0 0 3px rgba(248, 233, 233,.95),
    0 0 7px rgba(225, 164, 162,.88),
    0 0 14px rgba(200, 90, 86,.54),
    0 0 24px rgba(200, 90, 86,.24)!important;
}


/* =========================================================
   GRAFIKA LIBEREC — ROBOT PIXEL FACE V5
   Personality engine / boot / shutdown / scan / error red
   ========================================================= */

.wl-pixel-face{
  --wl-led-1:#832e2b;
  --wl-led-2:#cb615e;
  --wl-led-3:#e8b9b8;
  --wl-led-edge:#db9390;
  --wl-glow-rgb:200,90,86;
}

/* Red diagnostic mode. The LED core stays sharp. */
.wl-pixel-face[data-color="red"]{
  --wl-led-1:#721e28;
  --wl-led-2:#d52b39;
  --wl-led-3:#ff5360;
  --wl-led-edge:#ff3344;
  --wl-glow-rgb:255,48,64;
}

.wl-pixel-face[data-color="amber"]{
  --wl-led-1:#705014;
  --wl-led-2:#e4a51d;
  --wl-led-3:#ffd15a;
  --wl-led-edge:#ffc43d;
  --wl-glow-rgb:255,184,48;
}

.wl-pixel-face__px[data-level="1"]{
  background:var(--wl-led-1)!important;
  box-shadow:
    0 0 0 1px rgba(var(--wl-glow-rgb),.16),
    0 0 4px rgba(var(--wl-glow-rgb),.24),
    0 0 9px rgba(var(--wl-glow-rgb),.12)!important;
}

.wl-pixel-face__px[data-level="2"]{
  background:var(--wl-led-2)!important;
  box-shadow:
    0 0 0 1px rgba(var(--wl-glow-rgb),.32),
    0 0 5px rgba(var(--wl-glow-rgb),.62),
    0 0 11px rgba(var(--wl-glow-rgb),.34),
    0 0 18px rgba(var(--wl-glow-rgb),.16)!important;
}

.wl-pixel-face__px[data-level="3"]{
  background:var(--wl-led-3)!important;
  box-shadow:
    0 0 0 1px var(--wl-led-edge),
    0 0 3px rgba(253, 247, 247,.92),
    0 0 7px rgba(var(--wl-glow-rgb),.88),
    0 0 14px rgba(var(--wl-glow-rgb),.54),
    0 0 24px rgba(var(--wl-glow-rgb),.24)!important;
}

/* Diagnostic flicker affects brightness only, never geometry/blur. */
.wl-pixel-face.is-diagnostic{
  animation:wlPixelDiagnostic 110ms steps(2,end) 3;
}
@keyframes wlPixelDiagnostic{
  0%,100%{opacity:1}
  50%{opacity:.62}
}

.wl-pixel-face.is-booting{
  animation:wlPixelBootPulse 650ms ease-out 1;
}
@keyframes wlPixelBootPulse{
  0%{opacity:.15}
  55%{opacity:1}
  72%{opacity:.52}
  100%{opacity:1}
}

.wl-pixel-face.is-shutting-down{
  animation:wlPixelShutdown 420ms steps(4,end) 1 forwards;
}
@keyframes wlPixelShutdown{
  0%{opacity:1}
  100%{opacity:0}
}

/* Slight display-wide emission, still no blur on LED geometry. */
.wl-pixel-face::after{
  content:"";
  position:absolute;
  inset:-4%;
  z-index:-1;
  pointer-events:none;
  opacity:0;
  background:radial-gradient(ellipse at center,rgba(var(--wl-glow-rgb),.14),transparent 66%);
  transition:opacity .18s ease;
}
.wl-pixel-face[data-state]:not([data-state="off"])::after{
  opacity:1;
}

/* Demo V5 */
.wl-pixel-demo__controls{
  width:min(310px,100%);
}
.wl-pixel-demo__buttons{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.wl-pixel-demo__buttons button[data-action="boot"],
.wl-pixel-demo__buttons button[data-action="shutdown"]{
  grid-column:span 1;
}
.wl-pixel-demo__buttons button[data-state="error"]{
  color:#c82d3b;
}
.wl-pixel-demo__buttons button[data-state="error"]:hover,
.wl-pixel-demo__buttons button[data-state="error"].is-active{
  border-color:#e33b49;
  background:#fff1f3;
  color:#c52231;
}
.wl-pixel-demo__status{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
  padding:11px 12px;
  border-radius:10px;
  background:#fdf7f7;
  color:#a58583;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
}
.wl-pixel-demo__status strong{
  color:#c44f4b;
}


/* =========================================================
   GRAFIKA LIBEREC — ROBOT PIXEL FACE V6
   20px higher / logo blue / crisp LED core + saturated glow
   ========================================================= */

/* Move the complete face content 20px higher without changing its scale. */
.wl-pixel-face{
  transform:translate(-50%,-20px)!important;

  /* Grafika Liberec logo blue */
  --wl-led-1:#802c29!important;
  --wl-led-2:#b8403c!important;
  --wl-led-3:#c85a56!important;
  --wl-led-edge:#df9d9b!important;
  --wl-glow-rgb:200,90,86!important;

  /* Never blur the matrix itself. */
  filter:none!important;
}

/* Hard square pixel cores. No rounded/soft rendering. */
.wl-pixel-face__px{
  border-radius:0!important;
  filter:none!important;
  opacity:1!important;
  image-rendering:pixelated;
  transition:
    background-color 40ms steps(1,end),
    box-shadow 40ms steps(1,end)!important;
}

/* Dim LED */
.wl-pixel-face__px[data-level="1"]{
  background:#802c29!important;
  box-shadow:
    0 0 0 1px rgba(200, 90, 86,.18),
    0 0 3px rgba(200, 90, 86,.22),
    0 0 7px rgba(200, 90, 86,.10)!important;
}

/* Medium LED */
.wl-pixel-face__px[data-level="2"]{
  background:#b8403c!important;
  box-shadow:
    0 0 0 1px rgba(223, 157, 155,.48),
    0 0 3px rgba(200, 90, 86,.65),
    0 0 8px rgba(200, 90, 86,.36),
    0 0 14px rgba(200, 90, 86,.18)!important;
}

/* Full LED:
   saturated GrafikaLiberec blue square + light aura around it.
   The core itself stays completely sharp. */
.wl-pixel-face__px[data-level="3"]{
  background:#c85a56!important;
  box-shadow:
    0 0 0 1px #df9d9b,
    0 0 2px rgba(235, 195, 193,.95),
    0 0 5px rgba(200, 90, 86,.90),
    0 0 10px rgba(200, 90, 86,.58),
    0 0 18px rgba(200, 90, 86,.28)!important;
}

/* Red diagnostic stays equally saturated/sharp. */
.wl-pixel-face[data-color="red"]{
  --wl-led-1:#7d101d!important;
  --wl-led-2:#d9192d!important;
  --wl-led-3:#ff2438!important;
  --wl-led-edge:#ff6573!important;
  --wl-glow-rgb:255,36,56!important;
}

/* Amber warning stays equally saturated/sharp. */
.wl-pixel-face[data-color="amber"]{
  --wl-led-1:#7a4a00!important;
  --wl-led-2:#e99800!important;
  --wl-led-3:#ffb400!important;
  --wl-led-edge:#ffd05b!important;
  --wl-glow-rgb:255,180,0!important;
}


/* =========================================================
   GRAFIKA LIBEREC — ROBOT PIXEL FACE V7
   40 × 20 matrix / true per-color LEDs / glow for every mode
   ========================================================= */

/* Taller matrix: +4 rows, same square-pixel geometry. */
.wl-pixel-face{
  aspect-ratio:40 / 20!important;
  grid-template-columns:repeat(40,minmax(0,1fr))!important;
  grid-template-rows:repeat(20,minmax(0,1fr))!important;

  /* Keep the approved V6 placement. */
  top:18.2%!important;
  width:42.24%!important;
  left:50%!important;
  transform:translate(-50%,-20px)!important;

  /* Default Grafika Liberec blue. */
  --wl-led-1:#802c29;
  --wl-led-2:#b8403c;
  --wl-led-3:#c85a56;
  --wl-led-edge:#df9d9b;
  --wl-led-hot:#f3dbda;
  --wl-glow-rgb:200,90,86;

  filter:none!important;
}

/* ERROR = saturated red. */
.wl-pixel-face[data-color="red"]{
  --wl-led-1:#7d101d;
  --wl-led-2:#d9192d;
  --wl-led-3:#ff2438;
  --wl-led-edge:#ff6573;
  --wl-led-hot:#ffadb5;
  --wl-glow-rgb:255,36,56;
}

/* WARNING = saturated amber/orange. */
.wl-pixel-face[data-color="amber"]{
  --wl-led-1:#7a4a00;
  --wl-led-2:#e99800;
  --wl-led-3:#ffb400;
  --wl-led-edge:#ffd05b;
  --wl-led-hot:#ffe6a2;
  --wl-glow-rgb:255,180,0;
}

/* Hard square cores; NEVER blur the pixels themselves. */
.wl-pixel-face__px{
  border-radius:0!important;
  filter:none!important;
  opacity:1!important;
  transition:
    background-color 40ms steps(1,end),
    box-shadow 40ms steps(1,end)!important;
}

/* Every color mode uses its own LED palette + glow. */
.wl-pixel-face__px[data-level="1"]{
  background:var(--wl-led-1)!important;
  box-shadow:
    0 0 0 1px rgba(var(--wl-glow-rgb),.16),
    0 0 3px rgba(var(--wl-glow-rgb),.24),
    0 0 7px rgba(var(--wl-glow-rgb),.12)!important;
}

.wl-pixel-face__px[data-level="2"]{
  background:var(--wl-led-2)!important;
  box-shadow:
    0 0 0 1px rgba(var(--wl-glow-rgb),.42),
    0 0 3px rgba(var(--wl-glow-rgb),.68),
    0 0 8px rgba(var(--wl-glow-rgb),.40),
    0 0 14px rgba(var(--wl-glow-rgb),.20)!important;
}

.wl-pixel-face__px[data-level="3"]{
  background:var(--wl-led-3)!important;
  box-shadow:
    0 0 0 1px var(--wl-led-edge),
    0 0 2px var(--wl-led-hot),
    0 0 5px rgba(var(--wl-glow-rgb),.92),
    0 0 10px rgba(var(--wl-glow-rgb),.62),
    0 0 18px rgba(var(--wl-glow-rgb),.32)!important;
}

/* Display-wide emission follows the active color too. */
.wl-pixel-face::after{
  background:
    radial-gradient(
      ellipse at center,
      rgba(var(--wl-glow-rgb),.18),
      rgba(var(--wl-glow-rgb),.07) 38%,
      transparent 70%
    )!important;
}


/* =========================================================
   GRAFIKA LIBEREC — ROBOT RIG V1
   Reusable SVG rig: head + torso + arms
   ========================================================= */

.wl-robot{
  position:relative;
  width:100%;
  max-width:100%;
  aspect-ratio:928 / 1152;
  overflow:visible;
  isolation:isolate;
}

.wl-robot__svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  overflow:visible;
}

.wl-robot__svg svg{
  width:100%;
  height:100%;
  display:block;
  overflow:visible;
}

.wl-robot__face{
  position:absolute!important;
  z-index:8!important;
  left:50%!important;
  top:18.2%!important;
  width:42.24%!important;
  aspect-ratio:40 / 20!important;
  transform:translate(-50%,-20px)!important;
}

/* ---------------------------------------------------------
   SVG rig pivots
   transform-box: fill-box makes percentages relative to part
   --------------------------------------------------------- */

.wl-robot__svg #Head,
.wl-robot__svg #Chest,
.wl-robot__svg #Left_hand,
.wl-robot__svg #Right_hand,
.wl-robot__svg #Shoulder,
.wl-robot__svg #Shoulder1,
.wl-robot__svg #Arm,
.wl-robot__svg #Arm1,
.wl-robot__svg #Hand,
.wl-robot__svg #Hand1{
  transform-box:fill-box;
  will-change:transform;
}

.wl-robot__svg #Head{
  transform-origin:50% 88%;
  transition:transform .46s cubic-bezier(.22,.8,.26,1);
}

.wl-robot__svg #Chest{
  transform-origin:50% 52%;
  transition:transform .46s cubic-bezier(.22,.8,.26,1);
}

.wl-robot__svg #Left_hand,
.wl-robot__svg #Right_hand{
  transform-origin:50% 8%;
  transition:transform .56s cubic-bezier(.22,.8,.26,1);
}

/* Fine tuning ready for next rig stage */
.wl-robot__svg #Shoulder,
.wl-robot__svg #Shoulder1{
  transform-origin:50% 50%;
}
.wl-robot__svg #Arm,
.wl-robot__svg #Arm1{
  transform-origin:50% 8%;
}
.wl-robot__svg #Hand,
.wl-robot__svg #Hand1{
  transform-origin:50% 12%;
}

/* ---------------------------------------------------------
   IDLE
   --------------------------------------------------------- */

.wl-robot[data-body-state="idle"] .wl-robot__svg #Chest{
  animation:wlRobotChestIdle 4.8s ease-in-out infinite;
}

.wl-robot[data-body-state="idle"] .wl-robot__svg #Head{
  animation:wlRobotHeadIdle 6.4s ease-in-out infinite;
}

.wl-robot[data-body-state="idle"] .wl-robot__svg #Left_hand{
  animation:wlRobotArmIdleL 5.4s ease-in-out infinite;
}

.wl-robot[data-body-state="idle"] .wl-robot__svg #Right_hand{
  animation:wlRobotArmIdleR 5.4s ease-in-out infinite;
}

@keyframes wlRobotChestIdle{
  0%,100%{transform:translateY(0) scale(1)}
  48%{transform:translateY(-2px) scale(1.004,1.006)}
  66%{transform:translateY(-1px) scale(1.002,1.003)}
}

@keyframes wlRobotHeadIdle{
  0%,100%{transform:rotate(0deg) translateY(0)}
  35%{transform:rotate(-.7deg) translateY(-1px)}
  70%{transform:rotate(.6deg) translateY(0)}
}

@keyframes wlRobotArmIdleL{
  0%,100%{transform:rotate(0deg)}
  50%{transform:rotate(-.7deg)}
}

@keyframes wlRobotArmIdleR{
  0%,100%{transform:rotate(0deg)}
  50%{transform:rotate(.7deg)}
}

/* ---------------------------------------------------------
   THINK
   --------------------------------------------------------- */

.wl-robot[data-body-state="thinking"] .wl-robot__svg #Head{
  transform:rotate(-6deg) translate(-2px,-2px);
}

.wl-robot[data-body-state="thinking"] .wl-robot__svg #Chest{
  transform:rotate(-1deg) translateY(-1px);
}

.wl-robot[data-body-state="thinking"] .wl-robot__svg #Left_hand{
  transform:rotate(-7deg) translateY(-2px);
}

.wl-robot[data-body-state="thinking"] .wl-robot__svg #Right_hand{
  transform:rotate(3deg);
}

/* ---------------------------------------------------------
   SUCCESS
   --------------------------------------------------------- */

.wl-robot[data-body-state="success"] .wl-robot__svg #Head{
  transform:rotate(1.5deg) translateY(-5px);
}

.wl-robot[data-body-state="success"] .wl-robot__svg #Chest{
  transform:translateY(-4px) scale(1.008);
}

.wl-robot[data-body-state="success"] .wl-robot__svg #Left_hand{
  transform:rotate(-8deg) translate(-2px,-3px);
}

.wl-robot[data-body-state="success"] .wl-robot__svg #Right_hand{
  transform:rotate(8deg) translate(2px,-3px);
}

/* ---------------------------------------------------------
   ERROR
   --------------------------------------------------------- */

.wl-robot[data-body-state="error"] .wl-robot__svg #Head{
  animation:wlRobotErrorHead 90ms steps(2,end) 5;
}

.wl-robot[data-body-state="error"] .wl-robot__svg #Chest{
  animation:wlRobotErrorChest 110ms steps(2,end) 4;
}

.wl-robot[data-body-state="error"] .wl-robot__svg #Left_hand{
  animation:wlRobotErrorArmL 120ms steps(2,end) 4;
}

.wl-robot[data-body-state="error"] .wl-robot__svg #Right_hand{
  animation:wlRobotErrorArmR 120ms steps(2,end) 4;
}

@keyframes wlRobotErrorHead{
  0%,100%{transform:translate(0,0) rotate(0)}
  50%{transform:translate(2px,-1px) rotate(1deg)}
}

@keyframes wlRobotErrorChest{
  0%,100%{transform:translateX(0)}
  50%{transform:translateX(-2px)}
}

@keyframes wlRobotErrorArmL{
  0%,100%{transform:rotate(0)}
  50%{transform:rotate(2deg)}
}

@keyframes wlRobotErrorArmR{
  0%,100%{transform:rotate(0)}
  50%{transform:rotate(-2deg)}
}

/* ---------------------------------------------------------
   OFF / BOOT
   --------------------------------------------------------- */

.wl-robot[data-body-state="off"] .wl-robot__svg #Head{
  transform:translateY(4px) rotate(2deg);
}

.wl-robot[data-body-state="off"] .wl-robot__svg #Left_hand{
  transform:rotate(2deg);
}

.wl-robot[data-body-state="off"] .wl-robot__svg #Right_hand{
  transform:rotate(-2deg);
}

.wl-robot.is-booting .wl-robot__svg #Head{
  animation:wlRobotBootHead .8s cubic-bezier(.2,.8,.2,1) 1;
}

.wl-robot.is-booting .wl-robot__svg #Chest{
  animation:wlRobotBootChest .8s cubic-bezier(.2,.8,.2,1) 1;
}

@keyframes wlRobotBootHead{
  0%{transform:translateY(8px) rotate(3deg)}
  60%{transform:translateY(-2px) rotate(-1deg)}
  100%{transform:translateY(0) rotate(0)}
}

@keyframes wlRobotBootChest{
  0%{transform:scale(.995) translateY(3px)}
  65%{transform:scale(1.006) translateY(-2px)}
  100%{transform:scale(1) translateY(0)}
}

@media(prefers-reduced-motion:reduce){
  .wl-robot__svg #Head,
  .wl-robot__svg #Chest,
  .wl-robot__svg #Left_hand,
  .wl-robot__svg #Right_hand{
    animation:none!important;
    transition:none!important;
  }
}

/* Demo */
.wl-rig-demo{
  min-height:100vh;
  padding:46px 24px;
  box-sizing:border-box;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 40% 35%,rgba(200, 90, 86,.08),transparent 38%),
    #fcf8f7;
}

.wl-rig-demo__layout{
  width:min(1040px,96vw);
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:34px;
  align-items:center;
}

.wl-rig-demo__robot{
  width:min(560px,100%);
  margin-inline:auto;
}

.wl-rig-demo__controls{
  padding:22px;
  border:1px solid #fcf8f8;
  border-radius:20px;
  background:#fff;
  box-shadow:0 18px 50px rgba(80, 28, 26,.08);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.wl-rig-demo__controls h1{
  margin:0 0 8px;
  color:#250d0c;
  font-size:26px;
  letter-spacing:-.04em;
}

.wl-rig-demo__controls p{
  margin:0 0 18px;
  color:#a18281;
  font-size:13px;
  line-height:1.55;
}

.wl-rig-demo__buttons{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.wl-rig-demo__buttons button{
  min-height:44px;
  padding:0 12px;
  border:1px solid #fcf8f8;
  border-radius:10px;
  background:#fcf8f8;
  color:#6e322f;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.wl-rig-demo__buttons button:hover{
  border-color:#c85a56;
  color:#ba413c;
  background:#fdf7f7;
}

.wl-rig-demo__meta{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid #fcf8f8;
  color:#b99f9e;
  font-size:11px;
  line-height:1.5;
}

@media(max-width:820px){
  .wl-rig-demo__layout{
    grid-template-columns:1fr;
  }
}


/* V2: body motion is driven directly by Web Animations API in robot-rig.js.
   This avoids browser/SVG selector inconsistencies and makes the same rig portable. */
.wl-robot__svg #Head,
.wl-robot__svg #Chest,
.wl-robot__svg #Left_hand,
.wl-robot__svg #Right_hand{
  transform-box:fill-box!important;
}


/* =========================================================
   ROBOT RIG V3 — articulated elbows / wrists / knees / ankles
   ========================================================= */

.wl-robot__svg #Arm,
.wl-robot__svg #Arm1,
.wl-robot__svg #Hand,
.wl-robot__svg #Hand1,
.wl-robot__svg #Left_leg,
.wl-robot__svg #Right_leg,
.wl-robot__svg #Lytko,
.wl-robot__svg #Lytko1,
.wl-robot__svg #Fooot,
.wl-robot__svg #Fooot1{
  transform-box:fill-box!important;
  will-change:transform;
}


/* =========================================================
   ROBOT RIG V4 — face parented to head + real joint chains
   ========================================================= */

/* The pixel display now lives inside a dedicated head anchor.
   The anchor mirrors every head transform, so face + helmet move as one unit. */
.wl-robot__face-anchor{
  position:absolute;
  z-index:8;
  left:50%;
  top:18.2%;
  width:42.24%;
  aspect-ratio:40 / 20;
  transform:translate(-50%,-20px);
  transform-origin:50% 88%;
  pointer-events:none;
  will-change:transform;
}

/* Override the standalone face positioning only inside the rig. */
.wl-robot__face-anchor > .wl-robot__face{
  position:absolute!important;
  inset:0!important;
  left:0!important;
  top:0!important;
  width:100%!important;
  height:100%!important;
  transform:none!important;
}

/* Dynamically generated articulation wrappers. */
.wl-robot__svg #WL_LeftElbowRig,
.wl-robot__svg #WL_RightElbowRig,
.wl-robot__svg #WL_LeftKneeRig,
.wl-robot__svg #WL_RightKneeRig{
  transform-box:fill-box!important;
  will-change:transform;
}


/* =========================================================
   ROBOT RIG V6 — exact joint-center pivots
   ========================================================= */
.wl-robot__svg #WL_LeftShoulderRig,
.wl-robot__svg #WL_RightShoulderRig,
.wl-robot__svg #WL_LeftElbowRig,
.wl-robot__svg #WL_RightElbowRig,
.wl-robot__svg #WL_LeftWristRig,
.wl-robot__svg #WL_RightWristRig,
.wl-robot__svg #WL_LeftHipRig,
.wl-robot__svg #WL_RightHipRig,
.wl-robot__svg #WL_LeftKneeRig,
.wl-robot__svg #WL_RightKneeRig,
.wl-robot__svg #WL_LeftAnkleRig,
.wl-robot__svg #WL_RightAnkleRig{
  transform-box:view-box!important;
  will-change:transform;
}

/* A single display in the SVG head, shared by heroes and small robots. */
.wl-robot__face-mount{
  overflow:visible;
  pointer-events:none;
}
.wl-robot .wl-robot__svg #Head .wl-robot__face-mount > .wl-robot__face{
  display:block!important;
  position:static!important;
  transform:none!important;
  filter:drop-shadow(0 0 5px rgba(var(--wl-glow-rgb),.72))!important;
}
.wl-robot .wl-pixel-face--svg rect.wl-pixel-face__px{
  width:9.8px!important;
  height:9.8px!important;
}
.wl-pixel-face--svg .wl-pixel-face__px{
  fill:none;
  stroke:none;
  box-shadow:none!important;
}
.wl-pixel-face--svg .wl-pixel-face__px[data-level="1"]{fill:var(--wl-led-1);}
.wl-pixel-face--svg .wl-pixel-face__px[data-level="2"]{fill:var(--wl-led-2);}
.wl-pixel-face--svg .wl-pixel-face__px[data-level="3"]{
  fill:var(--wl-led-3);
  stroke:var(--wl-led-edge);
  stroke-width:.7;
}


/* =========================================================
   GRAFIKA LIBEREC — ROBOT FX V2
   Dense hero dust / silhouette condensation / premium spawn
   ========================================================= */

.wl-robot{
  isolation:isolate;
}

.wl-robot__fx{
  position:absolute;
  inset:-18%;
  width:136%;
  height:136%;
  pointer-events:none;
  overflow:visible;
}

.wl-robot__fx--back{
  z-index:0;
  opacity:.94;
}

.wl-robot__svg{
  z-index:2;
}

.wl-robot__face-anchor,
.wl-pixel-face{
  z-index:5;
}

.wl-robot__fx--front{
  z-index:7;
  opacity:1;
}

/* During materialization the cloud is intentionally much denser. */
.wl-robot[data-fx-state="condense"] .wl-robot__fx,
.wl-robot[data-fx-state="materialize"] .wl-robot__fx,
.wl-robot[data-fx-state="dissolve"] .wl-robot__fx{
  opacity:1;
}

/* Soft aura behind the particle shell; the particles themselves stay sharp. */
.wl-robot::before{
  content:"";
  position:absolute;
  z-index:-1;
  left:50%;
  top:52%;
  width:78%;
  height:78%;
  transform:translate(-50%,-50%) scale(.9);
  border-radius:50%;
  pointer-events:none;
  opacity:0;
  background:
    radial-gradient(circle at 50% 48%,
      rgba(234, 191, 189,.16) 0,
      rgba(206, 106, 102,.10) 34%,
      rgba(200, 90, 86,.03) 58%,
      transparent 76%);
  transition:opacity .35s ease,transform .65s cubic-bezier(.2,.8,.2,1);
}

.wl-robot[data-fx-state="condense"]::before,
.wl-robot[data-fx-state="materialize"]::before{
  opacity:1;
  transform:translate(-50%,-50%) scale(1.02);
}

.wl-robot__svg .wl-fx-part{
  will-change:opacity,filter;
}

@media(prefers-reduced-motion:reduce){
  .wl-robot__fx{display:none!important}
  .wl-robot::before{display:none!important}
}


/* V3 — stronger persistent hero-style molecular dust at the lower body. */
.wl-robot__fx--back{opacity:1!important}
.wl-robot__fx--front{opacity:1!important}

.wl-robot__face-anchor{
  opacity:0;
}


/* =========================================================
   GRAFIKA LIBEREC — ROBOT CONTROLLER V1 / HERO INTEGRATION
   ========================================================= */

/* The existing hero layout still controls the robot's size/position. */
.wl-hero .wl-robot-slot.wl-robot{
  display:block!important;
  overflow:visible!important;
  border-radius:0!important;
  background:none!important;
  isolation:isolate;
}

/* Stop the old whole-image breathe transform from fighting IK.
   Internal rig breathing remains active. */
.wl-hero .wl-robot-slot.wl-robot{
  animation:none!important;
}

/* A small full-body lean is used only when a responsive holo card lies
   outside the arm's physical reach. All joints stay attached. */
.wl-hero .wl-robot-slot.wl-robot{
  --wl-ik-shift-x:0px;
  --wl-ik-shift-y:0px;
  transform:translate3d(var(--wl-ik-shift-x),var(--wl-ik-shift-y),0)!important;
  transition:transform .28s cubic-bezier(.18,.82,.24,1)!important;
}

.wl-hero .wl-robot-slot.wl-robot.is-ik-shifted{
  transform:translate3d(var(--wl-ik-shift-x),var(--wl-ik-shift-y),0)!important;
}

/* Keep the new inline SVG filling the same hero slot as the old robot image. */
.wl-hero .wl-robot__svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.wl-hero .wl-robot__svg svg{
  width:100%;
  height:100%;
  overflow:visible;
}

/* Hovered holo gets a subtle reaction while the robot is physically touching it. */
.wl-hero .wl-holo.is-robot-target{
  box-shadow:
    inset 0 0 30px rgba(215, 135, 132,.28),
    0 16px 38px rgba(50, 17, 16,.22),
    0 0 44px rgba(200, 90, 86,.42)!important;
}

/* The pixel display must not inherit any of the legacy HTML-face rules. */
.wl-hero .wl-pixel-face{
  overflow:visible!important;
}

/* Hand touching should remain visible even when the card sits over the arm. */
.wl-hero .wl-robot__svg{
  z-index:4;
}
.wl-hero .wl-robot__face-anchor{
  z-index:7;
}
.wl-hero .wl-holo{
  z-index:8;
}

@media(max-width:760px){
  /* Allow slightly more reach assistance on tight layouts without deforming joints. */
  .wl-hero .wl-robot-slot.wl-robot{
    transition-duration:.22s!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .wl-hero .wl-robot-slot.wl-robot{
    transition:none!important;
  }
}


/* =========================================================
   HERO INTEGRATION V2 — POSITION / FACE / HOLO DUST FIX
   ========================================================= */

/* robot-rig.css defines .wl-robot as relative for standalone usage.
   In the homepage hero it MUST stay absolutely positioned in the stage. */
.wl-hero .wl-robot-slot.wl-robot{
  position:absolute!important;
}

/* Move the whole pixel display ~30% of its own height lower in the visor.
   robot-rig.js uses the same +16px base so head movement cannot snap it back. */
.wl-hero .wl-robot__face-anchor{
  transform:translate(-50%,16px)!important;
}

/* The molecular canvas must cover the whole holo field, not only the robot box.
   Its orbit is still mathematically anchored to the robot in robot-fx.js. */
.wl-hero .wl-robot__fx{
  inset:-38% -105% -30% -105%!important;
  width:auto!important;
  height:auto!important;
  max-width:none!important;
  max-height:none!important;
  overflow:visible!important;
}

/* Make the hover target visually agree with the dust attraction. */
.wl-hero .wl-holo.is-robot-target,
.wl-hero .wl-holo.is-particle-target{
  box-shadow:
    inset 0 0 30px rgba(215, 135, 132,.30),
    0 16px 38px rgba(50, 17, 16,.22),
    0 0 48px rgba(200, 90, 86,.46)!important;
}

@media(max-width:760px){
  .wl-hero .wl-robot__fx{
    inset:-34% -80% -26% -80%!important;
  }
}


/* =========================================================
   HERO INTEGRATION V3 — NO FLASH / STAGE DUST / SAFE ARMS
   ========================================================= */

/* Never show the physical robot for even one frame before JS has hidden
   all SVG groups for the materialization sequence. */
.wl-hero .wl-robot[data-wl-robot-controller]:not(.is-fx-prepared) .wl-robot__svg{
  opacity:0!important;
}

.wl-hero .wl-robot[data-wl-robot-controller].is-fx-prepared .wl-robot__svg{
  opacity:1;
}

/* Hero FX canvases are once again full-stage layers, matching the original slider. */
.wl-hero__stage > .wl-robot__fx{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  display:block!important;
  pointer-events:none!important;
  overflow:visible!important;
}

.wl-hero__stage > .wl-robot__fx--back{
  z-index:2!important;
  opacity:.82!important;
}

.wl-hero__stage > .wl-robot__fx--front{
  z-index:6!important;
  opacity:1!important;
}

.wl-hero .wl-robot-slot.wl-robot{
  z-index:4!important;
}

/* V2 oversized robot-local canvas rules are obsolete in the hero. */
.wl-hero .wl-robot > .wl-robot__fx{
  display:none!important;
}


/* V6 — restore correct section stacking; no robot/pixel layer over proof */
.wl-hero{
  z-index:auto!important;
  overflow:hidden!important;
}
.wl-proof{
  z-index:15!important;
}
.wl-hero__stage > .wl-robot__fx{
  inset:0!important;
  width:100%!important;
  height:100%!important;
  pointer-events:none!important;
}
.wl-hero .wl-robot,
.wl-hero .wl-robot *,
.wl-hero__stage > .wl-robot__fx{
  pointer-events:none!important;
}
.wl-hero .wl-holo{
  cursor:pointer!important;
  pointer-events:auto!important;
  touch-action:manipulation;
}
.wl-hero .wl-holo:hover,
.wl-hero .wl-holo.is-hot,
.wl-hero .wl-holo.is-robot-target{
  transform:none!important;
}


/* =========================================================
   FX V8 — BOOT DUST OVERSCAN + PERFORMANCE
   ========================================================= */

/*
  The stage canvas itself used to end exactly at the visible particle cloud,
  producing hard top/bottom cuts during BOOT. Give it internal overscan.
  .wl-hero remains overflow:hidden, so nothing leaks into the next section.
*/
.wl-hero__stage > .wl-robot__fx{
  top:-72px!important;
  right:-54px!important;
  bottom:-48px!important;
  left:-54px!important;
  width:auto!important;
  height:auto!important;
  max-width:none!important;
  max-height:none!important;
}

/* Keep hardware compositing stable while the two canvases animate. */
.wl-hero__stage > .wl-robot__fx{
  transform:translateZ(0);
  will-change:contents;
}


/* =========================================================
   FX V9 — FULL HERO CANVAS / NO RECTANGULAR CROP
   ========================================================= */

/*
  FX is now a direct child of .wl-hero, not .wl-hero__stage.
  That means the canvas spans the entire hero and cannot be visibly cropped
  by the narrower robot stage.
*/
.wl-hero > .wl-robot__fx{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  display:block!important;
  pointer-events:none!important;
  overflow:visible!important;
  transform:translateZ(0);
}

/* Back dust behind content/robot, front dust over robot but below holo cards/nav. */
.wl-hero > .wl-robot__fx--back{
  z-index:2!important;
  opacity:.82!important;
}

.wl-hero > .wl-robot__fx--front{
  z-index:6!important;
  opacity:1!important;
}

/* Old stage FX rules must not apply anymore. */
.wl-hero__stage > .wl-robot__fx{
  display:none!important;
}

/* Keep the hero as the final clip boundary: particles can fill the whole hero,
   but never cover header or proof section. */
.wl-hero{
  overflow:hidden!important;
}


.wl-robot--embedded{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  aspect-ratio:auto!important;
  margin:0!important;
  pointer-events:none!important;
  overflow:visible!important;
  isolation:isolate;
}
.wl-robot--embedded .wl-robot__svg{position:absolute;inset:0;width:100%;height:100%}
.wl-robot--embedded .wl-robot__svg svg{display:block;width:100%;height:100%;overflow:visible}
.wl-robot--embedded:not(.is-fx-prepared) .wl-robot__svg{opacity:0!important}

.wl-robot-placement--cta{
  position:absolute;
  right:-30px;
  bottom:-225px;
  width:500px;
  height:590px;
  z-index:2;
  pointer-events:none;
  overflow:visible;
}
.wl-robot-placement--cta .wl-robot{filter:drop-shadow(0 25px 30px rgba(0,0,0,.20))}
.wl-robot-placement--ai-cta{right:-20px;bottom:-215px;width:510px;height:595px}

@media(max-width:900px){
  .wl-robot-placement--cta{right:-145px;opacity:.64}
}
@media(max-width:640px){
  .wl-robot-placement--cta{right:-205px;width:430px;height:540px;bottom:-205px}
}

.wl-calc-assistant__robot,
.wl-ai-price__robot{overflow:visible!important}

.wl-calc-assistant__robot > .wl-robot--embedded,
.wl-ai-price__robot > .wl-robot--embedded{position:absolute!important}

.wl-robot-placement,
.wl-robot-placement *,
.wl-robot--embedded,
.wl-robot--embedded *{pointer-events:none!important}


/* V2 — CTA display is intentionally higher than hero display.
   JS mirrors the same offset during every head animation via data-face-offset-y. */
.wl-robot--cta .wl-robot__face-anchor{
  top:18.2%;
}

/* Calculator: keep only the tighter central molecular/orbit ring. */
.wl-robot--calc .wl-robot__fx{
  opacity:.72!important;
}
.wl-robot--calc .wl-robot__fx--back{
  opacity:.52!important;
}
.wl-robot--calc .wl-robot__fx--front{
  opacity:.78!important;
}


/* =========================================================
   CENÍK — AI PRICE ROBOT LAYERING V3
   Robot is a normal foreground element, covered only by the cards.
   ========================================================= */

.wl-ai-price{
  position:relative;
  isolation:isolate;
}

/* Keep section background/pseudo layers underneath the robot. */
.wl-ai-price::before,
.wl-ai-price::after{
  z-index:0!important;
  pointer-events:none!important;
}

.wl-ai-price > .wl-shell{
  position:relative;
  z-index:1;
}

/* Robot is NOT a faded background decoration anymore. */
.wl-ai-price__robot{
  opacity:1!important;
  visibility:visible!important;
  z-index:2!important;
  pointer-events:none!important;
  filter:none!important;
}

/* Heading stays above the robot. */
.wl-ai-price .wl-section__head{
  position:relative;
  z-index:3!important;
}

/* Cards are the only content deliberately layered over the robot. */
.wl-ai-price .wl-compact-grid{
  position:relative;
  z-index:4!important;
}

.wl-ai-price .wl-compact-card{
  position:relative;
  z-index:4;
}

/* Price note also stays readable above the decorative robot. */
.wl-ai-price .wl-price-note{
  position:relative;
  z-index:4;
}
