:root { color-scheme: dark; --bg: #0a1526; --soft: #b7c9dd; --accent: #f4b92d; }
    * { box-sizing: border-box; }
    html, body { margin: 0; min-height: 100%; }
    body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: #fff; overflow-x: hidden; }
    .scene { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; padding: 38px 20px 58px;
      background: radial-gradient(ellipse at 50% 65%, #193654 0%, #112640 35%, #0a1526 77%); }
    .scene::before { content:""; position: absolute; inset: 0; opacity: .16; z-index:-1; background-image: linear-gradient(#6090b620 1px, transparent 1px), linear-gradient(90deg, #6090b620 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(transparent 8%, black 85%); }
    .topline { position: absolute; top: 32px; left: clamp(22px, 5vw, 80px); display: flex; align-items: center; gap: 12px; letter-spacing:.23em; font-size:13px; font-weight:800; }
    .symbol { display:inline-block; width: 12px; height: 12px; transform: rotate(45deg); background:var(--accent); box-shadow: 0 0 22px #ffc74069; }
    .content { position: relative; z-index: 3; width: min(100%, 850px); text-align: center; margin-top: -7vh; }
    .eyebrow { color:var(--accent); text-transform:uppercase; font-size: 12px; font-weight:800; letter-spacing:.28em; margin-bottom:14px; }
    h1 { margin:0; font-size:clamp(35px, 6vw, 72px); font-weight:850; line-height:1.06; letter-spacing:-.045em; }
    h1 span { color: var(--accent); }
    .lead { color:var(--soft); font-size:clamp(15px, 2.1vw, 19px); margin:18px auto 0; max-width:560px; line-height:1.6; }
    .reveal { opacity:0; transform:translateY(18px); animation: show 800ms 3.55s ease forwards; }
    .reveal-late { opacity:0; transform:translateY(12px); animation: show 750ms 3.9s ease forwards; }
    .continue { display:inline-flex; align-items:center; gap:16px; min-height:56px; padding:0 25px; margin-top:30px; background:var(--accent); color:#0a1526; font-weight:800; text-decoration:none; border-radius:9px; box-shadow:0 12px 40px #0004; transition:transform .2s, box-shadow .2s, background .2s; }
    .continue:hover { transform:translateY(-3px); box-shadow:0 16px 42px #0007; background:#ffd15d; }
    .continue:focus-visible { outline:3px solid white; outline-offset:4px; }
    .continue svg { width:20px; height:20px; }
    .stage { position:relative; width:min(100%, 1320px); height:clamp(190px, 26vw, 350px); margin-top:14px; z-index:2; }
.factory { position:absolute; left:7%; right:10%; bottom:34px; z-index:0; opacity:.7; pointer-events:none; }
.factory svg { display:block; width:100%; height:auto; }
    .vehicle { position:absolute; bottom:23px; width:49%; filter:drop-shadow(0 18px 14px #02060eb8); will-change:transform; }
    .vehicle svg { display:block; width:100%; height:auto; overflow:visible; }
    .vehicle-truck { left:0; z-index:1; transform:translateX(-170vw); animation: arriveTruck 2.6s cubic-bezier(.22,.73,.17,1) .2s both; }
    .vehicle-ram { right:0; width:57%; z-index:2; transform:translateX(-190vw); animation: arriveRam 2.7s cubic-bezier(.22,.73,.17,1) 1.1s both; }
    .wheel { transform-box:fill-box; transform-origin:center; animation:roll .55s linear 7; }
    .scene.departing .vehicle-truck { animation:departTruck 2.05s cubic-bezier(.52,.02,.86,.43) forwards; }
    .scene.departing .vehicle-ram { animation:departRam 2.05s cubic-bezier(.52,.02,.86,.43) .24s forwards; }
    .scene.departing .wheel { animation:roll .35s linear infinite; }
    .scene.departing .content { opacity:0; transform:translateY(-15px); transition:opacity .35s ease, transform .35s ease; pointer-events:none; }
    .ground { position:absolute; width:130vw; height:2px; background:linear-gradient(90deg,transparent,#7993ab77 20%,#7993ab77 80%, transparent); bottom:35px; left:50%; transform:translateX(-50%); }
    .road {position:absolute; bottom:0; height:35px; left:-10vw; width:120vw; background:linear-gradient(180deg,#111e2caa,#101b2c44); }
    .road::before {content:""; position:absolute; top:20px; left:0; right:0; height:2px; background:repeating-linear-gradient(90deg,#d5e8fa44 0 50px,transparent 50px 90px); }
    .glow {position:absolute; bottom:23px; left:50%; transform:translateX(-50%); width:min(650px,80vw); height:35px; border-radius:50%; background:#4d729c28; filter:blur(20px); }
    .foot { position:absolute; bottom:24px; font-size:11px; color:#a0b3c8a8; letter-spacing:.12em; text-align:center; }
    @keyframes arriveTruck { 0% {transform:translateX(-170vw)} 73%{transform:translateX(4%)} 87%{transform:translateX(-2%)} 100%{transform:translateX(0)} }
    @keyframes arriveRam { 0% {transform:translateX(-190vw)} 73%{transform:translateX(4%)} 87%{transform:translateX(-2%)} 100%{transform:translateX(0)} }
    @keyframes departTruck { 0% {transform:translateX(0)} 12%{transform:translateX(-3%)} 100%{transform:translateX(220vw)} }
    @keyframes departRam { 0% {transform:translateX(0)} 12%{transform:translateX(-3%)} 100%{transform:translateX(220vw)} }
    @keyframes roll {to{transform:rotate(360deg)} }
    @keyframes show {to{opacity:1;transform:translateY(0)} }
    @media(max-width:600px){.content {margin-top:0}.stage {height:210px;width:100%}.vehicle-truck{width:71%;left:-18%}.vehicle-ram{width:78%;right:-24%}.eyebrow{font-size:10px}}
    @media(prefers-reduced-motion:reduce){.vehicle-truck,.vehicle-ram{animation:none;transform:none}.wheel{animation:none}.reveal,.reveal-late{animation:none;opacity:1;transform:none}.continue{transition:none}.scene.departing .vehicle{animation:none;transform:translateX(220vw)}}

/* Verze 3: zvýraznění černého RAM na tmavém pozadí a samostatná vrstva. */
.vehicle-ram svg { filter: brightness(1.18) contrast(1.08); }
.vehicle-ram { isolation:isolate; }
@media (max-width:600px) { .vehicle-truck {width:75%;left:-22%;} .vehicle-ram {width:85%;right:-34%;} }


/* Mobile only: desktop layout stays unchanged. */
@media (max-width: 600px) {
  .scene {
    min-height: 100svh;
    justify-content: center;
    padding: max(26px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
    gap: clamp(18px, 4vh, 40px);
  }
  .content { margin-top: 0; width: 100%; max-width: 490px; }
  .eyebrow { font-size: 10px; letter-spacing: .18em; margin: 0 0 12px; }
  h1 { font-size: clamp(30px, 8.5vw, 43px); line-height: 1.12; letter-spacing: -.035em; }
  .lead { font-size: clamp(13px, 3.7vw, 16px); line-height: 1.48; margin: 15px auto 0; max-width: 355px; }
  .continue {
    margin-top: 22px;
    min-height: 52px;
    justify-content: center;
    max-width: 100%;
    padding: 0 22px;
    font-size: 15px;
  }
  .stage {
    flex: none;
    width: 100%;
    max-width: 490px;
    height: clamp(132px, 35vw, 190px);
    margin-top: 0;
  }
  /* Both vehicles are fully contained in the mobile scene, including the trailer. */
  .vehicle-truck { width: 58%; left: 0; right: auto; }
  .vehicle-ram { width: 66%; right: 0; left: auto; }
  .vehicle { bottom: 23px; }
  .ground { width: 120%; }
  .road { left: -6%; width: 112%; }
}
@media (max-width: 360px) {
  .scene { padding-left: 12px; padding-right: 12px; gap: 12px; }
  h1 { font-size: 30px; }
  .stage { height: 128px; }
  .vehicle-truck { width: 59%; }
  .vehicle-ram { width: 67%; }
}
@media (max-width: 600px) and (max-height: 670px) {
  .scene { justify-content: flex-start; gap: 8px; padding-top: 18px; padding-bottom: 12px; }
  .content { flex-shrink: 0; }
  .eyebrow { margin-bottom: 8px; }
  .lead { margin-top: 9px; }
  .continue { margin-top: 14px; min-height: 46px; }
  .stage { height: 118px; margin-top: 0; }
}


/* Verze 5: továrna v pozadí bez elektřiny */
@media (max-width: 600px) {
  .factory { left: 2%; right: 2%; bottom: 31px; opacity: .56; }
}
@media (max-width: 360px) {
  .factory { left: -2%; right: -2%; opacity: .5; }
}

/* Minihra: volitelny prekryv nad puvodni uvodni animaci. */
.game-action{margin-top:13px}.game-trigger{border:1px solid #9cb7ce66;background:#152c46aa;color:#ecf5ff;padding:12px 19px;border-radius:9px;font:700 14px/1.25 inherit;cursor:pointer;transition:background .2s,border-color .2s}.game-trigger:hover{background:#233c56;border-color:#f4b92d}.game-trigger:focus-visible,.game-panel button:focus-visible{outline:3px solid #f4b92d;outline-offset:3px}
.game-overlay[hidden]{display:none!important}.game-overlay{position:fixed;inset:0;z-index:30;display:grid;place-items:center;overflow:auto;padding:16px;background:#050e1cda;backdrop-filter:blur(7px)}.game-panel{width:min(100%,520px);position:relative;border:1px solid #4a6a83;background:linear-gradient(160deg,#1a3149,#0d1b2e);border-radius:18px;box-shadow:0 24px 70px #0009;padding:clamp(22px,5vw,34px);text-align:left;color:white}.game-close{position:absolute;right:14px;top:12px;border:0;background:none;color:#d7e3ef;font-size:30px;cursor:pointer;line-height:1}.game-tag{color:#f4b92d;font-weight:800;font-size:11px;letter-spacing:.18em;margin:0 0 10px}.game-panel h2{font-size:clamp(26px,5vw,36px);line-height:1.15;margin:0 0 10px}.game-instruction{font-size:14px;color:#c3d1e0;line-height:1.5;margin:0 0 20px}.game-status{display:flex;justify-content:space-between;color:#d8e5f2;font-size:13px;font-weight:700}.game-meter{height:8px;border-radius:12px;background:#0a1626;margin:9px 0 20px;overflow:hidden}.game-meter span{display:block;width:0;height:100%;background:#f4b92d;transition:width .25s ease}.game-steps{display:grid;grid-template-columns:1fr 1fr;gap:10px}.game-steps button{display:flex;align-items:center;gap:10px;min-height:65px;border:1px solid #52708a;background:#263e56;color:white;border-radius:10px;text-align:left;padding:10px;font:700 13px/1.3 system-ui,sans-serif;cursor:pointer}.game-steps button span{flex-shrink:0;display:grid;place-items:center;border-radius:7px;background:#0b1e31;color:#f4b92d;width:29px;height:29px;font-size:12px}.game-steps button:hover:not(:disabled){background:#315573;border-color:#f4b92d}.game-steps button:disabled{opacity:.58;cursor:default}.game-steps button.done{background:#1d5548;border-color:#50b89b;color:#eafff8;opacity:1}.game-feedback{font-weight:700;min-height:42px;color:#f5ca60;margin:17px 0 8px;font-size:14px;line-height:1.4}.game-feedback.success{color:#87edb6}.game-reset{background:transparent;border:1px solid #7893ab;border-radius:8px;color:#e1ecf7;padding:9px 14px;font:600 13px system-ui;cursor:pointer}.scene.power-restored .factory{filter:drop-shadow(0 0 20px #f6b34277)}.factory .factory-lights{opacity:0;transition:opacity .8s ease}.scene.power-restored .factory .factory-lights{opacity:1}
@media(max-width:600px){.game-action{margin-top:9px}.game-trigger{padding:10px 15px;font-size:12px}.game-overlay{padding:12px}.game-panel{padding:22px 18px}.game-steps button{padding:8px;min-height:58px;font-size:12px;gap:6px}}
@media(max-width:360px){.game-steps{gap:7px}.game-steps button span{width:23px;height:23px}.game-panel{padding:22px 13px}}

/* Informative, visible and crawlable service content below the unchanged hero. */
.seo-content { background:#0c192b; color:#e2eaf4; padding:60px 20px 35px; }
.seo-inner { max-width:1080px; margin:auto; }
.seo-content h2 { font-size:clamp(24px,3vw,36px); line-height:1.2; margin:0 0 16px; }
.seo-content h3 { font-size:21px; margin:36px 0 16px; }
.seo-content h4 { font-size:17px; margin:0 0 9px; color:#f4b92d; }
.seo-content p { color:#b7c9dd; font-size:15px; line-height:1.65; }
.service-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.service-grid article { background:#14263d; padding:20px; border:1px solid #29415b; border-radius:12px; }
.service-grid article p { margin:0; }
.service-cta { display:inline-block; margin:25px 0 20px; color:#0a1526; background:#f4b92d; padding:13px 19px; border-radius:8px; font-weight:700; text-decoration:none; }
.language-nav { display:flex; gap:14px; flex-wrap:wrap; padding:20px 0 0; border-top:1px solid #29415b; }
.language-nav a { color:#b7c9dd; font-size:13px; text-decoration:underline; text-underline-offset:4px; }
.language-nav a[aria-current=page] { color:#f4b92d; font-weight:700; }
@media(max-width:650px){.seo-content{padding:38px 18px 28px}.service-grid{grid-template-columns:1fr}.service-grid article{padding:17px}}


/* Scene v13: technici, kabely, rozvaděč a spuštění výroby.
   CSS animace jsou oddělené od aut a nespouštějí žádné přesměrování. */
.service-crew { position:absolute; inset:0; z-index:4; pointer-events:none; }
.service-crew svg { width:100%; height:100%; display:block; overflow:visible; }
.technician { opacity:0; }
.tech-one { transform:translate(342px,281px); }
.tech-two { transform:translate(868px,281px); }
.power-cabinet { opacity: .95; }
.crew-cables { opacity:0; transition:opacity .35s ease; }
.crew-cable { stroke-dasharray:330; stroke-dashoffset:330; transition:stroke-dashoffset .9s ease; }
.crew-cable-highlight-a, .crew-cable-highlight-b { stroke-dasharray:330; stroke-dashoffset:330; transition:stroke-dashoffset .9s ease; }
.cabinet-led-green { opacity:0; }
.scene.power-restored .factory { filter:drop-shadow(0 0 30px #ffd47988) brightness(1.08); }
.factory .factory-lights { opacity:0; transition:opacity .45s ease; }
.scene.power-restored .factory .factory-lights { opacity:1; }
.scene.power-restored .power-cabinet { filter: drop-shadow(0 0 10px #ffe18b66); }
.scene.power-restored .cabinet-led { opacity:0; }
.scene.power-restored .cabinet-led-green { opacity:1; }
/* Technici se objeví při výstupu a přijdou k rozvaděči. */
.scene.crew-arriving .tech-one, .scene.crew-arriving .tech-two,
.scene.crew-connected .tech-one, .scene.crew-connected .tech-two,
.scene.crew-packing .tech-one, .scene.crew-packing .tech-two { opacity:1; }
.scene.crew-arriving .tech-one { animation:techWalkOne 1.35s ease-out forwards; }
.scene.crew-arriving .tech-two { animation:techWalkTwo 1.35s ease-out forwards; }
.scene.crew-connected .tech-one { transform:translate(537px,281px); }
.scene.crew-connected .tech-two { transform:translate(670px,281px); }
.scene.crew-arriving .tech-leg-left, .scene.crew-arriving .tech-leg-right { transform-box:fill-box; transform-origin:50% 0; animation:crewStride .34s ease-in-out 4 alternate; }
.scene.crew-connected .crew-cables {opacity:1;}
.scene.crew-connected .crew-cable, .scene.crew-connected .crew-cable-highlight-a,
.scene.crew-connected .crew-cable-highlight-b {stroke-dashoffset:0;}
.scene.crew-packing .crew-cables {opacity:0; transition:opacity .4s ease;}
.scene.crew-packing .tech-one { animation:techBackOne 1.15s ease-in forwards; }
.scene.crew-packing .tech-two { animation:techBackTwo 1.15s ease-in forwards; }
.scene.crew-packing .tech-leg-left, .scene.crew-packing .tech-leg-right {transform-box:fill-box; transform-origin:50% 0; animation:crewStride .3s ease-in-out 4 alternate;}
.scene.crew-switching .cabinet-switch {transform:translate(614px,250px) rotate(-25deg);}
@keyframes techWalkOne {0% {transform:translate(342px,281px)} 100% {transform:translate(537px,281px)} }
@keyframes techWalkTwo {0% {transform:translate(868px,281px)} 100% {transform:translate(670px,281px)} }
@keyframes techBackOne {0% {transform:translate(537px,281px)} 100% {transform:translate(342px,281px)} }
@keyframes techBackTwo {0% {transform:translate(670px,281px)} 100% {transform:translate(868px,281px)} }
@keyframes crewStride {from {rotate:-14deg} to {rotate:14deg}}
/* SVG má pevnou kreslicí souřadnicovou soustavu 1200 x 320. Na užších
   obrazovkách zmenšujeme celý prvek tak, aby zůstalo relativní rozmístění. */
@media (max-width:600px) {
 .service-crew { inset:auto 0 0; height:100%; }
 .service-crew svg { overflow:hidden; }
}
@media (prefers-reduced-motion:reduce) {
 .scene.crew-arriving .tech-one,.scene.crew-connected .tech-one {animation:none;transform:translate(537px,281px)}
 .scene.crew-arriving .tech-two,.scene.crew-connected .tech-two {animation:none;transform:translate(670px,281px)}
 .scene.crew-packing .tech-one,.scene.crew-packing .tech-two {animation:none;opacity:0}
 .scene.crew-connected .crew-cables {opacity:1}
}

.factory-production {opacity:0;transition:opacity .45s ease; transform-origin:center bottom;}
.scene.power-restored .factory-production {opacity:.75; animation: productionPulse .8s ease-out 1;}
.factory-smoke {stroke-dasharray:10 14;animation:factorySteam 2.8s linear infinite;}
.smoke-b {animation-delay:-1.2s;}
@keyframes factorySteam {from{stroke-dashoffset:0;transform:translateY(0)}to{stroke-dashoffset:-46;transform:translateY(-9px)}}
@media (prefers-reduced-motion:reduce) {.factory-smoke{animation:none}}

@keyframes productionPulse {0%{opacity:0; transform:scaleY(.6)} 55%{opacity:.95; transform:scaleY(1.08)} 100%{opacity:.75; transform:scaleY(1)}}

.factory-power-flash{opacity:0;transform-origin:center;transition:opacity .2s ease;}
.scene.power-restored .factory-power-flash{opacity:1;animation: powerFlash .65s ease-out 1;}
@keyframes powerFlash{0%{opacity:0;transform:scale(.65)}35%{opacity:1;transform:scale(1.08)}100%{opacity:0;transform:scale(1.2)}}


/* Verze 14: majáky, živější technici a výraznější oživení výroby */
.beacon-light, .beacon-glow { opacity: 0; }
.scene.crew-arriving .beacon-light, .scene.crew-connected .beacon-light, .scene.crew-packing .beacon-light, .scene.departing .beacon-light {
  animation: beaconBlink .85s steps(2, end) infinite;
}
.scene.crew-arriving .beacon-glow, .scene.crew-connected .beacon-glow, .scene.crew-packing .beacon-glow, .scene.departing .beacon-glow {
  animation: beaconGlow .85s ease-in-out infinite;
}
@keyframes beaconBlink { 0%, 44% { opacity: .05; } 45%, 100% { opacity: .95; } }
@keyframes beaconGlow { 0%, 44% { opacity: 0; transform: scale(.85); } 45%, 100% { opacity: .38; transform: scale(1.1); } }

.scene.crew-connected .tech-body { animation: techIdle 1.4s ease-in-out infinite alternate; }
.scene.crew-connected .tech-one .tech-arm-right { transform-box: fill-box; transform-origin: 16px -64px; animation: techReachRight .9s ease-in-out infinite alternate; }
.scene.crew-connected .tech-two .tech-arm-left { transform-box: fill-box; transform-origin: -14px -64px; animation: techReachLeft 1.1s ease-in-out infinite alternate; }
.scene.crew-connected .tech-two .tech-arm-right { transform-box: fill-box; transform-origin: 14px -64px; animation: techSignal 1.6s ease-in-out infinite alternate; }
@keyframes techIdle { from { transform: translateY(0px); } to { transform: translateY(-4px); } }
@keyframes techReachRight { from { transform: rotate(-4deg); } to { transform: rotate(16deg); } }
@keyframes techReachLeft { from { transform: rotate(5deg); } to { transform: rotate(-18deg); } }
@keyframes techSignal { 0%, 60% { transform: rotate(0deg); } 100% { transform: rotate(12deg); } }

.scene.power-restored .factory-production { opacity:.82; animation: productionPulse .8s ease-out 1, productionHum 2.2s ease-in-out infinite alternate .9s; }
.scene.power-restored .factory-machines { opacity: .95; }
.scene.power-restored .machine-bar { animation: machineMove 1.2s linear infinite; }
.scene.power-restored .machine-gear { animation: gearSpin 2.2s linear infinite; transform-origin: center; transform-box: fill-box; }
.scene.power-restored .gear-small { animation-duration: 1.4s; animation-direction: reverse; }
.scene.power-restored .factory-lights rect { animation: windowFlicker 2.6s ease-in-out infinite alternate; }
.scene.power-restored .factory-smoke { stroke-width: 8; }
@keyframes productionHum { from { transform: scaleY(1) translateY(0); } to { transform: scaleY(1.03) translateY(-1px); } }
@keyframes machineMove { from { stroke-dasharray: 10 8; stroke-dashoffset: 0; } to { stroke-dasharray: 10 8; stroke-dashoffset: -18; } }
@keyframes gearSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes windowFlicker { 0%, 8% { opacity: .92; } 10%, 13% { opacity: .72; } 16%, 100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .scene.crew-arriving .beacon-light, .scene.crew-connected .beacon-light, .scene.departing .beacon-light,
  .scene.crew-arriving .beacon-glow, .scene.crew-connected .beacon-glow, .scene.departing .beacon-glow,
  .scene.crew-connected .tech-body, .scene.crew-connected .tech-one .tech-arm-right,
  .scene.crew-connected .tech-two .tech-arm-left, .scene.crew-connected .tech-two .tech-arm-right,
  .scene.power-restored .factory-production, .scene.power-restored .machine-bar, .scene.power-restored .machine-gear,
  .scene.power-restored .factory-lights rect { animation: none !important; }
  .scene.crew-connected .beacon-light { opacity: .95; }
  .scene.crew-connected .beacon-glow { opacity: .3; }
  .scene.power-restored .factory-machines { opacity: .95; }
}


/* v15: krátké bliknutí světlometů při zastavení, realisticky výklopné dveře */
.truck-door, .ram-door { transform-box: fill-box; transition:transform .55s cubic-bezier(.24,.7,.18,1); }
.truck-door { transform-origin: right center; }
.ram-door { transform-origin: left center; }
.scene.doors-open .truck-door { transform: skewY(-14deg) scaleX(.32); }
.scene.doors-open .ram-door { transform: skewY(12deg) scaleX(.3); }
.scene.arrival-flash .arrival-headlamp { animation: headlightBlink .65s ease-out 2; }
@keyframes headlightBlink {0%,100%{opacity:0}30%,65%{opacity:.85}}
/* rozběh továrny: dopravník, lopatky ventilátoru, kouř od komínů */
.factory .production-line { opacity:0; transition:opacity .75s ease; }
.scene.power-restored .factory .production-line {opacity:.95;}
.scene.power-restored .factory .conveyor-stripes { animation: moveConveyor .65s linear infinite; }

@keyframes moveConveyor {to{stroke-dashoffset:-28}}

.scene.power-restored .factory .factory-production {opacity:.9;}
@media(prefers-reduced-motion:reduce){
 .truck-door,.ram-door{transition:none}
 .scene.arrival-flash .arrival-headlamp,.scene.power-restored .factory .conveyor-stripes{animation:none}
}


/* v16: worried factory director becomes a delighted businessman when the power comes back. */
.factory-director { opacity: .98; }
.director-happy { opacity:0; transition:opacity .36s ease; }
.director-worried { opacity:1; transition:opacity .36s ease; }
.scene.power-restored .director-happy { opacity:1; }
.scene.power-restored .director-worried { opacity:0; }
.scene.power-restored .director-money { transform-box:fill-box; transform-origin:center; animation:countBills .55s ease-in-out infinite alternate; }
.scene.power-restored .director-note { transform-box:fill-box; transform-origin:45% 80%; animation:flipBill .55s ease-in-out infinite alternate; }
@keyframes countBills {from{transform:translateY(0)}to{transform:translateY(-3px)}}
@keyframes flipBill {from{transform:rotate(-3deg) translateY(0)}to{transform:rotate(21deg) translateY(-4px)}}
/* Director is in the service-crew SVG in front of the parked vehicles. */
.factory-director { filter: drop-shadow(0 2px 2px #07101ac0); }
@media (max-width:600px) { .factory-director { transform:translate(1050px,281px) scale(1.34); } }
@media (prefers-reduced-motion:reduce) {
  .scene.power-restored .director-money,.scene.power-restored .director-note {animation:none !important;}
  .director-worried,.director-happy{transition:none}
}
